| | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_admin_api/' |
| | | |
| | | # 任康 |
| | | VUE_APP_API = 'http://192.168.0.131:10030/' |
| | | VUE_APP_API = 'http://localhost:10030/' |
| | |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/yyb_web_api/' |
| | | |
| | | VUE_APP_API = 'http://192.168.0.131:10031/' |
| | | VUE_APP_API = 'http://localhost:10031/' |
| | | |
| | | # VUE_APP_API = 'https://www.yyb.red/yyb_web_api/' |
| | |
| | | <div class="box_item"> |
| | | <div class="box_item_title"> |
| | | <span>出险人信息</span> |
| | | <el-select v-model="ruleForm.status" style="width: 100px;" placeholder="请选择"> |
| | | <el-option label="待立案" :value="2"></el-option> |
| | | <el-select v-model="ruleForm.status" style="width: 100px;" placeholder="请选择案件状态"> |
| | | <el-option label="已报案" :value="1"></el-option> |
| | | <el-option label="已退回" :value="4"></el-option> |
| | | <el-option label="待受理" :value="5"></el-option> |
| | | <el-option label="已拒绝" :value="6"></el-option> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="案件状态" prop="status"> |
| | | <el-select v-model="searchForm.status" placeholder="请选择"> |
| | | <el-option label="待立案" :value="2"></el-option> |
| | | <el-option label="已报案" :value="1"></el-option> |
| | | <el-option label="已退回" :value="4"></el-option> |
| | | <el-option label="待受理" :value="5"></el-option> |
| | | <el-option label="已拒绝" :value="6"></el-option> |
| | |
| | | <el-select v-model="searchForm.status" clearable placeholder="请选择" @change="search"> |
| | | <el-option label="暂存中" value="0"></el-option> |
| | | <el-option label="已报案" value="1"></el-option> |
| | | <el-option label="待立案" value="2"></el-option> |
| | | <!-- <el-option label="待立案" value="2"></el-option>--> |
| | | <el-option label="已立案" value="3"></el-option> |
| | | <el-option label="立案退回" value="4"></el-option> |
| | | <el-option label="待受理" value="5"></el-option> |
| | | <!-- <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="8"></el-option> |
| | |
| | | <template slot-scope="{row}"> |
| | | <el-button |
| | | type="text" |
| | | @click="$refs.operaSettleClaimsWindow.open('报案详情', row.id)" |
| | | @click="$refs.operaSettleClaimsWindow.open('报案理赔详情', row.id)" |
| | | v-if="row.status !== 0"> |
| | | 查看详情 |
| | | </el-button> |
| | |
| | | <el-select v-model="searchForm.status" clearable placeholder="请选择" style="width: 150px" @change="search"> |
| | | <el-option label="暂存中" value="0"></el-option> |
| | | <el-option label="已报案" value="1"></el-option> |
| | | <el-option label="待立案" value="2"></el-option> |
| | | <!-- <el-option label="待立案" value="2"></el-option>--> |
| | | <el-option label="已立案" value="3"></el-option> |
| | | <el-option label="立案退回" value="4"></el-option> |
| | | <el-option label="待受理" value="5"></el-option> |
| | | <!-- <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="8"></el-option> |
| | |
| | | <template slot-scope="{row}"> |
| | | <el-button |
| | | type="text" |
| | | @click="$refs.operaSettleClaimsWindow.open('报案详情', row.id)" |
| | | @click="$refs.operaSettleClaimsWindow.open('报案理赔详情', row.id)" |
| | | v-if="row.status !== 0"> |
| | | 查看详情 |
| | | </el-button> |
| | |
| | | <el-tabs v-model="activeName" @tab-click="handleClick" > |
| | | <el-tab-pane v-for="a in tabs" :key="a.path" :name="a.name" > |
| | | <span slot="label" title="点击刷新"> {{a.label }} |
| | | <el-badge v-if="(a.name==0?totalPage0:(a.name==1?totalPage1:totalPage2)) >0" :value="(a.name==0?totalPage0:(a.name==1?totalPage1:totalPage2)) " class="item"></el-badge> |
| | | <el-badge v-if="getTotalNoticeCount(a) >0" :value="getTotalNoticeCount(a) " class="item"></el-badge> |
| | | </span> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | this.setLoadTimer() |
| | | }, |
| | | methods: { |
| | | getTotalNoticeCount(a){ |
| | | if(a.name == 0){ |
| | | return this.totalPage0; |
| | | } else if(a.name == 1){ |
| | | return this.totalPage1; |
| | | } else if(a.name ==2){ |
| | | return this.totalPage2; |
| | | } else if(a.name ==6){ |
| | | return this.totalPage6; |
| | | } else if(a.name ==7){ |
| | | return this.totalPage7; |
| | | } else if(a.name ==8){ |
| | | return this.totalPage8; |
| | | } |
| | | |
| | | return 0; |
| | | }, |
| | | detail (obj) { |
| | | if (obj.objType === 0) { |
| | | getDetail(obj.objId).then(res => { |
| | |
| | | } else if (obj.objType === 4) { |
| | | this.$refs.OperaTaxesWindow.open('开票申请详情', { id: obj.objId }) |
| | | } else if (obj.objType === 5) { |
| | | deleById(obj.id) |
| | | .then(res => { |
| | | this.tableData2.forEach((item, index) => { |
| | | if (item.id === obj.id) { |
| | | this.tableData2.splice(index, 1) |
| | | this.totalPage2 = this.totalPage2 - 1 |
| | | } |
| | | }) |
| | | this.$refs.operaSettleClaimsWindow.open('理赔详情', { id: obj.objId }) |
| | | }) |
| | | // deleById(obj.id) |
| | | // .then(res => { |
| | | // this.tableData2.forEach((item, index) => { |
| | | // if (item.id === obj.id) { |
| | | // this.tableData2.splice(index, 1) |
| | | // this.totalPage2 = this.totalPage2 - 1 |
| | | // } |
| | | // }) |
| | | this.$refs.operaSettleClaimsWindow.open('报案理赔详情',obj.objId) |
| | | // this.$refs.operaSettleClaimsWindow.open('理赔详情', { id: obj.objId }) |
| | | // }) |
| | | } |
| | | }, |
| | | setLoadTimer () { |
| | |
| | | // this.handleCurrentChange1(0); |
| | | } |
| | | if (pemissons.includes('business:notice:settle')) { |
| | | this.tabs.push({ name: '2', label: '理赔提醒' }) |
| | | this.tabs.push({ name: '2', label: '报案理赔' }) |
| | | // this.handleCurrentChange2(0); |
| | | } |
| | | if (this.userInfo.type === 1) { |
| | |
| | | CHANGE_FACTORY(2, "员工换厂申请","保险方案"), |
| | | DISPATCH_UNIT(3, "派遣单位申请","派遣单位"), |
| | | TAXES(4, "开票申请","开票金额"), |
| | | SETTLE_CLAIMS(5, "报案理赔","报案人"), |
| | | SETTLE_CLAIMS(5, "理赔提醒","报案信息"), |
| | | CONTRACT(6, "合同签署","合同签署"), |
| | | SOLUTIONS(7, "方案签署","方案签署"), |
| | | COMPANY_USER_APPLY(8, "集团申请","集团申请"), |
| | | SETTLE_CLAIMS_APPLY_ADMIN(9, "报案理赔","待立案"), |
| | | ; |
| | | // 成员变量 |
| | | private int key; |
| | |
| | | |
| | | public enum NoticeType { |
| | | |
| | | ZERO(0, "待审核","","","待审核","待处理","处理中","待签署","待签署"), |
| | | ONE(1, "企业待签署","","","工种待审核","","已结案","",""), |
| | | TWO(2, "待出单","待审核","待审核","","","","",""), |
| | | THREE(3, "申请退回","申请退回","申请退回","","","","",""), |
| | | FOUR(4, "已退回","已退回","已退回","","","已撤销","",""), |
| | | FIVE(5, "申请驳回","申请驳回","申请驳回","","","","",""), |
| | | ZERO(0, "待审核","","","待审核","待处理","待审核","待签署","待签署"), |
| | | ONE(1, "企业待签署","","","工种待审核","","已退回","",""), |
| | | TWO(2, "待出单","待审核","待审核","","","已立案","",""), |
| | | THREE(3, "申请退回","申请退回","申请退回","","","已受理,需要补充材料","",""), |
| | | FOUR(4, "已退回","已退回","已退回","","","已拒绝","",""), |
| | | FIVE(5, "申请驳回","申请驳回","申请驳回","","","商议待领导审批","",""), |
| | | //续保通知 |
| | | SIX(6, "","","","","","","",""), |
| | | SIX(6, "","","","","","商议审批拒绝","",""), |
| | | //商户端 委托保 - 投保待审核 加减保 换厂 待审核 |
| | | SEVEN(7, "待审核","待审核","待审核","","","","",""), |
| | | SEVEN(7, "待审核","待审核","待审核","","","商议审批拒绝通知","",""), |
| | | //待复审 |
| | | EIGHT(8, "待审核","","","","","","",""), |
| | | NINE(9, "","","","","","","",""), |
| | | EIGHT(8, "待审核","","","","","待理算","",""), |
| | | NINE(9, "","","","","","待核赔","",""), |
| | | TEN(10, "","","","","","待核赔确认","",""), |
| | | ELEVEN(11, "","","","","","赔付金额已变更","",""), |
| | | TWELVE(12, "","","","","","待结案","",""), |
| | | THIRTEEN(13, "","","","","","已结案","",""), |
| | | FOURTEEN(14, "","","","","","已撤案","",""), |
| | | ; |
| | | |
| | | // 成员变量 |
| | |
| | | @Autowired |
| | | private SettleClaimsMapper settleClaimsMapper; |
| | | @Autowired |
| | | private MemberMapper memberMapper; |
| | | @Autowired |
| | | private SettleClaimsExtMapper settleClaimsExtMapper; |
| | | |
| | | @Autowired |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | } |
| | | Member member =memberMapper.selectById(settleClaimsDTO.getMemberId()); |
| | | if(member == null){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对不起,出险人信息不正确!"); |
| | | } |
| | | SettleClaims settleClaims = new SettleClaims(); |
| | | BeanUtils.copyProperties(settleClaimsDTO,settleClaims); |
| | | settleClaims.setReportNumStatus(Constants.ZERO); |
| | | settleClaims.setCompanyId(loginUserInfo.getCompanyId()); |
| | | settleClaims.setOrigin(Constants.ZERO); |
| | | settleClaims.setMemberName(member.getName()); |
| | | settleClaims.setCreateDate(new Date()); |
| | | if(Constants.equalsInteger(settleClaimsDTO.getSaveType(),Constants.ONE)&&StringUtils.isBlank(settleClaims.getCode())){ |
| | | Long nextCode = settleClaimsMapper.selectCount(new QueryWrapper<SettleClaims>().lambda().ne(SettleClaims::getStatus,Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()) |
| | | .eq(SettleClaims::getOrigin,Constants.ZERO) .like(SettleClaims::getCreateDate,DateUtil.getDate(new Date(),"yyyy-MM-dd")) |
| | |
| | | } |
| | | settleClaimsMapper.updateById(settleClaims); |
| | | }else{ |
| | | settleClaims.setCreateDate(new Date()); |
| | | settleClaims.setIsdeleted(Constants.ZERO); |
| | | settleClaims.setCompanyId(loginUserInfo.getCompanyId()); |
| | | settleClaims.setStatus(Constants.equalsInteger(settleClaimsDTO.getSaveType(),Constants.ONE)? |
| | | Constants.SettleClaimsStatus.RETURN_ACCEPTANCE.getKey():Constants.SettleClaimsStatus.WAIT_ACCEPTANCE.getKey()); |
| | | if(Constants.equalsInteger(settleClaimsDTO.getSaveType(),Constants.ONE)){ |
| | |
| | | this.saveSettleClaimsLog(settleClaims,Constants.SettleClaimsLogType.PLATFORM_REGISTER,null,Constants.SettleClaimsStatus.CONFIRM_INFORMATION); |
| | | } |
| | | } |
| | | if( Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.RETURN_ACCEPTANCE.getKey()) || |
| | | Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.CONFIRM_INFORMATION.getKey())){ |
| | | //-如果是待立案或者已立案待审核,发待办通知------------- |
| | | Constants.NoticeObjectType noticeObjectType = Constants.NoticeObjectType.SETTLE_CLAIMS; |
| | | noticesMapper.delete(new QueryWrapper<Notices>().lambda().eq(Notices::getObjType,noticeObjectType.getKey()).eq(Notices::getObjId,settleClaims.getId())); |
| | | Notices notices = new Notices(noticeObjectType,Constants.ZERO,settleClaims.getId(),getNoticeConttent(settleClaims), |
| | | settleClaims.getCompanyId(), |
| | | Constants.equalsInteger(settleClaims.getStatus(),Constants.SettleClaimsStatus.RETURN_ACCEPTANCE.getKey())?Constants.NoticeType.ZERO:Constants.NoticeType.TWO); |
| | | noticesMapper.insert(notices); |
| | | } |
| | | return settleClaims.getId(); |
| | | } |
| | | |
| | | private String getNoticeConttent(SettleClaims settleClaims) { |
| | | return "报案号:"+StringUtils.defaultString(settleClaims.getCode(),"")+" 出险人:"+StringUtils.defaultString(settleClaims.getMemberName(),""); |
| | | } |
| | | |
| | | public void saveRisk(SettleClaims settleClaims, SettleClaimsDTO settleClaimsDTO, SystemDictDataServiceImpl systemDictDataService){ |
| | | //根据保单信息 查询出主方案 |
| | | InsuranceApply insuranceApply = insuranceApplyMapper.selectById(settleClaims.getInsuranceApplyId()); |