admin
2024-06-15 8cfe20288690f2ba46c804f41f39e8aa48c2dea0
jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
@@ -245,7 +245,7 @@
import {listWorkReport} from "@/api/main/om/workReport/workReport";
import {listStationConf,getIpv4} from "@/api/main/sc/stationConf";
import {
  jrmUpdateResults,
  jrmUpdateResults, jrmWorkpieceRelease,
  listFormulaChild,
  noPageListFormulaChild,
  releaseCheck,
@@ -457,6 +457,17 @@
      }
      return '';
    },
    getElement() {
      let temp33 = document.getElementsByClassName('el-table__row')
      console.log('temp33',temp33)
      console.log('len',temp33.item(12))
      if (temp33.length > 0){
        console.log('1111111111111111')
        let arr = temp33[12]
        console.log('srr',arr)
        arr.scrollIntoView({ block: 'center' })
      }
    },
    /** 查询配方配置子信息列表 */
    getListFormulaChild() {
      console.log('getListFormulaChild')
@@ -466,8 +477,27 @@
      console.log(this.formulaChildParams)
      noPageListFormulaChild(this.formulaChildParams).then(response => {
        this.formulaChildList = response.rows;
        if (this.formulaChildList.length >0){
          let pos = 0
          const tempArr = this.formulaChildList.filter(x=> 'OK' === x.results)
          if (tempArr.length>0){
            pos = tempArr.length
            this.$nextTick(() => {
              let temp33 = document.getElementsByClassName('el-table__row')
              console.log('temp33',temp33)
              console.log('len',temp33.item(pos))
              if (temp33.length > 0){
                console.log('1111111111111111')
                let arr = temp33[pos-1]
                console.log('srr',arr)
                arr.scrollIntoView({ block: 'center' })
              }
            })
          }
        }
      });
      console.log('success_getListFormulaChild')
    },
    endClear(){
      this.cakeLamp.InPlace= 0 //工件到位
@@ -481,13 +511,26 @@
      this.workpieceInformation.productModel = null;
      this.workpieceInformation.productName = null;
      this.headContent.sfcCode = '';
      this.headContent.moduleB = '';
      this.headContent.moduleA = '';
    },
    changeMenu(tab, event) {
      console.log(tab, event);
    },
    clearClick(){
      this.$message('这是一条清除消息提示');
      this.headContent.sfcCode = null
      const param = {
        workOrderNo: this.workpieceInformation.workOrderNo,
        productCode: "1P102S",
        locationCode: this.headContent.processesCode,
        productBarcode: this.headContent.moduleA+','+this.headContent.moduleB,
      }
      jrmSaveCampaignTimeParameters(param).then(response => {});
      this.cakeLamp.release = 1;
      this.endClear()
      // workpieceRelease(param).then(response => {});
      jrmWorkpieceRelease(param).then(response => {});
      // this.$message('这是一条清除消息提示');
      // this.headContent.sfcCode = null
    },
    scanCompleted(){
      this.$message('扫码完成'+this.content);
@@ -575,14 +618,15 @@
        } else if (event.data === "END") {
          const param = {
            workOrderNo: self.workpieceInformation.workOrderNo,
            productCode: self.workpieceInformation.productCode,
            productCode: "1P102S",
            locationCode: self.headContent.processesCode,
            productBarcode: self.headContent.sfcCode,
            productBarcode: self.headContent.moduleA+','+self.headContent.moduleB,
          }
          jrmSaveCampaignTimeParameters(param).then(response => {});
          self.cakeLamp.release = 1;
          self.endClear()
          workpieceRelease(param).then(response => {});
          // workpieceRelease(param).then(response => {});
          jrmWorkpieceRelease(param).then(response => {});
        } else if (event.data.includes("[")) {
          let formulaChilds = "";
          self.formulaChildList.sort((a, b) => a.stepSort - b.stepSort);
@@ -633,7 +677,7 @@
            this.headContent.moduleB = scanValue;
            this.$message('扫码识别产品序列号'+scanValue);
            this.getList()
            this.cakeLamp.InPlace = 1
            // this.cakeLamp.InPlace = 1
            this.cakeLamp.scanFinish = 1
            this.cakeLamp.startWork = 1
          }