jiangping
2024-05-07 529d0b8982cf30f57ba7e366c0f822c1d82c0b69
company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -26,7 +26,8 @@
                      <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>
                        <el-button v-if="model.status == 2" type="primary" @click="$refs.operaverifyPhoneNumberWindew.open('验证手机号')">签署投保单</el-button>
<!--                          $refs.operaverifyPhoneNumberWindew.open('验证手机号')-->
                        <el-button v-if="model.status == 2" type="primary" :disabled="loading" :loading="loading" @click="goSign()">签署投保单</el-button>
                        <el-button v-if="model.status == 5" type="primary" @click="viewBaoxiandan">查看保险单</el-button>
                        <el-button v-if="model.status == 4" type="primary" @click="$refs.OperaInsuranceApply.open('投保申请', {id: dataId})">再次投保</el-button>
                        <el-button v-if="[0, 2, 3, 10].includes(model.status)" type="danger" @click="$refs.applyReturn.open('申请退回', {id: dataId})">申请退回</el-button>
@@ -516,7 +517,8 @@
        gzList: [],
      activeName: '0',
        total: 0,
      currentPage: 1
      currentPage: 1,
        loading: false
    }
  },
  created () {
@@ -736,11 +738,14 @@
            this.resetting()
      },
    goSign(){
         this.loading = true
      getSignLink(this.dataId).then(res => {
        setTimeout(() => {
          this.loading = false
        // setTimeout(() => {
          window.open(res)
        }, 500);
        // }, 500);
      }).catch(err => {
          this.loading = false
       this.$tip.apiFailed(err)
      })
    },