空管出入库

This commit is contained in:
2023-04-27 17:23:45 +08:00
parent 5b4cad2a60
commit 9783c1debe
2 changed files with 9 additions and 14 deletions

View File

@@ -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)
},