| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-row :gutter="5"> |
| | | <el-col :span="7"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">工位编号 : {{headContent.processesCode}}</span> |
| | | <el-col :span="7"> |
| | | <el-card style="height: 71px" shadow="never"> |
| | | <span style="margin-top: 200px" class="head-font">工位编号 : {{headContent.processesCode}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-col :span="17"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">工位名称 : {{headContent.processesName}}</span> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">产品序列号 : {{headContent.sfcCode}}</span> |
| | | <!-- <el-input v-model="content" style="float: right;width: 150px;" placeholder="请输入内容"></el-input>--> |
| | | <!-- <el-button @click="scanCompleted" style="float: right" type="primary">扫码完成</el-button>--> |
| | | <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> |
| | | <span class="head-font">物料编码 : </span> |
| | | <el-input style="width: 50%" v-model="materialCode" @change="handleEnter" placeholder="请扫描物料编码"></el-input> |
| | | <el-button type="primary" style="float: right" icon="el-icon-search" @click="serialLink">串口连接</el-button> |
| | | <el-button @click="clearClick" style="float: right" type="danger" >清除</el-button> |
| | | </el-card> |
| | | </el-col> |
| | | |
| | |
| | | <span style="font-weight: bold">当前工件信息</span> |
| | | </div> |
| | | <el-descriptions :column="1" border :content-style="{'min-width': '140px'}"> |
| | | <el-descriptions-item label="产品序列号"> |
| | | <span>{{headContent.sfcCode}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="工单编号"> |
| | | <span>{{workpieceInformation.workOrderNo}}</span> |
| | | </el-descriptions-item> |
| | |
| | | <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>--> |
| | | <!-- </el-row>--> |
| | | |
| | | <!-- <el-row v-show="onLineBinDing" style="margin-top: 20px">--> |
| | | <!-- <el-col></el-col>--> |
| | | <!-- <span style="width: 130px;" class="head-font">小车码 : {{headContent.cardCode}}</span>--> |
| | | <!-- </el-row>--> |
| | | <!-- <el-row v-show="onLineBinDing" style="margin-top: 20px">--> |
| | | <!-- <el-button @click="bindcardCode" type="primary">绑定</el-button>--> |
| | | <!-- </el-row>--> |
| | | </el-card> |
| | | |
| | | </el-col> |
| | |
| | | <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>--> |
| | | <el-table-column label="拧紧步号" width="80" align="center" prop="stepSort"> |
| | | </el-table-column> |
| | | <el-table-column label="操作内容" align="center" prop="operationSteps"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="上限" width="60" align="center" prop="spareField3">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="下限" width="60" align="center" prop="spareField4">--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="产品编号" width="80" align="center" prop="productCode"> |
| | | </el-table-column> |
| | | <el-table-column label="物料编码" width="110" align="center" prop="materialCode"> |
| | |
| | | |
| | | </el-table> |
| | | </el-col> |
| | | <!-- <el-col :span="14">--> |
| | | <!-- <el-image style="height: 520px;width: 100%" :src="imgSrc"></el-image>--> |
| | | <!-- </el-col>--> |
| | | </el-tab-pane> |
| | | <!-- <el-tab-pane name="second">--> |
| | | <!-- <span slot="label"> <b class="el-icon-date"></b>物料BOM</span>--> |
| | | <!-- <el-empty>--> |
| | | <!-- <span slot="description">暂无数据</span>--> |
| | | <!-- </el-empty>--> |
| | | <!-- </el-tab-pane>--> |
| | | <!-- <el-tab-pane name="third">--> |
| | | <!-- <span slot="label"> <b class="el-icon-date"></b>采集清单</span>--> |
| | | <!-- <el-empty>--> |
| | | <!-- <span slot="description">暂无数据</span>--> |
| | | <!-- </el-empty>--> |
| | | <!-- </el-tab-pane>--> |
| | | <!-- <el-tab-pane name="fourth">--> |
| | | <!-- <span slot="label"> <b class="el-icon-date"></b>安灯状态</span>--> |
| | | <!-- <el-empty>--> |
| | | <!-- <span slot="description">暂无数据</span>--> |
| | | <!-- </el-empty>--> |
| | | <!-- </el-tab-pane>--> |
| | | <!-- <el-tab-pane name="fifth">--> |
| | | <!-- <span slot="label"> <b class="el-icon-date"></b>工艺配方</span>--> |
| | | <!-- <el-empty>--> |
| | | <!-- <span slot="description">暂无数据</span>--> |
| | | <!-- </el-empty>--> |
| | | <!-- </el-tab-pane>--> |
| | | </el-tabs> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | name: "stationTerminal", |
| | | data() { |
| | | return { |
| | | materialCode: '', // 物料编码 |
| | | carCode: '', |
| | | showInput: false, |
| | | onLineBinDing: false, |
| | |
| | | }, |
| | | content: '', |
| | | activeName: 'first', |
| | | // url: "ws://10.103.210.248:8080/websocket/message/", |
| | | url: "ws://192.168.10.100:8080/websocket/message/", |
| | | url: "ws://10.103.210.248:8080/websocket/message/", |
| | | // url: "ws://192.168.10.100:8080/websocket/message/", |
| | | message: "", |
| | | text_content: "", |
| | | ws: null, |
| | |
| | | this.exit(); |
| | | }, |
| | | created() { |
| | | document.onkeyup = e => { |
| | | if (e.keyCode === 13) { |
| | | // 调用登录 验证方法 |
| | | this.submitForm() |
| | | } |
| | | } |
| | | this.initStation(); |
| | | // this.getStationConfList(); |
| | | // setTimeout(() => { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | handleEnter() { |
| | | this.serialPortMethod(this.materialCode) |
| | | this.$message("扫描物料编码"+this.materialCode); |
| | | }, |
| | | getWorkOrders(){ |
| | | if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){ |
| | | //接收工单 |
| | |
| | | this.ws = new WebSocket(wsuri); |
| | | const self = this; |
| | | this.ws.onopen = function (event) { |
| | | this.$message('websocket连接成功!'); |
| | | |
| | | self.$message('websocket连接成功!'); |
| | | }; |
| | | |
| | | |