Browse Source

客户发料提交问题

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

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

@ -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;

Loading…
Cancel
Save