From 4a6cc45c4843b1294d6e0b6b39efabb6dae5544d Mon Sep 17 00:00:00 2001
From: 86134 <aa>
Date: 星期四, 09 十一月 2023 16:09:41 +0800
Subject: [PATCH] 11

---
 src/views/quality/finishedProductInspection/index.vue |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/views/quality/finishedProductInspection/index.vue b/src/views/quality/finishedProductInspection/index.vue
index 7465498..0dfbc01 100644
--- a/src/views/quality/finishedProductInspection/index.vue
+++ b/src/views/quality/finishedProductInspection/index.vue
@@ -178,7 +178,13 @@
                         text: '鎵撳嵃',
                         type: 'text',
                         size: 'small',
-                        fun: this.showPrint
+                        fun: this.showPrint,
+                        show: {
+                            val: [
+                                '1',
+                            ],
+                            key: 'result'
+                        }
                     },{
                         text: '浣滃簾',
                         type: 'text',
@@ -195,7 +201,25 @@
 			}
 		},
 		created() { },
+        watch:{
+        printFormData(newVal){
+            if(newVal){
+                this.printFormData = newVal
+            }
+        }
+    },
 		methods: {
+            //鏌ョ湅鎶ュ憡鎸夐挳
+            // showPrint(row){
+            //     queryById(row.id).then(res=>{
+            //     console.log(res);
+            //     this.printFormData = res.data.data
+            //     this.printDialogVisible = true
+            // })
+            // .catch(error=>{
+            //     console.log(error);
+            // })
+            // },
             //鎵撳嵃鎸夐挳
             printFun() {
             this.printDialogVisible = false;
@@ -212,6 +236,7 @@
             showPrint(row){
                 queryById(row.id).then(res=>{
                     console.log(res);
+                this.printFormData = res.data.data
                     this.printDialogVisible = true
                 }).catch(error=>{
                     console.log(error);

--
Gitblit v1.9.3