懒羊羊
2024-03-19 11cc367e5134b27e25167a7492d8033f3fd9ce52
操作看板
已修改1个文件
14 ■■■■■ 文件已修改
jcdm-ui/src/views/main/kb/stationTerminal/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -490,7 +490,7 @@
    },
    /** 查询配方配置子信息列表 */
    getListFormulaChild() {
      this.formulaChildList = []
      // this.formulaChildList = []
      this.formulaChildParams.productCode = this.workpieceInformation.productCode
      this.formulaChildParams.processesCode = this.headContent.processesCode
      listFormulaChild(this.formulaChildParams).then(response => {
@@ -674,8 +674,8 @@
          }
          addTighteningParameters(param).then(response => {});
          updateTighteningFormula(param).then(response => {
            self.getListFormulaChild()
          });
          self.getListFormulaChild()
        }
      };
    },
@@ -685,7 +685,8 @@
      if (this.form1.isShowHistory) this.form1.desc = this.readLi().join("");
      else {
        const scanValue = this.myserialport.hex2atostr(value).replace(/[\r\n]/g, '');
        // if(this.cakeLamp.InPlace=== 1){
        console.log("串口收到数据-------------------"+scanValue)
        if(this.cakeLamp.InPlace=== 1){
          if(this.headContent.sfcCode !== ''){
            console.log(scanValue)
            this.serialPortMethod(scanValue)
@@ -697,9 +698,9 @@
            this.cakeLamp.scanFinish = 1
            this.cakeLamp.startWork = 1
          }
        // }else {
        //   this.$message('工件未到位禁止扫码!');
        // }
        }else {
          this.$message('工件未到位禁止扫码!');
        }
      }
    },
    clearHistory() {
@@ -758,6 +759,7 @@
          this.myserialport.state.parity = this.form1.parity;
          this.myserialport.state.flowControl = this.form1.flowControl;
          await this.myserialport.openPort(this.form1.port, true, this.callBack);
          console.log(this.form1.port)
        } catch (error) {
          this.$message.error("串口连接失败!请检查串口是否已被占用");
        }