Browse Source

包装号重复

linshi20240813
wangyufei 4 months ago
parent
commit
c92ff3a092
  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 // data.subList = tableData.value //
let isExist = false let isExist = false
tableData.value.forEach(item => { 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); console.log(rs,5666);
if(rs.length > 1) isExist = true if(rs.length > 1) isExist = true
}) })
@ -710,6 +710,7 @@ const submitForm = async (formType, submitData) => {
isExist = false isExist = false
return message.warning('包装号重复') return message.warning('包装号重复')
} }
flag.value = false
data.subList.forEach(item => { data.subList.forEach(item => {
console.log(556565,item); console.log(556565,item);
if(fromInventoryStatus.value){ if(fromInventoryStatus.value){

Loading…
Cancel
Save