Browse Source

FWHL-106WMS 库存转移记录 新增时 清空从库位时,明细也应该清空

hella_online_20241212_pandian
王宇飞 2 months ago
parent
commit
5d8873b6c1
  1. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

10
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -61,6 +61,7 @@
@tableSelectionDelete="tableSelectionDelete" @tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@clearSearchInput="clearSearchInput"
/> />
@ -373,6 +374,13 @@ const submitForm = async (formType, submitData) => {
formRef.value.formLoading = false formRef.value.formLoading = false
} }
} }
const clearSearchInput = (field)=>{
console.log('field',field)
if('fromLocationCode' == field){
//
tableData.value = []
}
}
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
console.log('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'){ if(formField=='fromLocationCode'){
// //
setV['fromWarehouseCode'] = val[0]['warehouseCode'] setV['fromWarehouseCode'] = val[0]['warehouseCode']
tableData.value = []
}else if(formField=='toLocationCode'){ }else if(formField=='toLocationCode'){
// //
setV['toWarehouseCode'] = val[0]['warehouseCode'] setV['toWarehouseCode'] = val[0]['warehouseCode']

Loading…
Cancel
Save