From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 14:05:35 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/business/OperaApplyChangeUnitDetailWindow.vue |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue b/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
index dba05cf..66070b9 100644
--- a/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
+++ b/company/src/components/business/OperaApplyChangeUnitDetailWindow.vue
@@ -118,7 +118,7 @@
                             label="鎬у埆">
                             <template slot-scope="{row}">
                                 <span v-if="row.sex === 0">鐢�</span>
-                                <span v-else>濂�</span>
+                              <span  v-if="row.sex === 1">濂�</span>
                             </template>
                         </el-table-column>
                         <el-table-column
@@ -225,6 +225,7 @@
         <editFactoryChange ref="editFactoryChange" @success="successEvent" />
         <!--    鎶曚繚璇︽儏    -->
         <insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" />
+        <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
       <template v-slot:footer>
         <el-button @click="visible=false">杩斿洖</el-button>
       </template>
@@ -242,6 +243,7 @@
 import applyReturn from '@/components/enterprise/applyReturn'
 import add_subtract_return from '@/components/enterprise/add_subtract_return'
 // import insuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
 import {
   getDetail,
   getChangeDetail,
@@ -258,6 +260,7 @@
   extends: BaseOpera,
   components: {
     GlobalWindow,
+    OperaPdfViewerWindow,
     ApplyChangeUnitDetails,
     OperaApplyChangeUnitCheckWindow,
     applyReturn,
@@ -429,14 +432,16 @@
         this.$tip.apiFailed(err)
       })
     },
-    viewApplyFile () {
-      if (this.model.applyUnitFile && this.model.applyUnitFile.fileurlFull) {
-        window.open(this.model.applyUnitFile.fileurlFull)
+    viewApplyFile(){
+      if(this.model.applyUnitFile && this.model.applyUnitFile.fileurlFull){
+        this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鐢宠鍗�',this.model.applyUnitFile.fileurlFull)
+        // window.open(this.model.applyFile.fileurlFull)
       }
     },
-    viewPidan () {
-      if (this.model.pidanFile && this.model.pidanFile.fileurlFull) {
-        window.open(this.model.pidanFile.fileurlFull)
+    viewPidan(){
+      if(this.model.pidanFile && this.model.pidanFile.fileurlFull){
+        this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鎵瑰崟',this.model.pidanFile.fileurlFull)
+        // window.open(this.model.pidanFile.fileurlFull)
       }
     },
     handleSizeChange (val) {

--
Gitblit v1.9.3