From 1a12c9bfad7dba3198894fbeb46fa18f8d1c51ff Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 10 May 2024 14:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E6=9C=A8=E7=AE=B1=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B1=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SecondPhase/EmptyBoxInStore.vue | 14 +++++++++++++- utils/getData3.js | 5 +++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pages/SecondPhase/EmptyBoxInStore.vue b/pages/SecondPhase/EmptyBoxInStore.vue index 56ed99f..813be4e 100644 --- a/pages/SecondPhase/EmptyBoxInStore.vue +++ b/pages/SecondPhase/EmptyBoxInStore.vue @@ -27,6 +27,12 @@ + + 层数 + + + + @@ -50,10 +56,15 @@ val1: '', val2: '', val3: '', + options: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}], + index: '', disabled: false }; }, methods: { + selectChange (e) { + this.index = e + }, async _twoPdaBoxIn () { this.disabled = true if (!this.val1 || !this.val2 || !this.val3) { @@ -61,7 +72,7 @@ return } try { - let res = await twoPdaBoxIn(this.val1, this.val2, this.val3) + let res = await twoPdaBoxIn(this.val1, this.val2, this.val3, this.index) uni.showToast({ title: res.message, icon: 'none' @@ -75,6 +86,7 @@ this.val1 = '' this.val2 = '' this.val3 = '' + this.index = '' } } } diff --git a/utils/getData3.js b/utils/getData3.js index 01e17ae..391a4dc 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -20,12 +20,13 @@ export const twoPdaVehicleIn = (code, type, pcode) => request({ * 二期空木箱入库 */ // 1.1空木箱入库-【入库按钮】 -export const twoPdaBoxIn = (code, no, pcode) => request({ +export const twoPdaBoxIn = (code, no, pcode, layer) => request({ url:'api/twoPda/vehicle/boxIn', data: { vehicle_code: code, box_no: no, - point_code: pcode + point_code: pcode, + layer: layer } }) /**