Commit 2ba1080c authored by kangzhenfei's avatar kangzhenfei

设备id

parent 849e2b9c
......@@ -334,6 +334,7 @@ export default {
getlistall(id) {
let parme = { shopid: id }
Api.getlistall(parme).then((res) => {
console.log(res)
res.result.map((u) => {
u.checked = false
})
......@@ -395,6 +396,7 @@ export default {
item.map((u) => {
u.userIds = this.entity.userIds
u.remark = this.entity.remark
u.equipId = this.shebeiId
})
// console.log(item)
this.$refs['formValidate'].validate((valid) => {
......@@ -402,6 +404,8 @@ export default {
Api.saveTeamentry(item).then((res) => {
if (res.success) {
this.$Message.success('设备派工成功。')
this.getUserInfoFn()
this.facilityModal = false
} else {
this.$Message.error('设备派工失败...')
}
......@@ -424,6 +428,7 @@ export default {
Api.saveTeamentry(item).then((res) => {
if (res.success) {
this.$Message.success('人员派工成功。')
this.getUserInfoFn()
this.manModal = false
} else {
this.$Message.error('人员派工失败...')
......@@ -465,6 +470,16 @@ export default {
this.footerToolbar = true
return peploeId
},
equipId() {
let equipId = null
this.listSheBei.map((u) => {
if (u.checked) {
equipId = u.id
}
})
// this.footerToolbar = true
return equipId
},
showOperate() {
return this.ids.length > 0 && (this.shebeiId > 0 || this.peploeId.length >0)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment