Browse Source

从库位和到库位不能相同

hella_online_20240815
wangyufei 4 months ago
parent
commit
cb818cc728
  1. 5
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue
  2. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

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

@ -346,6 +346,11 @@ const submitForm = async (formType, submitData) => {
return; return;
} }
}) })
let findLocation = tableData.value.find(item=>item.fromLocationCode==item.toLocationCode&&item.fromInventoryStatus==item.toInventoryStatus)
if(findLocation){
message.warning('从库位和到库位不能相同')
return
}
if(flag.value){ if(flag.value){
formRef.value.formLoading = false formRef.value.formLoading = false
return return

3
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -345,6 +345,7 @@ if(routeName.value == 'HoldtookRequestMain'){
item.hidden = false item.hidden = false
} }
}) })
} }
console.log('tableFormColumns',InventorymoveRequestDetail.allSchemas.tableFormColumns) console.log('tableFormColumns',InventorymoveRequestDetail.allSchemas.tableFormColumns)
// //
@ -714,7 +715,7 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId
} }
let findLocation = tableData.value.find(item=>item.fromLocationCode&&item.toLocationCode&&item.fromLocationCode==item.toLocationCode) let findLocation = tableData.value.find(item=>item.fromLocationCode==item.toLocationCode&&item.fromInventoryStatus==item.toInventoryStatus)
if(findLocation){ if(findLocation){
message.warning('从库位和到库位不能相同') message.warning('从库位和到库位不能相同')
return return

Loading…
Cancel
Save