From bef00e3813b5dc4eed7b63dbb5ff0a0251e14217 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 20 Dec 2024 14:04:09 +0800 Subject: [PATCH] =?UTF-8?q?FWHL-154WMS=20=E7=BB=93=E7=AE=97=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E7=94=B3=E8=AF=B7=20=E6=B8=85=E7=A9=BA=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BB=A3=E7=A0=81=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E4=B8=80=E8=B5=B7=E6=B8=85=E7=A9=BA=E6=98=8E?= =?UTF-8?q?=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../saleShipmentMainRequest/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue index 73f4e3237..341d34cc2 100644 --- a/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue @@ -62,6 +62,8 @@ @submitForm="submitForm" :isShowButton = isShowButton @inputNumberChange="inputNumberChange" + @clearSearchInput="clearSearchInput" + /> }else { const setV = {} setV[formField] = val[0][searchField] - if(formField == 'CustomerCode') { - setV['CustomerCode'] = val[0]['CustomerCode'] + if(formField == 'customerCode') { + tableData.value = [] } else { setV[formField] = val[0][searchField] } @@ -348,6 +350,11 @@ const openForm = (type: string, row?: any) => { basicFormRef.value.open(type, row) } +const clearSearchInput = (formField) => { + if(formField == 'customerCode'){ + tableData.value = [] + } +} const inputNumberChange = (field, val,row, index) => { if(field=='qty'){ if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){