点位管理

This commit is contained in:
2023-10-13 13:28:50 +08:00
parent 3c820f4b8e
commit 7ce0415eb7

View File

@@ -171,7 +171,7 @@
},
setcode (el) {
this.active = true
this.obj = el.device_name
this.obj = el
this.index = el.material_type
this.qty = el.qty
},
@@ -194,10 +194,6 @@
async _handPointOpt (code, type, mtype, qty) {
try {
let res = await handPointOpt(code, type, mtype, qty)
uni.showToast({
title: res.desc,
icon: 'none'
})
if (res.code === '1') {
this.index = ''
this.qty = ''
@@ -205,12 +201,20 @@
this.disabled1 = false
this.disabled2 = false
this.initPonit(this.regobj)
uni.showToast({
title: res.desc,
icon: 'none'
})
} else {
this.index = ''
this.qty = ''
this.obj = {}
this.disabled1 = false
this.disabled2 = false
uni.showModal({
content: res.desc,
showCancel: false
})
}
} catch (err) {
this.index = ''