From 8cfe20288690f2ba46c804f41f39e8aa48c2dea0 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期六, 15 六月 2024 09:08:30 +0800 Subject: [PATCH] 上传逻辑大版本更新 --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 39 insertions(+), 10 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..ab5af44 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -109,9 +109,12 @@ <span slot="label"> <a class="el-icon-date"></a>棣栭〉</span> <el-col :span="24"> <el-table height="500" :cell-style="rowStyle" :data="formulaChildList"> - <el-table-column label="鎺掑簭" width="60" align="center" type="index"> +<!-- <el-table-column label="鎺掑簭" width="60" align="center" type="index">--> +<!-- </el-table-column>--> + <el-table-column label="鎷х揣姝ュ彿" align="center" prop="stepSort"> </el-table-column> - <el-table-column label="鎿嶄綔鍐呭" :show-overflow-tooltip='true' align="center" prop="operationSteps"> +<!-- <el-table-column label="鎿嶄綔鍐呭" :show-overflow-tooltip='true' align="center" prop="operationSteps">--> + <el-table-column label="鎿嶄綔鍐呭" align="center" prop="operationSteps"> </el-table-column> <el-table-column label="浜у搧缂栧彿" align="center" prop="productCode"> </el-table-column> @@ -121,6 +124,7 @@ </el-table-column> <el-table-column label="缁撴灉" align="center" prop="results"> </el-table-column> + </el-table> </el-col> <!-- <el-col :span="14">--> @@ -297,6 +301,7 @@ import {listWorkReport} from "@/api/main/om/workReport/workReport"; import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; import { + clearWorkpieceRelease, fistSetpNumber, listFormulaChild, noPageListFormulaChild, @@ -561,8 +566,16 @@ console.log(tab, event); }, clearClick(){ - this.$message('杩欐槸涓�鏉℃竻闄ゆ秷鎭彁绀�'); - this.headContent.sfcCode = null + const param = { + workOrderNo: this.workpieceInformation.workOrderNo, + productCode: this.workpieceInformation.productCode, + locationCode: this.headContent.processesCode, + productBarcode: this.headContent.sfcCode, + } + this.endClear() + clearWorkpieceRelease(param).then(response => {}); + this.headContent.sfcCode = '' + this.$message('娓呮鎴愬姛锛�'); }, scanCompleted(){ this.$message('鎵爜瀹屾垚'+this.content); @@ -589,6 +602,10 @@ }); this.getListFormulaChild() this.addOverStationCollection() + }, + + addBaseData(){ + addBasicParameters(this.passingStationForm).then(response => {}); }, /** 鍏ョ珯澧炲姞杩囩珯閲囬泦璁板綍 **/ @@ -675,6 +692,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 +757,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