From ffa268a0585b4a1f7dac573c2c443bae97ac9a47 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 28 五月 2025 16:29:31 +0800
Subject: [PATCH] 提交一把订单
---
company/src/components/enterprise/onlineReporting.vue | 51 +++++++++++++++++++++++++++++++++++----------------
1 files changed, 35 insertions(+), 16 deletions(-)
diff --git a/company/src/components/enterprise/onlineReporting.vue b/company/src/components/enterprise/onlineReporting.vue
index 3ac592d..5e21033 100644
--- a/company/src/components/enterprise/onlineReporting.vue
+++ b/company/src/components/enterprise/onlineReporting.vue
@@ -199,7 +199,11 @@
</div>
<div class="box_item">
<div class="box_item_title">
- <span>鐞嗚禂鏉愭枡</span>
+ <div> <span>涓婁紶鐞嗚禂鏉愭枡</span></div>
+ <div style="float: right">
+ <el-button type="primary" v-if="insurance && insurance.lpStampTempFile && insurance.lpStampTempFile.fileurlFull" @click="openLinkUrl(insurance.lpStampTempFile.fileurlFull)">鐩栫珷鏂囦欢妯$増</el-button>
+ <el-button type="primary" v-if="insurance && insurance.lpFile && insurance.lpFile.fileurlFull" @click="openLinkUrl(insurance.lpFile.fileurlFull)">鐞嗚禂鏉愭枡涓�瑙堣〃</el-button>
+ </div>
</div>
<div class="box_item_list">
<div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
@@ -209,7 +213,7 @@
</div>
<div class="box_item_list_row_info">
<div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
- <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ <div v-if="insurance && insurance.lpYggxFileInfo" class="content" v-html="insurance.lpYggxFileInfo"></div>
</div>
<div class="box_item_list_row_l">
<div class="desc_data_list_item" v-for="(item, index) in form.relationFileList" :key="index">
@@ -237,7 +241,7 @@
</div>
<div class="box_item_list_row_info">
<div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
- <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ <div v-if="insurance && insurance.lpMzFileInfo" class="content" v-html="insurance.lpMzFileInfo"></div>
</div>
<div class="box_item_list_row_l">
<div class="desc_data_list_item" v-for="(item, index) in form.outpatientFileList" :key="index">
@@ -265,7 +269,7 @@
</div>
<div class="box_item_list_row_info">
<div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
- <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ <div v-if="insurance && insurance.lpZyFileInfo" class="content" v-html="insurance.lpZyFileInfo"></div>
</div>
<div class="box_item_list_row_l">
<div class="desc_data_list_item" v-for="(item, index) in form.hospitalFileList" :key="index">
@@ -293,7 +297,7 @@
</div>
<div class="box_item_list_row_info">
<div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
- <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ <div v-if="insurance && insurance.lpScFileInfo" class="content" v-html="insurance.lpScFileInfo"></div>
</div>
<div class="box_item_list_row_l">
<div class="desc_data_list_item" v-for="(item, index) in form.disabilityFileList" :key="index">
@@ -321,7 +325,7 @@
</div>
<div class="box_item_list_row_info">
<div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
- <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ <div v-if="insurance && insurance.lpYggxFileInfo" class="content" v-html="insurance.lpYggxFileInfo"></div>
</div>
<div class="box_item_list_row_l">
<div class="desc_data_list_item" v-for="(item, index) in form.otherFileList" :key="index">
@@ -419,6 +423,7 @@
import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
import OperaSettleClaimsWindow from '@/components/business/OperaSettleClaimsWindow'
import { mapState } from 'vuex'
+import { getById } from '@/api/business/insurance'
export default {
name: 'onlineReporting',
extends: BaseOpera,
@@ -520,12 +525,13 @@
]
},
pickerOptions: {
- disabledDate(time) {
- return time.getTime() > Date.now(); // 绂佺敤鏈潵鐨勬棩鏈�
+ disabledDate (time) {
+ return time.getTime() > Date.now() // 绂佺敤鏈潵鐨勬棩鏈�
}
},
area: [],
user: [],
+ insurance: null,
solutionList: []
}
},
@@ -545,6 +551,7 @@
this.user = []
this.getUser()
this.getCityTree()
+ this.insurance = {}
if (id) {
findById(id)
.then(res => {
@@ -560,12 +567,13 @@
.then(res1 => {
res1.forEach(item => {
if (item.id === res.applyDetailId) {
+ this.getInsuranceFile(item)//鑾峰彇淇濋櫓鏂规鏂囦欢璇存槑
item.active = true
this.pickerOptions = {
disabledDate (time) {
var start = new Date(item.startTime)
var end = new Date(item.endTime)
- return ( time.getTime() < start.getTime() || time.getTime()>end.getTime())
+ return (time.getTime() < start.getTime() || time.getTime() > end.getTime())
}
}
} else {
@@ -583,6 +591,9 @@
this.form.informantName = this.userInfo.realname
})
}
+ },
+ openLinkUrl(url){
+ window.open(url)
},
continueReporting () {
this.i = 0
@@ -675,6 +686,13 @@
this.form.reportFileList.splice(index, 1)
}
},
+ getInsuranceFile (obj) {
+ this.insurance = null
+ getById(obj.insuranceId,1)
+ .then(res => {
+ this.insurance = res
+ })
+ },
claimsUploadFile (file, type) {
file.fileurl = file.imgaddr
file.name = file.originname
@@ -699,27 +717,28 @@
findList({ memberId: id })
.then(res => {
this.form.insuranceApplyId = ''
- res.forEach(item=> {
- item.active = false
+ res.forEach(item => {
+ item.active = false
})
this.solutionList = res
- this.changeSolution(null,0)
+ this.changeSolution(null, 0)
})
},
changeSolution (e, i) {
this.pickerOptions = {}
- if(this.solutionList.length < i){
+ if (this.solutionList.length < i) {
return
}
this.solutionList.forEach((item, index) => {
item.active = i === index
})
const obj = this.solutionList.filter(item => item.active)[0]
+ this.getInsuranceFile(obj)
this.pickerOptions = {
disabledDate (time) {
var start = new Date(obj.startTime)
var end = new Date(obj.endTime)
- return ( time.getTime() < start.getTime() || time.getTime()>end.getTime())
+ return (time.getTime() < start.getTime() || time.getTime() > end.getTime())
}
}
this.form.insuranceApplyId = obj.applyId
@@ -751,8 +770,8 @@
}
this.$emit('success')
}).catch(err => {
- this.$tip.apiFailed(err)
- })
+ this.$tip.apiFailed(err)
+ })
.finally(() => {
this.isWorking = false
})
--
Gitblit v1.9.3