Browse Source

报废转隔离 修复验证包装号重复bug

master_hella_20240701
chenfang 8 months ago
parent
commit
c23243ef2d
  1. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

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

@ -83,6 +83,7 @@ import { InventorymoveRequestMain,InventorymoveRequestMainRules,InventorymoveReq
import * as InventorymoveRequestMainApi from '@/api/wms/inventorymoveRequestMain'
import * as InventorymoveRequestDetailApi from '@/api/wms/inventorymoveRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { log } from 'console'
//
defineOptions({ name: 'InventorymoveRequestMain' })
@ -596,9 +597,10 @@ const submitForm = async (formType, data) => {
data.subList = tableData.value //
let isExist = false
tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.packingNumber == item.packingNumber))
console.log(rs);
console.log(item,777777777777);
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber == item.fromPackingNumber) )
console.log(rs,5666);
if(rs.length > 1) isExist = true
})
if (isExist) {
@ -617,7 +619,7 @@ const submitForm = async (formType, data) => {
flag.value = true
return;
}
})
})
if(flag.value){
formRef.value.formLoading = false
return

Loading…
Cancel
Save