From 4a53ae7900954ef581b45a9c742f01ded1a66db5 Mon Sep 17 00:00:00 2001
From: hdy <1105738590@qq.com>
Date: 星期五, 07 六月 2024 09:38:02 +0800
Subject: [PATCH] 打印

---
 jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
index 3cc833e..c637493 100644
--- a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
@@ -189,6 +189,7 @@
 <script>
 import {getIpv4, listStationConf} from "@/api/main/sc/stationConf";
 import {
+  fistSetpNumber,
   noPageListFormulaChild,
   workpieceRelease,
   yzUpdateResults,
@@ -420,6 +421,10 @@
     },
     /** 鏌ヨ宸ュ崟鍒楄〃 */
     async getList() {
+      const param = {
+        processesCode: this.headContent.processesCode,
+      }
+      fistSetpNumber(param).then(response => {});
       this.getListFormulaChild()
       this.addOverStationCollection()
     },
@@ -528,12 +533,15 @@
             locationCode: self.headContent.processesCode,
             productBarcode: self.headContent.sfcCode,
           }
+          if(formulaChilds.paramCode === null||formulaChilds.paramCode ===''){
+            self.$message('鏈壘鍒板弬鏁扮爜锛岃妫�鏌ュ弬鏁扮爜鏄惁姝g‘');
+            return;
+          }
           addTighteningParameters(param).then(response => {});
           yzUpdateTighteningFormula(param).then(response => {
-            console.log(response.msg)
-            if(response.msg === "1"){
+            console.log(response)
+            if(response.msg === "1" || response.msg === "3"){
                 self.getListFormulaChild()
-
             }else {
               const param = {
                 workOrderNo: self.workpieceInformation.workOrderNo,
@@ -547,6 +555,8 @@
               self.headContent.sfcCode = '';
             }
           });
+          // self.getListFormulaChild()
+
         }
       };
     },
@@ -561,7 +571,7 @@
         console.log("涓插彛鏀跺埌鏁版嵁-------------------"+scanValue)
 
         if(this.headContent.sfcCode !== ''){
-          this.$message('鎵弿鐗╂枡缂栫爜'+scanValue);
+          this.$message('棰勮宸ヤ綅鎵弿鐗╂枡缂栫爜'+scanValue);
           console.log(scanValue)
           this.serialPortMethod(scanValue)
         } else {

--
Gitblit v1.9.3