| | |
| | | <el-col :span="17"> |
| | | <el-card shadow="never"> |
| | | <span class="head-font">物料编码 : </span> |
| | | <el-input style="width: 50%" v-model="materialCode" @change="handleEnter" placeholder="请扫描物料编码"></el-input> |
| | | <el-input style="width: 50%" ref="inputData" v-model="materialCode" @change="handleEnter" @keyup="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> |
| | |
| | | release: 0 //允许放行 |
| | | }, |
| | | content: '', |
| | | url: "ws://10.103.210.248:8080/websocket/message/", |
| | | url: "ws://192.168.20.250:8080/websocket/message/", |
| | | |
| | | passingStationForm: {}, |
| | | originalArray: [], |
| | |
| | | activeName: 'first', |
| | | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.setFocus() |
| | | }, |
| | | beforeDestroy() { |
| | | this.exit(); |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | setFocus(){ |
| | | this.$nextTick(()=>{ |
| | | this.$refs.inputData.focus() |
| | | }) |
| | | }, |
| | | changeMenu(tab, event) { |
| | | console.log(tab, event); |
| | | }, |