695593266@qq.com hai 9 meses
pai
achega
5078e30d2f

+ 5 - 4
src/views/produce/components/jobBooking/components/semiProductJobBom.vue

@@ -958,7 +958,8 @@
       this.clientEnvironmentId =
       this.clientEnvironmentId =
         this.$store.state.user.info.clientEnvironmentId;
         this.$store.state.user.info.clientEnvironmentId;
 
 
-      this.getPrintData();
+      // this.getPrintData();
+      this.getisJuRen();
     },
     },
 
 
     // item
     // item
@@ -1025,15 +1026,15 @@
       async getPrintData() {
       async getPrintData() {
         await juRenPrint({ workOrderId: this.item.workOrderId }).then((res) => {
         await juRenPrint({ workOrderId: this.item.workOrderId }).then((res) => {
           this.printData = res.data;
           this.printData = res.data;
-          if (this.printStyle != 'notExist') {
-            this.getPrintData();
-          }
         });
         });
       },
       },
 
 
       async getisJuRen() {
       async getisJuRen() {
         await isJuRen().then((res) => {
         await isJuRen().then((res) => {
           this.printStyle = res.data.printStyle;
           this.printStyle = res.data.printStyle;
+          if (this.printStyle != 'notExist') {
+            this.getisJuRen();
+          }
         });
         });
       },
       },