admin
5 天以前 0a926b3ce629047a88dbc65cc38ec86c43520336
jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
@@ -1,18 +1,31 @@
<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>
         <span hidden>{{headContent.inboundTime}}</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-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.sfcCode}}</span>
<!--         <el-input v-model="content" style="float: right;width: 150px;" placeholder="请输入内容"></el-input>-->
@@ -214,6 +227,17 @@
  name: "stationTerminal",
  data() {
    return {
      selectProductCode: 'PE01B',
      options: [{
        value: 'PE01B',
        label: 'PE01B'
      }, {
        value: 'PE01F',
        label: 'PE01F'
      }, {
        value: 'PE01H',
        label: 'PE01H'
      }],
      showInput: true,
      serialPortContent: '',
      // 查询参数
@@ -363,7 +387,7 @@
        scanBarcode: value,
        sfcBarcode: this.headContent.sfcCode,
        workOrderNo: this.workpieceInformation.workOrderNo,
        productCode: "PE01B",
        productCode: this.selectProductCode,
        locationCode: this.headContent.processesCode,
        collectionTime: new Date()
      }
@@ -381,7 +405,7 @@
    },
    /** 查询配方配置子信息列表 */
    getListFormulaChild() {
      this.formulaChildParams.productCode = "PE01B"
      this.formulaChildParams.productCode = this.selectProductCode
      this.formulaChildParams.processesCode = this.headContent.processesCode
      console.log(this.formulaChildParams)
      noPageListFormulaChild(this.formulaChildParams).then(response => {
@@ -415,7 +439,7 @@
    },
    clearClick(){
      const param = {
        productCode: 'PE01B',
        productCode: this.selectProductCode,
        locationCode: this.headContent.processesCode,
      }
      clearWorkpieceRelease(param).then(response => {});
@@ -436,6 +460,7 @@
    /** 查询工单列表 */
    async getList() {
      const param = {
        productCode: this.selectProductCode,
        processesCode: this.headContent.processesCode,
      }
      fistSetpNumber(param).then(response => {});
@@ -514,7 +539,7 @@
            tightenTheArray: event.data,
            paramCode: formulaChilds.paramCode,
            // workOrderNo: self.workpieceInformation.workOrderNo,
            // productCode: "1P102S",
            productCode: self.selectProductCode,
            locationCode: self.headContent.processesCode,
            productBarcode: self.headContent.sfcCode,
            spareField2: formulaChilds.spareField2,
@@ -541,10 +566,11 @@
                  self.getListFormulaChild()
                }else {
                  const param = {
                    id: formulaChilds.id,
                    locationCode: self.headContent.processesCode,
                    productBarcode: self.headContent.sfcCode,
                    inboundTime: self.headContent.inboundTime,
                    productCode: "PE01B",
                    productCode: self.selectProductCode,
                    workOrderNo: "-",
                  }