cl
2024-08-03 d5a7019a83a88564d266fe4fa50782052c38c7a4
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -9,7 +9,7 @@
     <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>
@@ -201,7 +201,7 @@
        release: 0 //允许放行
      },
      content: '',
      url: "ws://10.103.210.248:8080/websocket/message/",
      url: "ws://192.168.20.250:8080/websocket/message/",
      passingStationForm: {},
      originalArray: [],
@@ -209,6 +209,9 @@
      activeName: 'first',
    }
  },
  mounted() {
    this.setFocus()
  },
  beforeDestroy() {
    this.exit();
@@ -222,6 +225,11 @@
    },
  },
  methods: {
    setFocus(){
      this.$nextTick(()=>{
        this.$refs.inputData.focus()
      })
    },
    changeMenu(tab, event) {
      console.log(tab, event);
    },