|
@ -503,6 +503,7 @@ |
|
|
|
|
|
|
|
|
submitJob() { |
|
|
submitJob() { |
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
|
|
|
console.log(params) |
|
|
|
|
|
|
|
|
// if (!params.subList || params.subList.length == 0) { |
|
|
// if (!params.subList || params.subList.length == 0) { |
|
|
// uni.hideLoading() |
|
|
// uni.hideLoading() |
|
@ -538,12 +539,12 @@ |
|
|
var createTime = getCurrDateTime(); |
|
|
var createTime = getCurrDateTime(); |
|
|
var creator = this.$store.state.user.id |
|
|
var creator = this.$store.state.user.id |
|
|
this.detailSource.forEach(toLocationCode => { |
|
|
this.detailSource.forEach(toLocationCode => { |
|
|
let obj = {...toLocationCode} |
|
|
let arr = [] |
|
|
delete obj.subList |
|
|
toLocationCode.subList.forEach(record=>{ |
|
|
|
|
|
if(record.scaned){ |
|
|
|
|
|
let obj = {...record} |
|
|
obj.recordList = [] |
|
|
obj.recordList = [] |
|
|
let obj1 ={} |
|
|
let obj1 ={} |
|
|
let arr = toLocationCode.subList.filter(item=>item.scaned) |
|
|
|
|
|
arr.forEach(record=>{ |
|
|
|
|
|
obj1.supplierCode = record.supplierCode; |
|
|
obj1.supplierCode = record.supplierCode; |
|
|
obj1.batch = record.batch; |
|
|
obj1.batch = record.batch; |
|
|
obj1.copyContent =record.copyContent; |
|
|
obj1.copyContent =record.copyContent; |
|
@ -569,9 +570,11 @@ |
|
|
obj1.singlePrice = single_price; |
|
|
obj1.singlePrice = single_price; |
|
|
obj1.amount = single_price *record.qty; |
|
|
obj1.amount = single_price *record.qty; |
|
|
obj.recordList.push(obj1) |
|
|
obj.recordList.push(obj1) |
|
|
}) |
|
|
|
|
|
subList.push(obj) |
|
|
subList.push(obj) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.jobContent.subList = subList |
|
|
this.jobContent.subList = subList |
|
|
this.jobContent.createTime = createTime; |
|
|
this.jobContent.createTime = createTime; |
|
|
this.jobContent.creator = creator; |
|
|
this.jobContent.creator = creator; |
|
|