admin
2024-12-17 75f1ced619b49f354addc1cf8fa1ca320b25edd4
jcdm-ui/src/views/main/kb/repairOnline/index.vue
@@ -16,8 +16,8 @@
     </el-col>
     <el-col :span="17">
       <el-card shadow="never">
         <span class="head-font">壳体编码 : </span>
         <el-input style="width: 40%" ref="inputData" v-model="shellBarcode" @change="handleEnter" placeholder="请扫描壳体编码"></el-input>
         <span class="head-font">产品序列号 : </span>
         <el-input style="width: 40%" ref="inputData" v-model="shellBarcode" @change="handleEnter" placeholder="请扫描产品序列号"></el-input>
         是否打刻 :
         <el-select v-model="engravingStatus" placeholder="请选择">
           <el-option
@@ -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,8 +291,8 @@
      console.log(tab, event);
    },
    handleEnter() {
      if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){
        this.queryParams.trolleyYard = this.shellBarcode
      // if(this.headContent.processesCode !== '' && this.engravingStatus !== ''){
        this.queryParams.productNum = this.shellBarcode
        listProductionOrde(this.queryParams).then(response => {
          let rowsData = response.rows[0];
          if(rowsData){
@@ -303,9 +305,10 @@
            this.$message.error('系统没有此工单,请重新扫码!');
          }
        });
      }else {
        this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!");
      }
      // }
      // else {
      //   this.$message.error("基础参数缺失,请检查工位编号和打刻状态是否已选择!");
      // }
    },