From 4a53ae7900954ef581b45a9c742f01ded1a66db5 Mon Sep 17 00:00:00 2001
From: hdy <1105738590@qq.com>
Date: 星期五, 07 六月 2024 09:38:02 +0800
Subject: [PATCH] 打印

---
 jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue b/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
index 02f712a..2eddd7a 100644
--- a/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/heatingFilmTerminal/index.vue
@@ -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,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);
@@ -575,7 +607,7 @@
         } 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,
           }
@@ -633,7 +665,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
           }

--
Gitblit v1.9.3