|
|
@ -503,6 +503,7 @@ |
|
|
|
|
|
|
|
submitJob() { |
|
|
|
var params = this.setParams() |
|
|
|
console.log(params) |
|
|
|
|
|
|
|
// if (!params.subList || params.subList.length == 0) { |
|
|
|
// uni.hideLoading() |
|
|
@ -538,40 +539,44 @@ |
|
|
|
var createTime = getCurrDateTime(); |
|
|
|
var creator = this.$store.state.user.id |
|
|
|
this.detailSource.forEach(toLocationCode => { |
|
|
|
let obj = {...toLocationCode} |
|
|
|
delete obj.subList |
|
|
|
obj.recordList = [] |
|
|
|
let obj1 ={} |
|
|
|
let arr = toLocationCode.subList.filter(item=>item.scaned) |
|
|
|
arr.forEach(record=>{ |
|
|
|
obj1.supplierCode = record.supplierCode; |
|
|
|
obj1.batch = record.batch; |
|
|
|
obj1.copyContent =record.copyContent; |
|
|
|
obj1.fromInventoryStatus =record.fromInventoryStatus; |
|
|
|
obj1.fromLocationCode =record.fromLocationCode; |
|
|
|
obj1.handleQty =record.handleQty; |
|
|
|
obj1.inventoryStatus =record.fromInventoryStatus; |
|
|
|
obj1.packQty =record.packQty; |
|
|
|
obj1.packUnit =record.packUnit; |
|
|
|
obj1.packingNumber =record.packingNumber; |
|
|
|
obj1.qty =record.qty; |
|
|
|
obj1.scaned =record.scaned; |
|
|
|
obj1.toLocationCode =record.toLocationCode; |
|
|
|
obj1.fromPackingNumber =''; |
|
|
|
obj1.fromBatch = record.batch; |
|
|
|
obj1.toBatch = record.batch; |
|
|
|
obj1.toInventoryStatus = record.inventoryStatus; |
|
|
|
obj1.toPackingNumber =""; |
|
|
|
obj1.packingNumber = ""; |
|
|
|
|
|
|
|
let single_price = record.balance.singlePrice == null ? 0 : record.balance.singlePrice; |
|
|
|
|
|
|
|
obj1.singlePrice = single_price; |
|
|
|
obj1.amount = single_price *record.qty; |
|
|
|
obj.recordList.push(obj1) |
|
|
|
let arr = [] |
|
|
|
toLocationCode.subList.forEach(record=>{ |
|
|
|
if(record.scaned){ |
|
|
|
let obj = {...toLocationCode,...record} |
|
|
|
obj.recordList = [] |
|
|
|
delete obj.balance |
|
|
|
delete obj.subList |
|
|
|
let obj1 ={} |
|
|
|
obj1.supplierCode = record.supplierCode; |
|
|
|
obj1.batch = record.batch; |
|
|
|
obj1.copyContent =record.copyContent; |
|
|
|
obj1.fromInventoryStatus =record.fromInventoryStatus; |
|
|
|
obj1.fromLocationCode =record.fromLocationCode; |
|
|
|
obj1.handleQty =record.handleQty; |
|
|
|
obj1.inventoryStatus =record.fromInventoryStatus; |
|
|
|
obj1.packQty =record.packQty; |
|
|
|
obj1.packUnit =record.packUnit; |
|
|
|
obj1.packingNumber =record.packingNumber; |
|
|
|
obj1.qty =record.qty; |
|
|
|
obj1.scaned =record.scaned; |
|
|
|
obj1.toLocationCode =record.toLocationCode; |
|
|
|
obj1.fromPackingNumber =''; |
|
|
|
obj1.fromBatch = record.batch; |
|
|
|
obj1.toBatch = record.batch; |
|
|
|
obj1.toInventoryStatus = record.inventoryStatus; |
|
|
|
obj1.toPackingNumber =""; |
|
|
|
obj1.packingNumber = ""; |
|
|
|
|
|
|
|
let single_price = record.balance.singlePrice == null ? 0 : record.balance.singlePrice; |
|
|
|
|
|
|
|
obj1.singlePrice = single_price; |
|
|
|
obj1.amount = single_price *record.qty; |
|
|
|
obj.recordList.push(obj1) |
|
|
|
subList.push(obj) |
|
|
|
} |
|
|
|
}) |
|
|
|
subList.push(obj) |
|
|
|
}) |
|
|
|
|
|
|
|
this.jobContent.subList = subList |
|
|
|
this.jobContent.createTime = createTime; |
|
|
|
this.jobContent.creator = creator; |
|
|
@ -686,7 +691,6 @@ |
|
|
|
str3 = str3+",是否提交" |
|
|
|
this.$refs.comMessage.showQuestionMessage1(str3, 'red', res => { |
|
|
|
if (res) { |
|
|
|
return |
|
|
|
//防止重复点击 |
|
|
|
this.$throttle(this.submit, 2000, this)() |
|
|
|
} else { |
|
|
@ -694,7 +698,6 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
}else { |
|
|
|
return |
|
|
|
//防止重复点击 |
|
|
|
this.$throttle(this.submit, 2000, this)() |
|
|
|
} |
|
|
|