diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue index ccc5db4e6..38e2281b2 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue @@ -61,7 +61,8 @@ @tableSelectionDelete="tableSelectionDelete" @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" - /> + @clearSearchInput="clearSearchInput" + /> @@ -373,6 +374,13 @@ const submitForm = async (formType, submitData) => { formRef.value.formLoading = false } } +const clearSearchInput = (field)=>{ + console.log('field',field) + if('fromLocationCode' == field){ + //从库位代码 + tableData.value = [] + } +} // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) @@ -415,6 +423,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if(formField=='fromLocationCode'){ //从库位代码 setV['fromWarehouseCode'] = val[0]['warehouseCode'] + tableData.value = [] + }else if(formField=='toLocationCode'){ //到库位代码 setV['toWarehouseCode'] = val[0]['warehouseCode']