MrShi
2024-11-15 30cfb2b836a8a3d609518cc295753b58b17a9bc7
company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -23,6 +23,7 @@
                        <span>提交时间:{{ model.createDate }}</span>
                    </div>
                  <div class="desc_item_label_right">
                      <el-button type="primary" @click="viewConfirmationLetter">查看方案确认书</el-button>
                      <template v-if="userInfo.type === 1">
                        <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>
@@ -34,14 +35,18 @@
                        <el-button v-if="model.status == 4" type="primary" @click="closeOrder">关闭申请</el-button>
                      </template>
                    <template v-else>
                        <el-button v-if="[12].includes(model.status)" type="primary" @click="review">投保复审</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="[2,10].includes(model.status) && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('上传投保单',model,2)">上传投保单</el-button>
                      <el-button v-if="model.status == 3 && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button>
<!--                        <el-button v-if="model.status == 26 && model.solutionType == 1" type="primary" @click="$refs.OperaUnionApplyCheckWindow.open('上传保险单',model,3)">上传保险单</el-button>-->
                      <el-button  v-if="[6,7,8,11].includes(model.status) && model.solutionType ==0" type="primary" @click="$refs.OperaInsuranceApplyCheckWindow.open('驳回退回申请',model,5)">驳回退回申请</el-button>
                      <el-button v-if="model.status == 0 && model.solutionType ==0" type="primary" @click="$refs.InsuranceDetails.open('投保审核',model,1)">投保审核</el-button>
                      <el-button v-if="![1,4,,5].includes(model.status) && model.solutionType ==0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('退回申请',model,1)">退回申请</el-button>
                      <el-button v-if="[22, 0].includes(model.status) && [0,1].includes(model.solutionType)" type="primary" @click="$refs.InsuranceDetails.open('投保审核',model,1)">投保审核</el-button>
                      <el-button v-if="![1, 4, 5].includes(model.status) && [0,1].includes(model.solutionType)" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('退回申请',model,1)">退回申请</el-button>
                      <el-button v-if="model.status == 5  && model.solutionType ==0" type="danger" @click="$refs.OperaInsuranceApplyCheckWindow.open('修改保险单',model,4)">修改保险单</el-button>
                    </template>
                  </div>
@@ -72,12 +77,12 @@
                            align="center"
                            label="保险生效止期">
                        </el-table-column>
                        <el-table-column
                            prop="insureNum"
                            align="center"
                            label="投保人数">
                        </el-table-column>
                      <el-table-column prop="guaranteeNum"  align="center" label="在保人数" ></el-table-column>
<!--                        <el-table-column-->
<!--                            prop="insureNum"-->
<!--                            align="center"-->
<!--                            label="投保人数">-->
<!--                        </el-table-column>-->
                      <el-table-column prop="guaranteeNum"  align="center" label="当前在保人数" ></el-table-column>
                        <el-table-column
                            prop="serviceDays"
                            align="center"
@@ -86,9 +91,9 @@
                        <el-table-column
                            prop="currentFee"
                            align="center"
                            label="已产生费用(元)">
                            label="批改费用合计">
                          <template slot-scope="{row}">
                            <span>{{row.currentFee!=null?row.currentFee: '-'}}</span>
                            <span>{{row.changeMoney}}元</span>
                          </template>
                        </el-table-column>
                        <el-table-column
@@ -103,9 +108,9 @@
                </div>
                <div class="desc_item_cate">
                    <el-tabs v-model="activeName" @tab-click="handleClick">
                        <el-tab-pane label="在保人员" name="0" ></el-tab-pane>
                        <el-tab-pane label="保单人员" name="0" ></el-tab-pane>
                        <el-tab-pane label="加/减保记录"  name="1"></el-tab-pane>
                        <el-tab-pane label="更换派遣单位记录" name="2"></el-tab-pane>
                        <el-tab-pane label="更换工种记录" name="2"></el-tab-pane>
                    </el-tabs>
                </div>
                <div class="desc_item_search">
