| | |
| | | ::v-deep .el-table__fixed-right { |
| | | height: 100% !important; |
| | | } |
| | | .el-select-dropdown__item,.el-input--small { |
| | | font-size: 12px !important; |
| | | } |
| | | ::v-deep .el-table__cell { |
| | | height: 100% !important; |
| | | } |
| | |
| | | <!-- <el-button type="danger" :loading="isWorking.export" @click="check(1)">审核不通过</el-button>--> |
| | | <el-button @click="visible=false">取消</el-button> |
| | | </template> |
| | | <template v-if="type==2" v-slot:footer> |
| | | <el-button @click="visible=false">返回</el-button> |
| | | </template> |
| | | <template v-else v-slot:footer> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportComFilesDo">企业证件</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportDetail">导出详单</el-button> |
| | |
| | | > |
| | | <div class="list"> |
| | | <el-form :inline="true" ref="form" :model="form" :rules="rules" class="demo-form-inline"> |
| | | <el-form-item label="保险方案" prop="baseSolutionId"> |
| | | <el-form-item label="保险方案:" prop="baseSolutionId"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <el-select v-model="form.baseSolutionId" @change="selectSolutions" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in solutions" |
| | |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | <span style="color: #F95601; font-size: 14px;">(1. 请先选择方案查看申请记录)</span> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="保险生效起止期" prop="startDate"> |
| | | <el-form-item label="保险生效起止期:" prop="startDate" style="margin-left: 40px"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <el-date-picker |
| | | @change="changeTime" |
| | |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" /> |
| | | <span style="color: #F95601; font-size: 14px;">(次日生效投保请于17:30前提交,超时提交以保险单为准)</span> |
| | | <span style="color: #F95601; font-size: 14px;">(2. 次日生效投保请于17:30前提交,超时提交以保险单为准)</span> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="费用" v-if="item"> |
| | |
| | | </div> |
| | | <div class="btns"> |
| | | <div class="btns_item"> |
| | | <el-button type="primary" @click="selectApplicationForm">选择申请单</el-button> |
| | | <el-button type="primary" @click="$refs.employeeList.open('投保员工名单')">查看名单</el-button> |
| | | <!-- <el-button type="primary" @click="selectAll">权限</el-button>--> |
| | | <!-- <el-button type="primary" @click="$refs.employeeList.open('投保员工名单')">查看名单</el-button>--> |
| | | </div> |
| | | </div> |
| | | <el-table |
| | |
| | | prop="fee" |
| | | label="总费用"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click="$refs.employeeList.open('投保员工名单')">查看名单</el-button> |
| | | <el-button type="text" style="color: #ff0000;">删除</el-button> |
| | | <el-table-column label="操作"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.InsuranceDetails.open('投保人员名单',row,2)">查看名单</el-button> |
| | | <!-- <el-button type="text" style="color: #ff0000;">删除</el-button>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="color: #F95601; font-size: 14px;width: 100%;text-align: left">(3. 请先选择至少一条申请后提交投保申请)</div> |
| | | <div class="info" v-if="item"> |
| | | <span v-if="item.specialAgreement">{{item.specialAgreement}}</span> |
| | | <span v-if="item.specialInfo">{{item.specialInfo}}</span> |
| | |
| | | <selectApplicationForm ref="selectApplicationForm" @success="getValue" /> |
| | | <!-- 投保员工名单 --> |
| | | <employeeList ref="employeeList" /> |
| | | <InsuranceDetails ref="InsuranceDetails" @success="successEvent" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import employeeList from '@/components/business/employeeList' |
| | | import { all } from '@/api/business/solutions' |
| | | import { fetchList } from '@/api/business/insuranceApply' |
| | | import InsuranceDetails from '@/components/business/InsuranceDetails' |
| | | import { merge } from '@/api/business/unionApply' |
| | | export default { |
| | | name: 'factoryChange', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, selectApplicationForm, employeeList }, |
| | | components: { GlobalWindow, InsuranceDetails,selectApplicationForm, employeeList }, |
| | | data () { |
| | | return { |
| | | form: { |
| | |
| | | selectSolutions (id) { |
| | | this.search() |
| | | this.solutions.forEach(item => { |
| | | if (item.baseId === id) { |
| | | if (item.id === id) { |
| | | this.item = item |
| | | } |
| | | }) |
| | |
| | | margin-bottom: 10px; |
| | | } |
| | | .info { |
| | | margin-top: 30px; |
| | | width: 100%; |
| | | font-size: 14px; |
| | | color: black; |
| | |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <el-button type="primary" @click="$refs.reinsurance.open('加减保申请', {id: dataId, applyChangId: modelId})">再次投保</el-button> |
| | | <el-button type="primary" v-if="[5,8,6].includes(model.status)" @click="$refs.reinsurance.open('加减保申请', {id: dataId, applyChangId: modelId})">再次投保</el-button> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('加减保详单',apply,model,0)">导出详单</el-button> |
| | | <el-button type="primary" v-if="model.status == 0" @click="getSignLink(0)">签署申请单</el-button> |
| | | <el-button v-if="[0, 1, 3, 7].includes(model.status) && model.solutionType == 0" type="danger" @click="$refs.add_subtract_return.open('申请退回', { id: modelId })">申请退回</el-button> |
| | | <el-button v-if="[1,2,4,7].includes(model.status)" type=".open('加减保详单',apply,model)">导出详单</el-button> |
| | | <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <el-button v-if="model.status == 2" type="primary" @click="viewPidan">查看批单</el-button> |
| | | <el-button v-if="[5,8].includes(model.status)" type="primary" @click="closeOrder">关闭订单</el-button> |
| | |
| | | <span v-if="model.status === 0">保单状态:<span :class="'change-status'+model.status" >待签署</span></span> |
| | | <span v-if="model.status === 1">保单状态:<span :class="'change-status'+model.status" >待审核</span></span> |
| | | <span v-if="model.status === 2">保单状态:<span :class="'change-status'+model.status" >已生效</span></span> |
| | | <span v-if="model.status === 7">保单状态:<span :class="'change-status'+model.status" >待出单</span></span> |
| | | <span v-if="model.status === 9">保单状态:<span :class="'change-status'+model.status" >投保中</span></span> |
| | | <span v-if="model.status === 3 || model.status === 4">保单状态:<span :class="'change-status'+model.status" >退回申请</span></span> |
| | | <span v-if="model.status === 5 || model.status === 8">保单状态:<span :class="'change-status'+model.status" >已退回</span></span> |
| | | <span v-if="model.status === 7 || model.status === 6">保单状态:<span :class="'change-status'+model.status" >已关闭</span></span> |
| | | <span v-if=" model.status === 6">保单状态:<span :class="'change-status'+model.status" >已关闭</span></span> |
| | | <span>提交时间:{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('更换派遣单位申请详单',apply,model)">导出详单</el-button> |
| | | <!-- <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('申请退回', {id: dataId})">申请退回</el-button>--> |
| | | <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="$refs.editFactoryChange.open('更换派遣单位申请', {id: dataId, applyChangId: modelId})">再次投保</el-button> |
| | | <el-button type="primary" v-if="model.status == 0" @click="goSign">签署申请单</el-button> |
| | | <el-button v-if="[0, 1, 3, 7].includes(model.status)" type="primary" @click="$refs.add_subtract_return.open('申请退回', { id: modelId })">申请退回</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <el-button v-if="model.status == 5 || model.status == 2" type="primary" @click="viewPidan">查看批单</el-button> |
| | | <el-button type="primary" v-if="[5,8,6].includes(model.status)" @click="$refs.reinsurance.open('更换派遣单位申请', {id: dataId, applyChangId: modelId})">再次投保</el-button> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('更换派遣单位详情',apply,model,0)">导出详单</el-button> |
| | | <el-button type="primary" v-if="model.status == 0" @click="getSignLink(0)">签署申请单</el-button> |
| | | <el-button v-if="[0, 1, 3, 7].includes(model.status) && model.solutionType == 0" type="danger" @click="$refs.add_subtract_return.open('申请退回', { id: modelId })">申请退回</el-button> |
| | | <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <el-button v-if="model.status == 2" type="primary" @click="viewPidan">查看批单</el-button> |
| | | <el-button v-if="[5, 8].includes(model.status)" type="primary" @click="closeOrder">关闭订单</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('更换派遣单位申请详单',apply,model)">导出详单</el-button> |
| | | <el-button type="primary" v-if="model.status == 0" @click="goSign">签署申请单</el-button> |
| | | <el-button v-if="[1,2,4].includes(model.status)" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <template v-if="userInfo.type === 2"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('更换派遣单位详单',apply,model,0)">导出详单</el-button> |
| | | <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">查看批单</el-button> |
| | | <el-button v-if=" model.solutionType == 1 && [1].includes(model.status)" type="primary" @click="$refs.ApplyChangeDetails.open('投保审核',apply,model,1)">投保审核</el-button> |
| | | <el-button v-if=" model.solutionType == 1 && [0,1].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('退回申请',model,1)">退回申请</el-button> |
| | | <el-button v-if=" model.solutionType == 1 && [7].includes(model.status)" type="danger" @click="closeOrder">关闭订单</el-button> |
| | | <el-button v-if=" model.solutionType == 0 && [1].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('上传批单',model,3)">上传批单</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[3,4].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('驳回退回申请',model,5)">驳回退回申请</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[0,1].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('退回投保',model,1)">退回投保</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[2].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('修改批单',model,4)">修改批单</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type === 0"> |
| | | <el-button type="primary" @click="$refs.ApplyChangeDetails.open('更换派遣单位详单',apply,model,0)">导出详单</el-button> |
| | | <el-button v-if="[1,2,4,7,9].includes(model.status)" type="primary" @click="viewApplyFile">查看申请单</el-button> |
| | | <el-button v-if="[2].includes(model.status)" type="primary" @click="viewPidan">查看批单</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[1].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('上传批单',model,3)">上传批单</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[3,4].includes(model.status)" type="primary" @click="$refs.OperaApplyChangeCheckWindow.open('驳回退回申请',model,5)">驳回退回申请</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[0,1,3,4].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('退回投保',model,1)">退回投保</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[0,1].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('退回投保',model,1)">退回投保</el-button> |
| | | <el-button v-if="model.solutionType == 0 &&[2].includes(model.status)" type="danger" @click="$refs.OperaApplyChangeCheckWindow.open('修改批单',model,4)">修改批单</el-button> |
| | | </template> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | :title="signTitle" |
| | | :visible.sync="visiblePhone" |
| | | width="500px" |
| | | :modal="false" |
| | | :show-close="false" |
| | | :close-on-click-modal="false" |
| | | center> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="手机号" prop="phone"> |
| | | <el-input v-model="form.phone" placeholder="请输入" disabled v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="验证码" prop="code"> |
| | | <div style="width: 100%; display: flex; align-items: center;"> |
| | | <el-input v-model="form.code" placeholder="请输入" v-trim/> |
| | | <el-button type="primary" style="margin-left: 15px;" @click="send" v-if="num === 0">发送验证码</el-button> |
| | | <el-button type="primary" style="margin-left: 15px;" v-else>{{num}}s</el-button> |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="goSignDo()">确 定</el-button> |
| | | <el-button @click="visiblePhone=false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <ApplyChangeUnitDetails ref="ApplyChangeDetails" @success="successEvent" /> |
| | | <OperaApplyChangeUnitCheckWindow ref="OperaApplyChangeCheckWindow" @success="successEvent" /> |
| | | <!-- 企业申请退回 --> |
| | |
| | | <add_subtract_return ref="add_subtract_return" @success="successEvent" /> |
| | | <!-- 新增投保 --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | <!-- 加减保申请 --> |
| | | <!-- 更换派遣单位申请 --> |
| | | <additionSubtractionApplication ref="additionSubtractionApplication" @success="successEvent" /> |
| | | <!-- 更换派遣单位申请 --> |
| | | <factoryChange ref="factoryChange" @success="successEvent" /> |
| | |
| | | applyChagneDetailPage, |
| | | getChangeUnitSignLink |
| | | } from '@/api/business/insuranceApply' |
| | | import { applyChangeOpt } from '@/api/business/applyChange' |
| | | import { applyChangeOpt, getChangeMemberListOnlineSignLink } from '@/api/business/applyChange' |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | import { sendSms } from '@/api/business/smsEmail' |
| | | |
| | | export default { |
| | | name: 'OperaApplyChangeDetailWindow', |
| | |
| | | dataId:null, |
| | | modelId:null, |
| | | apply:{}, |
| | | num: 0, |
| | | timer: null, |
| | | signTitle: '手机号验证', |
| | | model: {}, |
| | | visiblePhone: false, |
| | | form: { |
| | | businessId: null, |
| | | phone: this.$store.state.userInfo.company.phone, |
| | | id: null, |
| | | editDate: '' |
| | | editDate: '', |
| | | code: null |
| | | }, |
| | | // 验证规则 |
| | | rules: { |
| | |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.visible = true; |
| | | this.visible = true |
| | | this.title = title |
| | | this.dataId = target.applyId |
| | | this.modelId = target.id |
| | | this.form.businessId = target.id |
| | | this.num=0 |
| | | this.timer=null |
| | | this.getDetail() |
| | | this.getList() |
| | | }, |
| | | send () { |
| | | sendSms({ |
| | | phone: this.form.phone |
| | | }).then(res => { |
| | | this.num = 60 |
| | | this.setTime() |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | getSignLink (flag) { |
| | | this.signTitle = '签署申请单' |
| | | this.form.type = flag |
| | | this.visiblePhone = true |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | }) |
| | | }, |
| | | goSignDo () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.isWorking = true |
| | | getChangeMemberListOnlineSignLink(this.form).then(res => { |
| | | setTimeout(() => { |
| | | this.visiblePhone = false |
| | | window.open(res) |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | | }) |
| | | }, |
| | | closeOrder() { |
| | | this.$confirm('确认关闭此订单吗?', '提示', { |
| | |
| | | }) |
| | | }).catch(() => { |
| | | |
| | | }); |
| | | }) |
| | | }, |
| | | resetting() { |
| | | this.search() |
| | |
| | | getChangeUnitSignLink({id:this.modelId}).then(res => { |
| | | setTimeout(() => { |
| | | window.open(res) |
| | | }, 500); |
| | | }, 500) |
| | | }).catch(err => { |
| | | this.$tip.apiFailed(err) |
| | | }) |
| | |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <el-button v-if="model.status == 24" type="primary" @click="$refs.OperaInsuranceApply.open('投保申请', {id: dataId})">再次投保</el-button> |
| | | <el-button v-if="model.status == 24" type="primary" @click="closeOrder">关闭订单</el-button> |
| | | <el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">查看确认书</el-button> |
| | | <el-button v-if="[22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewShenqingdan">查看申请单</el-button> |
| | | <el-button v-if="[1,2,3].includes(model.unionApplyTbdStatus) &&(model.toubaodanFile || model.oubaodanSignedFile)" type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | |
| | | <el-button v-if="model.status == 20" type="primary" @click="getSignLink(0)">签署方案确认书</el-button> |
| | | <el-button v-if="model.status == 21" type="primary" @click="getSignLink(1)">签署申请单</el-button> |
| | | <el-button v-if="model.unionApplyTbdStatus == 1" type="primary" @click="getSignLink(2)">签署投保单</el-button> |
| | | <el-button v-if="model.status == 24" type="primary" @click="closeOrder">关闭订单</el-button> |
| | | </template> |
| | | <template v-if="userInfo.type === 2"> |
| | | <el-button v-if="[21,22,23,24,25,26,27].includes(model.status)" type="primary" @click="viewFanganshu">查看确认书</el-button> |
| | |
| | | <el-option label="待审核" value="1"></el-option> |
| | | <el-option label="已生效" value="2"></el-option> |
| | | <el-option label="申请退回" value="3"></el-option> |
| | | <!-- 3 4 都是退回申请中--> |
| | | <el-option label="已退回" value="5"></el-option> |
| | | <el-option label="已关闭" value="6"></el-option> |
| | | <el-option label="待出单" value="7"></el-option> |
| | |
| | | <el-option label="待审核" value="1"></el-option> |
| | | <el-option label="已生效" value="2"></el-option> |
| | | <el-option label="申请退回" value="3"></el-option> |
| | | <el-option label="待出单" value="7"></el-option> |
| | | <el-option label="投保中" value="9"></el-option> |
| | | <!-- 3 4 都是退回申请中--> |
| | | <el-option label="已退回" value="5"></el-option> |
| | | <el-option label="已关闭" value="6"></el-option> |
| | |
| | | <span :class="'change-status'+ row.status" v-if="row.status === 3 || row.status === 4">退回申请</span> |
| | | <span :class="'change-status'+ row.status" v-if="row.status ===5 || row.status === 8">已退回</span> |
| | | <span :class="'change-status'+ row.status" v-if="row.status ===6">已关闭</span> |
| | | <span :class="'change-status'+ row.status" v-if="row.status ===7">待出单</span> |
| | | <span :class="'change-status'+ row.status" v-if="row.status ===9">投保中</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="投保企业" min-width="100px"></el-table-column> |
| | |
| | | <el-option label="待审核" value="1"></el-option> |
| | | <el-option label="已生效" value="2"></el-option> |
| | | <el-option label="申请退回" value="3"></el-option> |
| | | <el-option label="待出单" value="7"></el-option> |
| | | <el-option label="投保中" value="9"></el-option> |
| | | <!-- 3 4 都是退回申请中--> |
| | | <el-option label="已退回" value="5"></el-option> |
| | | <el-option label="已关闭" value="6"></el-option> |
| | |
| | | <span :class="'change-status'+row.status" v-if="row.status === 3 || row.status === 4">退回申请</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status ===5 || row.status === 8">已退回</span> |
| | | <span :class="'change-status'+row.status" v-if="row.status ===6">已关闭</span> |
| | | <span :class="'change-status'+ row.status" v-if="row.status ===7">待出单</span> |
| | | <span :class="'change-status'+ row.status" v-if="row.status ===9">投保中</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="validCode" label="批单号" min-width="100px"></el-table-column> |
| | |
| | | HBD_BD_SIGNED_PDF(16, "合并单-签署后保单申请表PDF", "合并单-签署后保单申请表PDF"), |
| | | SOLUTIONS_CONFIRMATION_LATTER(18, "投保方案确认书", "投保方案确认书"), |
| | | MEMBER_LIST_LATTER(19, "委托保 - 投保人员名单", "委托保 - 投保人员名单"), |
| | | CHANGE_MEMBER_LIST_LATTER(20, "委托保 - 加减保人员名单", "委托保 - 加减保人员名单"), |
| | | // CHANGE_MEMBER_LIST_LATTER(20, "委托保 - 加减保人员名单", "委托保 - 加减保人员名单"), |
| | | WTB_BD_DONE_PDF(21, "委托投保单 - 合并单最终保单", "委托投保单 - 合并单最终保单"), |
| | | WTB_CA_DONE_PDF(23, "委托加减保/换厂业务 - 合并单最终保单", "委托加减保/换厂业务 - 合并单最终保单"), |
| | | WTB_CONFIRMATION_LATTER(24, "委托保 - 投保方案确认书", "委托保 - 投保方案确认书"), |
| | |
| | | RETURN_APPLY_SIGNATURE(4, "发起退回申请(已签章)"), |
| | | PLATFORM_AGREE(5, "平台同意(已退回)"), |
| | | CLOSE(6, "已关闭"), |
| | | COMPANY_SIGN(7, "审核通过"), |
| | | CHECHED_PASSED(7, "审核通过"), |
| | | PALTFORM_CHECK_PASS_NO(8, "审核不通过"), |
| | | WTB_TOUBAOING(9, "投保中"), |
| | | ; |
| | |
| | | }else if(applyChangeOptDTO.getOptType().equals(6)){ |
| | | //企业关闭 |
| | | applyLogType = Constants.ApplyLogType.CA_COMPANY_CLOSE; |
| | | if(!applyChange.getStatus().equals(Constants.ApplyChangeStatus.PLATFORM_AGREE.getKey())){ |
| | | if(!(applyChange.getStatus().equals(Constants.ApplyChangeStatus.PLATFORM_AGREE.getKey()) |
| | | ||applyChange.getStatus().equals(Constants.ApplyChangeStatus.CHECHED_PASSED.getKey()))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"数据状态错误无法进行该操作!"); |
| | | } |
| | | applyChange.setStatus(Constants.ApplyChangeStatus.CLOSE.getKey()); |
| | |
| | | applyChange.setApplyLogList(applyLogList); |
| | | |
| | | List<Multifile> multifiles = multifileMapper.selectList(new QueryWrapper<Multifile>().lambda() |
| | | .eq(Multifile::getObjId,Constants.equalsInteger(applyChange.getSolutionType(),Constants.ZERO)? applyChange.getId():applyChange.getUnionChangeId()) |
| | | .eq(Multifile::getObjId, applyChange.getId() ) |
| | | .in(Multifile::getObjType, Arrays.asList(new Integer[]{Constants.MultiFile.CA_APPLY_JIAJIAN_SIGN.getKey() |
| | | ,Constants.MultiFile.CA_PD_PDF.getKey() |
| | | ,Constants.MultiFile.CA_APPLY_CHANGEUNIT_SIGN.getKey()})) |
| | |
| | | //如果是不通过 |
| | | update.setStatus(Constants.ApplyChangeStatus.PLATFORM_AGREE.getKey()); |
| | | }else{ |
| | | update.setStatus(Constants.ApplyChangeStatus.COMPANY_SIGN.getKey()); |
| | | update.setStatus(Constants.ApplyChangeStatus.CHECHED_PASSED.getKey()); |
| | | } |
| | | applyChangeJoinMapper.updateById(update); |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.APPLY_CHANGE; |
| | |
| | | .leftJoin(InsuranceApply.class,InsuranceApply::getId,ApplyChange::getApplyId) |
| | | .eq(ApplyChange::getIsdeleted, Constants.ZERO) |
| | | .eq(InsuranceApply::getUnionApplyId,saveUnionChangeDTO.getUnionApplyId()) |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.COMPANY_SIGN.getKey()) |
| | | .eq(ApplyChange::getStatus,Constants.ApplyChangeStatus.CHECHED_PASSED.getKey()) |
| | | .eq(InsuranceApply::getStatus,Constants.InsuranceApplyStatus.UPLOAD_INSURANCE.getKey()) |
| | | .eq(ApplyChange::getType,saveUnionChangeDTO.getBusinessType()) |
| | | .in(ApplyChange::getId,saveUnionChangeDTO.getApplyIds()) |
| | |
| | | .set(ApplyChange::getUnionChangeId,null) |
| | | .set(ApplyChange::getCheckDate,new Date()) |
| | | .set(ApplyChange::getCheckUserId,user.getId()) |
| | | .set(ApplyChange::getStatus,Constants.ApplyChangeStatus.COMPANY_SIGN.getKey()) |
| | | .set(ApplyChange::getStatus,Constants.ApplyChangeStatus.CHECHED_PASSED.getKey()) |
| | | .in(ApplyChange::getUnionChangeId,unionChange.getId()) |
| | | ); |
| | | |