| | |
| | | <div class="desc_item"> |
| | | <div class="desc_item_label"> |
| | | <div class="desc_item_label_left"> |
| | | <span>投保企业:{{ apply.companyName }}</span> |
| | | <span>投保1企业:{{ apply.companyName }}</span> |
| | | <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> |
| | |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <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" v-if="[5,8].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> |
| | |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <template v-if="userInfo.type === 1"> |
| | | <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" v-if="[5,8].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> |
| | |
| | | queryWrapper.eq(InsuranceApply::getCompanyId, loginUserInfo.getCompanyId()); |
| | | }else if(loginUserInfo.getType().equals(Constants.TWO)){ |
| | | //如果是商户查看 |
| | | if(pageWrap.getModel().getSolutionType()!=null && pageWrap.getModel().getSolutionType() ==0){ |
| | | queryWrapper.exists("select cs.id from company_solution cs where cs.isdeleted=0 and cs.company_id=t.company_id and cs.shop_id="+loginUserInfo.getCompanyId()); |
| | | if(pageWrap.getModel().getSolutionType()!=null && pageWrap.getModel().getSolutionType().equals(0)){ |
| | | queryWrapper.exists("select cs.id from company_solution cs left join solutions s on cs.solution_id=s.id where cs.isdeleted=0 and s.base_id=t1.base_id and cs.shop_id="+loginUserInfo.getCompanyId()); |
| | | }else if(pageWrap.getModel().getSolutionType()!=null && pageWrap.getModel().getSolutionType() ==1){ |
| | | queryWrapper.eq(Solutions::getShopId,loginUserInfo.getCompanyId()); |
| | | }else{ |
| | | queryWrapper.apply("((t1.type=0 and exists(select cs.id from company_solution cs where cs.isdeleted=0 and cs.company_id=t.company_id and cs.shop_id="+loginUserInfo.getCompanyId()+")) or (" + |
| | | queryWrapper.apply("((t1.type=0 and exists(select cs.id from company_solution cs left join solutions s on cs.solution_id=s.id where cs.isdeleted=0 and s.base_id=t1.base_id and cs.shop_id="+loginUserInfo.getCompanyId()+")) or (" + |
| | | "t1.type=1 and t1.shop_id="+loginUserInfo.getCompanyId()+"))") ; |
| | | } |
| | | }else{ |
| | |
| | | QueryWrapper<Solutions> wrapper = new QueryWrapper<>(solutions); |
| | | if(Constants.equalsObject(user.getType(),Constants.TWO)){ |
| | | //如果是删除 |
| | | |
| | | wrapper.lambda().exists("select c.id from company_solution c left join solutions d on c.solution_id=d.id where c.isdeleted=0 and d.base_id=solutions.base_id and c.shop_id="+user.getCompanyId());//设置无效访问 |
| | | // wrapper.lambda().exists("select c.id from company_solution c left join solutions d on c.solution_id=d.id where c.isdeleted=0 and d.base_id=solutions.base_id and c.shop_id="+user.getCompanyId());//设置无效访问 |
| | | wrapper.apply("((solutions.type=0 and exists(select cs.id from company_solution cs left join solutions s on cs.solution_id=s.id where cs.isdeleted=0 and s.base_id=solutions.base_id and cs.shop_id="+user.getCompanyId()+")) or (" + |
| | | "solutions.type=1 and solutions.shop_id="+user.getCompanyId()+"))") ; |
| | | } |
| | | return solutionsMapper.selectList(wrapper); |
| | | } |