From 48409ebb569b6db04abfd68e7457ac138ad15970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Fri, 6 Dec 2024 18:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=93=8D=E6=8E=A7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mode/command.vue | 20 +++----------------- pages/mode/pick.vue | 2 +- pages/mode/switch-in-out.vue | 2 +- 3 files changed, 5 insertions(+), 19 deletions(-) diff --git a/pages/mode/command.vue b/pages/mode/command.vue index beecec1..0ac10cd 100644 --- a/pages/mode/command.vue +++ b/pages/mode/command.vue @@ -14,14 +14,6 @@ /> - - - 操作命令 - - - - - 载具编码 @@ -36,7 +28,7 @@ - + @@ -54,8 +46,6 @@ return { title: '', val1: '', - options: [{value: '0', text: '是'}, {value: '1', text: '否'}], - index: '', val2: '', disabled: false }; @@ -64,17 +54,14 @@ this.title = options.title }, methods: { - selectChange (e) { - this.index = e - }, async _toCommandTP () { this.disabled = true - if (!this.val1 || !this.index || !this.val2) { + if (!this.val1 || !this.val2) { this.disabled = false return } try { - let res = await toCommandTP(this.val1, this.index, this.val2) + let res = await toCommandTP(this.val1, '1', this.val2) this.disabled = false uni.showToast({ title: res.msg, @@ -86,7 +73,6 @@ }, toEmpty () { this.val1 = '' - this.index = '' this.val2 = '' this.disabled = false } diff --git a/pages/mode/pick.vue b/pages/mode/pick.vue index e4db572..260bfca 100644 --- a/pages/mode/pick.vue +++ b/pages/mode/pick.vue @@ -44,7 +44,7 @@ return { title: '', val1: '', - options: [{value: '0', text: '是'}, {value: '1', text: '否'}], + options: [{value: '0', text: '停用'}, {value: '1', text: '启用'}], index: '', disabled: false }; diff --git a/pages/mode/switch-in-out.vue b/pages/mode/switch-in-out.vue index 1158a74..48d8b33 100644 --- a/pages/mode/switch-in-out.vue +++ b/pages/mode/switch-in-out.vue @@ -44,7 +44,7 @@ return { title: '', val1: '', - options: [{value: '0', text: '是'}, {value: '1', text: '否'}], + options: [{value: '0', text: '入库模式'}, {value: '1', text: '出库模式'}], index: '', disabled: false };