From 4503a01af4586c81f0f0f9a0486b08ed94d538e7 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 6 Apr 2023 16:33:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=AB=E7=A0=81=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/inscanerror.vue | 43 +++++++++++++++++++++++++------- utils/getData2.js | 5 ++-- 2 files changed, 37 insertions(+), 11 deletions(-) diff --git a/pages/management/inscanerror.vue b/pages/management/inscanerror.vue index 553cbe2..055df11 100644 --- a/pages/management/inscanerror.vue +++ b/pages/management/inscanerror.vue @@ -15,6 +15,12 @@ + + + + + + @@ -23,15 +29,15 @@ /> - + + + + + - @@ -48,9 +54,9 @@ - + - +
{{e.cacheLine_code}}{{e.cacheline_code}} {{e.position_code}}{{vehicle_code}}{{e.vehicle_code}}
@@ -73,6 +79,8 @@ index1: 'A1', options2: [], index2: '', + options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '1'}], + index3: '1', val1: '', dataList: [], pkId: '', @@ -95,6 +103,10 @@ selectChange2(e) { this.index2 = e }, + /** 选择器3 */ + selectChange3(e) { + this.index3 = e + }, toSearch () { this.dataList = [] this.pkId = '' @@ -126,6 +138,14 @@ this.disabled = false return } + if (!this.index3) { + uni.showToast({ + title: '请选择位置类型', + icon: 'none' + }) + this.disabled = false + return + } if (!this.val1) { uni.showToast({ title: '请扫满箱码', @@ -135,7 +155,7 @@ return } try { - let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId) + let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId, this.index3) this.disabled = false this.toSearch() uni.showToast({ @@ -152,3 +172,8 @@ } } + + \ No newline at end of file diff --git a/utils/getData2.js b/utils/getData2.js index f4ea97d..e41dd0d 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -37,12 +37,13 @@ export const inOutExceptionInstQuery = (wcode) => request({ } }) // 1.3确认 -export const inOutExceptionInstConfirm = (wcode, vcode, pcode) => request({ +export const inOutExceptionInstConfirm = (wcode, vcode, pcode, type) => request({ url:'api/cacheLineHand/inOutExceptionInstConfirm', data: { wcsdevice_code: wcode, vehicle_code: vcode, - position_code: pcode + position_code: pcode, + type: type } }) From 75cfbcfae8bea38fcb8b61c5110a9dc33f89a6a2 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 6 Apr 2023 16:40:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=AB=E7=A0=81=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/inscanerror.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/management/inscanerror.vue b/pages/management/inscanerror.vue index 055df11..e62b2c5 100644 --- a/pages/management/inscanerror.vue +++ b/pages/management/inscanerror.vue @@ -79,7 +79,7 @@ index1: 'A1', options2: [], index2: '', - options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '1'}], + options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '2'}], index3: '1', val1: '', dataList: [],