From 16714e1a824acd878b105e6ac433866cfc50ed89 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期三, 05 六月 2024 16:44:47 +0800
Subject: [PATCH] -

---
 jcdm-ui/src/views/main/kb/stationTerminal/index.vue |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
index a0ab8d7..acc3d9b 100644
--- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -675,6 +675,12 @@
           const orderParam = {
             productNum: self.headContent.sfcCode,
           }
+
+          if(self.headContent.sfcCode=== ''||self.headContent.sfcCode=== null){
+            self.$message('鎬绘垚鐮佷负绌猴紝璇锋鏌ワ紒')
+            return
+          }
+
           checkCarCode(orderParam).then(response => {
             console.log(response.data)
             if(response.data === 1){
@@ -734,12 +740,18 @@
             locationCode: self.headContent.processesCode,
             productBarcode: self.headContent.sfcCode,
           }
-          addTighteningParameters(param).then(response => {});
-          updateTighteningFormula(param).then(response => {
-            self.getListFormulaChild()
-          }).catch(error =>{
-            self.getListFormulaChild()
-          });
+          if(formulaChilds.paramCode === null||formulaChilds.paramCode ===''){
+            self.$message('鏈壘鍒板弬鏁扮爜锛岃妫�鏌ュ弬鏁扮爜鏄惁姝g‘');
+            return;
+          }
+          if(self.headContent.sfcCode!==null||self.headContent.sfcCode!==''){
+            addTighteningParameters(param).then(response => {});
+            updateTighteningFormula(param).then(response => {
+              self.getListFormulaChild()
+            }).catch(error =>{
+              self.getListFormulaChild()
+            });
+          }
         }
       };
     },

--
Gitblit v1.9.3