diff --git a/pages/modules/pointmanage.vue b/pages/modules/pointmanage.vue index 50216f9..f826b83 100644 --- a/pages/modules/pointmanage.vue +++ b/pages/modules/pointmanage.vue @@ -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 = ''