From 4c236ba83da7c69ac838b004d0a4b83c25fc9bea Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期五, 23 二月 2024 16:41:02 +0800 Subject: [PATCH] mrshi --- company/src/views/enterprise/myPolicy.vue | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 54 insertions(+), 1 deletions(-) diff --git a/company/src/views/enterprise/myPolicy.vue b/company/src/views/enterprise/myPolicy.vue index 4b875c3..87c499e 100644 --- a/company/src/views/enterprise/myPolicy.vue +++ b/company/src/views/enterprise/myPolicy.vue @@ -56,6 +56,18 @@ </el-form> <!-- 琛ㄦ牸鍜屽垎椤� --> <template v-slot:table-wrap> + <div style="margin-bottom: 30px;" v-if="obj.waitSignNum > 0 && obj.renewalNum > 0"> + <el-alert type="warning" show-icon :closable="false" style="margin-bottom: 15px;" v-if="obj.renewalNum > 0"> + <span style="margin-right: 15px;">缁繚鎻愰啋: 鎮ㄦ湁鍗冲皢鍒版湡淇濋櫓</span> + <el-button type="text" @click="$refs.renewalInsurance.open('缁繚鎻愰啋')">鏌ョ湅璇︽儏</el-button> + <el-button type="text" @click="closeRemind(1)">鍏抽棴鎻愰啋</el-button> + </el-alert> + <el-alert type="warning" :closable="false" show-icon v-if="obj.waitSignNum > 0"> + <span style="margin-right: 15px;">鎶曚繚鎻愰啋: 鎮ㄦ湁鎶曚繚鐢宠寰呯缃�</span> + <el-button type="text" @click="see">鏌ョ湅璇︽儏</el-button> + <el-button type="text" @click="closeRemind(2)">鍏抽棴鎻愰啋</el-button> + </el-alert> + </div> <ul class="toolbar" v-permissions="['business:dispatchunit:create']"> <li><el-button type="primary" @click="$refs.OperaInsuranceApplyWindow.open('鎶曚繚鐢宠')">鎶曚繚鐢宠</el-button></li> </ul> @@ -114,6 +126,8 @@ <OperaInsuranceApplyDetails ref="OperaInsuranceApplyDetails" @success="handlePageChange" /> <!-- 鍔犲噺淇濈敵璇� --> <additionSubtractionApplication ref="additionSubtractionApplication" @success="handlePageChange" /> + <!-- 缁繚寮圭獥 --> + <renewalInsurance ref="renewalInsurance" @success="handlePageChange" /> </TableLayout> </template> @@ -124,12 +138,21 @@ import OperaInsuranceApplyWindow from '@/components/enterprise/OperaInsuranceApplyWindow' import OperaInsuranceApplyDetails from '@/components/business/OperaInsuranceApplyWindow' import additionSubtractionApplication from '@/components/enterprise/additionSubtractionApplication' + import renewalInsurance from '@/components/enterprise/renewalInsurance' import { all as solutionAll} from '@/api/business/solutions' + import { getCaptcha, closeApplyNotice } from '@/api/business/notices' export default { name: 'myPolicy', extends: BaseTable, - components: { TableLayout, Pagination, OperaInsuranceApplyWindow, OperaInsuranceApplyDetails, additionSubtractionApplication }, + components: { + TableLayout, + Pagination, + OperaInsuranceApplyWindow, + OperaInsuranceApplyDetails, + renewalInsurance, + additionSubtractionApplication + }, data () { return { // 鎼滅储 @@ -141,6 +164,10 @@ startTimeS: '', baseSolutionId: '', statusCollect: '2' + }, + obj: { + renewalNum: 0, + waitSignNum: 0 }, time1: [], time2: [], @@ -156,8 +183,34 @@ }) this.search() this.loadSelectList() + this.getNum() }, methods:{ + see() { + this.searchForm.statusCollect = '7' + this.search() + }, + closeRemind(type) { + this.$confirm('纭畾鍏抽棴姝ゆ彁绀哄悧?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(() => { + closeApplyNotice(type) + .then(res => { + this.getNum() + }) + }).catch(() => { + + }); + }, + getNum() { + getCaptcha() + .then(res => { + this.obj.renewalNum = res.renewalNum + this.obj.waitSignNum = res.waitSignNum + }) + }, reset() { this.time1 = [] this.time2 = [] -- Gitblit v1.9.3