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} }) /** * 组盘入库