From a763ba151c2595bda29304b381affee67c16cc59 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 26 Sep 2024 08:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=80=80=E8=B4=A7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7-=E6=B8=85=E7=A9=BA=E9=80=BB=E8=BE=91=E5=85=B3?= =?UTF-8?q?=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerreturnRequestMain/index.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index 21670b425..17f14e1e6 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -59,6 +59,7 @@ @submitForm="submitForm" @onEnter="onEnter" @inputNumberChange="inputNumberChange" + @clearSearchInput="clearSearchInput" /> @@ -725,7 +726,23 @@ const handleDeleteTable = (item, index) => { const tableSelectionDelete = (selection) => { tableData.value = tableData.value.filter(item => !selection.includes(item)) } - +const clearSearchInput = (field)=>{ + console.log('field',field) + if('customerCode' == field){ + //客户代码 + formRef.value.formRef.setValues({ + deliverRecordNumber: '', + customerDockCode:'', + }) + tableData.value = [] + }else if('deliverRecordNumber' == field){ + //发货记录单号 + formRef.value.formRef.setValues({ + customerDockCode:'', + }) + tableData.value = [] + } +} //为true表示子表数据中存在数量为0的数据 const inputNumberChange = (field, val,row, index) => { if(field=='qty'){