From 3d6a8e384d31432a23f5a8c1a3135a58cbe617b5 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 27 五月 2025 17:25:38 +0800 Subject: [PATCH] 提交一把 --- company/src/components/business/OperaSettleClaimsWindow.vue | 455 +++++++++++++++++++++++++++++++------------------------- 1 files changed, 250 insertions(+), 205 deletions(-) diff --git a/company/src/components/business/OperaSettleClaimsWindow.vue b/company/src/components/business/OperaSettleClaimsWindow.vue index 64359a7..01294b9 100644 --- a/company/src/components/business/OperaSettleClaimsWindow.vue +++ b/company/src/components/business/OperaSettleClaimsWindow.vue @@ -22,7 +22,7 @@ <div class="box_dk" v-if="[13].includes(info.status)"> <div class="box_dk_title"> <i class="el-icon-success"></i> - <span>宸叉墦娆�</span> + <span style="font-weight: bold">宸叉墦娆�</span> </div> <div class="box_dk_list"> <div class="box_dk_list_row"> @@ -161,7 +161,7 @@ <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"> + <div class="box_desc_title_tips" @click="$refs.riskCaseReminder.open('椋庨櫓妗堜欢鎻愰啋', info.riskContent)" v-if="info.isRisk === 1"> <i class="el-icon-warning"></i> <span>椋庨櫓妗堜欢</span> </div> @@ -183,7 +183,7 @@ <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,13,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(1)" v-if="[3,7,9].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> @@ -193,7 +193,7 @@ <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,13,14].includes(info.status)"></el-button> + <el-button icon="el-icon-refresh-left" type="primary" title="鏌ョ湅妗堜欢杩涘害" circle @click="$refs.caseProgress.open('妗堜欢杩涘害', info.settleClaimsLogList)" v-if="![0].includes(info.status)"></el-button> </div> </div> <div class="box_desc_list"> @@ -210,18 +210,18 @@ 鎶ユ浜猴細{{info.informantName}} </div> <div class="box_desc_list_row"> - 鎶ユ浜鸿仈绯绘柟寮忥細{{info.informantPhone}} + 鎶ユ浜鸿仈绯绘柟寮忥細{{info.informantPhone}} </div> <div class="box_desc_list_zw"></div> </div> </div> - <div class="box_fx" v-if="info.isRisk === 1"> + <div class="box_fx" v-if="info.isRisk === 1 && showIsRisk ===true "> <div class="box_fx_left"> <i class="el-icon-warning"></i> <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" @click="info.isRisk = 0"></i> + <i class="el-icon-close" @click="closeRiskTip"></i> </div> <div class="box_desc"> <div class="box_desc_head"> @@ -240,7 +240,7 @@ 鍑洪櫓浜哄鍚嶏細{{info.memberName}} </div> <div class="box_desc_list_row"> - 鍑洪櫓浜鸿韩浠借瘉鍙凤細{{info.memberIdcard}} + 鍑洪櫓浜鸿韩浠借瘉鍙凤細{{info.idcardNo}} </div> <div style="width: 33%; height: 0;"></div> </div> @@ -281,7 +281,10 @@ 浜嬫晠绫诲瀷锛歿{returnType(info.type)}} </div> <div class="box_desc_list_row"> - 鏄惁鏈夊尰鐤椾繚闄╋細{{returnName(info.medicalInsurance)}} + 鏄惁浼ゆ畫锛歿{returnName(info.hurtType)}} + </div> + <div class="box_desc_list_row"> + 鏄惁鏈夊尰淇濓細{{returnName(info.medicalInsurance)}} </div> <div class="box_desc_list_row"> 灏辫瘖绫诲瀷锛歿{returnInHospital(info.inHospital)}} @@ -358,7 +361,7 @@ <span>琛ュ厖鏉愭枡</span> </div> <div class="box_desc_cailiao_list"> - <PreviewArea :list="info.supplementFileList || []" /> + <PreviewArea :list="info.supplementFileList || []" /> </div> </div> </div> @@ -387,12 +390,13 @@ import GlobalWindow from '@/components/common/GlobalWindow' import { findById, returnSettle } from '@/api/business/settleClaims' import { - register, - addReportNum, - addRemark, - saveSupplementDescribe, - updCaseType, - confirmFee } from '@/api/business/settleRisk' + register, + addReportNum, + addRemark, + saveSupplementDescribe, + updCaseType, + confirmFee +} from '@/api/business/settleRisk' import RiskCaseReminder from '@/components/business/riskCaseReminder' import CaseProgress from '@/components/business/caseProgress' import Acceptance from '@/components/business/acceptance' @@ -410,8 +414,9 @@ components: { GlobalWindow, MakePayment, PreviewArea, PaymentInformation, CompensationDetails, RiskCaseReminder, CaseProgress, Acceptance, AdditionMaterial_ba, adjustment }, data () { return { - info: null, - id: null + info: null, + id: null, + showIsRisk: true } }, computed: { @@ -424,206 +429,244 @@ }) }, methods: { - open (title, id) { - this.title = title - this.id = id + open (title, id) { + this.title = title + this.id = id + this.getDetail() + }, + closeRiskTip(){ + this.showIsRisk= false + }, + setCaseType (e) { + updCaseType({ id: this.id, caseType: e }) + .then(res => { 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(() => { + }) + }, + supplementaryMaterials () { + this.$prompt('琛ュ厖璇存槑', '琛ュ厖鏉愭枡', { + confirmButtonText: '鎻愪氦', + cancelButtonText: '鍙栨秷', + inputType: 'textarea', + inputPattern: /^(?:.|\n)+$/, + inputErrorMessage: '琛ュ厖璇存槑涓嶈兘涓虹┖锛�', + beforeClose: (action, instance, done) => { + if (action === 'confirm') { + instance.confirmButtonLoading = true + saveSupplementDescribe({ id: this.id, describe: instance.inputValue }) + .then((res) => { + done() + }) + .catch((data) => { + this.$message.error(data.message) + }) + .finally(() => { + 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(() => { + }) + }, + addRemark () { + this.$prompt('澶囨敞', '娣诲姞澶囨敞', { + confirmButtonText: '娣诲姞', + cancelButtonText: '鍙栨秷', + inputType: 'textarea', + inputPattern: /^(?:.|\n)+$/, + inputErrorMessage: '澶囨敞涓嶈兘涓虹┖锛�', + beforeClose: (action, instance, done) => { + if (action === 'confirm') { + instance.confirmButtonLoading = true + addRemark({ id: this.id, describe: instance.inputValue }) + .then((res) => { + done() + }) + .catch((data) => { + this.$message.error(data.message) + }) + .finally(() => { + 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 + }) + }, + 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 }) + .then((res) => { + done() }) - }, - // 鎾ら攢 - revoke(id) { - this.$confirm('鎾ら攢鍚庯紝妗堜欢鐩存帴缁撴潫锛屾棤娉曠户缁繘琛岀悊璧旀搷浣滐紒', '鏄惁鎾ら攢鎶ユ锛�', { - confirmButtonText: '纭畾鎾ら攢', - cancelButtonText: '鎴戝啀鎯虫兂', - type: 'warning' - }).then(() => { - returnSettle({ id: this.info.id }) - .then(res => { - this.getDetail() - }) - }).catch(() => { + .catch((data) => { + this.$message.error(data.message) + }) + .finally(() => { + instance.confirmButtonLoading = false + }) + } else { + done() + } + } + }).then(({ value }) => { + this.getDetail() + }).catch(() => { - }); - }, - returnInHospital(type) { - switch (type) { - case 0: - return '浣忛櫌' - case 1: - return '闂ㄨ瘖' + }) + }, + register () { + this.$prompt('绔嬫璇存槑', '绔嬫', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + inputType: 'textarea', + beforeClose: (action, instance, done) => { + if (action === 'confirm') { + instance.confirmButtonLoading = true + register({ id: this.id, describe: instance.inputValue, registerStatus: 3 }) + .then((res) => { + done() + }) + .catch((data) => { + this.$message.error(data.message) + }) + .finally(() => { + instance.confirmButtonLoading = false + }) + } else { + done() } - }, - 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 '鎰忓鍙椾激' - } - }, - confirmFeeInfo() { - this.$confirm('鏄惁纭璧斾粯閲戦?', '鎻愮ず', { - confirmButtonText: '纭畾', - cancelButtonText: '鍙栨秷', - type: 'warning' - }).then(() => { - confirmFee(this.id) - .then(res => { - this.getDetail() - }) - }).catch(() => { + } + }).then(({ value }) => { + this.getDetail() + }).catch(() => { - }); - }, + }) + }, + returnCase () { + this.$prompt('閫�鍥炶鏄�', '閫�鍥�', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + inputType: 'textarea', + inputPattern: /^(?:.|\n)+$/, + inputErrorMessage: '閫�鍥炶鏄庝笉鑳戒负绌猴紒', + beforeClose: (action, instance, done) => { + if (action === 'confirm') { + instance.confirmButtonLoading = true + register({ id: this.id, describe: instance.inputValue, registerStatus: 4 }) + .then((res) => { + done() + }) + .catch((data) => { + this.$message.error(data.message) + }) + .finally(() => { + 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.info.showIsRisk = true + 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 '鍚�' + case 2: + return '寰呯‘瀹�' + default: + return '' + } + }, + returnType (type) { + switch (type) { + case 0: + return '宸ヤ綔鏈熼棿鍙椾激' + case 1: + return '涓婁笅鐝�斾腑鍙椾激' + case 2: + return '闈炲伐浣滄椂闂村彈浼�' + case 3: + return '鎰忓鍙椾激' + } + }, + confirmFeeInfo () { + this.$confirm('鏄惁纭璧斾粯閲戦?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(() => { + confirmFee(this.id) + .then(res => { + this.getDetail() + }) + }).catch(() => { + + }) + } } } </script> <style lang="scss" scoped> .box { + //margin-left: 30px; width: 100%; .box_tui { width: 100%; @@ -987,6 +1030,7 @@ .box_desc_head { width: 100%; display: flex; + font-weight: bold; align-items: center; justify-content: space-between; margin-bottom: 26px; @@ -1017,6 +1061,7 @@ margin-right: 20px; } .box_desc_title_tips { + cursor: pointer; width: 84px; height: 25px; border-radius: 15px; -- Gitblit v1.9.3