Browse Source

冯微:从库位和到库位不能相同

hella_online_20240829
wangyufei 3 months ago
parent
commit
312a0c6b61
  1. 5
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

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

@ -698,6 +698,11 @@ 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)
if(findLocation){
message.warning('从库位和到库位不能相同')
return
}
data.subList = tableData.value // data.subList = tableData.value //
let isExist = false let isExist = false
tableData.value.forEach(item => { tableData.value.forEach(item => {

Loading…
Cancel
Save