diff --git a/hw-ui/src/views/board/firstFloor/index.vue b/hw-ui/src/views/board/firstFloor/index.vue index 9cb748f1..a03925d6 100644 --- a/hw-ui/src/views/board/firstFloor/index.vue +++ b/hw-ui/src/views/board/firstFloor/index.vue @@ -516,7 +516,7 @@ export default { this.form.warehouseId = e.data[0]?.warehouseId }) getMaterialBoms({ - ancestors:1 + ancestors:1, }).then(e=>{ this.form.wmsRawOutstockDetailList = e.data.map(r=>{ return { @@ -543,8 +543,20 @@ export default { } }) }, - searchMaterial(e){ - console.log(e) + searchMaterial(val){ + console.log(val) + getMaterialBoms({ + ancestors:1, + materialName:val + }).then(e=>{ + this.form.wmsRawOutstockDetailList = e.data.map(r=>{ + return { + materialId:r.materialId, + materialName:r.materialName, + planAmount:0, + } + }) + }) } } }