From 7d2d0a556c374f8480bd0fc0f0dfd301fbd3c8df Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 3 Jul 2024 17:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E8=B4=A7=E5=8F=A3=E5=85=A5=E5=BA=93\?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=8F=A3=E5=85=A5=E5=BA=93\=E5=AF=BC?= =?UTF-8?q?=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SecondPhase/finished/ReturnToStore.vue | 20 ++++-- pages/SecondPhase/finished/abnorToStore.vue | 2 +- pages/home/home.vue | 74 ++++++++++++++++++-- utils/getData3.js | 3 +- utils/mork2.js | 38 +++++++++- 5 files changed, 124 insertions(+), 13 deletions(-) diff --git a/pages/SecondPhase/finished/ReturnToStore.vue b/pages/SecondPhase/finished/ReturnToStore.vue index 95ede80..b3b1991 100644 --- a/pages/SecondPhase/finished/ReturnToStore.vue +++ b/pages/SecondPhase/finished/ReturnToStore.vue @@ -1,8 +1,14 @@ @@ -39,20 +45,25 @@ }, data() { return { + options: [{value: '1', text: '返检入库'}, {value: '2', text: '改切入库'}, {value: '0001', text: '生产入库'}, {value: '0009', text: '手工入库'}], + index: '', val1: '', val2: '', disabled: false }; }, methods: { + selectChange (e) { + this.index = e + }, async _twoPdaReturnIn () { this.disabled = true - if (!this.val1 || !this.val2) { + if (!this.index || !this.val1 || !this.val2) { this.disabled = false return } try { - let res = await twoPdaReturnIn(this.val1, this.val2) + let res = await twoPdaReturnIn(this.index, this.val1, this.val2) uni.showToast({ title: res.message, icon: 'none' @@ -65,6 +76,7 @@ clearUp () { this.val1 = '' this.val2 = '' + this.index = '' } } } diff --git a/pages/SecondPhase/finished/abnorToStore.vue b/pages/SecondPhase/finished/abnorToStore.vue index c4f5d96..e15e9cc 100644 --- a/pages/SecondPhase/finished/abnorToStore.vue +++ b/pages/SecondPhase/finished/abnorToStore.vue @@ -53,7 +53,7 @@ }, data() { return { - options: [{value: '1', text: '返检入库'}, {value: '2', text: '改切入库'}], + options: [{value: '1', text: '返检入库'}, {value: '2', text: '改切入库'}, {value: '0001', text: '生产入库'}, {value: '0009', text: '手工入库'}], index: '', val1: '', val2: '', diff --git a/pages/home/home.vue b/pages/home/home.vue index 4656a5c..012c0f3 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -43,12 +43,14 @@