admin
2024-12-17 75f1ced619b49f354addc1cf8fa1ca320b25edd4
jcdm-ui/src/views/main/kb/repairOnline/index.vue
@@ -264,13 +264,15 @@
  },
  methods: {
    repairClick(){
      if(this.headContent.processesCode !== '' && this.engravingStatus !== '' && this.headContent.sfcCode !== ''){
      if(this.headContent.processesCode !== '' && this.engravingStatus !== '' && this.shellBarcode !== ''){
        writeRepairInformationIntoPlc({
            processesCode: this.headContent.processesCode,
            engravingStatus: this.engravingStatus,
            sfcCode: this.headContent.sfcCode,
            sfcCode: this.shellBarcode,
            workOrderNo: this.workpieceInformation.workOrderNo,
          }).then(response => {});
          }).then(response => {
          this.$message("返修信息写入成功!");
        });
      }else {
        this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!");
      }
@@ -289,7 +291,7 @@
      console.log(tab, event);
    },
    handleEnter() {
      if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){
      // if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){
        this.queryParams.productNum = this.shellBarcode
        listProductionOrde(this.queryParams).then(response => {
          let rowsData = response.rows[0];
@@ -303,9 +305,10 @@
            this.$message.error('系统没有此工单,请重新扫码!');
          }
        });
      }else {
        this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!");
      }
      // }
      // else {
      //   this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!");
      // }
    },