From daf76fb0807550f6e49545e10603a29e414f3b84 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 26 五月 2025 09:02:15 +0800
Subject: [PATCH] 提交
---
company/src/components/enterprise/onlineReporting.vue | 1560 +++++++++++++++++++++-----
company/src/components/business/OpearaCaseEntryWindow.vue | 16
company/src/api/business/settleRisk.js | 72 +
company/src/components/common/GlobalWindow.vue | 6
company/src/components/business/adjustment.vue | 306 +++++
company/.env.developmentCom | 2
company/src/components/business/acceptance.vue | 129 ++
company/src/views/business/settleClaims.vue | 67
company/src/components/business/additionMaterial_ba.vue | 177 +++
company/src/components/business/OperaSettleClaimsWindow.vue | 537 ++++++--
company/src/components/enterprise/onlineReportingCopy.vue | 398 ++++++
company/src/components/business/riskCaseReminder.vue | 92 +
company/src/components/business/caseProgress.vue | 57
company/.env.development | 2
14 files changed, 2,956 insertions(+), 465 deletions(-)
diff --git a/company/.env.development b/company/.env.development
index 11559e1..80d74d9 100644
--- a/company/.env.development
+++ b/company/.env.development
@@ -12,4 +12,4 @@
# VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/'
# 浠诲悍
-VUE_APP_API = 'http://192.168.0.140:10030/'
+VUE_APP_API = 'http://192.168.0.143:10030/'
diff --git a/company/.env.developmentCom b/company/.env.developmentCom
index 30914ab..a5a651b 100644
--- a/company/.env.developmentCom
+++ b/company/.env.developmentCom
@@ -9,6 +9,6 @@
# VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/'
-VUE_APP_API = 'http://192.168.0.140:10031/'
+VUE_APP_API = 'http://192.168.0.143:10031/'
# VUE_APP_API = 'https://www.yyb.red/yyb_web_api/'
diff --git a/company/src/api/business/settleRisk.js b/company/src/api/business/settleRisk.js
index 9e3af44..233f884 100644
--- a/company/src/api/business/settleRisk.js
+++ b/company/src/api/business/settleRisk.js
@@ -14,7 +14,79 @@
})
}
+// 鐞嗚禂鎶ユ
+export function saveSettleClaims (data) {
+ return request.post('/business/settleRisk/saveSettleClaims', data, {
+ trim: true
+ })
+}
+
+// 鎾ら攢鎶ユ
+export function returnSettle (data) {
+ return request.post('/business/settleRisk/returnSettle', data, {
+ trim: true
+ })
+}
+
+// 骞冲彴绔嬫鎴栭��鍥�
+export function register (data) {
+ return request.post('/business/settleRisk/register', data, {
+ trim: true
+ })
+}
+
+// 骞冲彴鍙楃悊涓氬姟
+export function acceptance (data) {
+ return request.post('/business/settleRisk/acceptance', data, {
+ trim: true
+ })
+}
+
+// 娣诲姞鎶ユ鍙�
+export function addReportNum (data) {
+ return request.post('/business/settleRisk/addReportNum', data, {
+ trim: true
+ })
+}
+
+// 娣诲姞澶囨敞
+export function addRemark (data) {
+ return request.post('/business/settleRisk/addRemark', data, {
+ trim: true
+ })
+}
+
// 鑾峰彇璇︽儏
export function getRiskConfig () {
return request.get('/business/settleRisk/getRiskConfig')
}
+
+// 鍙楃悊涓氬姟
+export function getDiscussProblemType () {
+ return request.get('/business/settleRisk/getDiscussProblemType')
+}
+
+// 琛ュ厖璇存槑
+export function saveSupplementDescribe (data) {
+ return request.post('/business/settleRisk/saveSupplementDescribe', data)
+}
+
+// 淇敼妗堜欢绫诲瀷
+export function updCaseType (data) {
+ return request.post('/business/settleRisk/updCaseType', data)
+}
+
+// 娣诲姞鏉愭枡
+export function saveSupplementFile (data) {
+ return request.post('/business/settleRisk/saveSupplementFile', data)
+}
+
+// 鐞嗚禂
+export function compensation (data) {
+ return request.post('/business/settleRisk/compensation', data)
+}
+
+// 鏍歌禂
+export function nuclearCompensation (data) {
+ return request.post('/business/settleRisk/nuclearCompensation', data)
+}
diff --git a/company/src/components/business/OpearaCaseEntryWindow.vue b/company/src/components/business/OpearaCaseEntryWindow.vue
index b88bd92..701a949 100644
--- a/company/src/components/business/OpearaCaseEntryWindow.vue
+++ b/company/src/components/business/OpearaCaseEntryWindow.vue
@@ -155,7 +155,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 7)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 7)" />
</div>
</el-form-item>
</div>
@@ -295,7 +295,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 6)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 6)" />
</div>
</el-form-item>
</div>
@@ -603,7 +603,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 1)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 1)" />
</div>
</div>
<div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
@@ -627,7 +627,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 2)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 2)" />
</div>
</div>
<div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
@@ -651,7 +651,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 3)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 3)" />
</div>
</div>
<div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
@@ -675,7 +675,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 4)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 4)" />
</div>
</div>
<div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
@@ -699,7 +699,7 @@
<span>{{ item.name }}</span>
</div>
</div>
- <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="SETTLE_FILE" @success="claimsUploadFile($event, 5)" />
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 5)" />
</div>
</div>
</div>
@@ -850,7 +850,7 @@
{ required: true, message: '涓嶈兘涓虹┖', trigger: 'blur' }
]
},
- uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder=SETTLE_FILE',
+ uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload?folder=settle',
totalPrice: 0,
list1: [],
list2: [],
diff --git a/company/src/components/business/OperaSettleClaimsWindow.vue b/company/src/components/business/OperaSettleClaimsWindow.vue
index b4b23ff..4d6201b 100644
--- a/company/src/components/business/OperaSettleClaimsWindow.vue
+++ b/company/src/components/business/OperaSettleClaimsWindow.vue
@@ -7,18 +7,37 @@
:confirm-working="isWorking"
@confirm="confirm"
>
- <div class="box">
+ <div class="box" v-if="info">
<div class="box_status">
- <div class="box_status_row" v-for="(item, index) in statusList" :key="index">
- <div v-if="statusList.length - 1 !== index" :class="item.date ? 'box_status_row_xian statusColor2' : 'box_status_row_xian'"></div>
- <div :class="item.date ? 'box_status_row_icon statusColor1' : statusList[index - 1].date ? 'box_status_row_icon statusColor2 statusColor3' : 'box_status_row_icon'">
- <span v-if="!item.date">{{index + 1}}</span>
- <i class="el-icon-check" v-else></i>
- </div>
+ <div class="box_status_row" v-for="(item, index) in info.parentStatusVOList" :key="index">
+ <div v-if="info.parentStatusVOList.length - 1 !== index" :class="item.optDate ? 'box_status_row_xian statusColor1' : 'box_status_row_xian'"></div>
+ <div :class="item.optDate ? 'box_status_row_icon statusColor1' : info.parentStatusVOList[index - 1].optDate ? 'box_status_row_icon statusColor2 statusColor3' : 'box_status_row_icon'"></div>
<div class="box_status_row_info">
- <div class="title">{{item.name}}</div>
- <div class="info" v-if="item.info">{{item.info}}</div>
- <div class="info" v-if="item.date">{{item.date}}</div>
+ <div class="title">{{item.parentTitle}}</div>
+ <div class="info" v-if="item.childTitle">{{item.childTitle}}</div>
+ <div class="info" v-if="item.optDate">{{item.optDate}}</div>
+ </div>
+ </div>
+ </div>
+ <div class="box_desc">
+ <div class="box_desc_head">
+ <div class="box_desc_title">
+ <i class="el-icon-success"></i>
+ <span class="box_desc_title_val">鐞嗙畻瀹屾垚</span>
+ </div>
+ </div>
+ <div class="box_desc_ls">
+ <span>鐞嗙畻璧斾粯閲戦鍚堣锛�</span>
+ <span>楼{{info.claimAccount + info.otherAccount}}</span>
+ </div>
+ <div class="box_desc_lslist">
+ <div class="box_desc_lslist_title">璧斾粯璇︽儏</div>
+ <div class="box_desc_lslist_l">
+ <div class="box_desc_lslist_l_row" v-for="(item, index) in JSON.parse(info.accountContent).filter(row => row.type === 0)" :key="index">
+ <span>{{item.name}}</span>
+ <span>{{item.fee}}</span>
+ <span>{{item.describe}}</span>
+ </div>
</div>
</div>
</div>
@@ -26,64 +45,82 @@
<div class="box_desc_head">
<div class="box_desc_title">
<span class="box_desc_title_val">鎶ユ璇︽儏</span>
+ <div class="box_desc_title_zt" v-if="info.statusName">{{info.statusName}}</div>
+ <div class="box_desc_title_tips" v-if="info.isRisk === 1">
+ <i class="el-icon-warning"></i>
+ <span>椋庨櫓妗堜欢</span>
+ </div>
+ <el-select v-model="info.caseType" @change="setCaseType" style="width: 100px;" placeholder="妗堜欢绫诲瀷" v-if="[9,10,11].includes(info.status)">
+ <el-option label="鍖荤枟" :value="1"></el-option>
+ <el-option label="浼ゆ畫" :value="2"></el-option>
+ <el-option label="姝讳骸" :value="3"></el-option>
+ </el-select>
</div>
<div class="box_desc_btns">
- <el-button type="danger" @click="show = true">閫�鍥�</el-button>
- <el-button type="primary">绔嬫</el-button>
- <el-button icon="el-icon-refresh-left" type="primary" circle></el-button>
- <div class="box_desc_btns_operate">
- <i class="el-icon-arrow-down"></i>
- <span>鏀惰捣</span>
- </div>
+ <template v-if="userInfo.type === 1">
+ <el-button type="danger" @click="revoke()" v-if="[1,2,3,4,5,9,7,10,11].includes(info.status)">鎾ら攢鎶ユ</el-button>
+ </template>
+ <template v-if="userInfo.type === 0">
+ <el-button type="danger" @click="returnCase" v-if="[1,2].includes(info.status)">閫�鍥�</el-button>
+ <el-button type="primary" @click="register" v-if="[1,2].includes(info.status)">绔嬫</el-button>
+ <el-button type="primary" @click="$refs.acceptance.open('妗堜欢鍙楃悊', info.id)" v-if="[3,5].includes(info.status)">鍙楃悊</el-button>
+ <el-button type="primary" @click="addRemark" v-if="![0,1,2,4,14].includes(info.status)">澶囨敞</el-button>
+ <el-button type="primary" @click="addReport(1)" v-if="[3].includes(info.status) && info.reportNumStatus === 0">娣诲姞鎶ユ鍙�</el-button>
+ <el-button type="primary" @click="addReport(2)" v-if="[9].includes(info.status) && info.reportNumStatus === 1">缂栬緫鎶ユ鍙�</el-button>
+ <el-button type="primary" @click="$refs.adjustment.open('鐞嗙畻', info.id, 1)" v-if="[9].includes(info.status)">鐞嗙畻</el-button>
+ <el-button type="primary" @click="$refs.adjustment.open('閲嶆柊鐞嗙畻', info.id, 1)" v-if="[10].includes(info.status)">閲嶆柊鐞嗙畻</el-button>
+ <el-button type="primary" @click="$refs.adjustment.open('鏍歌禂', info.id, 2)" v-if="[10].includes(info.status)">鏍歌禂</el-button>
+ <el-button type="primary" @click="supplementaryMaterials" v-if="[9].includes(info.status)">琛ュ厖鏉愭枡</el-button>
+ <el-button type="primary" @click="$refs.additionMaterial_ba.open('娣诲姞鏉愭枡', info.id)" v-if="[9,10].includes(info.status)">娣诲姞鏉愭枡</el-button>
+ </template>
+ <el-button icon="el-icon-refresh-left" type="primary" circle @click="$refs.caseProgress.open('妗堜欢杩涘害', info.settleClaimsLogList)" v-if="![0,14].includes(info.status)"></el-button>
</div>
</div>
<div class="box_desc_list">
<div class="box_desc_list_row">
- 鎶ユ鏃堕棿锛�2024-09-12 03:50
+ 鎶ユ鏃堕棿锛歿{info.createDate}}
</div>
<div class="box_desc_list_row">
- 鎶ユ鍙凤細YYBLP-2025010101
+ 鎶ユ鍙凤細{{info.reportNum}}
</div>
<div class="box_desc_list_row">
- 鎵�灞炰繚鍗曪細2984719842130 <el-button type="text">涓嬭浇淇濆崟</el-button>
+ 鎵�灞炰繚鍗曪細{{info.applyCode}}
</div>
<div class="box_desc_list_row">
- 鎶ユ浜猴細灏规檽鍑�
+ 鎶ユ浜猴細{{info.informantName}}
</div>
<div class="box_desc_list_row">
- 鎶ユ浜鸿仈绯绘柟寮忥細15556970338
+ 鎶ユ浜鸿仈绯绘柟寮忥細{{info.informantPhone}}
</div>
- <div class="box_desc_list_row">
- 淇濆徃鎶ユ鍙凤細-
- </div>
+ <div class="box_desc_list_zw"></div>
</div>
</div>
- <div class="box_fx">
+ <div class="box_fx" v-if="info.isRisk === 1">
<div class="box_fx_left">
<i class="el-icon-warning"></i>
- <span class="box_fx_left_a">娉ㄦ剰锛岃妗堜欢鏈�5鏉¢闄╀俊鎭�</span>
- <span class="box_fx_left_b">鏌ョ湅璇︽儏</span>
+ <span class="box_fx_left_a">娉ㄦ剰锛岃妗堜欢鏈墈{info.riskContent.length}}鏉¢闄╀俊鎭�</span>
+ <span class="box_fx_left_b" @click="$refs.riskCaseReminder.open('椋庨櫓妗堜欢鎻愰啋', info.riskContent)">鏌ョ湅璇︽儏</span>
</div>
- <i class="el-icon-close"></i>
+ <i class="el-icon-close" @click="info.isRisk = 0"></i>
</div>
<div class="box_desc">
<div class="box_desc_head">
<div class="box_desc_title">
<span class="box_desc_title_val">鍑洪櫓浜轰俊鎭�</span>
</div>
- <div class="box_desc_btns">
- <div class="box_desc_btns_operate">
- <i class="el-icon-arrow-down"></i>
- <span>鏀惰捣</span>
- </div>
- </div>
+<!-- <div class="box_desc_btns">-->
+<!-- <div class="box_desc_btns_operate">-->
+<!-- <i class="el-icon-arrow-down"></i>-->
+<!-- <span>鏀惰捣</span>-->
+<!-- </div>-->
+<!-- </div>-->
</div>
<div class="box_desc_list">
<div class="box_desc_list_row">
- 鍑洪櫓浜哄鍚嶏細鏉庨潤
+ 鍑洪櫓浜哄鍚嶏細{{info.memberName}}
</div>
<div class="box_desc_list_row">
- 鍑洪櫓浜鸿韩浠借瘉鍙凤細340122200603251924
+ 鍑洪櫓浜鸿韩浠借瘉鍙凤細{{info.memberIdcard}}
</div>
<div style="width: 33%; height: 0;"></div>
</div>
@@ -94,22 +131,13 @@
</div>
<div class="box_desc_f">
<div class="box_desc_fa">
- <div class="box_desc_fa_title">宸ヤ激鎰忓闄�-B绫�</div>
- <div class="box_desc_fa_row">淇濆崟鍙凤細20241225133229</div>
- <div class="box_desc_fa_row">淇濋殰鏈熼檺锛�2025-01-01锝�2025-12-31</div>
- <div class="box_desc_fa_row">鎶曚繚鍗曚綅锛歑XX淇℃伅绉戞妧鏈夐檺鍏徃</div>
- <div class="box_desc_fa_row">娲鹃仯鍗曚綅锛歑XX淇℃伅绉戞妧鏈夐檺鍏徃</div>
- <div class="box_desc_fa_row">鎵�灞炲伐绉嶏細鐢靛瓙鍣ㄦ鍒堕�犲伐</div>
+ <div class="box_desc_fa_title">{{info.solutionName}}</div>
+ <div class="box_desc_fa_row">淇濆崟鍙凤細{{info.applyCode}}</div>
+ <div class="box_desc_fa_row">淇濋殰鏈熼檺锛歿{info.baoxianStartTime}}锝瀧{info.baoxianEndTime}}</div>
+ <div class="box_desc_fa_row">鎶曚繚鍗曚綅锛歿{info.companyName}}</div>
+ <div class="box_desc_fa_row">娲鹃仯鍗曚綅锛歿{info.duName}}</div>
+ <div class="box_desc_fa_row">鎵�灞炲伐绉嶏細{{info.worktypeName}}</div>
</div>
- <div class="box_desc_fa">
- <div class="box_desc_fa_title">宸ヤ激鎰忓闄�-B绫�</div>
- <div class="box_desc_fa_row">淇濆崟鍙凤細20241225133229</div>
- <div class="box_desc_fa_row">淇濋殰鏈熼檺锛�2025-01-01锝�2025-12-31</div>
- <div class="box_desc_fa_row">鎶曚繚鍗曚綅锛歑XX淇℃伅绉戞妧鏈夐檺鍏徃</div>
- <div class="box_desc_fa_row">娲鹃仯鍗曚綅锛歑XX淇℃伅绉戞妧鏈夐檺鍏徃</div>
- <div class="box_desc_fa_row">鎵�灞炲伐绉嶏細鐢靛瓙鍣ㄦ鍒堕�犲伐</div>
- </div>
- <div style="width: 32%; height: 0;"></div>
</div>
<div class="box_desc_head">
<div class="box_desc_title">
@@ -118,34 +146,32 @@
</div>
<div class="box_desc_list">
<div class="box_desc_list_row">
- 鍑洪櫓鏃堕棿锛�2024-06-13 07:40:00
+ 鍑洪櫓鏃堕棿锛歿{info.happenTime}}
</div>
<div class="box_desc_list_row">
- 灏辫瘖鍖荤枟鏈烘瀯锛氬悎鑲ョ浜屼汉姘戝尰闄�
+ 灏辫瘖鍖荤枟鏈烘瀯锛歿{info.hospital}}
</div>
<div class="box_desc_list_row">
- 鍑虹幇鍦板尯锛氬畨寰界渷鍚堣偉甯傝偉涓滃幙
+ 鍑洪櫓鍦板尯锛歿{info.areaInfo}}
</div>
<div class="box_desc_list_row" style="width: 100%;">
- 鍑洪櫓缁忚繃锛氫笂鐝椂闂撮獞杞﹁鎾炪�傚ご閮ㄩ伃鍒版挒鍑籆T杩樻病鍑烘潵锛� 鑴氳笣杩樻湁宸﹁竟澶ц吙澶栦晶涓ラ噸鎿︿激銆�
- </div>
- <div class="box_desc_list_row">
- 浜嬫晠绫诲瀷锛氫笂涓嬬彮閫斾腑鍙椾激
- </div>
- <div class="box_desc_list_row">
- 鏄惁浣忛櫌锛氭槸
- </div>
- <div class="box_desc_list_row">
- 鏄惁鏈夊尰鐤椾繚闄╋細鏄�
+ 鍑洪櫓缁忚繃锛歿{info.content}}
</div>
<div class="box_desc_list_row" style="width: 100%;">
- 灏辫瘖绫诲瀷锛氫綇闄�
+ 浜嬫晠绫诲瀷锛歿{returnType(info.type)}}
</div>
+ <div class="box_desc_list_row">
+ 鏄惁鏈夊尰鐤椾繚闄╋細{{returnName(info.medicalInsurance)}}
+ </div>
+ <div class="box_desc_list_row">
+ 灏辫瘖绫诲瀷锛歿{returnInHospital(info.inHospital)}}
+ </div>
+ <div class="box_desc_list_zw"></div>
<div class="box_desc_list_img">
<span>浜嬫晠瑙嗛/鐓х墖锛�</span>
<div class="box_desc_list_img_files">
- <div class="box_desc_list_img_files_row">
- <img src="" alt="" />
+ <div class="box_desc_list_img_files_row" v-for="(item, index) in info.reportFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -156,12 +182,12 @@
<div class="box_desc_title">
<span class="box_desc_title_val">鐞嗚禂鏉愭枡</span>
</div>
- <div class="box_desc_btns">
- <div class="box_desc_btns_operate">
- <i class="el-icon-arrow-down"></i>
- <span>鏀惰捣</span>
- </div>
- </div>
+<!-- <div class="box_desc_btns">-->
+<!-- <div class="box_desc_btns_operate">-->
+<!-- <i class="el-icon-arrow-down"></i>-->
+<!-- <span>鏀惰捣</span>-->
+<!-- </div>-->
+<!-- </div>-->
</div>
<div class="box_desc_cailiao">
<div class="box_desc_cailiao_title">
@@ -169,8 +195,8 @@
<span>鍛樺伐鍏崇郴璇佹槑鏉愭枡</span>
</div>
<div class="box_desc_cailiao_list">
- <div class="box_desc_cailiao_list_img" v-for="(item, index) in 3" :key="index">
- <img src="" alt="" />
+ <div class="box_desc_cailiao_list_img" v-for="(item, index) in info.relationFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -180,8 +206,8 @@
<span>闂ㄨ瘖</span>
</div>
<div class="box_desc_cailiao_list">
- <div class="box_desc_cailiao_list_img" v-for="(item, index) in 3" :key="index">
- <img src="" alt="" />
+ <div class="box_desc_cailiao_list_img" v-for="(item, index) in info.outpatientFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -191,8 +217,8 @@
<span>浣忛櫌</span>
</div>
<div class="box_desc_cailiao_list">
- <div class="box_desc_cailiao_list_img" v-for="(item, index) in 3" :key="index">
- <img src="" alt="" />
+ <div class="box_desc_cailiao_list_img" v-for="(item, index) in info.hospitalFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -202,8 +228,8 @@
<span>浼ゆ畫</span>
</div>
<div class="box_desc_cailiao_list">
- <div class="box_desc_cailiao_list_img" v-for="(item, index) in 3" :key="index">
- <img src="" alt="" />
+ <div class="box_desc_cailiao_list_img" v-for="(item, index) in info.disabilityFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -213,8 +239,8 @@
<span>鍏朵粬鏉愭枡</span>
</div>
<div class="box_desc_cailiao_list">
- <div class="box_desc_cailiao_list_img" v-for="(item, index) in 3" :key="index">
- <img src="" alt="" />
+ <div class="box_desc_cailiao_list_img" v-for="(item, index) in info.otherFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -224,8 +250,8 @@
<span>琛ュ厖鏉愭枡</span>
</div>
<div class="box_desc_cailiao_list">
- <div class="box_desc_cailiao_list_img" v-for="(item, index) in 3" :key="index">
- <img src="" alt="" />
+ <div class="box_desc_cailiao_list_img" v-for="(item, index) in info.supplementFileList" :key="index">
+ <img :src="item.fileurlFull" alt="img" />
</div>
</div>
</div>
@@ -242,53 +268,45 @@
<el-button type="primary" @click="show = false">纭畾閫�鍥�</el-button>
</span>
</el-dialog>
+ <!-- 椋庨櫓妗堜欢鎻愰啋 -->
+ <RiskCaseReminder ref="riskCaseReminder" />
+ <!-- 妗堜欢杩涘害 -->
+ <CaseProgress ref="caseProgress" />
+ <!-- 鍙楃悊 -->
+ <Acceptance ref="acceptance" @success="getDetail" />
+ <!-- 娣诲姞鏉愭枡 -->
+ <AdditionMaterial_ba ref="additionMaterial_ba" @success="getDetail" />
+ <!-- 鐞嗙畻 -->
+ <adjustment ref="adjustment" @success="getDetail" />
</GlobalWindow>
</template>
<script>
-
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
+import { findById, returnSettle } from '@/api/business/settleClaims'
+import {
+ register,
+ addReportNum,
+ addRemark,
+ saveSupplementDescribe,
+ updCaseType } from '@/api/business/settleRisk'
+import RiskCaseReminder from '@/components/business/riskCaseReminder'
+import CaseProgress from '@/components/business/caseProgress'
+import Acceptance from '@/components/business/acceptance'
+import AdditionMaterial_ba from '@/components/business/additionMaterial_ba'
+import adjustment from '@/components/business/adjustment'
import { mapState } from 'vuex'
+
export default {
name: 'OperaSettleClaimsWindow',
extends: BaseOpera,
- components: { GlobalWindow },
+ components: { GlobalWindow, RiskCaseReminder, CaseProgress, Acceptance, AdditionMaterial_ba, adjustment },
data () {
return {
show: false,
- statusList: [
- {
- name: '鎶ユ',
- info: '宸叉姤妗�',
- date: '2025-03-03 12:31'
- },
- {
- name: '绔嬫',
- info: '寰呯珛妗�',
- date: ''
- },
- {
- name: '鍙楃悊',
- info: '',
- date: ''
- },
- {
- name: '鐞嗙畻',
- info: '',
- date: ''
- },
- {
- name: '鏍歌禂',
- info: '',
- date: ''
- },
- {
- name: '缁撴',
- info: '',
- date: ''
- }
- ]
+ info: null,
+ id: null
}
},
computed: {
@@ -301,7 +319,186 @@
})
},
methods: {
+ open (title, id) {
+ this.title = title
+ this.id = id
+ this.getDetail()
+ },
+ setCaseType(e) {
+ updCaseType({ id: this.id, caseType: e })
+ .then(res => {
+ this.getDetail()
+ })
+ },
+ supplementaryMaterials() {
+ this.$prompt('琛ュ厖璇存槑', '琛ュ厖鏉愭枡', {
+ confirmButtonText: '鎻愪氦',
+ cancelButtonText: '鍙栨秷',
+ inputPattern: /^(?:.|\n)+$/,
+ inputErrorMessage: '琛ュ厖璇存槑涓嶈兘涓虹┖锛�',
+ beforeClose: (action, instance, done) => {
+ if (action === 'confirm') {
+ instance.confirmButtonLoading = true;
+ saveSupplementDescribe({ id: this.id, describe: instance.inputValue })
+ .finally(() => {
+ done();
+ instance.confirmButtonLoading = false;
+ })
+ } else {
+ done();
+ }
+ }
+ }).then(({ value }) => {
+ this.getDetail()
+ }).catch(() => {
+ });
+ },
+ addRemark() {
+ this.$prompt('澶囨敞', '娣诲姞澶囨敞', {
+ confirmButtonText: '娣诲姞',
+ cancelButtonText: '鍙栨秷',
+ inputPattern: /^(?:.|\n)+$/,
+ inputErrorMessage: '澶囨敞涓嶈兘涓虹┖锛�',
+ beforeClose: (action, instance, done) => {
+ if (action === 'confirm') {
+ instance.confirmButtonLoading = true;
+ addRemark({ id: this.id, describe: instance.inputValue })
+ .finally(() => {
+ done();
+ instance.confirmButtonLoading = false;
+ })
+ } else {
+ done();
+ }
+ }
+ }).then(({ value }) => {
+ this.getDetail()
+ }).catch(() => {
+
+ });
+ },
+ addReport(type) {
+ this.$prompt(`鎶ユ鍙穈, `${type === 1 ? '娣诲姞鎶ユ鍙�' : '缂栬緫鎶ユ鍙�'}`, {
+ confirmButtonText: '娣诲姞',
+ cancelButtonText: '鍙栨秷',
+ inputPattern: /^(?:.|\n)+$/,
+ inputErrorMessage: '鎶ユ鍙蜂笉鑳戒负绌猴紒',
+ beforeClose: (action, instance, done) => {
+ if (action === 'confirm') {
+ instance.confirmButtonLoading = true;
+ addReportNum({ id: this.id, reportNum: instance.inputValue })
+ .finally(() => {
+ done();
+ instance.confirmButtonLoading = false;
+ })
+ } else {
+ done();
+ }
+ }
+ }).then(({ value }) => {
+ this.getDetail()
+ }).catch(() => {
+
+ });
+ },
+ register() {
+ this.$prompt('绔嬫璇存槑', '绔嬫', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ beforeClose: (action, instance, done) => {
+ if (action === 'confirm') {
+ instance.confirmButtonLoading = true;
+ register({ id: this.id, describe: instance.inputValue, registerStatus: 3 })
+ .finally(() => {
+ done();
+ instance.confirmButtonLoading = false;
+ })
+ } else {
+ done();
+ }
+ }
+ }).then(({ value }) => {
+ this.getDetail()
+ }).catch(() => {
+
+ });
+ },
+ returnCase() {
+ this.$prompt('閫�鍥炶鏄�', '閫�鍥�', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ inputPattern: /^(?:.|\n)+$/,
+ inputErrorMessage: '閫�鍥炶鏄庝笉鑳戒负绌猴紒',
+ beforeClose: (action, instance, done) => {
+ if (action === 'confirm') {
+ instance.confirmButtonLoading = true;
+ register({ id: this.id, describe: instance.inputValue, registerStatus: 4 })
+ .finally(() => {
+ done();
+ instance.confirmButtonLoading = false;
+ })
+ } else {
+ done();
+ }
+ }
+ }).then(({ value }) => {
+ this.getDetail()
+ }).catch(() => {
+
+ });
+ },
+ getDetail() {
+ findById(this.id)
+ .then(res => {
+ res.riskContent = JSON.parse(res.riskContent)
+ this.info = res
+ this.visible = true
+ })
+ },
+ // 鎾ら攢
+ revoke(id) {
+ this.$confirm('鎾ら攢鍚庯紝妗堜欢鐩存帴缁撴潫锛屾棤娉曠户缁繘琛岀悊璧旀搷浣滐紒', '鏄惁鎾ら攢鎶ユ锛�', {
+ confirmButtonText: '纭畾鎾ら攢',
+ cancelButtonText: '鎴戝啀鎯虫兂',
+ type: 'warning'
+ }).then(() => {
+ returnSettle({ id: this.info.id })
+ .then(res => {
+ this.getDetail()
+ })
+ }).catch(() => {
+
+ });
+ },
+ returnInHospital(type) {
+ switch (type) {
+ case 0:
+ return '浣忛櫌'
+ case 1:
+ return '闂ㄨ瘖'
+ }
+ },
+ returnName(type) {
+ switch (type) {
+ case 0:
+ return '鏄�'
+ case 1:
+ return '鍚�'
+ }
+ },
+ returnType(type) {
+ switch (type) {
+ case 0:
+ return '宸ヤ綔鏈熼棿鍙椾激'
+ case 1:
+ return '涓婁笅鐝�斾腑鍙椾激'
+ case 2:
+ return '闈炲伐浣滄椂闂村彈浼�'
+ case 3:
+ return '鎰忓鍙椾激'
+ }
+ }
}
}
</script>
@@ -320,21 +517,23 @@
.box_status_row {
width: 200px;
display: flex;
- align-items: start;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
position: relative;
.box_status_row_xian {
position: absolute;
- right: 30px;
- top: 10px;
- width: calc(100% - 110px);
+ right: -55px;
+ top: 5px;
+ width: calc(100% - 80px);
height: 1px;
background-color: #BEBEBE;
}
.statusColor1 {
- background-color: #E8F4FF !important;
+ background-color: #165DFF !important;
}
.statusColor2 {
- background-color: #165DFF !important;
+ border: 1px solid #0052D9 !important;
}
.statusColor3 {
span {
@@ -342,14 +541,13 @@
}
}
.box_status_row_icon {
- width: 28px;
- height: 28px;
- background-color: rgba(242,243,245,1);
+ width: 8px;
+ height: 8px;
+ border: 1px solid #C5C5C5;
+ border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
- border-radius: 50%;
- margin-right: 10px;
span {
color: rgba(78,89,105,1);
font-size: 14px;
@@ -360,7 +558,10 @@
}
.box_status_row_info {
display: flex;
+ align-items: center;
+ justify-content: center;
flex-direction: column;
+ margin-top: 10px;
.title {
color: rgba(78,89,105,1);
font-size: 16px;
@@ -369,7 +570,7 @@
.info {
color: rgba(154,154,154,1);
font-size: 14px;
- margin-top: 5px;
+ margin-top: 10px;
}
}
}
@@ -420,6 +621,64 @@
}
}
}
+ .box_desc_ls {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 15px;
+ span {
+ &:nth-child(1) {
+ color: rgba(0,0,0,1);
+ font-size: 16px;
+ }
+ &:nth-child(2) {
+ color: rgba(255,162,63,1);
+ font-size: 16px;
+ }
+ }
+ }
+ .box_desc_lslist {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ margin-bottom: 40px;
+ .box_desc_lslist_title {
+ color: rgba(0,0,0,1);
+ font-size: 16px;
+ margin-bottom: 15px;
+ }
+ .box_desc_lslist_l {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ padding-left: 50px;
+ box-sizing: border-box;
+ .box_desc_lslist_l_row {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 13px;
+ &:last-child {
+ margin: 0 !important;
+ }
+ span {
+ &:nth-child(1) {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ &:nth-child(2) {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin: 0 30px;
+ }
+ &:nth-child(3) {
+ color: rgba(108,108,108,1);
+ font-size: 14px;
+ }
+ }
+ }
+ }
+ }
.box_desc_head {
width: 100%;
display: flex;
@@ -429,6 +688,11 @@
.box_desc_title {
display: flex;
align-items: center;
+ .el-icon-success {
+ font-size: 20px;
+ color: #34C758;
+ margin-right: 10px;
+ }
.box_desc_title_val {
color: rgba(16,16,16,1);
font-size: 18px;
@@ -455,6 +719,11 @@
align-items: center;
justify-content: center;
background-color: rgba(254,226,225,1);
+ margin-right: 20px;
+ .el-icon-warning {
+ color: #FF4D4F;
+ margin-right: 5px;
+ }
span {
color: #FF4D4F;
font-size: 12px;
@@ -486,6 +755,10 @@
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
+ .box_desc_list_zw {
+ width: 33%;
+ height: 0;
+ }
.box_desc_list_row {
width: 33%;
color: rgba(16,16,16,1);
diff --git a/company/src/components/business/acceptance.vue b/company/src/components/business/acceptance.vue
new file mode 100644
index 0000000..dac1c75
--- /dev/null
+++ b/company/src/components/business/acceptance.vue
@@ -0,0 +1,129 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="500px"
+ text="鍚屾剰鍙楃悊"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <el-form :model="form" ref="form" :rules="form.status === 0 ? rules : rules1" label-position="top">
+ <el-form-item label="" prop="status">
+ <el-radio-group v-model="form.status" @change="changeStatus">
+ <el-radio :label="0">鍚屾剰</el-radio>
+ <el-radio :label="1">鎷掔粷</el-radio>
+ <el-radio :label="2">鍟嗚瀹℃壒</el-radio>
+ <el-radio :label="3">鍟嗚涓嶅鎵�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <el-form-item label="璇存槑" prop="describe">
+ <el-input
+ type="textarea"
+ :rows="5"
+ placeholder="璇疯緭鍏ヨ鏄�"
+ v-model="form.describe" />
+ </el-form-item>
+ <el-form-item label="闂绫诲瀷" prop="problem" v-if="[2,3].includes(form.status)">
+ <el-checkbox-group v-model="form.problem" @change="changeProblem">
+ <el-checkbox :label="item" v-for="(item, index) in problemList" :key="index"></el-checkbox>
+ </el-checkbox-group>
+ </el-form-item>
+ </el-form>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ import { acceptance, getDiscussProblemType } from '@/api/business/settleRisk'
+ export default {
+ name: 'acceptance',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ form: {
+ id: null,
+ status: 0,
+ describe: '',
+ syProblemOpts: '',
+ problem: []
+ },
+ problemList: [],
+ rules: {
+ problem: [
+ { required: true, message: '涓嶈兘涓虹┖', trigger: 'blur' }
+ ]
+ },
+ rules1: {
+ problem: [
+ { required: true, message: '涓嶈兘涓虹┖', trigger: 'blur' }
+ ],
+ describe: [
+ { required: true, message: '涓嶈兘涓虹┖', trigger: 'blur' }
+ ]
+ }
+ }
+ },
+ methods: {
+ open(title, id) {
+ this.title = title
+ this.form.id = id
+ getDiscussProblemType()
+ .then(res => {
+ console.log(res)
+ this.problemList = res
+ })
+ this.visible = true
+ },
+ changeStatus() {
+ this.$nextTick(() => {
+ this.$refs.form.clearValidate();
+ })
+ },
+ changeProblem(e) {
+ if (!e || e.length === 0) {
+ this.form.syProblemOpts = ''
+ } else {
+ this.form.syProblemOpts = e.join(',')
+ }
+ },
+ confirm() {
+ this.$refs.form.validate((valid) => {
+ if (!valid) {
+ return
+ }
+ this.isWorking = true
+ acceptance(this.form)
+ .then(() => {
+ this.visible = false
+ this.$tip.apiSuccess('鍙楃悊鎴愬姛')
+ this.$emit('success')
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ })
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .a {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ .b {
+ color: rgba(154,154,154,1);
+ font-size: 14px;
+ margin: 10px 0;
+ }
+ .c {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+</style>
diff --git a/company/src/components/business/additionMaterial_ba.vue b/company/src/components/business/additionMaterial_ba.vue
new file mode 100644
index 0000000..b7107ee
--- /dev/null
+++ b/company/src/components/business/additionMaterial_ba.vue
@@ -0,0 +1,177 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="50%"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <div class="box">
+ <el-form :model="form" :rules="rules" ref="form">
+ <el-form-item label="鏉愭枡" prop="supplementFileList">
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.supplementFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 1)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 1)" />
+ </div>
+ </el-form-item>
+ </el-form>
+ </div>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ import upload from '@/components/common/upload'
+ import { saveSupplementFile } from '@/api/business/settleRisk'
+ export default {
+ name: 'additionMaterial_ba',
+ extends: BaseOpera,
+ components: { GlobalWindow, upload },
+ data () {
+ return {
+ form: {
+ id: null,
+ supplementFileList: []
+ },
+ rules: {
+ supplementFileList: [
+ { required: true, message: '鑷冲皯涓婁紶涓�涓潗鏂�', trigger: 'blur' }
+ ]
+ }
+ }
+ },
+ methods: {
+ open (title, id) {
+ this.title = title
+ this.form.id = id
+ this.form.supplementFileList = []
+ this.visible = true
+ },
+ delFile (index) {
+ this.form.supplementFileList.splice(index, 1)
+ },
+ claimsUploadFile(file) {
+ file.fileurl = file.imgaddr
+ file.name = file.originname
+ file.fileurlFull = file.url
+ this.form.supplementFileList.push(file)
+ },
+ confirm() {
+ this.$refs.form.validate((valid) => {
+ if (!valid) return
+ this.isWorking = true
+ saveSupplementFile(this.form)
+ .then(() => {
+ this.visible = false
+ this.$tip.apiSuccess('娣诲姞鎴愬姛')
+ this.$emit('success')
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ })
+ }
+ }
+ }
+</script>
+
+<style scoped lang="scss">
+ .box {
+ width: 100%;
+ .box_item_list_row_l {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ .desc_data_list_item {
+ width: 100px;
+ height: 100px;
+ padding: 10px;
+ box-sizing: border-box;
+ border: 1px solid #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ margin-bottom: 10px;
+ margin-left: 10px;
+ &:first-child {
+ margin-left: 0 !important;
+ }
+ .desc_data_list_item_dele {
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ font-size: 14px;
+ cursor: pointer;
+ color: rgba(249, 86, 1, 0.996078431372549);
+ }
+ .desc_data_list_item_upload {
+ flex: 1;
+ height: 80px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .desc_data_list_item_img {
+ flex-shrink: 0;
+ width: 70px;
+ height: 70px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ margin-right: 10px;
+ .el-icon-folder-opened {
+ font-size: 34px;
+ color: #666666;
+ }
+ .el-icon-plus {
+ font-size: 26px;
+ color: #ffffff;
+ }
+ img {
+ width: 100%;
+ }
+ video {
+ width: 100%;
+ }
+ }
+ .desc_data_list_item_info {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ word-break: break-all;
+ span {
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 14px;
+ color: black;
+ }
+ }
+ }
+ }
+ }
+</style>
diff --git a/company/src/components/business/adjustment.vue b/company/src/components/business/adjustment.vue
new file mode 100644
index 0000000..3a87412
--- /dev/null
+++ b/company/src/components/business/adjustment.vue
@@ -0,0 +1,306 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="100%"
+ :text="`${type === 1 ? '瀹屾垚鐞嗙畻' : '瀹屾垚鏍歌禂'}`"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <div class="box">
+ <el-form :model="form" ref="ruleForm" label-width="150px" class="demo-ruleForm">
+ <div class="box_item">
+ <div class="box_item_desc">涓昏璧斾粯椤�</div>
+ <div class="box_item_list">
+ <div class="box_item_list_row" style="width: 100%;" v-for="(item, index) in list1" :key="index">
+ <el-form-item :label="item.name">
+ <div style="display: flex; flex-direction: column;">
+ <el-input v-model="item.fee" @input="changeFee" type="number" placeholder="璇疯緭鍏ラ噾棰�"></el-input>
+ <el-input v-model="item.describe" placeholder="璇疯緭鍏ヨ垂鐢ㄨ鏄�"></el-input>
+ </div>
+ </el-form-item>
+ </div>
+ </div>
+ <div class="box_item_desc">鍏朵粬璧斾粯椤�</div>
+ <div class="box_item_list">
+ <div class="box_item_list_row" style="width: 50%;" v-for="(item, index) in list2" :key="index">
+ <el-form-item :label="item.name">
+ <div style="display: flex; flex-direction: column;">
+ <el-input v-model="item.fee" @input="changeFee" type="number" placeholder="璇疯緭鍏ラ噾棰�"></el-input>
+ <el-input v-model="item.describe" placeholder="璇疯緭鍏ヨ垂鐢ㄨ鏄�"></el-input>
+ </div>
+ </el-form-item>
+ </div>
+ </div>
+ <div class="price">
+ <span>璧斾粯閲戦鍚堣</span>
+ <span>楼{{totalPrice}}</span>
+ </div>
+ </div>
+ </el-form>
+ </div>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ import { compensation, getCompensation, nuclearCompensation } from '@/api/business/settleRisk'
+ export default {
+ name: 'acceptance',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ form: {
+ id: null
+ },
+ type: '',
+ list1: [],
+ list2: [],
+ totalPrice: 0
+ }
+ },
+ methods: {
+ open (title, id, type) {
+ this.type = type
+ this.title = title
+ this.form.id = id
+ getCompensation({ type, id: this.form.id })
+ .then(res => {
+ res.forEach(item => {
+ if (!item.fee) {
+ item.fee = 0
+ }
+ })
+ this.list1 = res.filter(item => item.type === 0)
+ this.list2 = res.filter(item => item.type === 1)
+ this.changeFee()
+ this.visible = true
+ })
+ },
+ changeFee() {
+ let arr = [...this.list1, ...this.list2]
+ let price = 0
+ arr.forEach(item => {
+ if (item.fee) {
+ price += Number(item.fee)
+ }
+ })
+ this.totalPrice = price
+ },
+ confirm() {
+ let arr = [...this.list1, ...this.list2]
+ for (let i = 0; i < arr.length; i++) {
+ if (!arr[i].fee && arr[i].fee !== 0) {
+ return this.$message.warning(`璇峰厛瀹屽杽${arr[i].name}閲戦`)
+ }
+ }
+ this.isWorking = true
+ let compensationJson = JSON.stringify(arr)
+ if (this.type === 1) {
+ compensation({ id: this.form.id, compensationJson })
+ .then(() => {
+ this.visible = false
+ this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
+ this.$emit('success')
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ } else if (this.type === 2) {
+ nuclearCompensation({ id: this.form.id, compensationJson })
+ .then(() => {
+ this.visible = false
+ this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
+ this.$emit('success')
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ }
+
+ }
+ }
+ }
+</script>
+
+<style scoped lang="scss">
+ .box {
+ width: 100%;
+ .box_item {
+ width: 100%;
+ margin-bottom: 30px;
+ .box_item_title {
+ width: 100%;
+ margin-bottom: 15px;
+ span {
+ color: rgba(16,16,16,1);
+ font-size: 16px;
+ margin-right: 10px;
+ }
+ }
+ .box_item_desc {
+ width: 100%;
+ padding-left: 50px;
+ box-sizing: border-box;
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-bottom: 15px;
+ }
+ .price {
+ width: 100%;
+ height: 62px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-radius: 4px;
+ background-color: rgba(239,239,239,1);
+ margin-top: 50px;
+ padding: 0 20px;
+ box-sizing: border-box;
+ span {
+ &:nth-child(1) {
+ color: rgba(16,16,16,1);
+ font-size: 18px;
+ }
+ &:nth-child(2) {
+ color: rgba(255,149,2,1);
+ font-size: 22px;
+ }
+ }
+ }
+ .button {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: end;
+ margin-top: 15px;
+ .button_submit {
+ width: 108px;
+ height: 38px;
+ line-height: 38px;
+ text-align: center;
+ border-radius: 4px;
+ color: rgba(255,255,255,1);
+ font-size: 14px;
+ background-color: rgba(31,99,255,1);
+ }
+ }
+ .box_item_list {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ .box_item_list_rowx {
+ width: 33.3%;
+ height: 0;
+ }
+ .box_item_list_row {
+ width: 33.3%;
+ .box_item_list_row_l {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ .desc_data_list_item {
+ width: 100px;
+ height: 100px;
+ padding: 10px;
+ box-sizing: border-box;
+ border: 1px solid #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ margin-bottom: 10px;
+ margin-left: 10px;
+ &:first-child {
+ margin-left: 0 !important;
+ }
+ .desc_data_list_item_dele {
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ font-size: 14px;
+ cursor: pointer;
+ color: rgba(249, 86, 1, 0.996078431372549);
+ }
+ .desc_data_list_item_upload {
+ flex: 1;
+ height: 80px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .desc_data_list_item_img {
+ flex-shrink: 0;
+ width: 70px;
+ height: 70px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ margin-right: 10px;
+ .el-icon-folder-opened {
+ font-size: 34px;
+ color: #666666;
+ }
+ .el-icon-plus {
+ font-size: 26px;
+ color: #ffffff;
+ }
+ img {
+ width: 100%;
+ }
+ video {
+ width: 100%;
+ }
+ }
+ .desc_data_list_item_info {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ word-break: break-all;
+ span {
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 14px;
+ color: black;
+ }
+ }
+ }
+ }
+ .box_item_list_row_title {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 20px;
+ .x {
+ width: 1px;
+ height: 14px;
+ background-color: rgba(255,255,255,1);
+ border: 4px solid rgba(22,93,255,1);
+ margin-right: 10px;
+ }
+ span {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ }
+ }
+ }
+ }
+ }
+</style>
diff --git a/company/src/components/business/caseProgress.vue b/company/src/components/business/caseProgress.vue
new file mode 100644
index 0000000..62e8ff3
--- /dev/null
+++ b/company/src/components/business/caseProgress.vue
@@ -0,0 +1,57 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="50%"
+ :withFooter="false"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ >
+ <el-timeline reverse>
+ <el-timeline-item v-for="(item, index) in list" :key="index" :hide-timestamp="true">
+ <div style="display: flex; flex-direction: column;">
+ <span class="a">{{item.title}}</span>
+ <span class="b">{{item.creatorName}} {{item.companyName || '骞冲彴鐞嗚禂鍛�'}} {{item.createDate }}</span>
+ <span class="c">璇存槑锛歿{item.content}}</span>
+ </div>
+ </el-timeline-item>
+ </el-timeline>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ export default {
+ name: 'caseProgress',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ list: []
+ }
+ },
+ methods: {
+ open(title, target) {
+ this.title = title
+ this.list = target
+ this.visible = true
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .a {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ .b {
+ color: rgba(154,154,154,1);
+ font-size: 14px;
+ margin: 10px 0;
+ }
+ .c {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+</style>
diff --git a/company/src/components/business/riskCaseReminder.vue b/company/src/components/business/riskCaseReminder.vue
new file mode 100644
index 0000000..235254e
--- /dev/null
+++ b/company/src/components/business/riskCaseReminder.vue
@@ -0,0 +1,92 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="500px"
+ :withFooter="false"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <div class="box">
+ <div class="box_row" v-for="(item, index) in list" :key="index">
+ <div class="box_row_icon">
+ <i class="el-icon-warning"></i>
+ </div>
+ <div class="box_row_content">
+ <div class="box_row_content_title">{{item.title}}</div>
+ <div class="box_row_content_desc">{{item.info}}</div>
+ </div>
+ </div>
+ </div>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+
+ export default {
+ name: 'riskCaseReminder',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ list: []
+ }
+ },
+ methods: {
+ async open(title, target) {
+ this.title = title
+ this.list = target
+ this.visible = true
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .box {
+ width: 100%;
+ .box_row {
+ width: 100%;
+ padding: 15px;
+ box-sizing: border-box;
+ background-color: #ececec;
+ border-radius: 10px;
+ display: flex;
+ align-items: center;
+ background-color: rgba(239,239,239,1);
+ margin-bottom: 15px;
+ &:last-child {
+ margin: 0 !important;
+ }
+ .box_row_icon {
+ flex-shrink: 0;
+ width: 34px;
+ height: 34px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 17px;
+ background-color: rgba(251,115,115,0.29);
+ .el-icon-warning {
+ color: #FB7373;
+ font-size: 19px;
+ }
+ }
+ .box_row_content {
+ flex: 1;
+ .box_row_content_title {
+ color: rgba(16,16,16,1);
+ font-size: 16px;
+ }
+ .box_row_content_desc {
+ color: rgba(154,154,154,1);
+ font-size: 12px;
+ margin-top: 9px;
+ }
+ }
+ }
+ }
+</style>
diff --git a/company/src/components/common/GlobalWindow.vue b/company/src/components/common/GlobalWindow.vue
index 298b468..0952112 100644
--- a/company/src/components/common/GlobalWindow.vue
+++ b/company/src/components/common/GlobalWindow.vue
@@ -21,7 +21,7 @@
<div v-if="withFooter" class="window__footer">
<slot name="footer">
<el-button @click="confirm" :loading="confirmWorking" type="primary">{{text}}</el-button>
- <el-button @click="close">杩斿洖</el-button>
+ <el-button @click="close">{{goText}}</el-button>
</slot>
</div>
</el-drawer>
@@ -45,6 +45,10 @@
type: String,
default: '纭畾'
},
+ goText: {
+ type: String,
+ default: '杩斿洖'
+ },
// 纭鎸夐挳loading鐘舵��
confirmWorking: {
type: Boolean,
diff --git a/company/src/components/enterprise/onlineReporting.vue b/company/src/components/enterprise/onlineReporting.vue
index a44e8a6..221ffe6 100644
--- a/company/src/components/enterprise/onlineReporting.vue
+++ b/company/src/components/enterprise/onlineReporting.vue
@@ -2,139 +2,407 @@
<GlobalWindow
:title="title"
width="100%"
+ :withFooter="false"
:visible.sync="visible"
:confirm-working="isWorking"
@confirm="confirm"
>
- <el-form :model="form" ref="form" :rules="rules">
- <el-form-item label="鍑洪櫓浜哄鍚�" prop="memberId" v-if="!form.id">
- <el-select v-model="form.memberId" filterable @change="getSolutions" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in user"
- :key="item.id"
- :label="item.name + ' - ' + item.idcardNo"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="淇濋櫓鏂规" prop="solutionId" v-if="!form.id">
- <div style="display: flex; align-items: center;">
- <span>{{form.solutionName}}</span>
- <el-button type="primary" @click="openS" style="margin-left: 10px;">閫夋嫨鏂规</el-button>
+ <div class="box">
+ <div class="box_status">
+ <div class="box_status_row" v-for="(item, index) in statusList" :key="index">
+ <div :class="index <= i ? 'box_status_row_icon statusColor2 statusColor3' : 'box_status_row_icon'">
+ <span>{{index + 1}}</span>
+ </div>
+ <div class="box_status_row_info">
+ <div class="title">{{item.name}}</div>
+ <div class="info">{{item.info}}</div>
+ </div>
</div>
- </el-form-item>
- <el-form-item label="娲鹃仯鍗曚綅" prop="duId" v-if="form.duName && !form.id">
- <span>{{form.duName}}</span>
- </el-form-item>
- <el-form-item label="鎵�灞炲伐绉�" prop="worktypeId" v-if="form.worktypeName && !form.id">
- <span>{{form.worktypeName}}</span>
- </el-form-item>
- <el-form-item label="浜嬫晠鍙戠敓鏃堕棿" prop="happenTime" v-if="!form.id">
- <el-date-picker
- v-model="form.happenTime"
- type="datetime"
- format="yyyy-MM-dd HH:mm:ss"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="閫夋嫨鏃ユ湡鏃堕棿">
- </el-date-picker>
- </el-form-item>
- <el-form-item label="灏辫瘖鍖荤枟鏈烘瀯" prop="hospital" v-if="!form.id">
- <el-input v-model="form.hospital" placeholder="璇疯緭鍏�"></el-input>
- </el-form-item>
- <el-form-item label="鍑洪櫓鍦板尯" prop="areaId">
- <el-cascader
- v-model="form.areaId"
- :options="area"
- :props="{ value: 'id', label: 'name', children: 'childAreasList' }"
- @change="handleChange" />
- </el-form-item>
- <el-form-item label="浜嬫晠绫诲瀷" prop="type">
- <el-radio-group v-model="form.type">
- <el-radio :label="0">宸ヤ綔鏈熼棿鍙椾激</el-radio>
- <el-radio :label="1">涓婁笅鐝�斾腑鍙椾激</el-radio>
- <el-radio :label="2">闈炲伐浣滄椂闂村彈浼�</el-radio>
- <el-radio :label="3">鎰忓鍙椾激</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="鏄惁浣忛櫌" prop="inHospital">
- <el-radio-group v-model="form.inHospital">
- <el-radio :label="0">鏄�</el-radio>
- <el-radio :label="1">鍚�</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="鏄惁鏈夊尰鐤椾繚闄�" prop="medicalInsurance">
- <el-radio-group v-model="form.medicalInsurance">
- <el-radio :label="0">鏄�</el-radio>
- <el-radio :label="1">鍚�</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="浜嬫晠鎻忚堪" prop="content" v-if="!form.id">
- <el-input type="textarea" :rows="5" placeholder="璇疯緭鍏ュ唴瀹�" v-model="form.content"></el-input>
- </el-form-item>
- <el-form-item label="涓婁紶浜嬫晠瑙嗛/鐓х墖" prop="list" v-if="!form.id">
- <upload :list="form.list" :accept="'.mp4,.jpg,.png,.jpeg'" folder="settle" @dele="deleFile" @success="getData" />
- </el-form-item>
- <el-form-item label="鎶ユ浜哄鍚�" prop="informantName">
- <el-input v-model="form.informantName" placeholder="璇疯緭鍏�"></el-input>
- </el-form-item>
- <el-form-item label="鎶ユ浜鸿仈绯绘柟寮�" prop="informantPhone">
- <el-input maxlength="11" v-model="form.informantPhone" placeholder="璇疯緭鍏�"></el-input>
- </el-form-item>
- </el-form>
- <!-- 寮圭獥鎻愰啋 -->
- <el-dialog
- title="娓╅Θ鎻愮ず"
- :modal="false"
- :close-on-click-modal="false"
- :show-close="false"
- :visible.sync="centerDialogVisible"
- width="50%"
- center>
- <div class="fuwenben" style="font-size: 12px">
- 灏婃暚鐨勫鎴凤細
-
- 棣栧厛鎰熻阿鎮ㄥ浜庢垜浠殑淇′换涓庢敮鎸侊紝鎴戜滑寰堣崳骞告垚涓鸿吹鍙哥殑淇濋櫓鍜ㄨ鏈嶅姟鍟嗭紒
-
- 閴翠簬杩戞湡鍑虹幇涓埆瀹㈡埛瀛樺湪锛氬綋澶╂姇淇濆綋澶╁嚭闄╋紙鍗冲厛鍑哄伐浼ゆ垨鎰忓銆佸啀杩涜鎶曚繚鎿嶄綔锛夌殑涓埆璇堥獥淇濋櫓閲戠殑妗堜緥锛岄敊璇娇鐢ㄢ�滃嵆鏃剁敓鏁堚�濇潯娆俱�傞拡瀵规绉嶆儏鍐垫湰鍏徃閮戦噸鍛婄煡鍚勪綅瀹㈡埛:
-
- 1.璇堥獥淇濋櫓閲戠殑琛屼负灞炰簬杩濇硶琛屼负,涓�鏃﹀彂鐜�,鏈叕鍙稿皢鎻愪氦鍏畨鏈哄叧澶勭悊骞朵繚鐣欒拷绌舵硶寰嬭矗浠伙紱
-
- 2.涓轰簡椤哄埄鐞嗚禂缁撴,鎸夌収淇濋櫓鍏徃鐨勭悊璧斿鏌ヨ姹�,褰撳ぉ鎶曚繚褰撳ぉ鍑洪櫓闇�瑕佹彁渚涘嚭闄╃洃鎺ц棰戞垨鑰呰兘浣愯瘉鍏蜂綋鏃堕棿鐐圭殑浠讳綍璇佹嵁锛�
-
- 3.璇锋偍娣卞埢鐞嗚В淇濋櫓涓�滃瀹炲憡鐭モ�濈殑鎶曚繚浜轰箟鍔★紝鎴戜滑鑷村姏浜庝负鎮ㄨ浆绉荤敤宸ラ闄╁拰娉曞緥椋庨櫓銆備絾杩欎竴鍒囩殑鍓嶆彁鏄細鍚堣鍚堟硶鍚堢悊銆�
-
- 闄勪欢涓�锛�
-
- 銆婁腑鍗庝汉姘戝叡鍜屽浗鍒戞硶銆嬬涓�鐧句節鍗佸叓鏉� 銆愪繚闄╄瘓楠楃姜銆戞湁涓嬪垪鎯呭舰涔嬩竴锛岃繘琛屼繚闄╄瘓楠楁椿鍔紝鏁伴杈冨ぇ鐨勶紝澶勪簲骞翠互涓嬫湁鏈熷緬鍒戞垨鑰呮嫎褰癸紝 骞跺涓�涓囧厓浠ヤ笂鍗佷竾鍏冧互涓嬬綒閲戯紱鏁伴宸ㄥぇ鎴栬�呮湁鍏朵粬涓ラ噸鎯呰妭鐨勶紝澶勪簲骞翠互涓婂崄骞翠互涓嬫湁鏈熷緬鍒戯紝骞跺浜屼竾鍏冧互涓婁簩鍗佷竾鍏冧互涓嬬綒閲戯紱鏁伴鐗瑰埆宸ㄥぇ鎴栬�呮湁鍏朵粬鐗瑰埆涓ラ噸鎯呰妭鐨勶紝澶勫崄骞翠互涓婃湁鏈熷緬 鍒戯紝骞跺浜屼竾鍏冧互涓婁簩鍗佷竾鍏冧互涓嬬綒閲戞垨鑰呮病鏀惰储浜э細
-
- 锛堜竴锛夋姇淇濅汉鏁呮剰铏氭瀯淇濋櫓鏍囩殑锛岄獥鍙栦繚闄╅噾鐨勶紱
-
- 锛堜簩锛夋姇淇濅汉銆佽淇濋櫓浜烘垨鑰呭彈鐩婁汉瀵瑰彂鐢熺殑淇濋櫓浜嬫晠缂栭�犺櫄鍋囩殑鍘熷洜鎴栬�呭じ澶ф崯澶辩殑绋嬪害锛岄獥鍙栦繚闄╅噾鐨勶紱
-
- 锛堜笁锛夋姇淇濅汉銆佽淇濋櫓浜烘垨鑰呭彈鐩婁汉缂栭�犳湭鏇惧彂鐢熺殑淇濋櫓浜嬫晠锛岄獥鍙栦繚闄╅噾鐨勶紱
-
- 锛堝洓锛夋姇淇濅汉銆佽淇濋櫓浜烘晠鎰忛�犳垚璐骇鎹熷け鐨勪繚闄╀簨鏁咃紝楠楀彇淇濋櫓閲戠殑锛�
-
- 锛堜簲锛夋姇淇濅汉銆佸彈鐩婁汉鏁呮剰閫犳垚琚繚闄╀汉姝讳骸銆佷激娈嬫垨鑰呯柧鐥咃紝楠楀彇淇濋櫓閲戠殑銆�
-
- 鏈夊墠娆剧鍥涢」銆佺浜旈」鎵�鍒楄涓猴紝鍚屾椂鏋勬垚鍏朵粬鐘姜鐨勶紝渚濈収鏁扮姜骞剁綒鐨勮瀹氬缃氥�� 鍗曚綅鐘涓�娆剧姜鐨勶紝瀵瑰崟浣嶅垽澶勭綒閲戯紝骞跺鍏剁洿鎺ヨ礋璐g殑涓荤浜哄憳鍜� 鍏朵粬鐩存帴璐d换浜哄憳锛屽浜斿勾浠ヤ笅鏈夋湡寰掑垜鎴栬�呮嫎褰癸紱鏁伴宸ㄥぇ鎴栬�呮湁 鍏朵粬涓ラ噸鎯呰妭鐨勶紝澶勪簲骞翠互涓婂崄骞翠互涓嬫湁鏈熷緬鍒戯紱鏁伴鐗瑰埆宸ㄥぇ鎴栬�� 鏈夊叾浠栫壒鍒弗閲嶆儏鑺傜殑锛屽鍗佸勾浠ヤ笂鏈夋湡寰掑垜銆� 淇濋櫓浜嬫晠鐨勯壌瀹氫汉銆佽瘉鏄庝汉銆佽储浜ц瘎浼颁汉鏁呮剰鎻愪緵铏氬亣鐨勮瘉鏄庢枃浠讹紝涓轰粬浜鸿瘓楠楁彁渚涙潯浠剁殑锛屼互淇濋櫓璇堥獥鐨勫叡鐘澶勩��
-
- 闄勪欢浜岋細
-
- 銆婁腑鍗庝汉姘戝叡鍜屽浗淇濋櫓娉曘�嬬浜屽崄涓冩潯 鏈彂鐢熶繚闄╀簨鏁咃紝琚繚闄╀汉鎴栬�呭彈鐩婁汉璋庣О鍙戠敓浜嗕繚闄╀簨鏁咃紝鍚戜繚闄╀汉鎻愬嚭璧斿伩鎴栬�呯粰浠樹繚闄╅噾璇锋眰鐨勶紝淇濋櫓浜烘湁鏉冭В闄ゅ悎鍚岋紝骞朵笉閫�杩樹繚闄╄垂銆�
-
- 鎶曚繚浜恒�佽淇濋櫓浜烘晠鎰忓埗閫犱繚闄╀簨鏁呯殑锛屼繚闄╀汉鏈夋潈瑙i櫎鍚堝悓锛屼笉鎵挎媴璧斿伩鎴栬�呯粰浠樹繚闄╅噾鐨勮矗浠伙紱闄ゆ湰娉曠鍥涘崄涓夋潯瑙勫畾澶栵紝涓嶉��杩樹繚闄╄垂銆�
-
- 淇濋櫓浜嬫晠鍙戠敓鍚庯紝鎶曚繚浜恒�佽淇濋櫓浜烘垨鑰呭彈鐩婁汉浠ヤ吉閫犮�佸彉閫犵殑鏈夊叧璇佹槑銆佽祫鏂欐垨鑰呭叾浠栬瘉鎹紝缂栭�犺櫄鍋囩殑浜嬫晠鍘熷洜鎴栬�呭じ澶ф崯澶辩▼搴︾殑锛屼繚闄╀汉瀵瑰叾铏氭姤鐨勯儴鍒嗕笉鎵挎媴璧斿伩鎴栬�呯粰浠樹繚闄╅噾鐨勮矗浠汇��
-
- 鎶曚繚浜恒�佽淇濋櫓浜烘垨鑰呭彈鐩婁汉鏈夊墠涓夋瑙勫畾琛屼负涔嬩竴锛岃嚧浣夸繚闄� 浜烘敮浠樹繚闄╅噾鎴栬�呮敮鍑鸿垂鐢ㄧ殑锛屽簲褰撴挙閿�鎴栬�呰禂鍋裤��
</div>
- <span slot="footer" class="dialog-footer">
- <el-button type="primary" @click="centerDialogVisible = false">鎴戝凡鐭ユ檽</el-button>
- </span>
- </el-dialog>
- <!-- 閫夋嫨淇濋櫓鏂规 -->
- <selectSolutions ref="selectSolutions" @success="getVal" />
+ <el-form :model="form" :rules="rules" ref="form" label-width="130px" class="demo-ruleForm">
+ <template v-if="i === 0">
+ <div class="box_desc">
+ <div class="box_desc_head">
+ <div class="box_desc_title">
+ <span class="box_desc_title_val">鍑洪櫓浜轰俊鎭�</span>
+ </div>
+ </div>
+ <div class="box_desc_list">
+ <div class="box_desc_list_row" style="margin: 0;">
+ <el-form-item label="鍑洪櫓浜�" prop="memberId">
+ <el-select v-model="form.memberId" filterable @change="getSolutions" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in user"
+ :key="item.id"
+ :label="item.name + ' - ' + item.idcardNo"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row" style="margin: 0;">
+ <el-form-item label="璇佷欢鍙风爜" prop="idcardNo">
+ <el-input v-model="form.idcardNo" disabled></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_ZW"></div>
+ </div>
+ </div>
+ <div class="box_desc">
+ <div class="box_desc_head" v-if="solutionList.length > 0">
+ <div class="box_desc_title">
+ <span class="box_desc_title_val">淇濋櫓鏂规</span>
+ </div>
+ </div>
+ <div class="box_desc_f" v-if="solutionList.length > 0">
+ <div class="box_desc_fa" v-for="(item, index) in solutionList" :key="index">
+ <div class="box_desc_fa_title">
+ <span @click="jumpSolutionDetail(item.applyId, item.solutionType)">{{item.solutionName}}</span>
+ <el-checkbox v-model="item.active" @change="changeSolution($event, index)"></el-checkbox>
+ </div>
+ <div class="box_desc_fa_row">淇濆崟鍙凤細{{item.applyCode}}</div>
+ <div class="box_desc_fa_row">淇濋殰鏈熼檺锛歿{item.parentStartTime}}锝瀧{item.parentEndTime}}</div>
+ <div class="box_desc_fa_row">鎶曚繚鍗曚綅锛歿{item.companyName}}</div>
+ <div class="box_desc_fa_row">娲鹃仯鍗曚綅锛歿{item.duName}}</div>
+ <div class="box_desc_fa_row">鎵�灞炲伐绉嶏細{{item.workTypeName}}</div>
+ </div>
+ <div style="width: 32%; height: 0;"></div>
+ </div>
+ <div class="box_desc_head">
+ <div class="box_desc_title">
+ <span class="box_desc_title_val">鍑洪櫓淇℃伅</span>
+ </div>
+ </div>
+ <div class="box_desc_list">
+ <div class="box_desc_list_row">
+ <el-form-item label="鍑洪櫓鏃堕棿" prop="happenTime">
+ <el-date-picker
+ v-model="form.happenTime"
+ type="datetime"
+ :disabled="!form.insuranceApplyId"
+ :picker-options="pickerOptions"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ placeholder="閫夋嫨鏃ユ湡">
+ </el-date-picker>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row">
+ <el-form-item label="灏辫瘖鍖荤枟鏈烘瀯" prop="hospital">
+ <el-input v-model="form.hospital" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row">
+ <el-form-item label="鍑洪櫓鍦板尯" prop="areaId">
+ <div style="width: 100%; display: flex; align-items: center;">
+ <el-cascader
+ v-model="form.area"
+ :options="area"
+ ref="cascader"
+ @change="changeArea"
+ :props="{ label: 'name', children: 'childAreasList', value: 'id' }"/>
+ <el-input v-model="form.address" placeholder="璇疯緭鍏ヨ缁嗗湴鍧�"></el-input>
+ </div>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row" style="width: 100%;">
+ <el-form-item label="鍑洪櫓缁忚繃" prop="content">
+ <el-input v-model="form.content" placeholder="璇疯緭鍏�" type="textarea" :autosize="{ minRows: 2, maxRows: 6}"></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row" style="width: 100%;">
+ <el-form-item label="浜嬫晠绫诲瀷" prop="type">
+ <el-radio-group v-model="form.type">
+ <el-radio :label="0">宸ヤ綔鏈熼棿鍙椾激</el-radio>
+ <el-radio :label="1">涓婁笅鐝�斾腑鍙椾激</el-radio>
+ <el-radio :label="2">闈炲伐浣滄椂闂村彈浼�</el-radio>
+ <el-radio :label="3">鎰忓鍙椾激</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row" style="width: 100%;">
+ <el-form-item label="灏辫瘖绫诲瀷" prop="inHospital">
+ <el-radio-group v-model="form.inHospital">
+ <el-radio :label="0">浣忛櫌</el-radio>
+ <el-radio :label="1">闂ㄨ瘖</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row">
+ <el-form-item label="鏄惁浼ゆ畫" prop="hurtType">
+ <el-radio-group v-model="form.hurtType">
+ <el-radio :label="0">鏄�</el-radio>
+ <el-radio :label="1">鍚�</el-radio>
+ <el-radio :label="2">寰呯‘瀹�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row" style="width: 100%;">
+ <el-form-item label="鏄惁鏈夊尰淇�" prop="medicalInsurance">
+ <el-radio-group v-model="form.medicalInsurance">
+ <el-radio :label="0">鏄�</el-radio>
+ <el-radio :label="1">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_img">
+ <span>浜嬫晠瑙嗛/鐓х墖锛�</span>
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.reportFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 6)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 6)" />
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="box_desc">
+ <div class="box_desc_head">
+ <div class="box_desc_title">
+ <span class="box_desc_title_val">鎶ユ浜轰俊鎭�</span>
+ </div>
+ </div>
+ <div class="box_desc_list">
+ <div class="box_desc_list_row">
+ <el-form-item label="鎶ユ浜哄鍚�" prop="informantName">
+ <el-input v-model="form.informantName" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row">
+ <el-form-item label="鎶ユ浜鸿仈绯绘柟寮�" prop="informantPhone">
+ <el-input v-model="form.informantPhone" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_ZW"></div>
+ </div>
+ </div>
+ </template>
+ <template v-if="i === 1">
+ <div class="box_info">
+ <i class="el-icon-info"></i>
+ <div class="box_info_title">
+ <span>閲嶈鎻愮ず</span>
+ <span>鈥� 涓嶅悓淇濋櫓浜у搧鐞嗚禂鏉愭枡鏈夋墍涓嶅悓</span>
+ <span>鈥� 涓婁紶鏉愭枡鍓嶆敞鎰忎娇鐢ㄧ洊绔犳枃浠舵ā鐗堝拰鏌ョ湅鐞嗚禂鏉愭枡涓�瑙堣〃</span>
+ </div>
+ </div>
+ <div class="box_item">
+ <div class="box_item_title">
+ <span>鐞嗚禂鏉愭枡</span>
+ </div>
+ <div class="box_item_list">
+ <div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
+ <div class="box_item_list_row_title">
+ <div class="x"></div>
+ <span>鍛樺伐鍏崇郴璇佹槑鏉愭枡</span>
+ </div>
+ <div class="box_item_list_row_info">
+ <div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
+ <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ </div>
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.relationFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 1)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 1)" />
+ </div>
+ </div>
+ <div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
+ <div class="box_item_list_row_title">
+ <div class="x"></div>
+ <span>闂ㄨ瘖</span>
+ </div>
+ <div class="box_item_list_row_info">
+ <div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
+ <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ </div>
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.outpatientFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 2)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 2)" />
+ </div>
+ </div>
+ <div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
+ <div class="box_item_list_row_title">
+ <div class="x"></div>
+ <span>浣忛櫌</span>
+ </div>
+ <div class="box_item_list_row_info">
+ <div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
+ <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ </div>
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.hospitalFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 3)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 3)" />
+ </div>
+ </div>
+ <div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
+ <div class="box_item_list_row_title">
+ <div class="x"></div>
+ <span>浼ゆ畫</span>
+ </div>
+ <div class="box_item_list_row_info">
+ <div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
+ <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ </div>
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.disabilityFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 4)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 4)" />
+ </div>
+ </div>
+ <div class="box_item_list_row" style="width: 100%; margin-bottom: 30px;">
+ <div class="box_item_list_row_title">
+ <div class="x"></div>
+ <span>鍏朵粬</span>
+ </div>
+ <div class="box_item_list_row_info">
+ <div class="label">鏂囦欢涓婁紶璇存槑锛�</div>
+ <div class="content">闇�涓婁紶鐨勬枃浠讹細鍔冲姩鍚堝悓澶嶅嵃浠躲�佸伐璧勬祦姘淬�佽�冨嫟璁板綍銆佽韩浠借瘉姝e弽闈€�侊紱</div>
+ </div>
+ <div class="box_item_list_row_l">
+ <div class="desc_data_list_item" v-for="(item, index) in form.otherFileList" :key="index">
+ <div class="desc_data_list_item_dele" @click="delFile(index, 5)">鍒犻櫎</div>
+ <div class="desc_data_list_item_img" v-if="item.type === 0">
+ <img :src="item.fileurlFull" alt="img"/>
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 1">
+ <video controls :src="item.fileurlFull" />
+ </div>
+ <div class="desc_data_list_item_img" v-if="item.type === 2">
+ <i class="el-icon-folder-opened"></i>
+ </div>
+ <div class="desc_data_list_item_info">
+ <span>{{ item.name }}</span>
+ </div>
+ </div>
+ <upload width="100px" height="100px" :list="[]" accept=".png,.jpg,.jpeg,.mp4,.word,.xlsx,.xls,.pdf,.excel" folder="settle" @success="claimsUploadFile($event, 5)" />
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="box_desc">
+ <div class="box_desc_head">
+ <div class="box_desc_title">
+ <span class="box_desc_title_val">鏀舵淇℃伅</span>
+ <div class="box_desc_title_tips1">
+ <i class="el-icon-info"></i>
+ <span class="box_desc_title_tips_text">娉ㄦ剰鏀舵閾惰杈撳叆寮�鎴锋敮琛屽悕绉�</span>
+ </div>
+ </div>
+ </div>
+ <div class="box_desc_list">
+ <div class="box_desc_list_row">
+ <el-form-item label="鏀舵閾惰" prop="receiveBank">
+ <el-input v-model="form.receiveBank" placeholder="璇疯緭鍏ユ敹娆鹃摱琛屾敮琛屽悕绉�"></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row">
+ <el-form-item label="鏀舵浜�" prop="receiveUserName">
+ <el-input v-model="form.receiveUserName" placeholder="璇疯緭鍏ュ紑鎴峰鍚�"></el-input>
+ </el-form-item>
+ </div>
+ <div class="box_desc_list_row">
+ <el-form-item label="鏀舵璐﹀彿" prop="receiveAccount">
+ <el-input v-model="form.receiveAccount" placeholder="璇疯緭鍏ラ摱琛岃处鍙�"></el-input>
+ </el-form-item>
+ </div>
+ </div>
+ </div>
+ </template>
+ <template v-if="i === 2">
+ <div class="box_success">
+ <div class="box_success_icon">
+ <i class="el-icon-check"></i>
+ </div>
+ <div class="box_success_title">鎻愪氦鎴愬姛</div>
+ <div class="box_success_info">璇风瓑寰呯珛妗�</div>
+ <div class="box_success_btns">
+ <el-button @click="continueReporting">缁х画鎶ユ</el-button>
+ <el-button type="primary" @click="$refs.operaSettleClaimsWindow.open('鎶ユ璇︽儏', id)">鏌ョ湅璇︽儏</el-button>
+ </div>
+ </div>
+ </template>
+ </el-form>
+ <div class="box_footer">
+ <div class="box_footer_btns" v-if="i === 0">
+ <el-button type="primary" @click="confirm(0)">鏆傚瓨</el-button>
+ <el-button type="primary" @click="next">涓嬩竴姝�</el-button>
+ </div>
+ <div class="box_footer_btns" v-if="i === 1">
+ <el-button @click="i--">涓婁竴姝�</el-button>
+ <el-button type="primary" @click="confirm(0)">鏆傚瓨</el-button>
+ <el-button type="primary" @click="confirm(1)">鎻愪氦</el-button>
+ </div>
+ </div>
+ </div>
+ <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" />
+ <OperaWtbApplyShopWindow ref="OperaWtbApplyShopWindow" />
+ <!-- 璇︽儏 -->
+ <OperaSettleClaimsWindow ref="operaSettleClaimsWindow"/>
</GlobalWindow>
</template>
@@ -142,79 +410,119 @@
import BaseOpera from '@/components/base/BaseOpera'
import GlobalWindow from '@/components/common/GlobalWindow'
import upload from '@/components/common/upload'
- import selectSolutions from '@/components/enterprise/selectSolutions'
+ import { saveSettleClaims } from '@/api/business/settleRisk'
+ import { findById } from '@/api/business/settleClaims'
import { findListByDTO } from '@/api/business/member'
import { findList } from '@/api/business/applyChange'
- import { findTreeList } from '@/api/system/common'
- import { create, updateById } from '@/api/business/settleClaims'
+ import { findTreeList } from '@/api/business/knowledge'
+ import OperaWtbApplyShopWindow from '@/components/business/OperaWtbApplyShopWindow'
+ import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow'
+ import OperaSettleClaimsWindow from '@/components/business/OperaSettleClaimsWindow'
+ import { mapState } from 'vuex'
export default {
name: 'onlineReporting',
extends: BaseOpera,
- components: { GlobalWindow, upload, selectSolutions },
+ components: { GlobalWindow, upload, OperaSettleClaimsWindow, OperaWtbApplyShopWindow, OperaInsuranceApplyDetails },
+ computed: {
+ ...mapState(['userInfo'])
+ },
data () {
return {
+ i: 0,
+ id: null,
+ statusList: [
+ {
+ name: '濉啓鍑洪櫓淇℃伅',
+ info: '瀹屾垚鎶ユ鍩虹淇℃伅濉啓'
+ },
+ {
+ name: '涓婁紶鐞嗚禂鏉愭枡',
+ info: '琛ュ厖闇�瑕佺悊璧旂殑鐩稿叧璧勬枡'
+ },
+ {
+ name: '瀹屾垚鎶ユ',
+ info: '鎻愪氦鎶ユ淇℃伅'
+ }
+ ],
form: {
id: null,
- insuranceApplyId: '',
memberId: '',
- solutionId: '',
- solutionName: '',
- duId: '',
- duName: '',
- worktypeId: '',
- worktypeName: '',
+ idcardNo: '',
+ insuranceApplyId: '',
happenTime: '',
hospital: '',
+ area: [],
areaId: '',
+ address: '',
areaInfo: '',
+ content: '',
type: 0,
inHospital: 0,
+ hurtType: 0,
medicalInsurance: 0,
- content: '',
+ reportFileList: [],
informantName: '',
informantPhone: '',
- list: [],
- reportFileList: []
+
+ relationFileList: [],
+ outpatientFileList: [],
+ hospitalFileList: [],
+ disabilityFileList: [],
+ otherFileList: [],
+
+ applyDetailId: '',
+ solutionId: '',
+ worktypeId: '',
+ duId: '',
+ receiveBank: '',
+ receiveUserName: '',
+ receiveAccount: ''
},
rules: {
+ receiveAccount: [
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
+ receiveUserName: [
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
+ receiveBank: [
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
memberId: [
- { required: true, message: '璇烽�夋嫨鍑洪櫓浜�' }
+ { required: true, message: '涓嶈兘涓虹┖' }
],
- solutionId: [
- { required: true, message: '璇烽�夋嫨淇濋櫓鏂规' }
- ],
- duId: [
- { required: true, message: '璇烽�夋嫨娲鹃仯鍗曚綅' }
- ],
- worktypeId: [
- { required: true, message: '璇烽�夋嫨鎵�灞炲伐绉�' }
+ idcardNo: [
+ { required: true, message: '涓嶈兘涓虹┖' }
],
happenTime: [
- { required: true, message: '璇烽�夋嫨浜嬫晠鍙戠敓鏃堕棿' }
- ],
- type: [
- { required: true, message: '璇烽�夋嫨浜嬫晠绫诲瀷' }
- ],
- inHospital: [
- { required: true, message: '璇烽�夋嫨鏄惁浣忛櫌' }
- ],
- medicalInsurance: [
- { required: true, message: '璇烽�夋嫨鏄惁鏈夊尰鐤椾繚闄�' }
+ { required: true, message: '涓嶈兘涓虹┖' }
],
content: [
- { required: true, message: '璇疯緭鍏ヤ簨鏁呮弿杩�' }
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
+ type: [
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
+ inHospital: [
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
+ hurtType: [
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
+ medicalInsurance: [
+ { required: true, message: '涓嶈兘涓虹┖' }
],
informantName: [
- { required: true, message: '璇疯緭鍏ユ姤妗堜汉濮撳悕' }
+ { required: true, message: '涓嶈兘涓虹┖' }
],
informantPhone: [
- { required: true, message: '璇疯緭鍏ユ姤妗堜汉鑱旂郴鏂瑰紡' }
- ]
+ { required: true, message: '涓嶈兘涓虹┖' }
+ ],
},
- centerDialogVisible: false,
+ pickerOptions: {},
+ area: [],
user: [],
- options: [],
- area: []
+ solutionList: []
}
},
created () {
@@ -224,112 +532,121 @@
})
},
methods: {
- open (title, target) {
+ open (title, id) {
this.title = title
- this.visible = true
- this.form.list = []
- this.form.reportFileList = []
+ this.form.area = []
+ this.i = 0
+ this.solutionList = []
+ this.area = []
+ this.user = []
this.getUser()
- this.getArea()
- // 鏂板缓
- if (target == null) {
+ this.getCityTree()
+ if (id) {
+ findById(id)
+ .then(res => {
+ this.visible = true
+ this.$nextTick(() => {
+ for (const key in this.form) {
+ this.form[key] = res[key]
+ }
+ if (this.form.areaId) {
+ this.form.area = this.form.areaId.split(',').map(item => Number(item))
+ }
+ findList({ memberId: this.form.memberId })
+ .then(res1 => {
+ res1.forEach(item => {
+ if (item.id === res.applyDetailId) {
+ item.active = true
+ this.pickerOptions = {
+ disabledDate(time) {
+ return time.getTime() < new Date(item.parentStartTime).getTime() || time.getTime() > new Date(item.parentEndTime).getTime()
+ }
+ };
+ } else {
+ item.active = false
+ }
+ })
+ this.solutionList = res1
+ })
+ })
+ })
+ } else {
+ this.visible = true
this.$nextTick(() => {
this.$refs.form.resetFields()
- this.form[this.configData['field.id']] = null
- setTimeout(() => {
- this.centerDialogVisible = true
- }, 300)
+ this.form.informantName = this.userInfo.realname
})
- return
}
- // 缂栬緫
- this.$nextTick(() => {
- for (const key in this.form) {
- this.form[key] = target[key]
- }
- })
},
- handleTreeData(data) {
- for (var i = 0; i < data.length; i++) {
- if (data[i].childAreasList.length < 1) {
- data[i].childAreasList = undefined; // 鐪嬪悗绔繑鐨勬槸child瀛楁杩樻槸children瀛楁锛岃嚜琛屾敼鍙�
- } else {
- this.handleTreeData(data[i].childAreasList) // children鑻ヤ笉涓虹┖鏁扮粍锛屽垯缁х画 閫掑綊璋冪敤 鏈柟娉�
- }
+ continueReporting() {
+ this.i = 0
+ this.id = null
+ this.pickerOptions = {}
+ this.solutionList = []
+ this.form = {
+ id: null,
+ memberId: '',
+ idcardNo: '',
+ insuranceApplyId: '',
+ happenTime: '',
+ hospital: '',
+ area: [],
+ areaId: '',
+ address: '',
+ areaInfo: '',
+ content: '',
+ type: 0,
+ inHospital: 0,
+ hurtType: 0,
+ medicalInsurance: 0,
+ reportFileList: [],
+ informantName: '',
+ informantPhone: '',
+
+ relationFileList: [],
+ outpatientFileList: [],
+ hospitalFileList: [],
+ disabilityFileList: [],
+ otherFileList: [],
+
+ applyDetailId: '',
+ solutionId: '',
+ worktypeId: '',
+ duId: '',
+ receiveBank: '',
+ receiveUserName: '',
+ receiveAccount: ''
}
- return data;
},
- __confirmEdit () {
- this.$refs.form.validate((valid) => {
- if (!valid) {
- return
- }
- // 璋冪敤鏂板缓鎺ュ彛
- this.isWorking = true
- let obj = JSON.parse(JSON.stringify(this.form))
- obj.areaId = obj.areaId.join(',')
- updateById(obj)
- .then(() => {
- this.visible = false
- this.$tip.apiSuccess('淇敼鎴愬姛')
- this.$emit('success')
- })
- .catch(e => {
- this.$tip.apiFailed(e)
- })
- .finally(() => {
- this.isWorking = false
- })
- })
- },
- __confirmCreate () {
- this.$refs.form.validate((valid) => {
- if (!valid) {
- return
- }
- // 璋冪敤鏂板缓鎺ュ彛
- this.isWorking = true
- let obj = JSON.parse(JSON.stringify(this.form))
- if (obj.areaId) {
- obj.areaId = obj.areaId.join(',')
- }
- create(obj)
- .then(() => {
- this.visible = false
- this.$tip.apiSuccess('鏂板缓鎴愬姛')
- this.$emit('success')
- })
- .catch(e => {
- this.$tip.apiFailed(e)
- })
- .finally(() => {
- this.isWorking = false
- })
- })
- },
- // 鏌ヨ鍖哄煙鏁版嵁
- getArea() {
- findTreeList({})
- .then(res => {
- this.area = this.handleTreeData(res)
- })
- },
- getVal(e) {
- console.log(e)
- this.form.insuranceApplyId = e.applyId
- this.form.solutionId = e.solutionId
- this.form.solutionName = e.solutionName
- this.form.duId = e.duId
- this.form.duName = e.duName
- this.form.worktypeId = e.worktypeId
- this.form.worktypeName = e.worktypeName
- },
- openS() {
- if (!this.form.memberId) {
- this.$message.warning('璇峰厛閫夋嫨鍑洪櫓浜�')
- return
+ changeArea(e) {
+ if (!e && e.length === 0) {
+ this.form.areaId = ''
+ this.form.areaInfo = ''
+ } else {
+ this.form.areaId = e.join(',')
+ this.form.areaInfo = this.$refs.cascader.getCheckedNodes()[0].pathLabels.join(',')
}
- this.$refs.selectSolutions.open('閫夋嫨淇濋櫓鏂规', this.form.memberId)
+ },
+ async getCityTree() {
+ this.area = await findTreeList({})
+ this.setSecondLevelChildrenToNullPrecise(this.area);
+ },
+ setSecondLevelChildrenToNullPrecise(data, level = 1) {
+ if (!data || !data.length) return;
+
+ data.forEach(item => {
+ if (item.childAreasList && item.childAreasList.length) {
+ if (level === 2) {
+ // 杩欐槸绗竴绾ц妭鐐癸紝澶勭悊鍏跺瓙鑺傜偣锛堢浜岀骇锛�
+ item.childAreasList.forEach(child => {
+ child.childAreasList = null;
+ });
+ } else {
+ // 缁х画閫掑綊澶勭悊鏇存繁灞傜骇
+ this.setSecondLevelChildrenToNullPrecise(item.childAreasList, level + 1);
+ }
+ }
+ });
},
getUser() {
findListByDTO({})
@@ -337,62 +654,687 @@
this.user = res
})
},
- getSolutions(id) {
- findList({ memberId: id })
- .then(res => {
- this.form.solutionId = ''
- this.form.worktypeId = ''
- this.form.duId = ''
- this.options = res
- })
- },
- getTreeName(list, id){
- let _this = this
- for (let i = 0; i < list.length; i++) {
- let a = list[i]
- if (a.id === id) {
- return a.name
- } else {
- if (a.childAreasList && a.childAreasList.length > 0) {
- let res = _this.getTreeName(a.childAreasList, id)
- if (res) {
- return res
- }
- }
- }
+ delFile(index, type) {
+ if (type === 1) {
+ this.form.relationFileList.splice(index, 1)
+ } else if (type === 2) {
+ this.form.outpatientFileList.splice(index, 1)
+ } else if (type === 3) {
+ this.form.hospitalFileList.splice(index, 1)
+ } else if (type === 4) {
+ this.form.disabilityFileList.splice(index, 1)
+ } else if (type === 5) {
+ this.form.otherFileList.splice(index, 1)
+ } else if (type === 6) {
+ this.form.reportFileList.splice(index, 1)
}
},
- handleChange(value) {
- let info = ''
- value.forEach(item => {
- info += this.getTreeName(this.area, item)
- })
- this.form.areaInfo = info
+ claimsUploadFile(file, type) {
+ file.fileurl = file.imgaddr
+ file.name = file.originname
+ file.fileurlFull = file.url
+ if (type === 1) {
+ this.form.relationFileList.push(file)
+ } else if (type === 2) {
+ this.form.outpatientFileList.push(file)
+ } else if (type === 3) {
+ this.form.hospitalFileList.push(file)
+ } else if (type === 4) {
+ this.form.disabilityFileList.push(file)
+ } else if (type === 5) {
+ this.form.otherFileList.push(file)
+ } else if (type === 6) {
+ this.form.reportFileList.push(file)
+ }
},
- getData(data) {
- this.form.list.push(data)
- this.form.reportFileList.push({
- fileurl: data.imgaddr,
- name: data.originname,
- type: data.type
- })
+ getSolutions(id) {
+ let row = this.user.filter(item => item.id === id)
+ this.form.idcardNo = row[0].idcardNo
+ findList({ memberId: id })
+ .then(res => {
+ this.form.insuranceApplyId = ''
+ res.forEach(item => {
+ item.active = false
+ })
+ this.solutionList = res
+ })
},
- deleFile(index) {
- this.form.reportFileList.splice(index, 1)
- this.form.list.splice(index, 1)
+ changeSolution(e, i) {
+ this.solutionList.forEach((item, index) => {
+ item.active = i === index
+ })
+ let obj = this.solutionList.filter(item => item.active)[0]
+ this.form.insuranceApplyId = obj.applyId
+ this.form.solutionId = obj.solutionId
+ this.form.worktypeId = obj.worktypeId
+ this.form.duId = obj.duId
+ this.form.applyDetailId = obj.id
+ this.form.happenTime = ''
+ this.pickerOptions = {
+ disabledDate(time) {
+ return time.getTime() < new Date(obj.parentStartTime).getTime() || time.getTime() > new Date(obj.parentEndTime).getTime()
+ }
+ };
+ },
+ // 鏌ョ湅淇濆崟璇︽儏
+ jumpSolutionDetail(id, solutionType) {
+ if (solutionType === 1) {
+ this.$refs.OperaWtbApplyShopWindow.open('濮旀墭鎶曚繚璇︽儏', { id: id })
+ } else {
+ this.$refs.OperaInsuranceApplyDetails.open('鎶曚繚璇︽儏', { id: id })
+ }
+ },
+ confirm(saveType) {
+ this.isWorking = true
+ saveSettleClaims({...this.form, saveType})
+ .then(res => {
+ console.log(res)
+ if (saveType === 0) {
+ this.visible = false
+ } else {
+ this.id = res
+ this.i = 2
+ }
+ this.$emit('success')
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ },
+ next() {
+ this.$refs.form.validate((valid) => {
+ if (!valid) return
+ this.i++
+ // this.isWorking = true
+ // createSys(obj)
+ // .then(() => {
+ // this.visible = false
+ // this.$emit('success')
+ // })
+ // .catch(e => {
+ // this.$tip.apiFailed(e)
+ // })
+ // .finally(() => {
+ // this.isWorking = false
+ // })
+ })
}
}
}
</script>
<style lang="scss" scoped>
- .fuwenben {
+ .box {
width: 100%;
- height: 400px;
- font-size: 16px;
- color: black;
- overflow-y: scroll;
- word-break: break-all;
- overflow-wrap: break-word;
+ .box_info {
+ width: 100%;
+ padding: 15px 21px;
+ box-sizing: border-box;
+ display: flex;
+ align-items: start;
+ margin-bottom: 30px;
+ background-color: rgba(240,246,254,1);
+ i {
+ color: #165DFF;
+ font-size: 18px;
+ margin-right: 8px;
+ }
+ .box_info_title {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ span {
+ &:nth-child(1) {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ &:nth-child(2) {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-top: 12px;
+ }
+ &:nth-child(3) {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-top: 12px;
+ }
+ }
+ }
+ }
+ .box_item {
+ width: 100%;
+ margin-bottom: 30px;
+ .box_item_title {
+ width: 100%;
+ margin-bottom: 15px;
+ span {
+ color: rgba(16,16,16,1);
+ font-size: 16px;
+ margin-right: 10px;
+ }
+ }
+ .box_item_desc {
+ width: 100%;
+ padding-left: 50px;
+ box-sizing: border-box;
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-bottom: 15px;
+ }
+ .price {
+ width: 100%;
+ height: 62px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-radius: 4px;
+ background-color: rgba(239,239,239,1);
+ margin-top: 50px;
+ padding: 0 20px;
+ box-sizing: border-box;
+ span {
+ &:nth-child(1) {
+ color: rgba(16,16,16,1);
+ font-size: 18px;
+ }
+ &:nth-child(2) {
+ color: rgba(255,149,2,1);
+ font-size: 22px;
+ }
+ }
+ }
+ .button {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: end;
+ margin-top: 15px;
+ .button_submit {
+ width: 108px;
+ height: 38px;
+ line-height: 38px;
+ text-align: center;
+ border-radius: 4px;
+ color: rgba(255,255,255,1);
+ font-size: 14px;
+ background-color: rgba(31,99,255,1);
+ }
+ }
+ .box_item_list {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ .box_item_list_rowx {
+ width: 33.3%;
+ height: 0;
+ }
+ .box_item_list_row {
+ width: 33.3%;
+ .box_item_list_row_l {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ .desc_data_list_item {
+ width: 100px;
+ height: 100px;
+ padding: 10px;
+ box-sizing: border-box;
+ border: 1px solid #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ margin-bottom: 10px;
+ margin-left: 10px;
+ &:first-child {
+ margin-left: 0 !important;
+ }
+ .desc_data_list_item_dele {
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ font-size: 14px;
+ cursor: pointer;
+ color: rgba(249, 86, 1, 0.996078431372549);
+ }
+ .desc_data_list_item_upload {
+ flex: 1;
+ height: 80px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .desc_data_list_item_img {
+ flex-shrink: 0;
+ width: 70px;
+ height: 70px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ margin-right: 10px;
+ .el-icon-folder-opened {
+ font-size: 34px;
+ color: #666666;
+ }
+ .el-icon-plus {
+ font-size: 26px;
+ color: #ffffff;
+ }
+ img {
+ width: 100%;
+ }
+ video {
+ width: 100%;
+ }
+ }
+ .desc_data_list_item_info {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ word-break: break-all;
+ span {
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 14px;
+ color: black;
+ }
+ }
+ }
+ }
+ .box_item_list_row_info {
+ width: 100%;
+ height: 46px;
+ border-radius: 4px;
+ padding: 0 11px;
+ box-sizing: border-box;
+ margin-bottom: 20px;
+ background-color: rgba(239,239,239,1);
+ border: 1px solid rgba(187,187,187,1);
+ display: flex;
+ align-items: center;
+ .label {
+ flex-shrink: 0;
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ .content {
+ flex: 1;
+ }
+ }
+ .box_item_list_row_title {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 20px;
+ .x {
+ width: 1px;
+ height: 14px;
+ background-color: rgba(255,255,255,1);
+ border: 4px solid rgba(22,93,255,1);
+ margin-right: 10px;
+ }
+ span {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ }
+ }
+ }
+ }
+ .box_footer {
+ width: 100%;
+ margin-top: 30px;
+ .box_footer_btns {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: end;
+ }
+ }
+ .box_status {
+ width: 100%;
+ padding: 30px 0;
+ box-sizing: border-box;
+ display: flex;
+ align-items: start;
+ justify-content: center;
+ margin-bottom: 30px;
+ .box_status_row {
+ width: 250px;
+ display: flex;
+ align-items: start;
+ .statusColor1 {
+ background-color: #E8F4FF !important;
+ }
+ .statusColor2 {
+ background-color: #165DFF !important;
+ }
+ .statusColor3 {
+ span {
+ color: #ffffff !important;
+ }
+ }
+ .box_status_row_icon {
+ width: 28px;
+ height: 28px;
+ background-color: rgba(242,243,245,1);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 50%;
+ margin-right: 10px;
+ span {
+ color: rgba(78,89,105,1);
+ font-size: 14px;
+ }
+ i {
+ color: #165DFF;
+ }
+ }
+ .box_status_row_info {
+ display: flex;
+ flex-direction: column;
+ .title {
+ color: rgba(78,89,105,1);
+ font-size: 16px;
+ font-weight: bold;
+ }
+ .info {
+ color: rgba(154,154,154,1);
+ font-size: 14px;
+ margin-top: 5px;
+ }
+ }
+ }
+ }
+ .box_success {
+ width: 100%;
+ padding: 100px 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+ .box_success_icon {
+ width: 48px;
+ height: 48px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: rgba(232,255,234,1);
+ .el-icon-check {
+ color: #2DC24F;
+ font-size: 24px;
+ font-weight: bold;
+ }
+ }
+ .box_success_title {
+ color: rgb(29,33,41);
+ font-size: 16px;
+ margin-top: 16px;
+ }
+ .box_success_info {
+ color: rgb(134,144,156);
+ font-size: 12px;
+ margin-top: 5px;
+ }
+ .box_success_btns {
+ display: flex;
+ align-items: center;
+ margin-top: 20px;
+ }
+ }
+ .box_desc {
+ width: 100%;
+ margin-bottom: 15px;
+ .box_desc_cailiao {
+ width: 100%;
+ margin-bottom: 18px;
+ .box_desc_cailiao_title {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-bottom: 15px;
+ .box_desc_cailiao_title_x {
+ width: 5px;
+ height: 14px;
+ background-color: #165DFF;
+ }
+ span {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-left: 5px;
+ }
+ }
+ .box_desc_cailiao_list {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ .box_desc_cailiao_list_img {
+ width: 100px;
+ height: 100px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ margin-right: 15px;
+ background-color: #E5E5E5;
+ &:last-child {
+ margin: 0;
+ }
+ img {
+ width: 100%;
+ height: 100%;
+ }
+ }
+ }
+ }
+ .box_desc_head {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 26px;
+ .box_desc_title {
+ display: flex;
+ align-items: center;
+ .box_desc_title_val {
+ color: rgba(16,16,16,1);
+ font-size: 18px;
+ margin-right: 20px;
+ }
+ .box_desc_title_tips1 {
+ display: flex;
+ align-items: center;
+ .el-icon-info {
+ color: #FF7B74;
+ margin-right: 8px;
+ }
+ .box_desc_title_tips_text {
+ color: rgba(255,123,116,1);
+ font-size: 14px;
+ }
+ }
+ .box_desc_title_zt {
+ height: 25px;
+ padding: 0 15px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ box-sizing: border-box;
+ border-radius: 15px;
+ background-color: rgba(239,239,239,1);
+ color: rgba(16,16,16,1);
+ font-size: 12px;
+ margin-right: 20px;
+ }
+ .box_desc_title_tips {
+ width: 84px;
+ height: 25px;
+ border-radius: 15px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: rgba(254,226,225,1);
+ span {
+ color: #FF4D4F;
+ font-size: 12px;
+ }
+ }
+ }
+ }
+ .box_desc_list {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ .box_desc_list_ZW {
+ width: 33%;
+ height: 0;
+ }
+ .box_desc_list_row {
+ width: 33%;
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-bottom: 24px;
+ }
+ .box_desc_list_img {
+ width: 100%;
+ display: flex;
+ align-items: start;
+ .box_item_list_row_l {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ .desc_data_list_item {
+ width: 100px;
+ height: 100px;
+ padding: 10px;
+ box-sizing: border-box;
+ border: 1px solid #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ margin-bottom: 10px;
+ margin-left: 10px;
+ &:first-child {
+ margin-left: 0 !important;
+ }
+ .desc_data_list_item_dele {
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ font-size: 14px;
+ cursor: pointer;
+ color: rgba(249, 86, 1, 0.996078431372549);
+ }
+ .desc_data_list_item_upload {
+ flex: 1;
+ height: 80px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .desc_data_list_item_img {
+ flex-shrink: 0;
+ width: 70px;
+ height: 70px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ margin-right: 10px;
+ .el-icon-folder-opened {
+ font-size: 34px;
+ color: #666666;
+ }
+ .el-icon-plus {
+ font-size: 26px;
+ color: #ffffff;
+ }
+ img {
+ width: 100%;
+ }
+ video {
+ width: 100%;
+ }
+ }
+ .desc_data_list_item_info {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ word-break: break-all;
+ span {
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 14px;
+ color: black;
+ }
+ }
+ }
+ }
+ span {
+ flex-shrink: 0;
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ }
+ }
+ }
+ .box_desc_f {
+ width: 100%;
+ display: flex;
+ align-items: start;
+ flex-wrap: wrap;
+ margin-bottom: 30px;
+ justify-content: space-between;
+ .box_desc_fa {
+ width: 32%;
+ padding: 22px 25px;
+ box-sizing: border-box;
+ border-radius: 4px;
+ margin-bottom: 30px;
+ background-color: #ffffff;
+ border: 1px solid #ececec;
+ .box_desc_fa_title {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 10px;
+ span {
+ color: rgba(16,16,16,1);
+ font-size: 18px;
+ font-weight: bold;
+ text-decoration: underline;
+ cursor: pointer;
+ }
+ }
+ .box_desc_fa_row {
+ color: rgba(16,16,16,1);
+ font-size: 14px;
+ margin-bottom: 10px;
+ &:last-child {
+ margin: 0;
+ }
+ }
+ }
+ }
+ }
}
</style>
diff --git a/company/src/components/enterprise/onlineReportingCopy.vue b/company/src/components/enterprise/onlineReportingCopy.vue
new file mode 100644
index 0000000..2697a21
--- /dev/null
+++ b/company/src/components/enterprise/onlineReportingCopy.vue
@@ -0,0 +1,398 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="100%"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <el-form :model="form" ref="form" :rules="rules">
+ <el-form-item label="鍑洪櫓浜哄鍚�" prop="memberId" v-if="!form.id">
+ <el-select v-model="form.memberId" filterable @change="getSolutions" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in user"
+ :key="item.id"
+ :label="item.name + ' - ' + item.idcardNo"
+ :value="item.id">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item label="淇濋櫓鏂规" prop="solutionId" v-if="!form.id">
+ <div style="display: flex; align-items: center;">
+ <span>{{form.solutionName}}</span>
+ <el-button type="primary" @click="openS" style="margin-left: 10px;">閫夋嫨鏂规</el-button>
+ </div>
+ </el-form-item>
+ <el-form-item label="娲鹃仯鍗曚綅" prop="duId" v-if="form.duName && !form.id">
+ <span>{{form.duName}}</span>
+ </el-form-item>
+ <el-form-item label="鎵�灞炲伐绉�" prop="worktypeId" v-if="form.worktypeName && !form.id">
+ <span>{{form.worktypeName}}</span>
+ </el-form-item>
+ <el-form-item label="浜嬫晠鍙戠敓鏃堕棿" prop="happenTime" v-if="!form.id">
+ <el-date-picker
+ v-model="form.happenTime"
+ type="datetime"
+ format="yyyy-MM-dd HH:mm:ss"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ placeholder="閫夋嫨鏃ユ湡鏃堕棿">
+ </el-date-picker>
+ </el-form-item>
+ <el-form-item label="灏辫瘖鍖荤枟鏈烘瀯" prop="hospital" v-if="!form.id">
+ <el-input v-model="form.hospital" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ <el-form-item label="鍑洪櫓鍦板尯" prop="areaId">
+ <el-cascader
+ v-model="form.areaId"
+ :options="area"
+ :props="{ value: 'id', label: 'name', children: 'childAreasList' }"
+ @change="handleChange" />
+ </el-form-item>
+ <el-form-item label="浜嬫晠绫诲瀷" prop="type">
+ <el-radio-group v-model="form.type">
+ <el-radio :label="0">宸ヤ綔鏈熼棿鍙椾激</el-radio>
+ <el-radio :label="1">涓婁笅鐝�斾腑鍙椾激</el-radio>
+ <el-radio :label="2">闈炲伐浣滄椂闂村彈浼�</el-radio>
+ <el-radio :label="3">鎰忓鍙椾激</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <el-form-item label="鏄惁浣忛櫌" prop="inHospital">
+ <el-radio-group v-model="form.inHospital">
+ <el-radio :label="0">鏄�</el-radio>
+ <el-radio :label="1">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <el-form-item label="鏄惁鏈夊尰鐤椾繚闄�" prop="medicalInsurance">
+ <el-radio-group v-model="form.medicalInsurance">
+ <el-radio :label="0">鏄�</el-radio>
+ <el-radio :label="1">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <el-form-item label="浜嬫晠鎻忚堪" prop="content" v-if="!form.id">
+ <el-input type="textarea" :rows="5" placeholder="璇疯緭鍏ュ唴瀹�" v-model="form.content"></el-input>
+ </el-form-item>
+ <el-form-item label="涓婁紶浜嬫晠瑙嗛/鐓х墖" prop="list" v-if="!form.id">
+ <upload :list="form.list" :accept="'.mp4,.jpg,.png,.jpeg'" folder="settle" @dele="deleFile" @success="getData" />
+ </el-form-item>
+ <el-form-item label="鎶ユ浜哄鍚�" prop="informantName">
+ <el-input v-model="form.informantName" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ <el-form-item label="鎶ユ浜鸿仈绯绘柟寮�" prop="informantPhone">
+ <el-input maxlength="11" v-model="form.informantPhone" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ </el-form>
+ <!-- 寮圭獥鎻愰啋 -->
+ <el-dialog
+ title="娓╅Θ鎻愮ず"
+ :modal="false"
+ :close-on-click-modal="false"
+ :show-close="false"
+ :visible.sync="centerDialogVisible"
+ width="50%"
+ center>
+ <div class="fuwenben" style="font-size: 12px">
+ 灏婃暚鐨勫鎴凤細
+
+ 棣栧厛鎰熻阿鎮ㄥ浜庢垜浠殑淇′换涓庢敮鎸侊紝鎴戜滑寰堣崳骞告垚涓鸿吹鍙哥殑淇濋櫓鍜ㄨ鏈嶅姟鍟嗭紒
+
+ 閴翠簬杩戞湡鍑虹幇涓埆瀹㈡埛瀛樺湪锛氬綋澶╂姇淇濆綋澶╁嚭闄╋紙鍗冲厛鍑哄伐浼ゆ垨鎰忓銆佸啀杩涜鎶曚繚鎿嶄綔锛夌殑涓埆璇堥獥淇濋櫓閲戠殑妗堜緥锛岄敊璇娇鐢ㄢ�滃嵆鏃剁敓鏁堚�濇潯娆俱�傞拡瀵规绉嶆儏鍐垫湰鍏徃閮戦噸鍛婄煡鍚勪綅瀹㈡埛:
+
+ 1.璇堥獥淇濋櫓閲戠殑琛屼负灞炰簬杩濇硶琛屼负,涓�鏃﹀彂鐜�,鏈叕鍙稿皢鎻愪氦鍏畨鏈哄叧澶勭悊骞朵繚鐣欒拷绌舵硶寰嬭矗浠伙紱
+
+ 2.涓轰簡椤哄埄鐞嗚禂缁撴,鎸夌収淇濋櫓鍏徃鐨勭悊璧斿鏌ヨ姹�,褰撳ぉ鎶曚繚褰撳ぉ鍑洪櫓闇�瑕佹彁渚涘嚭闄╃洃鎺ц棰戞垨鑰呰兘浣愯瘉鍏蜂綋鏃堕棿鐐圭殑浠讳綍璇佹嵁锛�
+
+ 3.璇锋偍娣卞埢鐞嗚В淇濋櫓涓�滃瀹炲憡鐭モ�濈殑鎶曚繚浜轰箟鍔★紝鎴戜滑鑷村姏浜庝负鎮ㄨ浆绉荤敤宸ラ闄╁拰娉曞緥椋庨櫓銆備絾杩欎竴鍒囩殑鍓嶆彁鏄細鍚堣鍚堟硶鍚堢悊銆�
+
+ 闄勪欢涓�锛�
+
+ 銆婁腑鍗庝汉姘戝叡鍜屽浗鍒戞硶銆嬬涓�鐧句節鍗佸叓鏉� 銆愪繚闄╄瘓楠楃姜銆戞湁涓嬪垪鎯呭舰涔嬩竴锛岃繘琛屼繚闄╄瘓楠楁椿鍔紝鏁伴杈冨ぇ鐨勶紝澶勪簲骞翠互涓嬫湁鏈熷緬鍒戞垨鑰呮嫎褰癸紝 骞跺涓�涓囧厓浠ヤ笂鍗佷竾鍏冧互涓嬬綒閲戯紱鏁伴宸ㄥぇ鎴栬�呮湁鍏朵粬涓ラ噸鎯呰妭鐨勶紝澶勪簲骞翠互涓婂崄骞翠互涓嬫湁鏈熷緬鍒戯紝骞跺浜屼竾鍏冧互涓婁簩鍗佷竾鍏冧互涓嬬綒閲戯紱鏁伴鐗瑰埆宸ㄥぇ鎴栬�呮湁鍏朵粬鐗瑰埆涓ラ噸鎯呰妭鐨勶紝澶勫崄骞翠互涓婃湁鏈熷緬 鍒戯紝骞跺浜屼竾鍏冧互涓婁簩鍗佷竾鍏冧互涓嬬綒閲戞垨鑰呮病鏀惰储浜э細
+
+ 锛堜竴锛夋姇淇濅汉鏁呮剰铏氭瀯淇濋櫓鏍囩殑锛岄獥鍙栦繚闄╅噾鐨勶紱
+
+ 锛堜簩锛夋姇淇濅汉銆佽淇濋櫓浜烘垨鑰呭彈鐩婁汉瀵瑰彂鐢熺殑淇濋櫓浜嬫晠缂栭�犺櫄鍋囩殑鍘熷洜鎴栬�呭じ澶ф崯澶辩殑绋嬪害锛岄獥鍙栦繚闄╅噾鐨勶紱
+
+ 锛堜笁锛夋姇淇濅汉銆佽淇濋櫓浜烘垨鑰呭彈鐩婁汉缂栭�犳湭鏇惧彂鐢熺殑淇濋櫓浜嬫晠锛岄獥鍙栦繚闄╅噾鐨勶紱
+
+ 锛堝洓锛夋姇淇濅汉銆佽淇濋櫓浜烘晠鎰忛�犳垚璐骇鎹熷け鐨勪繚闄╀簨鏁咃紝楠楀彇淇濋櫓閲戠殑锛�
+
+ 锛堜簲锛夋姇淇濅汉銆佸彈鐩婁汉鏁呮剰閫犳垚琚繚闄╀汉姝讳骸銆佷激娈嬫垨鑰呯柧鐥咃紝楠楀彇淇濋櫓閲戠殑銆�
+
+ 鏈夊墠娆剧鍥涢」銆佺浜旈」鎵�鍒楄涓猴紝鍚屾椂鏋勬垚鍏朵粬鐘姜鐨勶紝渚濈収鏁扮姜骞剁綒鐨勮瀹氬缃氥�� 鍗曚綅鐘涓�娆剧姜鐨勶紝瀵瑰崟浣嶅垽澶勭綒閲戯紝骞跺鍏剁洿鎺ヨ礋璐g殑涓荤浜哄憳鍜� 鍏朵粬鐩存帴璐d换浜哄憳锛屽浜斿勾浠ヤ笅鏈夋湡寰掑垜鎴栬�呮嫎褰癸紱鏁伴宸ㄥぇ鎴栬�呮湁 鍏朵粬涓ラ噸鎯呰妭鐨勶紝澶勪簲骞翠互涓婂崄骞翠互涓嬫湁鏈熷緬鍒戯紱鏁伴鐗瑰埆宸ㄥぇ鎴栬�� 鏈夊叾浠栫壒鍒弗閲嶆儏鑺傜殑锛屽鍗佸勾浠ヤ笂鏈夋湡寰掑垜銆� 淇濋櫓浜嬫晠鐨勯壌瀹氫汉銆佽瘉鏄庝汉銆佽储浜ц瘎浼颁汉鏁呮剰鎻愪緵铏氬亣鐨勮瘉鏄庢枃浠讹紝涓轰粬浜鸿瘓楠楁彁渚涙潯浠剁殑锛屼互淇濋櫓璇堥獥鐨勫叡鐘澶勩��
+
+ 闄勪欢浜岋細
+
+ 銆婁腑鍗庝汉姘戝叡鍜屽浗淇濋櫓娉曘�嬬浜屽崄涓冩潯 鏈彂鐢熶繚闄╀簨鏁咃紝琚繚闄╀汉鎴栬�呭彈鐩婁汉璋庣О鍙戠敓浜嗕繚闄╀簨鏁咃紝鍚戜繚闄╀汉鎻愬嚭璧斿伩鎴栬�呯粰浠樹繚闄╅噾璇锋眰鐨勶紝淇濋櫓浜烘湁鏉冭В闄ゅ悎鍚岋紝骞朵笉閫�杩樹繚闄╄垂銆�
+
+ 鎶曚繚浜恒�佽淇濋櫓浜烘晠鎰忓埗閫犱繚闄╀簨鏁呯殑锛屼繚闄╀汉鏈夋潈瑙i櫎鍚堝悓锛屼笉鎵挎媴璧斿伩鎴栬�呯粰浠樹繚闄╅噾鐨勮矗浠伙紱闄ゆ湰娉曠鍥涘崄涓夋潯瑙勫畾澶栵紝涓嶉��杩樹繚闄╄垂銆�
+
+ 淇濋櫓浜嬫晠鍙戠敓鍚庯紝鎶曚繚浜恒�佽淇濋櫓浜烘垨鑰呭彈鐩婁汉浠ヤ吉閫犮�佸彉閫犵殑鏈夊叧璇佹槑銆佽祫鏂欐垨鑰呭叾浠栬瘉鎹紝缂栭�犺櫄鍋囩殑浜嬫晠鍘熷洜鎴栬�呭じ澶ф崯澶辩▼搴︾殑锛屼繚闄╀汉瀵瑰叾铏氭姤鐨勯儴鍒嗕笉鎵挎媴璧斿伩鎴栬�呯粰浠樹繚闄╅噾鐨勮矗浠汇��
+
+ 鎶曚繚浜恒�佽淇濋櫓浜烘垨鑰呭彈鐩婁汉鏈夊墠涓夋瑙勫畾琛屼负涔嬩竴锛岃嚧浣夸繚闄� 浜烘敮浠樹繚闄╅噾鎴栬�呮敮鍑鸿垂鐢ㄧ殑锛屽簲褰撴挙閿�鎴栬�呰禂鍋裤��
+ </div>
+ <span slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="centerDialogVisible = false">鎴戝凡鐭ユ檽</el-button>
+ </span>
+ </el-dialog>
+ <!-- 閫夋嫨淇濋櫓鏂规 -->
+ <selectSolutions ref="selectSolutions" @success="getVal" />
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ import upload from '@/components/common/upload'
+ import selectSolutions from '@/components/enterprise/selectSolutions'
+ import { findListByDTO } from '@/api/business/member'
+ import { findList } from '@/api/business/applyChange'
+ import { findTreeList } from '@/api/system/common'
+ import { create, updateById } from '@/api/business/settleClaims'
+ export default {
+ name: 'onlineReporting',
+ extends: BaseOpera,
+ components: { GlobalWindow, upload, selectSolutions },
+ data () {
+ return {
+ form: {
+ id: null,
+ insuranceApplyId: '',
+ memberId: '',
+ solutionId: '',
+ solutionName: '',
+ duId: '',
+ duName: '',
+ worktypeId: '',
+ worktypeName: '',
+ happenTime: '',
+ hospital: '',
+ areaId: '',
+ areaInfo: '',
+ type: 0,
+ inHospital: 0,
+ medicalInsurance: 0,
+ content: '',
+ informantName: '',
+ informantPhone: '',
+ list: [],
+ reportFileList: []
+ },
+ rules: {
+ memberId: [
+ { required: true, message: '璇烽�夋嫨鍑洪櫓浜�' }
+ ],
+ solutionId: [
+ { required: true, message: '璇烽�夋嫨淇濋櫓鏂规' }
+ ],
+ duId: [
+ { required: true, message: '璇烽�夋嫨娲鹃仯鍗曚綅' }
+ ],
+ worktypeId: [
+ { required: true, message: '璇烽�夋嫨鎵�灞炲伐绉�' }
+ ],
+ happenTime: [
+ { required: true, message: '璇烽�夋嫨浜嬫晠鍙戠敓鏃堕棿' }
+ ],
+ type: [
+ { required: true, message: '璇烽�夋嫨浜嬫晠绫诲瀷' }
+ ],
+ inHospital: [
+ { required: true, message: '璇烽�夋嫨鏄惁浣忛櫌' }
+ ],
+ medicalInsurance: [
+ { required: true, message: '璇烽�夋嫨鏄惁鏈夊尰鐤椾繚闄�' }
+ ],
+ content: [
+ { required: true, message: '璇疯緭鍏ヤ簨鏁呮弿杩�' }
+ ],
+ informantName: [
+ { required: true, message: '璇疯緭鍏ユ姤妗堜汉濮撳悕' }
+ ],
+ informantPhone: [
+ { required: true, message: '璇疯緭鍏ユ姤妗堜汉鑱旂郴鏂瑰紡' }
+ ]
+ },
+ centerDialogVisible: false,
+ user: [],
+ options: [],
+ area: []
+ }
+ },
+ created () {
+ this.config({
+ api: '/business/settleClaims',
+ 'field.id': 'id'
+ })
+ },
+ methods: {
+ open (title, target) {
+ this.title = title
+ this.visible = true
+ this.form.list = []
+ this.form.reportFileList = []
+ this.getUser()
+ this.getArea()
+ // 鏂板缓
+ if (target == null) {
+ this.$nextTick(() => {
+ this.$refs.form.resetFields()
+ this.form[this.configData['field.id']] = null
+ setTimeout(() => {
+ this.centerDialogVisible = true
+ }, 300)
+ })
+ return
+ }
+ // 缂栬緫
+ this.$nextTick(() => {
+ for (const key in this.form) {
+ this.form[key] = target[key]
+ }
+ })
+ },
+ handleTreeData(data) {
+ for (var i = 0; i < data.length; i++) {
+ if (data[i].childAreasList.length < 1) {
+ data[i].childAreasList = undefined; // 鐪嬪悗绔繑鐨勬槸child瀛楁杩樻槸children瀛楁锛岃嚜琛屾敼鍙�
+ } else {
+ this.handleTreeData(data[i].childAreasList) // children鑻ヤ笉涓虹┖鏁扮粍锛屽垯缁х画 閫掑綊璋冪敤 鏈柟娉�
+ }
+ }
+ return data;
+ },
+ __confirmEdit () {
+ this.$refs.form.validate((valid) => {
+ if (!valid) {
+ return
+ }
+ // 璋冪敤鏂板缓鎺ュ彛
+ this.isWorking = true
+ let obj = JSON.parse(JSON.stringify(this.form))
+ obj.areaId = obj.areaId.join(',')
+ updateById(obj)
+ .then(() => {
+ this.visible = false
+ this.$tip.apiSuccess('淇敼鎴愬姛')
+ this.$emit('success')
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ })
+ },
+ __confirmCreate () {
+ this.$refs.form.validate((valid) => {
+ if (!valid) {
+ return
+ }
+ // 璋冪敤鏂板缓鎺ュ彛
+ this.isWorking = true
+ let obj = JSON.parse(JSON.stringify(this.form))
+ if (obj.areaId) {
+ obj.areaId = obj.areaId.join(',')
+ }
+ create(obj)
+ .then(() => {
+ this.visible = false
+ this.$tip.apiSuccess('鏂板缓鎴愬姛')
+ this.$emit('success')
+ })
+ .catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ .finally(() => {
+ this.isWorking = false
+ })
+ })
+ },
+ // 鏌ヨ鍖哄煙鏁版嵁
+ getArea() {
+ findTreeList({})
+ .then(res => {
+ this.area = this.handleTreeData(res)
+ })
+ },
+ getVal(e) {
+ console.log(e)
+ this.form.insuranceApplyId = e.applyId
+ this.form.solutionId = e.solutionId
+ this.form.solutionName = e.solutionName
+ this.form.duId = e.duId
+ this.form.duName = e.duName
+ this.form.worktypeId = e.worktypeId
+ this.form.worktypeName = e.worktypeName
+ },
+ openS() {
+ if (!this.form.memberId) {
+ this.$message.warning('璇峰厛閫夋嫨鍑洪櫓浜�')
+ return
+ }
+ this.$refs.selectSolutions.open('閫夋嫨淇濋櫓鏂规', this.form.memberId)
+ },
+ getUser() {
+ findListByDTO({})
+ .then(res => {
+ this.user = res
+ })
+ },
+ getSolutions(id) {
+ findList({ memberId: id })
+ .then(res => {
+ this.form.solutionId = ''
+ this.form.worktypeId = ''
+ this.form.duId = ''
+ this.options = res
+ })
+ },
+ getTreeName(list, id){
+ let _this = this
+ for (let i = 0; i < list.length; i++) {
+ let a = list[i]
+ if (a.id === id) {
+ return a.name
+ } else {
+ if (a.childAreasList && a.childAreasList.length > 0) {
+ let res = _this.getTreeName(a.childAreasList, id)
+ if (res) {
+ return res
+ }
+ }
+ }
+ }
+ },
+ handleChange(value) {
+ let info = ''
+ value.forEach(item => {
+ info += this.getTreeName(this.area, item)
+ })
+ this.form.areaInfo = info
+ },
+ getData(data) {
+ this.form.list.push(data)
+ this.form.reportFileList.push({
+ fileurl: data.imgaddr,
+ name: data.originname,
+ type: data.type
+ })
+ },
+ deleFile(index) {
+ this.form.reportFileList.splice(index, 1)
+ this.form.list.splice(index, 1)
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .fuwenben {
+ width: 100%;
+ height: 400px;
+ font-size: 16px;
+ color: black;
+ overflow-y: scroll;
+ word-break: break-all;
+ overflow-wrap: break-word;
+ }
+</style>
diff --git a/company/src/views/business/settleClaims.vue b/company/src/views/business/settleClaims.vue
index 6cd0f86..33c119d 100644
--- a/company/src/views/business/settleClaims.vue
+++ b/company/src/views/business/settleClaims.vue
@@ -58,13 +58,7 @@
<span>{{scope.$index + 1}}</span>
</template>
</el-table-column>
- <el-table-column prop="status" label="妗堜欢鐘舵��" min-width="100px">
- <template slot-scope="{row}">
- <span :class="'settle-status' + row.status" v-if="row.status === 0 || row.status === 2 || row.status === 3">澶勭悊涓�</span>
- <span :class="'settle-status' + row.status" v-if="row.status === 1">宸叉挙妗�</span>
- <span :class="'settle-status' + row.status" v-if="row.status === 4">宸茬粨妗�</span>
- </template>
- </el-table-column>
+ <el-table-column prop="statusName" label="妗堜欢鐘舵��" min-width="100px"></el-table-column>
<el-table-column prop="reportNum" label="鎶ユ鍙�" min-width="100px"></el-table-column>
<el-table-column prop="companyName" label="鎶ユ浼佷笟" min-width="100px"></el-table-column>
<el-table-column prop="memberName" label="鍑洪櫓浜�" min-width="100px"></el-table-column>
@@ -77,11 +71,29 @@
<el-table-column
v-if="containPermissions(['business:settleclaims:update', 'business:settleclaims:delete'])"
label="鎿嶄綔"
- min-width="120"
+ min-width="200"
fixed="right"
>
<template slot-scope="{row}">
- <el-button type="text" @click="$refs.operaSettleClaimsWindow.open('鎶ユ璇︽儏', row)" v-permissions="['business:settleclaims:update']">鏌ョ湅璇︽儏</el-button>
+ <el-button
+ type="text"
+ @click="$refs.operaSettleClaimsWindow.open('鎶ユ璇︽儏', row.id)"
+ v-if="row.status !== 0">
+ 鏌ョ湅璇︽儏
+ </el-button>
+ <el-button
+ type="text"
+ @click="$refs.onlineReporting.open('缂栬緫鎶ユ', row.id)"
+ v-if="[0,1,2,4,5,7].includes(row.status) && userInfo.type === 1">
+ 缂栬緫
+ </el-button>
+ <el-button
+ type="text"
+ @click="revoke(row.id)"
+ v-if="[1,2,3,4,5,9,7,10,11].includes(row.status) && userInfo.type === 1">
+ 鎾ら攢
+ </el-button>
+ <el-button type="text" @click="deleRow(row.id)" v-if="row.status === 0">鍒犻櫎</el-button>
</template>
</el-table-column>
</el-table>
@@ -106,7 +118,9 @@
import OperaSettleClaimsWindow from '@/components/business/OperaSettleClaimsWindow'
import onlineReporting from '@/components/enterprise/onlineReporting'
import { all as solutionAll } from '@/api/business/solutions'
+import { returnSettle } from '@/api/business/settleRisk'
import { pageAll as companyAll } from '@/api/business/company'
+import { dele } from '@/api/business/settleClaims'
import { mapState } from 'vuex'
export default {
name: 'SettleClaims',
@@ -142,9 +156,21 @@
this.loadSelectList()
},
methods: {
- // handlePageChange() {
- // this.search()
- // },
+ // 鎾ら攢
+ revoke(id) {
+ this.$confirm('鎾ら攢鍚庯紝妗堜欢鐩存帴缁撴潫锛屾棤娉曠户缁繘琛岀悊璧旀搷浣滐紒', '鏄惁鎾ら攢鎶ユ锛�', {
+ confirmButtonText: '纭畾鎾ら攢',
+ cancelButtonText: '鎴戝啀鎯虫兂',
+ type: 'warning'
+ }).then(() => {
+ returnSettle({ id })
+ .then(res => {
+ this.search()
+ })
+ }).catch(() => {
+
+ });
+ },
loadSelectList () {
solutionAll({ dataType: 0 }).then(res => {
this.solutionList = res
@@ -154,7 +180,22 @@
this.companyList = res
}).catch(err => {
})
- }
+ },
+ deleRow(id) {
+ this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ暟鎹�, 鏄惁缁х画?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ dele(id)
+ .then(res => {
+ this.$message.success('鍒犻櫎鎴愬姛')
+ this.search()
+ })
+ }).catch(() => {
+
+ });
+ }
}
}
--
Gitblit v1.9.3