Browse Source

客户发料提交问题

intex
zhang_li 3 days ago
parent
commit
9b71a63dca
  1. 13
      src/pages/issue/job/issueDetailBatch.vue

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

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

Loading…
Cancel
Save