| | |
| | | <span>提交时间:{{ model.createDate }}</span> |
| | | </div> |
| | | <div class="desc_item_label_right"> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('投保详情单',model,0)">导出详单</el-button> |
| | | <el-button v-if="model.status == 2 ||model.status == 3 ||model.status == 5 ||model.status == 7 ||model.status == 8 " type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | | <el-button v-if="model.status == 5 " type="primary" @click="viewBaoxiandan">查看保险单</el-button> |
| | | <el-button v-if="model.status == 10 " type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button> |
| | | <el-button v-if="model.status == 3 " type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button> |
| | | <el-button v-if="model.status == 2 " type="primary" @click="goSign">企业签章</el-button> |
| | | <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳回退回申请',model,5)">驳回退回申请</el-button> |
| | | <el-button v-if="model.status == 0 " type="primary" @click="$refs.InsuranceDetails.open('投保审核',model,1)">投保审核</el-button> |
| | | <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('退回投保',model,1)">退回投保</el-button> |
| | | <el-button v-if="model.status == 5 " type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('修改保险单',model,4)">修改保险单</el-button> |
| | | <template v-if="userInfo.type === 1"> |
| | | <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="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('投保申请', {id: dataId})">再次投保</el-button> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('投保详情单',model,0)">导出详单</el-button> |
| | | <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">查看保险单</el-button> |
| | | <el-button v-if="model.status == 2" type="primary" @click="goSign">签署投保单</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button type="primary" @click="$refs.InsuranceDetails.open('投保详情单',model,0)">导出详单</el-button> |
| | | <el-button v-if="[2, 3, 5, 7, 8].includes(model.status)" type="primary" @click="viewToubaodan">查看投保单</el-button> |
| | | <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">查看保险单</el-button> |
| | | <el-button v-if="model.status == 10" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button> |
| | | <el-button v-if="model.status == 3" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button> |
| | | <el-button v-if="model.status == 6 || model.status == 7|| model.status == 8" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳回退回申请',model,5)">驳回退回申请</el-button> |
| | | <el-button v-if="model.status == 0" type="primary" @click="$refs.InsuranceDetails.open('投保审核',model,1)">投保审核</el-button> |
| | | <el-button v-if="model.status != 5 && model.status != 4 && model.status != 1" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('退回投保',model,1)">退回投保</el-button> |
| | | <el-button v-if="model.status == 5" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('修改保险单',model,4)">修改保险单</el-button> |
| | | </template> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="desc_item_from"> |
| | |
| | | </div> |
| | | <InsuranceDetails ref="InsuranceDetails" @success="successEvent" /> |
| | | <OperaInsuranceApplyCheckWindow ref="OperaInsuranceApplyCheckWindow" @success="successEvent" /> |
| | | <!-- 退回投保 --> |
| | | <!-- 企业申请退回 --> |
| | | <applyReturn ref="applyReturn" @success="successEvent" /> |
| | | <!-- 新增投保 --> |
| | | <OperaInsuranceApply ref="OperaInsuranceApply" @success="successEvent" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import InsuranceDetails from '@/components/business/InsuranceDetails' |
| | | import OperaInsuranceApplyCheckWindow from '@/components/business/OperaInsuranceApplyCheckWindow' |
| | | |
| | | import applyReturn from '@/components/enterprise/applyReturn' |
| | | import {getDetail, getSignLink} from "@/api/business/insuranceApply"; |
| | | import OperaInsuranceApply from '@/components/enterprise/OperaInsuranceApplyWindow' |
| | | import { mapState } from 'vuex' |
| | | import {all as solutionAll} from "@/api/business/solutions"; |
| | | export default { |
| | | name: 'OperaInsuranceApplyWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow, InsuranceDetails ,OperaInsuranceApplyCheckWindow}, |
| | | components: { GlobalWindow, InsuranceDetails ,OperaInsuranceApplyCheckWindow, applyReturn, OperaInsuranceApply }, |
| | | data () { |
| | | return { |
| | | // 表单数据 |
| | |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.visible=true; |
| | | this.dataId=target.id |
| | | this.getDetail() |
| | | this.visible = true; |
| | | this.title = title |
| | | this.dataId = target.id |
| | | this.getDetail() |
| | | }, |
| | | handleClick(e) { |
| | | console.log(e) |
| | | }, |
| | | goSign(){ |
| | | getSignLink(this.dataId).then(res => { |
| | | window.open(res) |