Browse Source

冯微提:物料隔离,包装号是空,多个物料保存会报包装号重复,应是存在有包装号时,多个相同的报不能包装相同

hella_online_20240829
wangyufei 3 months ago
parent
commit
03c6986d4e
  1. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

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

@ -701,7 +701,7 @@ const submitForm = async (formType, submitData) => {
data.subList = tableData.value //
let isExist = false
tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber == item.fromPackingNumber) )
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) )
console.log(rs,5666);
if(rs.length > 1) isExist = true
})
@ -710,6 +710,7 @@ const submitForm = async (formType, submitData) => {
isExist = false
return message.warning('包装号重复')
}
flag.value = false
data.subList.forEach(item => {
console.log(556565,item);
if(fromInventoryStatus.value){

Loading…
Cancel
Save