|
@ -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,14 @@ |
|
|
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 = {...toLocationCode,...record} |
|
|
obj.recordList = [] |
|
|
obj.recordList = [] |
|
|
|
|
|
delete obj.balance |
|
|
|
|
|
delete obj.subList |
|
|
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 +572,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; |
|
@ -686,7 +691,6 @@ |
|
|
str3 = str3+",是否提交" |
|
|
str3 = str3+",是否提交" |
|
|
this.$refs.comMessage.showQuestionMessage1(str3, 'red', res => { |
|
|
this.$refs.comMessage.showQuestionMessage1(str3, 'red', res => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
return |
|
|
|
|
|
//防止重复点击 |
|
|
//防止重复点击 |
|
|
this.$throttle(this.submit, 2000, this)() |
|
|
this.$throttle(this.submit, 2000, this)() |
|
|
} else { |
|
|
} else { |
|
@ -694,7 +698,6 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}else { |
|
|
}else { |
|
|
return |
|
|
|
|
|
//防止重复点击 |
|
|
//防止重复点击 |
|
|
this.$throttle(this.submit, 2000, this)() |
|
|
this.$throttle(this.submit, 2000, this)() |
|
|
} |
|
|
} |
|
|