From 1ccd6932893e47722574e6d1147e63b2ec4972c1 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期五, 17 五月 2024 08:45:52 +0800
Subject: [PATCH] -

---
 jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue |   62 ++++++++++++++++++++++++------
 1 files changed, 49 insertions(+), 13 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue b/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
index 243a025..b4bc0a7 100644
--- a/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
@@ -6,20 +6,22 @@
          <span class="head-font">宸ヤ綅缂栧彿 : {{headContent.processesCode}}</span>
        </el-card>
      </el-col>
-     <el-col :span="7">
+     <el-col :span="17">
        <el-card shadow="never">
          <span class="head-font">宸ヤ綅鍚嶇О : {{headContent.processesName}}</span>
-       </el-card>
-     </el-col>
-     <el-col :span="10">
-       <el-card shadow="never">
-         <span class="head-font">浜у搧搴忓垪鍙� : {{headContent.sfcCode}}</span>
-<!--         <el-input v-model="content" style="float: right;width: 150px;" placeholder="璇疯緭鍏ュ唴瀹�"></el-input>-->
-<!--         <el-button @click="scanCompleted" style="float: right" type="primary">鎵爜瀹屾垚</el-button>-->
          <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-card shadow="never">-->
+<!--         <span class="head-font">浜у搧搴忓垪鍙� : {{headContent.sfcCode}}</span>-->
+<!--&lt;!&ndash;         <el-input v-model="content" style="float: right;width: 150px;" placeholder="璇疯緭鍏ュ唴瀹�"></el-input>&ndash;&gt;-->
+<!--&lt;!&ndash;         <el-button @click="scanCompleted" style="float: right" type="primary">鎵爜瀹屾垚</el-button>&ndash;&gt;-->
+<!--         <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-row>
    <el-row :gutter="5" style="margin-top: 5px">
@@ -268,7 +270,7 @@
   addParamCollection,
   addTighteningParameters,
   saveCampaignTimeParameters,
-  replaceAssemblyCode,
+  replaceAssemblyCode, jrmSaveCampaignTimeParameters,
 } from "@/api/main/da/paramCollection/paramCollection";
 
 export default {
@@ -455,14 +457,46 @@
       }
       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')
       // this.formulaChildList = []
       this.formulaChildParams.productCode = '1P102S'
       this.formulaChildParams.processesCode = this.headContent.processesCode
       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' })
+              }
+            })
+          }
+
+        }
+
       });
     },
     endClear(){
@@ -477,6 +511,8 @@
       this.workpieceInformation.productModel = null;
       this.workpieceInformation.productName = null;
       this.headContent.sfcCode = '';
+      this.headContent.moduleB = '';
+      this.headContent.moduleA = '';
     },
     changeMenu(tab, event) {
       console.log(tab, event);
@@ -503,6 +539,7 @@
 
     /** 鍏ョ珯澧炲姞杩囩珯閲囬泦璁板綍 **/
     addOverStationCollection(){
+      console.log('addOverStationCollection')
       this.passingStationForm = {
         id: null,
         // workOrderNo: this.workpieceInformation.workOrderNo,
@@ -513,7 +550,6 @@
         sfcCode: this.headContent.moduleA+','+this.headContent.moduleB,
         inboundTime: new Date()
       }
-      // addPassingStationCollection(this.passingStationForm).then(response => {});
       jrmAddPassingStationCollection(this.passingStationForm).then(response => {});
       // addBasicParameters(this.passingStationForm).then(response => {});
     },
@@ -575,7 +611,7 @@
             locationCode: self.headContent.processesCode,
             productBarcode: self.headContent.sfcCode,
           }
-          saveCampaignTimeParameters(param).then(response => {});
+          jrmSaveCampaignTimeParameters(param).then(response => {});
           self.cakeLamp.release = 1;
           self.endClear()
           workpieceRelease(param).then(response => {});
@@ -595,8 +631,8 @@
           const param = {
             tightenTheArray: event.data,
             paramCode: formulaChilds.paramCode,
-            workOrderNo: self.workpieceInformation.workOrderNo,
-            productCode: self.workpieceInformation.productCode,
+            // workOrderNo: self.workpieceInformation.workOrderNo,
+            productCode: '1P102S',
             locationCode: self.headContent.processesCode,
             productBarcode: self.headContent.sfcCode,
           }

--
Gitblit v1.9.3