|
@@ -216,6 +216,9 @@ export default {
|
|
|
// 添加次数
|
|
|
async addPrint(funcType = 'getDeliverDetail') {
|
|
|
let ids = []
|
|
|
+ console.log(this.clonelData);
|
|
|
+ console.log(this.addIds);
|
|
|
+
|
|
|
for (let i = this.clonelData.length; i > 0; i--) {
|
|
|
const tempData = this.clonelData[i - 1].invoicePickBeans
|
|
|
if (tempData.length) {
|
|
@@ -241,14 +244,16 @@ export default {
|
|
|
}
|
|
|
funcType = addPrints
|
|
|
}
|
|
|
-
|
|
|
+ console.log(requestParams,'ddsd');
|
|
|
const promise = await funcType(requestParams)
|
|
|
// 清空当前克隆数据,避免重复添加次数
|
|
|
this.clonelData = []
|
|
|
+ this.addIds =[]
|
|
|
return promise
|
|
|
} catch (error) {
|
|
|
// console.error('添加打印次数失败')
|
|
|
this.clonelData = []
|
|
|
+ this.addIds =[]
|
|
|
// this.$errorMsg('添加打印次数失败' + JSON.stringify(requestParams))
|
|
|
return Promise.reject(error.message)
|
|
|
}
|