@@ -116,9 +121,10 @@
                                    <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="3"></el-option>
                                </el-select>
                            </el-form-item>
                            <el-form-item label="派遣单位" prop="duId">
                            <el-form-item label="派遣单位" prop="duId" v-if="model.hasDispatchUnit !== 1">
                                <el-select v-model="formInline.duId" placeholder="请选择" @change="search">
                                    <el-option
                                        v-for="item in dwList"
@@ -229,12 +235,23 @@
                            </template>
                        </el-table-column>
                        <el-table-column
                            align="center"
                            :key="Math.random()"
                            label="在保状态">
                            <template slot-scope="{row}">
                                <span v-if="row.applyStatus === 0">保障中</span>
                                <span v-if="row.applyStatus === 1">不在保</span>
                                <span v-if="row.applyStatus === 2">待生效</span>
                            </template>
                        </el-table-column>
                        <el-table-column
                            :key="Math.random()"
                            prop="idcardNo"
                            align="center"
                            label="身份证号">
                        </el-table-column>
                        <el-table-column
                            v-if="model.hasDispatchUnit !== 1"
                            :key="Math.random()"
                            prop="duName"
                            align="center"
@@ -401,7 +418,7 @@
                            :key="Math.random()"
                            prop="changeNum"
                            align="center"
                            label="更换派遣单位人数">
                            label="更换工种人数">
                          <template scope="{row}">
                            {{row.changeNum||0}} 人
                          </template>
@@ -483,6 +500,7 @@
        <operaverifyPhoneNumberWindew ref="operaverifyPhoneNumberWindew" @success="goSign" />
        <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
        <OperaApplyChangeMonthWindow ref="OperaApplyChangeMonthWindow" />
        <OperaUnionApplyCheckWindow ref="OperaUnionApplyCheckWindow" @success="successEvent" />
        <template v-slot:footer>
            <el-button @click="visible=false">返回</el-button>
        </template>
@@ -505,10 +523,12 @@
import { getDetail, getSignLink, applyDetailPage,  exportExcel, applyChagneDetailExcel, applyOpt } from '@/api/business/insuranceApply'
import { findListByDTO } from '@/api/business/dispatchUnit'
import { fetchList, exportApplyJiajianBaoExcel } from '@/api/business/applyChange'
import { reexamineCheck } from '@/api/business/insuranceApply'
import { findListByDTO as worktypeFindListByDTO } from '@/api/business/worktype'
import OperaInsuranceApplyAddWindow from '@/components/enterprise/OperaInsuranceApplyAddWindow'
import { mapState } from 'vuex'
import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
import OperaUnionApplyCheckWindow from '@/components/business/OperaUnionApplyCheckWindow'
export default {
  name: 'OperaInsuranceApplyWindow1',
  extends: BaseOpera,
@@ -524,7 +544,8 @@
    OperaApplyChangeDetailWindow,
    OperaApplyChangeUnitDetailWindow,
    OperaInsuranceApplyAddWindow,
    operaverifyPhoneNumberWindew
    operaverifyPhoneNumberWindew,
    OperaUnionApplyCheckWindow
  },
  data () {
    return {
@@ -604,9 +625,24 @@
      this.getDW()
      this.getGZ()
    },
    viewConfirmationLetter() {
      this.$refs.OperaPdfViewerWindow.open('查看方案确认书', this.model.fanganFile.fileurlFull)
    },
    review() {
      this.$confirm('是否确定复核通过?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        reexamineCheck({ id: this.dataId })
          .then(res => {
            this.getDetail()
          })
      }).catch(() => {
      });
    },
    exportRecords() {
      // let formDate = new FormData()
      // formDate.append('id', this.dataId)
      exportApplyJiajianBaoExcel({ id: this.dataId })
        .then(response => {
          this.download(response)