Bladeren bron

fix: 打印按钮加loading

zh 2 jaren geleden
bovenliggende
commit
5f70828f90

+ 1 - 0
src/views/supply/apply/components/design/preview.vue

@@ -81,6 +81,7 @@ export default {
       }, 500)
     },
     print() {
+      this.waitShowPrinter = true
       try {
         if (typeof this.addPrint === 'function') {
           this.addPrint('addPrints').then(() => {

+ 2 - 0
src/views/supply/deliver/components/design/preview.vue

@@ -80,6 +80,8 @@ export default {
       }, 500)
     },
     print() {
+      this.waitShowPrinter = true
+
       try {
         if (typeof this.addPrint === 'function') {
           this.addPrint('addPrints').then(() => {

+ 1 - 0
src/views/supply/pickup/components/design/preview.vue

@@ -90,6 +90,7 @@ export default {
       }, 500)
     },
     async print() {
+      this.waitShowPrinter = true
       if (this.getNewDetailPrintDisString) {
         try {
           const { data } = await this.getNewDetailPrintDisString()