From ded55a9c9f7cc3f6f605b7c35e1511cd0d179ee6 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 28 Apr 2023 10:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E7=AE=A1=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/ProductManage/EmptyPipeInStore.vue | 13 ++++++++++--- utils/getData2.js | 8 +++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/pages/ProductManage/EmptyPipeInStore.vue b/pages/ProductManage/EmptyPipeInStore.vue index 63ece4f..1083e76 100644 --- a/pages/ProductManage/EmptyPipeInStore.vue +++ b/pages/ProductManage/EmptyPipeInStore.vue @@ -61,13 +61,17 @@ }, created () { this._queryProductArea() - this._queryDeviceList() + this._queryDeviceList('') this._queryPaperMaterial('') }, methods: { /** 选择器1 */ selectChange1(e) { this.index1 = e + if (e) { + this._queryDeviceList(e) + this.index2 = '' + } }, /** 选择器2 */ selectChange2(e) { @@ -104,8 +108,8 @@ this.options1 = [...res.data] }, /** 查询设备下拉框 */ - async _queryDeviceList () { - let res = await queryDeviceList() + async _queryDeviceList (area) { + let res = await queryDeviceList(area) this.options2 = [...res.rows] }, /**查询物料下拉框*/ @@ -162,6 +166,9 @@ this.index2 = '' this.index3 = '' this.qty = '' + this._queryDeviceList('') + this._queryPaperMaterial('') + } catch (e) { this.disabled = false } diff --git a/utils/getData2.js b/utils/getData2.js index 0e870c0..6123258 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -502,9 +502,11 @@ data: { * 空管出入库 */ // 1.1查询纸管库设备下拉框 -export const queryDeviceList = () => request({ +export const queryDeviceList = (area) => request({ url:'api/pda/paper/queryDeviceList', -data: {} +data: { + product_area: area +} }) // 1.2查询纸管物料下拉框 export const queryPaperMaterial = (code) => request({ @@ -520,7 +522,7 @@ data: jarr }) // 1.4入库设置/出库确认 export const emptyConfirm = (qty, mater, code, option) => request({ -url:'pda/paper/PaperDeviceOperate', +url:'api/pda/paper/PaperDeviceOperate', data: { qty: qty, material_code: mater,