Browse Source

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

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

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

@ -363,22 +363,27 @@
let masterIds = Array.from(new Set(this.jobList.map(item => item.masterId)))
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) {
await cancleTakePurchaseReceiptJob(masterIds[index]).then(res => {
this.jobList = []
index++
this.handleCancleTakePurchaseReceiptJob(index, masterIds)
this.handleCancleTakePurchaseReceiptJob(index, masterIds,from)
}).catch(error => {})
} else {
console.log(from)
if(!from){
uni.navigateBack({
delta: 2
delta: 1
});
}
}
},
commit(){
let str =''

Loading…
Cancel
Save