Browse Source

校验

hella_online_20240829
wangyufei 4 months ago
parent
commit
ffb9cc327f
  1. 2
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

2
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -133,6 +133,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
row['toOwnerCode'] = val[0]['code'] row['toOwnerCode'] = val[0]['code']
}else if(formField == 'fromPackingNumber'){ }else if(formField == 'fromPackingNumber'){
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['locationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus']))
if(val.length==0) return
val.forEach(item=>{ val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]

Loading…
Cancel
Save