From b6ccd9eb409a7b9046abdfb28a9ffa1039c40328 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 16 Dec 2022 15:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/ProductManage/ZjCasing.vue | 6 ++- pages/ProductManage/ZjDelivery.vue | 21 +++++++-- pages/ProductManage/ZjInStore.vue | 69 ++++++++++++++++-------------- pages/ProductManage/ZjOutStore.vue | 63 +++++++++++++++------------ utils/getData2.js | 52 +++++++++++++--------- 5 files changed, 127 insertions(+), 84 deletions(-) diff --git a/pages/ProductManage/ZjCasing.vue b/pages/ProductManage/ZjCasing.vue index 0442abe..caba112 100644 --- a/pages/ProductManage/ZjCasing.vue +++ b/pages/ProductManage/ZjCasing.vue @@ -142,7 +142,11 @@ /** 选择器1 */ selectChange1(e) { this.index1 = e - this._queryDeviceByarea(e) + if (e) { + this._queryDeviceByarea(e) + } else { + this.index2 = '' + } }, /** 生产区域下拉框查询 */ async _queryProductArea () { diff --git a/pages/ProductManage/ZjDelivery.vue b/pages/ProductManage/ZjDelivery.vue index 2308b40..05b2d66 100644 --- a/pages/ProductManage/ZjDelivery.vue +++ b/pages/ProductManage/ZjDelivery.vue @@ -98,7 +98,7 @@ - + @@ -121,6 +121,8 @@ val3: '', options1: [], index1: '', + options2: [], + index2: '', qty: '', dataList: [], disabled1: false, @@ -138,7 +140,11 @@ /** 选择器1 */ selectChange1(e) { this.index1 = e - this._queryDeviceByarea(e) + if (e) { + this._queryDeviceByarea(e) + } else { + this.index2 = '' + } }, /** 生产区域下拉框查询 */ async _queryProductArea () { @@ -192,7 +198,7 @@ /** 确认 */ async _shippingConfirm () { this.disabled2 = true - if (!this.checkArr.length) { + if (!this.checkArr.length || !this.val3) { this.disabled2 = false return } @@ -200,6 +206,9 @@ let res = await shippingConfirm(this.checkArr, this.val3, this.val1) this.disabled2 = false this.checkArr = [] + this.val1 = '' + this.val2 = '' + this.val3 = '' this._queryMaterialInfo() uni.showToast({ title: res.message, @@ -222,11 +231,15 @@ } try { let res = await returnVehicle(this.val3, this.val1) + this.disabled3 = false + this.val1 = '' + this.val2 = '' + this.val3 = '' + this._queryMaterialInfo() uni.showToast({ title: res.message, icon: 'none' }) - this.disabled3 = false } catch (e) { this.disabled3 = false } diff --git a/pages/ProductManage/ZjInStore.vue b/pages/ProductManage/ZjInStore.vue index 89b7ccb..9095f04 100644 --- a/pages/ProductManage/ZjInStore.vue +++ b/pages/ProductManage/ZjInStore.vue @@ -4,9 +4,17 @@ - 设备 + 区域 - + + + + + + 设备 + + + @@ -14,13 +22,6 @@ - 查询 - - - 区域 - - - @@ -29,7 +30,6 @@ 序号 - 订单号 子卷号 机台编号 分切组 @@ -37,14 +37,12 @@ 配送完成 生产顺序 生产日期 - - + 订单号 {{Number(i) + 1}} - {{e.mfg_order_name}} {{e.container_name}} {{e.point_code}} {{e.split_group}} @@ -52,6 +50,7 @@ {{e.is_child_ps_ok}} {{e.manufacture_sort}} {{e.manufacture_date}} + {{e.mfg_order_name}} @@ -68,7 +67,7 @@ diff --git a/pages/ProductManage/ZjOutStore.vue b/pages/ProductManage/ZjOutStore.vue index 66e448f..f70dcba 100644 --- a/pages/ProductManage/ZjOutStore.vue +++ b/pages/ProductManage/ZjOutStore.vue @@ -4,9 +4,17 @@ - 设备 + 区域 - + + + + + + 设备 + + + @@ -14,13 +22,6 @@ - 查询 - - - 区域 - - - @@ -39,7 +40,6 @@ 序号 选择 - 订单号 子卷号 机台编号 分切组 @@ -52,13 +52,13 @@ FRP管物料编码 FRP管物料描述 FRP管规格 + 订单号 {{Number(i) + 1}} - {{e.mfg_order_name}} {{e.container_name}} {{e.point_code}} {{e.split_group}} @@ -71,6 +71,7 @@ {{e.FRP_material}} {{e.FRP_description}} {{e.FRP_model}} + {{e.mfg_order_name}} @@ -110,7 +111,7 @@