Browse Source

YT-1792ASN清空收货列表后不应该跳回首页,应该还留着ASN收货页面

intex_online20241228
张立 2 months ago
parent
commit
c8e3fadca4
  1. 17
      src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue

17
src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue

@ -363,21 +363,26 @@
let masterIds = Array.from(new Set(this.jobList.map(item => item.masterId))) let masterIds = Array.from(new Set(this.jobList.map(item => item.masterId)))
let index = 0 let index = 0
// //
await this.handleCancleTakePurchaseReceiptJob(index, masterIds) await this.handleCancleTakePurchaseReceiptJob(index, masterIds,'clearBtn')
} }
}); });
}, },
async handleCancleTakePurchaseReceiptJob(index, masterIds) { async handleCancleTakePurchaseReceiptJob(index,masterIds ,from) {
console.log(33,from)
if (index <= masterIds.length - 1) { if (index <= masterIds.length - 1) {
await cancleTakePurchaseReceiptJob(masterIds[index]).then(res => { await cancleTakePurchaseReceiptJob(masterIds[index]).then(res => {
this.jobList = [] this.jobList = []
index++ index++
this.handleCancleTakePurchaseReceiptJob(index, masterIds) this.handleCancleTakePurchaseReceiptJob(index, masterIds,from)
}).catch(error => {}) }).catch(error => {})
} else { } else {
uni.navigateBack({ console.log(from)
delta: 2 if(!from){
}); uni.navigateBack({
delta: 1
});
}
} }
}, },
commit(){ commit(){

Loading…
Cancel
Save