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 @@ - -