-
admin
2024-05-17 68f0c8f92fb7c82dc447b9aaed2d23760c546f25
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -89,18 +89,17 @@
           <el-col></el-col>
             <span style="width: 130px;" class="head-font">预装总成号 : {{headContent.yzSfcCode}}</span>
         </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="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-row v-show="onLineBinDing" style="margin-top: 20px">-->
<!--           <el-button @click="bindcardCode" type="primary">绑定</el-button>-->
<!--         </el-row>-->
       </el-card>
     </el-col>
@@ -445,7 +444,7 @@
  },
  methods: {
    bindcardCode(){
      this.$message('可以绑定!');
      this.$message('绑定成功!');
      let param = {
        productNum: this.headContent.sfcCode,
        trolleyYard: this.headContent.cardCode,
@@ -464,9 +463,8 @@
          locationCode: this.headContent.processesCode,
          yzSfcCode: this.headContent.yzSfcCode
        }
        this.$message('可以绑定!');
        replaceAssemblyCode(param).then(response => {
          this.$message('绑定成功!');
        });
      }
    },
@@ -711,8 +709,10 @@
        if(this.headContent.sfcCode !== ''){
          if(scanValue.includes("P9900173252")){
            this.headContent.yzSfcCode = scanValue
          }else if(scanValue.includes("RSP01TE")){
            this.bindYzSfc();
          }else if(scanValue.includes("0RSP1TE")){
            this.headContent.cardCode = scanValue
            this.bindcardCode();
          }else {
            this.$message('扫描物料编码'+scanValue);
            console.log(scanValue)