| | |
| | | </div> |
| | | </template> |
| | | </el-card> |
| | | <el-row :gutter="3"> |
| | | <el-col :span="6"> |
| | | <el-card shadow="always" class="boxSize"> |
| | | <div class="centerImg"> |
| | | <img style="width: 140px;height: 30px;" src="@/assets/logo/jcdm2.png" alt="dark"> |
| | | </div> |
| | | |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-card shadow="always" class="boxSize"> |
| | | <span class="centerText" style="height: 60px">{{locationCode}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="15"> |
| | | <el-card shadow="always" class="boxSize"> |
| | | <span class="centerText" >{{locationName}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <el-card class="query-card" >--> |
| | | <!-- <el-form :model="from" size="large" :inline="true" label-width="78px" @submit.native.prevent>--> |
| | | <!-- <el-form-item label-width="200" label="连杆码" :prop="from.connectCode" style="align-content: center">--> |
| | | <!-- <input v-model="from.connectCode"--> |
| | | <!-- ref="inputdata1"--> |
| | | <!-- style="height: 39px; width: 300px"--> |
| | | <!-- placeholder="请扫描连杆码"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-form>--> |
| | | <!-- </el-card>--> |
| | | <!-- <el-card class="box-card" >--> |
| | | <!-- <el-form :model="from" size="large" :inline="true" label-width="68px" @submit.native.prevent>--> |
| | | <!-- <el-form-item label-width="200" label="活塞连杆托盘码" :prop="from.scanObject2" style="align-content: center">--> |
| | |
| | | import {getUrl} from "@/api/main/bs/orderScheduling/orderScheduling"; |
| | | import WebSocketReconnect from "@/utils/WebsocketTool"; |
| | | import result from "../../../../components/Crontab/result.vue"; |
| | | import {getSfcCodeByConnectCode} from "../../../../api/main/da/tileMatchMiddleware/tileMatchMiddleware"; |
| | | export default { |
| | | name: "index", |
| | | dicts: ['colour_hex','productseries','axisname','neckname','tilename'], |
| | |
| | | qrCode: '', |
| | | // 查询参数 |
| | | from:{ |
| | | connectCode:'', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | productSeries: null, |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.setFocus1() |
| | | // this.$refs.inputdata1.addEventListener('keydown',this.handleScannerInput1) |
| | | this.getStationConf() |
| | | this.getWebUrl() |
| | | this.getDetailMessage() |
| | | }, |
| | | // beforeDestroy() { |
| | | // this.$refs.inputdata1.removeEventListener('keydown',this.handleScannerInput1) |
| | | // }, |
| | | methods:{ |
| | | // setFocus1(){ |
| | | // this.$nextTick(()=>{ |
| | | // this.$refs.inputdata1.focus() |
| | | // }) |
| | | // }, |
| | | // handleScannerInput1(event) { |
| | | // if (this.scannerFlag) { |
| | | // this.$refs.inputdata1.value = '' |
| | | // this.scannerFlag = false |
| | | // } |
| | | // const input = event.target |
| | | // const inputValue = input.value |
| | | // this.from.connectCode = inputValue |
| | | // if (event.key === 'Enter') { |
| | | // this.scannerFlag = true |
| | | // //扫描完成 |
| | | // console.log('sssss', this.from.connectCode) |
| | | // getSfcCodeByConnectCode({connectCode:this.from.connectCode}).then(res => { |
| | | // console.log('res',res) |
| | | // if (res.code === 200){ |
| | | // this.queryParams.scanObject2 = res.data.sfcCode |
| | | // |
| | | // if (this.queryParams.scanObject1 !== null && this.queryParams.scanObject1 !== '' |
| | | // && this.queryParams.scanObject2 !== null && this.queryParams.scanObject2 !== ''){ |
| | | // if (this.queryParams.scanObject1 === this.queryParams.scanObject2){ |
| | | // this.queryParams.words = "配对成功" |
| | | // this.queryParams.tileColor = "#3dcc1d" |
| | | // //请求出站 |
| | | // // this.passStation() |
| | | // }else { |
| | | // this.queryParams.words = "配对失败" |
| | | // this.queryParams.tileColor = "#f50909" |
| | | // } |
| | | // } |
| | | // this.$message({ |
| | | // message: '查询成功', |
| | | // type: 'success' |
| | | // }); |
| | | // } else { |
| | | // this.$message({ |
| | | // message: '查询失败', |
| | | // type: 'error' |
| | | // }); |
| | | // } |
| | | // }) |
| | | // } |
| | | // }, |
| | | getWebUrl(){ |
| | | getUrl().then(res=>{ |
| | | this.websocketUrl = res+"OP050" |
| | |
| | | this.queryParams.scanObject2 = resultMessage[0] |
| | | this.queryParams.productSeries = resultMessage[2] |
| | | } else if (resultMessage[1] === "clean"){ |
| | | this.queryParams.productSeries = '' |
| | | this.queryParams.scanObject1 = "" |
| | | this.queryParams.scanObject2 = "" |
| | | this.queryParams.words = "" |