admin
5 天以前 0a926b3ce629047a88dbc65cc38ec86c43520336
jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
@@ -1,19 +1,32 @@
<template>
  <div class="app-container">
   <el-row :gutter="5">
     <el-col :span="7">
     <el-col :span="5">
       <el-card shadow="never">
         <span class="head-font">工位编号 : {{headContent.processesCode}}</span>
       </el-card>
     </el-col>
     <el-col :span="7">
     <el-col :span="5">
       <el-card shadow="never">
         <span class="head-font">工位名称 : {{headContent.processesName}}</span>
<!--         <el-button type="primary" style="float: right" icon="el-icon-search" size="mini" @click="serialLink">串口连接</el-button>-->
<!--         <el-button @click="clearClick" style="float: right" type="danger" size="mini">清除</el-button>-->
       </el-card>
     </el-col>
     <el-col :span="10">
     <el-col :span="6">
       <el-card style="height: 57px" shadow="never">
         <span class="head-font">产品型号 : </span>
         <el-select style="width: 70%;margin-top: -10px" v-model="selectProductCode" placeholder="请选择">
           <el-option
             v-for="item in options"
             :key="item.value"
             :label="item.label"
             :value="item.value">
           </el-option>
         </el-select>
       </el-card>
     </el-col>
     <el-col :span="8">
       <el-card shadow="never">
         <span class="head-font">模组码 : {{headContent.module}}</span>
<!--         <el-input v-model="content" style="float: right;width: 150px;" placeholder="请输入内容"></el-input>-->
@@ -277,6 +290,17 @@
  name: "stationTerminal",
  data() {
    return {
      selectProductCode: 'PE01B',
      options: [{
        value: 'PE01B',
        label: 'PE01B'
      }, {
        value: 'PE01F',
        label: 'PE01F'
      }, {
        value: 'PE01H',
        label: 'PE01H'
      }],
      carCode: '',
      showInput: false,
      onLineBinDing: false,
@@ -425,8 +449,8 @@
      let formulaChildParams = {
        scanBarcode: value,
        sfcBarcode: this.headContent.module,
        // workOrderNo: this.workpieceInformation.workOrderNo,
        productCode: 'PE01B',
        // workOrderNo: '-',
        productCode: this.selectProductCode,
        locationCode: this.headContent.processesCode,
        collectionTime: new Date()
      }
@@ -474,7 +498,7 @@
    getListFormulaChild() {
      console.log('getListFormulaChild')
      // this.formulaChildList = []
      this.formulaChildParams.productCode = 'PE01B'
      this.formulaChildParams.productCode = this.selectProductCode
      this.formulaChildParams.processesCode = this.headContent.processesCode
      console.log(this.formulaChildParams)
      noPageListFormulaChild(this.formulaChildParams).then(response => {
@@ -521,7 +545,7 @@
    },
    clearClick(){
      const param = {
        productCode: "PE01B",
        productCode: this.selectProductCode,
        locationCode: this.headContent.processesCode,
      }
      // jrmSaveCampaignTimeParameters(param).then(response => {});
@@ -630,10 +654,11 @@
          }
          const param = {
            productCode: "PE01B",
            productCode: self.selectProductCode,
            locationCode: self.headContent.processesCode,
            productBarcode: self.headContent.module,
            inboundTime: self.workpieceInformation.inboundTime
            inboundTime: self.workpieceInformation.inboundTime,
            workOrderNo: '-'
          }
          jrmSaveCampaignTimeParameters(param).then(response => {});
          self.cakeLamp.release = 1;