| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-row :gutter="5"> |
| | | <el-col :span="7"> |
| | | <el-col :span="5"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">工位编号 : {{headContent.processesCode}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-col :span="5"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">工位名称 : {{headContent.processesName}}</span> |
| | | <!-- <el-button type="primary" style="float: right" icon="el-icon-search" size="mini" @click="serialLink">串口连接</el-button>--> |
| | | <!-- <el-button @click="clearClick" style="float: right" type="danger" size="mini">清除</el-button>--> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-col :span="6"> |
| | | <el-card style="height: 57px" shadow="never"> |
| | | <span class="head-font">产品型号 : </span> |
| | | <el-select style="width: 70%;margin-top: -10px" v-model="selectProductCode" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">模组码 : {{headContent.module}}</span> |
| | | <!-- <el-input v-model="content" style="float: right;width: 150px;" placeholder="请输入内容"></el-input>--> |
| | |
| | | import {listWorkReport} from "@/api/main/om/workReport/workReport"; |
| | | import {listStationConf,getIpv4} from "@/api/main/sc/stationConf"; |
| | | import { |
| | | clearWorkpieceRelease, |
| | | clearWorkpieceRelease, inPlaceInspection, |
| | | jrmUpdateResults, jrmWorkpieceRelease, |
| | | listFormulaChild, |
| | | noPageListFormulaChild, |
| | |
| | | name: "stationTerminal", |
| | | data() { |
| | | return { |
| | | selectProductCode: 'PE01B', |
| | | options: [{ |
| | | value: 'PE01B', |
| | | label: 'PE01B' |
| | | }, { |
| | | value: 'PE01F', |
| | | label: 'PE01F' |
| | | }, { |
| | | value: 'PE01H', |
| | | label: 'PE01H' |
| | | }], |
| | | carCode: '', |
| | | showInput: false, |
| | | onLineBinDing: false, |
| | |
| | | }, |
| | | content: '', |
| | | activeName: 'first', |
| | | url: "ws://10.103.210.248:8080/websocket/message/", |
| | | // url: "ws://192.168.2.76:8080/websocket/message/", |
| | | // url: "ws://192.168.2.248:8080/websocket/message/", |
| | | // url: "ws://10.103.210.248:8080/websocket/message/", |
| | | url: "ws://192.168.2.76:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | let formulaChildParams = { |
| | | scanBarcode: value, |
| | | sfcBarcode: this.headContent.module, |
| | | // workOrderNo: this.workpieceInformation.workOrderNo, |
| | | productCode: 'PE01B', |
| | | // workOrderNo: '-', |
| | | productCode: this.selectProductCode, |
| | | locationCode: this.headContent.processesCode, |
| | | collectionTime: new Date() |
| | | } |
| | |
| | | getListFormulaChild() { |
| | | console.log('getListFormulaChild') |
| | | // this.formulaChildList = [] |
| | | this.formulaChildParams.productCode = 'PE01B' |
| | | this.formulaChildParams.productCode = this.selectProductCode |
| | | this.formulaChildParams.processesCode = this.headContent.processesCode |
| | | console.log(this.formulaChildParams) |
| | | noPageListFormulaChild(this.formulaChildParams).then(response => { |
| | |
| | | }, |
| | | clearClick(){ |
| | | const param = { |
| | | productCode: "PE01B", |
| | | productCode: this.selectProductCode, |
| | | locationCode: this.headContent.processesCode, |
| | | } |
| | | // jrmSaveCampaignTimeParameters(param).then(response => {}); |
| | |
| | | } |
| | | this.headContent.processesName = rows.processesName |
| | | this.headContent.processesCode = rows.processesCode |
| | | if(this.headContent.processesCode === 'OP240'){ |
| | | this.onLineBinDing = true |
| | | } |
| | | if(this.headContent.processesCode === 'OP260'){ |
| | | this.showInput = true |
| | | } |
| | | |
| | | inPlaceInspection({processesCode: this.headContent.processesCode}).then(response => { |
| | | console.log(response) |
| | | this.cakeLamp.InPlace = response.data |
| | | }); |
| | | |
| | | console.log('设置工位编码' + this.headContent.processesCode) |
| | | }); |
| | |
| | | } |
| | | |
| | | const param = { |
| | | productCode: "PE01B", |
| | | productCode: self.selectProductCode, |
| | | locationCode: self.headContent.processesCode, |
| | | productBarcode: self.headContent.module, |
| | | inboundTime: self.workpieceInformation.inboundTime |
| | | inboundTime: self.workpieceInformation.inboundTime, |
| | | workOrderNo: '-' |
| | | } |
| | | jrmSaveCampaignTimeParameters(param).then(response => {}); |
| | | self.cakeLamp.release = 1; |
| | |
| | | console.log("串口收到数据-------------------"+scanValue) |
| | | |
| | | if(this.headContent.module !== ''){ |
| | | console.log('this.headContent.module !== \'\' true') |
| | | this.$message('扫码模组物料码'+scanValue); |
| | | this.serialPortMethod(scanValue) |
| | | } else { |
| | | if(scanValue.includes("9900168136")){ |
| | | console.log('this.headContent.module !== \'\' false') |
| | | if(scanValue.includes("0RSMB")){ |
| | | this.headContent.module = scanValue; |
| | | this.$message('扫码识别产品序列号'+scanValue); |
| | | this.getList() |
| | | // this.cakeLamp.InPlace = 1 |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | }else { |
| | | this.$message.error('扫码识别错误的产品序列号'+scanValue+'请重新扫码'); |
| | | } |
| | | } |
| | | } |