From 019f1c8bac7e8986d299aff70c123dedc1747d72 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期四, 06 六月 2024 11:15:10 +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