|
|
@ -61,6 +61,7 @@ |
|
|
|
@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'] |
|
|
|