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

Loading…
Cancel
Save