admin
2024-08-12 4280d7277bc0f9b5c3dfad6d59d833aa89294f69
jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -77,7 +77,7 @@
           </el-col>
         </el-row>
         <el-row v-show="orderFlag" style="margin-top: 20px">
           <el-button @click="getWorkOrders" type="warning" size="mini">接收工单</el-button>
<!--           <el-button @click="getWorkOrders" type="warning" size="mini">接收工单</el-button>-->
         </el-row>
       </el-card>
@@ -239,24 +239,24 @@
      this.setFocus();
      this.materialCode="";
    },
    getWorkOrders(){
      if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){
        //接收工单
        const param = {
          lineCode: this.headContent.processesCode
        }
        mozuReceivingWorkOrders(param).then(response => {
          this.headContent.sfcCode = response.msg;
          this.queryParams.productNum = response.msg;
          this.getList()
          this.cakeLamp.scanFinish = 1
          this.cakeLamp.startWork = 1
          this.cakeLamp.InPlace = 1
        });
      }else {
        this.$message.error("已经有工单了,不能接收!");
      }
    },
    // getWorkOrders(){
    //   if(this.headContent.sfcCode === '' || this.headContent.sfcCode === null){
    //     //接收工单
    //     const param = {
    //       lineCode: this.headContent.processesCode
    //     }
    //     mozuReceivingWorkOrders(param).then(response => {
    //       this.headContent.sfcCode = response.msg;
    //       this.queryParams.productNum = response.msg;
    //       this.getList()
    //       this.cakeLamp.scanFinish = 1
    //       this.cakeLamp.startWork = 1
    //       this.cakeLamp.InPlace = 1
    //     });
    //   }else {
    //     this.$message.error("已经有工单了,不能接收!");
    //   }
    // },
    serialLink() {
      this.open1 = true
    },
@@ -359,6 +359,7 @@
      });
      this.getListFormulaChild()
      this.workpieceInformation.inboundTime = this.getCurrentTime()
    },
    initializedData(){
@@ -478,6 +479,14 @@
          self.cakeLamp.startWork = 1
          self.cakeLamp.InPlace = 1
          const param = {
            processesCode: self.headContent.processesCode,
            productCode: self.workpieceInformation.productCode
          }
          fistSetpNumber(param).then(response => {
            console.log("fistSetpNumber------"+response.msg)
          });
        }else if (event.data.includes("[")) {//拧紧
          let formulaChilds = "";
          self.formulaChildList.sort((a, b) => a.stepSort - b.stepSort);