From 9783c1debe178640ab5773ccdab19e2991fe17fe Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 27 Apr 2023 17:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E7=AE=A1=E5=87=BA=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 | 9 +++++++-- pages/ProductManage/EmptyPipeOutStore.vue | 14 ++------------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/pages/ProductManage/EmptyPipeInStore.vue b/pages/ProductManage/EmptyPipeInStore.vue index b4f3b9f..581b783 100644 --- a/pages/ProductManage/EmptyPipeInStore.vue +++ b/pages/ProductManage/EmptyPipeInStore.vue @@ -60,6 +60,7 @@ created () { this._queryProductArea() this._queryDeviceList() + this._queryPaperMaterial('') }, methods: { /** 选择器1 */ @@ -86,8 +87,13 @@ }, /**查询物料下拉框*/ async _queryPaperMaterial (code) { - let res = await queryDeviceList(code) + let res = await queryPaperMaterial(code) this.options3 = [...res.rows] + res.rows.map(el => { + if (el.value === code) { + this.index3 = res.material_code + } + }) }, /** 查询物料、数量 */ async _taskQuerydevice () { @@ -99,7 +105,6 @@ return } let res = await taskQuerydevice([{device_code: this.index2}]) - // this.index3 = res.material_code this.qty = res.qty this._queryPaperMaterial(res.material_code) }, diff --git a/pages/ProductManage/EmptyPipeOutStore.vue b/pages/ProductManage/EmptyPipeOutStore.vue index e512a67..11ff8cf 100644 --- a/pages/ProductManage/EmptyPipeOutStore.vue +++ b/pages/ProductManage/EmptyPipeOutStore.vue @@ -47,7 +47,7 @@ - -