From 1cf040b14d93b7d5fdcddb5e46ea14b2e2074c16 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 13 Oct 2023 10:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/modules/pointmanage.vue | 8 ++++---- utils/getData2.js | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/modules/pointmanage.vue b/pages/modules/pointmanage.vue index 66ec4bf..29803ef 100644 --- a/pages/modules/pointmanage.vue +++ b/pages/modules/pointmanage.vue @@ -156,12 +156,12 @@ }, cleanUp () { this.disabled1 = true - this._handPointOpt('2', this.index, this.qty) + this._handPointOpt(this.obj.device_code, '2', this.index, this.qty) this.active = false }, msgSure () { this.disabled2 = true - this._handPointOpt('1', this.index, this.qty) + this._handPointOpt(this.obj.device_code, '1', this.index, this.qty) this.active = false }, msgCancle () { @@ -170,9 +170,9 @@ this.index = '' this.qty = '' }, - async _handPointOpt (type, mtype, qty) { + async _handPointOpt (code, type, mtype, qty) { try { - let res = await handPointOpt(type, mtype, qty) + let res = await handPointOpt(code, type, mtype, qty) uni.showToast({ title: '操作成功', icon: 'none' diff --git a/utils/getData2.js b/utils/getData2.js index 2750cfa..a851da6 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -60,9 +60,10 @@ export const handMaterial = () => request({ // return res // } // 1.4点位操作 -export const handPointOpt = (type, mtype, qty) => request({ +export const handPointOpt = (code, type, mtype, qty) => request({ url:'api/hand/pointOpt', data: { + device_code: code, type: type, material_type: mtype, qty: qty