From c29ba4e73e0368be58ad66188d1d0d92a1c64785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 2 Feb 2024 12:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/views/board/firstFloor/index.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/hw-ui/src/views/board/firstFloor/index.vue b/hw-ui/src/views/board/firstFloor/index.vue index 9cb748f..a03925d 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, + } + }) + }) } } }