Browse Source

重复校验

hella_online_20240829
wangyufei 4 months ago
parent
commit
885118d8fc
  1. 2
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

2
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -129,6 +129,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// }) // })
// //
if(formField == 'packingNumber'){ if(formField == 'packingNumber'){
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['packingNumber']==item['packingNumber']))
if(val.length==0) return
let param = {'itemCodes':val.map(item=>item.itemCode).join(',') as string} let param = {'itemCodes':val.map(item=>item.itemCode).join(',') as string}
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => {
val.forEach(item=>{ val.forEach(item=>{

Loading…
Cancel
Save