| | |
| | | <span style="display: none">{{cakeLamp.release}}</span> |
| | | <span> 允许放行</span> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row v-show="showInput" style="margin-top: 20px"> |
| | | <el-col></el-col> |
| | | <span style="width: 130px;" class="head-font">预装总成号 : {{headContent.yzSfcCode}}</span> |
| | | <el-row v-show="orderFlag" style="margin-top: 20px"> |
| | | <el-button @click="getWorkOrders" type="warning" size="mini">接收工单</el-button> |
| | | </el-row> |
| | | <!-- <el-row v-show="showInput" style="margin-top: 20px">--> |
| | | <!-- <el-button @click="bindYzSfc" type="primary">绑定</el-button>--> |
| | |
| | | bindYzSfcFlag, |
| | | checkCarCode, checkYzSfcCode, |
| | | findBytrolleyYardGetOne, |
| | | listProductionOrde, |
| | | listProductionOrde, mozuReceivingWorkOrders, |
| | | receivingWorkOrders, |
| | | trolleyYardBinDing |
| | | } from "@/api/main/om/productionOrde/productionOrde"; |
| | |
| | | saveCampaignTimeParameters, |
| | | replaceAssemblyCode, checkRecordDataDone, |
| | | } from "@/api/main/da/paramCollection/paramCollection"; |
| | | import {addFormula} from "@/api/main/bs/formula/formula"; |
| | | |
| | | export default { |
| | | name: "stationTerminal", |
| | |
| | | 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.10.100:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | originalArray: [], |
| | | yzSfcFlag: 1, |
| | | endYz: false, |
| | | orderFlag: true |
| | | } |
| | | }, |
| | | beforeDestroy() { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | getWorkOrders(){ |
| | | if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){ |
| | | //接收工单 |
| | | const param = { |
| | | lineCode: this.headContent.processesCode |
| | | } |
| | | mozuReceivingWorkOrders(param).then(response => { |
| | | this.headContent.sfcCode = response.msg; |
| | | this.queryParams.productNum = response.msg; |
| | | this.getList() |
| | | this.cakeLamp.scanFinish = 1 |
| | | this.cakeLamp.startWork = 1 |
| | | }); |
| | | }else { |
| | | this.$message.error("已经有工单了,不能接收!"); |
| | | } |
| | | }, |
| | | bindcardCode(scanValue){ |
| | | // this.$message('绑定成功!'); |
| | | let param = { |
| | |
| | | }); |
| | | } |
| | | }else if(event.data.includes("productNum")){ |
| | | self.headContent.sfcCode = event.data.split(',')[1]; |
| | | let productNum = event.data.split(',')[1]; |
| | | self.headContent.sfcCode = productNum; |
| | | self.queryParams.productNum = productNum; |
| | | self.getList() |
| | | self.cakeLamp.scanFinish = 1 |
| | | self.cakeLamp.startWork = 1 |
| | | } |
| | | }; |
| | | }, |