|
@@ -214,7 +214,7 @@ export default {
|
|
|
return date.slice(0, 10)
|
|
|
},
|
|
|
// 添加次数
|
|
|
- addPrint(funcType = 'getDeliverDetail') {
|
|
|
+ async addPrint(funcType = 'getDeliverDetail') {
|
|
|
let ids = []
|
|
|
for (let i = this.clonelData.length; i > 0; i--) {
|
|
|
const tempData = this.clonelData[i - 1].invoicePickBeans
|
|
@@ -242,11 +242,13 @@ export default {
|
|
|
funcType = addPrints
|
|
|
}
|
|
|
|
|
|
- funcType(requestParams)
|
|
|
+ const promise = await funcType(requestParams)
|
|
|
// 清空当前克隆数据,避免重复添加次数
|
|
|
this.clonelData = []
|
|
|
- return Promise.resolve()
|
|
|
+ return promise
|
|
|
} catch (error) {
|
|
|
+ console.log('失败');
|
|
|
+
|
|
|
// console.error('添加打印次数失败')
|
|
|
this.clonelData = []
|
|
|
this.$errorMsg('添加打印次数失败' + JSON.stringify(requestParams))
|