点位管理
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user