Browse Source

补料任务

intex
张立 2 weeks ago
parent
commit
667dae1250
  1. 10
      src/pages/repleinsh/job/repleinshDetailBatch.vue

10
src/pages/repleinsh/job/repleinshDetailBatch.vue

@ -389,7 +389,7 @@
return r.batch == batch && return r.batch == batch &&
r.fromLocationCode == result.fromLocationCode r.fromLocationCode == result.fromLocationCode
}) })
console.log(555,this.fromLocationCode) console.log(111,itemDetail)
// //
if (itemDetail == undefined) { if (itemDetail == undefined) {
var item = { var item = {
@ -433,6 +433,7 @@
toAreaCode:detail.subList[0].toAreaCode, toAreaCode:detail.subList[0].toAreaCode,
} }
detail.subList.push(item) detail.subList.push(item)
console.log(222,item)
} else { } else {
// itemDetail.handleQty = calc.add(itemDetail.handleQty, result.label.qty) // itemDetail.handleQty = calc.add(itemDetail.handleQty, result.label.qty)
itemDetail.packList = itemDetail.packList && itemDetail.packList.length > 0 ? itemDetail.packList : [] itemDetail.packList = itemDetail.packList && itemDetail.packList.length > 0 ? itemDetail.packList : []
@ -455,6 +456,7 @@
packQty: result.package.packQty, packQty: result.package.packQty,
packUnit: result.package.packUnit, packUnit: result.package.packUnit,
}) })
console.log(333,itemDetail.packList)
} }
} }
detail.handleQty = 0 detail.handleQty = 0
@ -465,6 +467,7 @@
detail.handleQty = calc.add(parseFloat(detail.handleQty), parseFloat(cur.handleQty)) detail.handleQty = calc.add(parseFloat(detail.handleQty), parseFloat(cur.handleQty))
}) })
}) })
console.log(444,detail.subList)
setTimeout(r => { setTimeout(r => {
that.resizeCollapse(); that.resizeCollapse();
that.$forceUpdate() that.$forceUpdate()
@ -646,6 +649,7 @@
return return
} }
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
return;
repleinshJobSubmit(params).then(res => { repleinshJobSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
@ -663,7 +667,7 @@
setParams() { setParams() {
var commitSubList = [] var commitSubList = []
var creator = this.$store.state.user.id var creator = this.$store.state.user.id
console.log(333, this.detailSource) console.log(555, this.detailSource)
this.detailSource.forEach(toLocationCode => { this.detailSource.forEach(toLocationCode => {
toLocationCode.subList.forEach(item => { toLocationCode.subList.forEach(item => {
item.packList.forEach(boardNumber => { item.packList.forEach(boardNumber => {
@ -763,7 +767,7 @@
this.jobContent.subList = commitSubList this.jobContent.subList = commitSubList
this.jobContent.creator = creator; this.jobContent.creator = creator;
console.log(88, this.jobContent) console.log(666, this.jobContent)
return this.jobContent; return this.jobContent;
}, },

Loading…
Cancel
Save