jiangping
2025-06-17 78a173f85f8a4666d83cf8d900f04dd9f8e3e127
company/src/views/enterprise/insuranceApply.vue
@@ -54,7 +54,12 @@
            </el-table-column>
            <el-table-column prop="statusInfo"   align="center"  fixed label="状态">
              <template slot-scope="{row}">
                <span :class="'apply-status'+row.status" >{{row.statusInfo}}</span>
                  <span style="color: #666;" v-if="[9,25,27,5].includes(row.status) && ['已关闭','已过期'].includes(row.statusInfo)">{{row.statusInfo}}</span>
                  <span style="color: red;" v-else-if="row.status === 4 && row.statusInfo === '已退回'">{{ row.statusInfo}}</span>
                  <span style="color: #f95601;" v-else-if="[5,27].includes(row.status) && row.statusInfo === '待生效'">{{ row.statusInfo}}</span>
                  <span style="color: #216EEE;" v-else-if="[12].includes(row.status) && row.statusInfo === '待审核'">{{ row.statusInfo}}</span>
                  <span :class="'apply-status'+row.status" v-else>{{row.statusInfo}}</span>
<!--                <span :class="'apply-status'+row.status" >{{row.statusInfo}}</span>-->
              </template>
            </el-table-column>
            <el-table-column prop="solutionsName" fixed label="保险方案" align="center" min-width="150"></el-table-column>
@@ -81,7 +86,8 @@
              </el-table-column>
            <el-table-column label="投保时长">
              <template slot-scope="{row}">
                <span>{{(row.serviceDays - row.loseEfficacyDays) < 0 ? `-` : (row.serviceDays - row.loseEfficacyDays+'天')}}</span>
<!--                  (row.serviceDays - row.loseEfficacyDays) < 0 ? `-` : (row.serviceDays - row.loseEfficacyDays+'天')-->
                <span>{{row.loseEfficacyDays}}</span>
              </template>
            </el-table-column>
<!--            <el-table-column prop="currentFee" label="已产生费用"  align="center">-->
@@ -195,19 +201,21 @@
    isShow(status, endTime) {
      const currentDate = new Date();
      const specifiedDate = new Date(endTime);
      return status === 5 && (currentDate < specifiedDate);
      return [5,27].includes(status) && (currentDate < specifiedDate);
    },
    changeStatus(e) {
      if (e.indexOf(',') !== -1) {
        this.searchForm.timeOut = e.split(',')[1]
        this.searchForm.statusCollect = e.split(',')[0]
      } else {
        this.searchForm.timeOut = ''
        this.searchForm.statusCollect = e
      }
      this.search()
    },
      reset() {
        this.searchForm.createTimeS = ''
        this.searchForm.timeOut = ''
        this.searchForm.createTimeE = ''
        this.statusCollect = ''
        this.searchForm.statusCollect = ''
@@ -215,7 +223,6 @@
        this.search()
      },
    result(flag,param){
      console.log(flag,param)
      if(param && param.godetail && param.id){
        if (param.type == 1) {
          this.$refs.OperaWtbApplyShopWindow.open('委托投保详情', { id: param.id })