点位管理
This commit is contained in:
@@ -171,7 +171,7 @@
|
|||||||
},
|
},
|
||||||
setcode (el) {
|
setcode (el) {
|
||||||
this.active = true
|
this.active = true
|
||||||
this.obj = el.device_name
|
this.obj = el
|
||||||
this.index = el.material_type
|
this.index = el.material_type
|
||||||
this.qty = el.qty
|
this.qty = el.qty
|
||||||
},
|
},
|
||||||
@@ -194,10 +194,6 @@
|
|||||||
async _handPointOpt (code, type, mtype, qty) {
|
async _handPointOpt (code, type, mtype, qty) {
|
||||||
try {
|
try {
|
||||||
let res = await handPointOpt(code, type, mtype, qty)
|
let res = await handPointOpt(code, type, mtype, qty)
|
||||||
uni.showToast({
|
|
||||||
title: res.desc,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.index = ''
|
this.index = ''
|
||||||
this.qty = ''
|
this.qty = ''
|
||||||
@@ -205,12 +201,20 @@
|
|||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
this.initPonit(this.regobj)
|
this.initPonit(this.regobj)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.index = ''
|
this.index = ''
|
||||||
this.qty = ''
|
this.qty = ''
|
||||||
this.obj = {}
|
this.obj = {}
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
|
uni.showModal({
|
||||||
|
content: res.desc,
|
||||||
|
showCancel: false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.index = ''
|
this.index = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user