From 7e959db1c93ea71eeaca2aa2cab293699e15b99d Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 19 Sep 2024 16:54:48 +0800 Subject: [PATCH] =?UTF-8?q?HL-57862.=E9=80=89=E6=8B=A9=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=BA=BF=E4=BB=A3=E7=A0=81=E3=80=81=E6=B7=BB=E5=8A=A0=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E5=90=8E=EF=BC=8C=E5=8E=BB=E6=8E=89=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=BA=BF=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=98=8E=E7=BB=86=E5=BA=94?= =?UTF-8?q?=E4=B9=9F=E6=B8=85=E7=A9=BA=EF=BC=8C=E7=8E=B0=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionscrapRequestMain/index.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue index 36fd39b4f..40ca3e79f 100644 --- a/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue +++ b/src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue @@ -60,6 +60,7 @@ @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" @inputNumberChange="inputNumberChange" + @clearSearchInput="clearSearchInput" /> @@ -202,6 +203,19 @@ const inputNumberChange = (field, index, row, val) => { row.amount = Number(Number(row.qty * row.singlePrice).toFixed(2)) } } +const clearSearchInput = (field)=>{ + console.log('field',field) + if('workshopCode'==field){ + //车间 + formRef.value.formRef.setValues({ + productionLineCode: '' + }) + tableData.value = [] + }else if('productionLineCode'==field){ + //生产线 + tableData.value = [] + } +} // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { nextTick(async () => {