Browse Source

从库位和到库位不能相同

hella_online_20240815
wangyufei 1 month 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;
}
})
let findLocation = tableData.value.find(item=>item.fromLocationCode==item.toLocationCode&&item.fromInventoryStatus==item.toInventoryStatus)
if(findLocation){
message.warning('从库位和到库位不能相同')
return
}
if(flag.value){
formRef.value.formLoading = false
return

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

@ -345,6 +345,7 @@ if(routeName.value == 'HoldtookRequestMain'){
item.hidden = false
}
})
}
console.log('tableFormColumns',InventorymoveRequestDetail.allSchemas.tableFormColumns)
//
@ -714,7 +715,7 @@ const submitForm = async (formType, submitData) => {
if(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){
message.warning('从库位和到库位不能相同')
return

Loading…
Cancel
Save