| | |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="margin-top: 20px"> |
| | | <el-button @click="Release" type="primary">放行</el-button> |
| | | </el-row> |
| | | </el-card> |
| | | |
| | | </el-col> |
| | |
| | | <el-tab-pane name="first"> |
| | | <span slot="label"> <a class="el-icon-date"></a>首页</span> |
| | | <el-col :span="8"> |
| | | <el-table :data="formulaChildList"> |
| | | <el-table :cell-style="rowStyle" :data="formulaChildList"> |
| | | <el-table-column label="排序" width="60" align="center" prop="stepSort"> |
| | | </el-table-column> |
| | | <el-table-column label="操作内容" :show-overflow-tooltip='true' align="center" prop="operationSteps"> |
| | |
| | | <script> |
| | | import {listWorkReport} from "@/api/main/om/workReport/workReport"; |
| | | import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; |
| | | import {listFormulaChild} from "@/api/main/bs/formulaChild/formulaChild"; |
| | | import {listFormulaChild, releaseCheck, updateResults} from "@/api/main/bs/formulaChild/formulaChild"; |
| | | |
| | | export default { |
| | | name: "stationTerminal", |
| | |
| | | }, |
| | | content: '', |
| | | activeName: 'first', |
| | | url: "ws://192.168.10.184:8080/websocket/message/", |
| | | url: "ws://192.168.11.60:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | serialPortMethod(){ |
| | | Release(){ |
| | | releaseCheck().then(response => { |
| | | if(response.data === 0){ |
| | | //改变状态 |
| | | this.$message('放行成功!'); |
| | | |
| | | }else { |
| | | this.$message('步骤未完成不许放行!'); |
| | | } |
| | | }); |
| | | }, |
| | | serialPortMethod(){ |
| | | let formulaChildParams = { |
| | | materialCode: this.serialPortContent |
| | | } |
| | | updateResults(formulaChildParams).then(response => { |
| | | this.getListFormulaChild() |
| | | }); |
| | | }, |
| | | rowStyle({ row }) { |
| | | if (row.results === 'OK') { |
| | | return 'background-color: PaleGreen'; |
| | | } else if (row.results === 'NG') { |
| | | return 'background-color: LightSalmon'; |
| | | } |
| | | return ''; |
| | | }, |
| | | /** 查询配方配置子信息列表 */ |
| | | getListFormulaChild() { |
| | |
| | | this.headContent.sfcCode = this.content |
| | | this.queryParams.sfcCode = this.content |
| | | this.getList() |
| | | // this.getListFormulaChild() |
| | | this.getListFormulaChild() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | |
| | |
| | | async getList() { |
| | | await listWorkReport(this.queryParams).then(response => { |
| | | let rowsData = response.rows[0]; |
| | | console.log(rowsData) |
| | | this.workpieceInformation.workOrderCode = rowsData.workOrderCode; |
| | | this.workpieceInformation.productCode = rowsData.productCode; |
| | | this.workpieceInformation.productModel = rowsData.productModel; |
| | |
| | | setTimeout(() => { |
| | | this.resetting() |
| | | }, 2000); // 延时2秒触发 |
| | | }else if(event.data === 'TIGHTEN'){ |
| | | console.log('开始拧紧') |
| | | self.getListFormulaChild() |
| | | } |
| | | }; |
| | | }, |
| | |
| | | span{ |
| | | font-size: 15px; |
| | | } |
| | | .el-table .warning-row { |
| | | background: oldlace; |
| | | } |
| | | |
| | | .el-table .success-row { |
| | | background: #f0f9eb; |
| | | } |
| | | </style> |
| | | |