|
@@ -57,7 +57,8 @@ export default {
|
|
|
hiprintTemplate: {},
|
|
|
// 数据
|
|
|
printData: {},
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
+ flag:false
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|
|
@@ -89,7 +90,8 @@ export default {
|
|
|
async print() {
|
|
|
if (this.getNewDetailPrintDisString) {
|
|
|
const { data } = await this.getNewDetailPrintDisString()
|
|
|
- if (!data) {
|
|
|
+
|
|
|
+ if (!data || this.flag) {
|
|
|
try {
|
|
|
if (typeof this.addPrint === 'function') {
|
|
|
this.addPrint('getDtailPrintDis')
|
|
@@ -101,7 +103,9 @@ export default {
|
|
|
callback: async() => {
|
|
|
this.hiprintTemplate = {}
|
|
|
setTimeout(() => {
|
|
|
+ this.flag = false
|
|
|
this.hideModal()
|
|
|
+ this.$emit('refreshTableSelection')
|
|
|
this.$emit('refreshList')
|
|
|
}, 1000)
|
|
|
}
|
|
@@ -120,7 +124,7 @@ export default {
|
|
|
// '调用打印次数接口失败'
|
|
|
}
|
|
|
} else {
|
|
|
- this.$confirm('已打印', '提示', {
|
|
|
+ this.$confirm(data, '提示', {
|
|
|
showClose: false,
|
|
|
confirmButtonText: '确定',
|
|
|
showCancelButton: false,
|
|
@@ -128,6 +132,7 @@ export default {
|
|
|
center: true
|
|
|
}).then(() => {
|
|
|
this.getOvalDateil()
|
|
|
+ this.flag = true
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -141,6 +146,7 @@ export default {
|
|
|
center: true
|
|
|
}).then(() => {
|
|
|
this.hideModal()
|
|
|
+ this.$emit('refreshTableSelection')
|
|
|
this.$emit('refreshList')
|
|
|
})
|
|
|
}
|