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']){