From 8a3adc552ef87bd8453f6fde49157e66bd3220fd Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 18 六月 2024 18:10:52 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaSolutionsDescWindow.vue | 9 ++++++---
company/src/components/business/detailsEntrustedInsurance.vue | 6 +++++-
company/src/components/business/OperaUnionChangeUnitDetailWindow.vue | 22 ++++++++++++++++++----
company/src/components/business/OperaUnionChangeDetailWindow.vue | 16 ++++++++++++----
4 files changed, 41 insertions(+), 12 deletions(-)
diff --git a/company/src/components/business/OperaSolutionsDescWindow.vue b/company/src/components/business/OperaSolutionsDescWindow.vue
index e5b692e..ae42aab 100644
--- a/company/src/components/business/OperaSolutionsDescWindow.vue
+++ b/company/src/components/business/OperaSolutionsDescWindow.vue
@@ -87,7 +87,7 @@
<span>鏇存崲娲鹃仯鍗曚綅 <i :class="form.canChangeUnit ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canChangeUnit ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
</div>
</div>
- <div class="info_list_item" v-if="(form.timeUnit===2 && (form.insureCycleUnit===2||form.insureCycleUnit===0)) || form.timeUnit===2 && (form.insureCycleUnit===2||form.insureCycleUnit===0))">
+ <div class="info_list_item" v-if="form.insureCycleUnit===0 || (form.insureCycleUnit===form.timeUnit)">
<div class="info_list_item_label">鎵规敼浠呮敮鎸佹浛鎹細</div>
<div class="info_list_item_val" v-if="form.delOnlyReplace == 1">鏄�</div>
<div class="info_list_item_val" v-else>鍚�</div>
@@ -123,6 +123,7 @@
</div>
<!-- 淇敼 -->
<OperaSolutionsWindow ref="operaSolutionsWindow" @success="callback"/>
+ <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
</GlobalWindow>
</template>
@@ -130,12 +131,13 @@
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow'
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
import { solutionsId } from '@/api/business/solutions'
import { mapState } from 'vuex'
export default {
name: 'OperaSolutionsDescWindow',
extends: BaseOpera,
- components: { GlobalWindow, OperaSolutionsWindow },
+ components: { GlobalWindow, OperaPdfViewerWindow,OperaSolutionsWindow },
data () {
return {
// 琛ㄥ崟鏁版嵁
@@ -225,7 +227,8 @@
},
openFile (url) {
setTimeout(() => {
- window.open(url)
+ this.$refs.OperaPdfViewerWindow.open('鏂规纭涔�',url)
+ // window.open(url)
}, 500)
},
getDetails () {
diff --git a/company/src/components/business/OperaUnionChangeDetailWindow.vue b/company/src/components/business/OperaUnionChangeDetailWindow.vue
index faa88e3..c915f88 100644
--- a/company/src/components/business/OperaUnionChangeDetailWindow.vue
+++ b/company/src/components/business/OperaUnionChangeDetailWindow.vue
@@ -206,6 +206,7 @@
<!-- 鎶曚繚璇︽儏 -->
<insuranceApplyDetails ref="insuranceApplyDetails" @success="successEvent" />
<!-- 璇︽儏 -->
+ <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
<detailsEntrustedInsurance ref="detailsEntrustedInsurance" />
<!-- 淇敼鎵嬫満鍙� -->
<el-dialog
@@ -245,7 +246,9 @@
<div class="desc_item_from" v-for="(item, index) in pidanFileData" :key="index" style="margin-bottom: 15px">
<span v-if="index ==0">{{item.name}}锛�</span>
<span v-if="index >0">琚繚闄╀汉锛坽{item.name}}锛変繚闄╁崟锛�</span>
- <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl" @click="openFile(item.file.fileurlFull)">鍦ㄧ嚎棰勮</a><span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
+ <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index ==0" @click="openFile(item.file.fileurlFull,item.name)">鍦ㄧ嚎棰勮</a>
+ <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 " @click="openFile(item.file.fileurlFull,'琚繚闄╀汉锛�'+item.name+'锛変繚闄╁崟')">鍦ㄧ嚎棰勮</a>
+ <span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="visibleFile=false">鍏� 闂�</el-button>
@@ -280,6 +283,7 @@
import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyAddWindow'
import { mapState } from 'vuex'
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
export default {
name: 'OperaUnionChangeDetailWindow',
extends: BaseOpera,
@@ -288,6 +292,7 @@
UnionChangeDetails,
OperaUnionChangeCheckWindow,
add_subtract_return,
+ OperaPdfViewerWindow,
OperaInsuranceApply,
reinsurance,
factoryChange,
@@ -367,9 +372,11 @@
this.setTime()
})
},
- openFile (url) {
+ openFile (url,title) {
setTimeout(() => {
- window.open(url)
+
+ this.$refs.OperaPdfViewerWindow.open(title || '鍦ㄧ嚎棰勮',url)
+ // window.open(url)
}, 500)
},
setTime () {
@@ -462,7 +469,8 @@
},
viewApplyFile(){
if(this.model.applyFile && this.model.applyFile.fileurlFull){
- window.open(this.model.applyFile.fileurlFull)
+ this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鐢宠鍗�',this.model.applyFile.fileurlFull)
+ // window.open(this.model.applyFile.fileurlFull)
}
},
viewPidan(){
diff --git a/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue b/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue
index 9bffa9e..8f56d13 100644
--- a/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue
+++ b/company/src/components/business/OperaUnionChangeUnitDetailWindow.vue
@@ -171,6 +171,7 @@
<OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" />
<!-- 鏇存崲娲鹃仯鍗曚綅鐢宠 -->
<reinsurance ref="reinsurance" @success="successEvent" />
+ <OperaPdfViewerWindow ref="OperaPdfViewerWindow" @success="successEvent" />
<!-- 鏇存崲娲鹃仯鍗曚綅鐢宠 -->
<factoryChange ref="factoryChange" @success="successEvent" />
<!-- 鎶曚繚璇︽儏 -->
@@ -213,8 +214,16 @@
<div class="desc_item_from" v-for="(item, index) in pidanFileData" :key="index" style="margin-bottom: 15px">
<span v-if="index ==0">{{item.name}}锛�</span>
<span v-if="index >0">琚繚闄╀汉锛坽{item.name}}锛変繚闄╁崟锛�</span>
- <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl" @click="openFile(item.file.fileurlFull)">鍦ㄧ嚎棰勮</a><span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
+ <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index ==0" @click="openFile(item.file.fileurlFull,item.name)">鍦ㄧ嚎棰勮</a>
+ <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 " @click="openFile(item.file.fileurlFull,'琚繚闄╀汉锛�'+item.name+'锛変繚闄╁崟')">鍦ㄧ嚎棰勮</a>
+ <span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
</div>
+<!--
+ <div class="desc_item_from" v-for="(item, index) in pidanFileData" :key="index" style="margin-bottom: 15px">
+ <span v-if="index ==0">{{item.name}}锛�</span>
+ <span v-if="index >0">琚繚闄╀汉锛坽{item.name}}锛変繚闄╁崟锛�</span>
+ <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl" @click="openFile(item.file.fileurlFull)">鍦ㄧ嚎棰勮</a><span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
+ </div>-->
<span slot="footer" class="dialog-footer">
<el-button @click="visibleFile=false">鍏� 闂�</el-button>
</span>
@@ -247,11 +256,13 @@
import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyAddWindow'
import { mapState } from 'vuex'
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
export default {
name: 'OperaUnionChangeDetailWindow',
extends: BaseOpera,
components: {
GlobalWindow,
+ OperaPdfViewerWindow,
UnionChangeUnitDetails,
OperaUnionChangeCheckWindow,
add_subtract_return,
@@ -333,9 +344,11 @@
this.setTime()
})
},
- openFile (url) {
+ openFile (url,title) {
setTimeout(() => {
- window.open(url)
+
+ this.$refs.OperaPdfViewerWindow.open(title || '鍦ㄧ嚎棰勮',url)
+ // window.open(url)
}, 500)
},
setTime () {
@@ -427,7 +440,8 @@
},
viewApplyFile(){
if(this.model.applyFile && this.model.applyFile.fileurlFull){
- window.open(this.model.applyFile.fileurlFull)
+ this.$refs.OperaPdfViewerWindow.open('鏌ョ湅鐢宠鍗�',this.model.applyFile.fileurlFull)
+ // window.open(this.model.applyFile.fileurlFull)
}
},
viewPidan(){
diff --git a/company/src/components/business/detailsEntrustedInsurance.vue b/company/src/components/business/detailsEntrustedInsurance.vue
index 54921fd..9572d2d 100644
--- a/company/src/components/business/detailsEntrustedInsurance.vue
+++ b/company/src/components/business/detailsEntrustedInsurance.vue
@@ -367,6 +367,7 @@
<OperaApplyChangeDetailWindow ref="OperaApplyChangeDetailWindow" @success="successEvent"/>
<!-- 鏇存崲娲鹃仯鍗曚綅璇︽儏 -->
<OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" @success="successEvent"/>
+ <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
<!-- 鍔犲噺淇濊鎯� -->
<template v-slot:footer>
<el-button @click="visible=false">杩斿洖</el-button>
@@ -444,11 +445,13 @@
import { mapState } from 'vuex'
import { sendSms } from '@/api/business/smsEmail'
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
export default {
name: 'OperaWtbApplyShopWindow1',
extends: BaseOpera,
components: {
GlobalWindow,
+ OperaPdfViewerWindow,
OperaApplyChangeUnitDetailWindow,
OperaApplyChangeDetailWindow,
InsuranceDetailsWtb,
@@ -786,7 +789,8 @@
},
openFile (url) {
setTimeout(() => {
- window.open(url)
+ this.$refs.OperaPdfViewerWindow.open('鍟嗘埛鎶曚繚鍗�',url)
+ // window.open(url)
}, 500)
},
viewToubaodan () {
--
Gitblit v1.9.3