From 6b255835a055e10d1f2cde746a88a78c0d0bea0a Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 10 Feb 2025 10:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=8F=91=E8=BE=93=E9=80=81=E7=BA=BF?= =?UTF-8?q?=E8=BF=90=E5=8A=A8=E5=91=BD=E4=BB=A4=E5=A2=9E=E5=8A=A0=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mode/command.vue | 27 +++++++++++++++++++++------ pages/mode/pick.vue | 8 ++++---- pages/mode/switch-in-out.vue | 8 ++++---- pages/pick/pick-task.vue | 2 +- utils/getData2.js | 4 ++-- 5 files changed, 32 insertions(+), 17 deletions(-) diff --git a/pages/mode/command.vue b/pages/mode/command.vue index 0ac10cd..911033a 100644 --- a/pages/mode/command.vue +++ b/pages/mode/command.vue @@ -5,25 +5,34 @@ - + 扫码点位 - + - + 载具编码 - + + + + 库存校验 + + + + + + @@ -47,7 +56,8 @@ title: '', val1: '', val2: '', - disabled: false + disabled: false, + isChecked: true }; }, onLoad (options) { @@ -61,7 +71,8 @@ return } try { - let res = await toCommandTP(this.val1, '1', this.val2) + let check = this.isChecked ? '1' : '0' + let res = await toCommandTP(this.val1, '1', this.val2, check) this.disabled = false uni.showToast({ title: res.msg, @@ -75,6 +86,10 @@ this.val1 = '' this.val2 = '' this.disabled = false + this.isChecked = true + }, + setWStatus () { + this.isChecked = !this.isChecked } } } diff --git a/pages/mode/pick.vue b/pages/mode/pick.vue index 260bfca..79875e4 100644 --- a/pages/mode/pick.vue +++ b/pages/mode/pick.vue @@ -5,20 +5,20 @@ - + 扫码点位 - + - + 操作命令 - + diff --git a/pages/mode/switch-in-out.vue b/pages/mode/switch-in-out.vue index 48d8b33..18a2165 100644 --- a/pages/mode/switch-in-out.vue +++ b/pages/mode/switch-in-out.vue @@ -5,20 +5,20 @@ - + 扫码点位 - + - + 操作命令 - + diff --git a/pages/pick/pick-task.vue b/pages/pick/pick-task.vue index e048fd5..945597c 100644 --- a/pages/pick/pick-task.vue +++ b/pages/pick/pick-task.vue @@ -70,7 +70,7 @@ 是否机械搬运 - + diff --git a/utils/getData2.js b/utils/getData2.js index 171ef8a..afd1c98 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -54,9 +54,9 @@ export const pinkStartStop = (code, mode) => request({ url:'api/deviceManage/changeMode/pinkStartStop', data: {device_code: code, mode: mode} }) -export const toCommandTP = (code, mode, vcode) => request({ +export const toCommandTP = (code, mode, vcode, isC) => request({ url:'api/deviceManage/changeMode/toCommandTP', - data: {device_code: code, mode: mode, vehicle_code: vcode} + data: {device_code: code, mode: mode, vehicle_code: vcode, is_check: isC} }) /** * 组盘入库