Browse Source

校验

hella_online_20240829
wangyufei 4 months ago
parent
commit
8f66dae274
  1. 1
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

1
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -157,6 +157,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}) })
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField == 'itemCode') { if(formField == 'itemCode') {
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']))
val.forEach(item=>{ val.forEach(item=>{
if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))

Loading…
Cancel
Save