Преглед изворни кода

fix(warehouseManagement): 修复打印模板弹窗关闭时未重置查询条件的问题

liujt пре 4 месеци
родитељ
комит
853e16c4d8

+ 11 - 2
src/views/warehouseManagement/inventoryAllocation/components/print-template-bs-car.vue

@@ -5,6 +5,9 @@
     v-if="QRvisible"
     width="90%"
     destroy-on-close
+    :append-to-body="true"
+    :close-on-click-modal="false"
+    :before-close="close"
   >
     <div
       id="printSection"
@@ -292,11 +295,17 @@
             // specification: this.infoData.specification
           };
         });
-        console.log('infoData', this.infoData)
-        console.log('detailList', this.detailList)
+        // console.log('infoData', this.infoData)
+        // console.log('detailList', this.detailList)
     },
       close() {
         this.QRvisible = false;
+        this.query = {
+          tp: '',
+          gz: '',
+          jk: '',
+          tk: '',
+        }
       },
 
       print1() {