Browse Source

YT-981发料任务,应按照一个物料一个任务进行拆分,现一个物料推荐多个批次,生成了多个任务,应生成一个任务中

intex
zhang_li 2 days ago
parent
commit
e08aab3ce1
  1. 4
      src/pages/issue/job/issueDetailBatch.vue

4
src/pages/issue/job/issueDetailBatch.vue

@ -368,6 +368,7 @@
detail.handleQty = 0 detail.handleQty = 0
detail.qty = 0 detail.qty = 0
detail.subList.forEach(item=>{ detail.subList.forEach(item=>{
item.handleQty =item.handleQty || 0
detail.handleQty = calc.add(detail.handleQty,item.handleQty) detail.handleQty = calc.add(detail.handleQty,item.handleQty)
detail.qty = calc.add(detail.qty,item.qty) detail.qty = calc.add(detail.qty,item.qty)
// item.packList.forEach(cur=>{ // item.packList.forEach(cur=>{
@ -396,6 +397,7 @@
detail.handleQty = 0 detail.handleQty = 0
detail.balance = result.balance, detail.balance = result.balance,
detail.subList.forEach(item=>{ detail.subList.forEach(item=>{
item.handleQty =item.handleQty || 0
detail.handleQty = calc.add(detail.handleQty,item.handleQty) detail.handleQty = calc.add(detail.handleQty,item.handleQty)
// item.packList.forEach(cur=>{ // cur.handleQty = calc.add(detail.handleQty,item.handleQty) // }) // item.packList.forEach(cur=>{ // cur.handleQty = calc.add(detail.handleQty,item.handleQty) // })
}) })
@ -445,6 +447,8 @@
// }) // })
detail.handleQty = 0 detail.handleQty = 0
detail.subList.forEach(item=>{ detail.subList.forEach(item=>{
console.log(item.handleQty)
item.handleQty =item.handleQty || 0
detail.handleQty = calc.add(detail.handleQty,item.handleQty) detail.handleQty = calc.add(detail.handleQty,item.handleQty)
// item.packList.forEach(cur=>{ // cur.handleQty = calc.add(detail.handleQty,item.handleQty) // }) // item.packList.forEach(cur=>{ // cur.handleQty = calc.add(detail.handleQty,item.handleQty) // })
}) })

Loading…
Cancel
Save