jiangping
2024-05-11 6548996bfac9dd02e21e1fd9519109fc8b5dfeb2
company/src/components/business/OpearaUnionChangeUnit.vue
@@ -2,7 +2,7 @@
  <GlobalWindow
      :title="title"
      width="100%"
      text="加减保申请"
      text="提交"
      :visible.sync="visible"
      :confirm-working="isWorking"
      @confirm="confirm"
@@ -19,8 +19,10 @@
          <div style="display: flex; flex-direction: column;">
            <el-date-picker
                v-model="form.applyDate"
                placeholder="请选择日期"
                :picker-options="pickerOptions"
                type="date"
                format="yyyy 年 MM 月 dd 日"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd" />
            <span style="color: #F95601; font-size: 14px;">(2. 次日生效投保请于17:30前提交,超时提交以保险单为准)</span>
          </div>
@@ -63,20 +65,20 @@
          label="被保险人">
      </el-table-column>
      <el-table-column
          prop="applyStartTime"
          label="期望保险生效起期">
          prop="validCode"
          label="保单号">
      </el-table-column>
      <el-table-column
          prop="addNum"
          label="加保人数">
          prop="startTime"
          label="保险生效起期">
      </el-table-column>
      <el-table-column
          prop="delNum"
          label="减保人数">
          prop="endTime"
          label="保险生效止期">
      </el-table-column>
      <el-table-column
          prop="fee"
          label="费用变更">
          prop="changeNum"
          label="换厂人数">
      </el-table-column>
      <el-table-column  label="操作">
        <template slot-scope="{row}">
@@ -96,7 +98,7 @@
    <el-dialog
        title="选择保险单"
        :visible.sync="visibleSelect"
        width="70%"
        width="80%"
        :modal="true"
        :show-close="false"
        append-to-body
@@ -128,6 +130,7 @@
          <el-table-column prop="code" label="保单号" min-width="100px"></el-table-column>
          <el-table-column prop="solutionName" label="保险方案" min-width="100px"></el-table-column>
          <el-table-column prop="insureNum" label="投保人数" min-width="100px"></el-table-column>
          <el-table-column prop="changeApplyNum" label="申请单数" min-width="100px"></el-table-column>
          <el-table-column prop="fee" label="总费用(元)" min-width="100px"></el-table-column>
          <el-table-column prop="createDate" label="提交时间" min-width="100px"></el-table-column>
        </el-table>
@@ -156,7 +159,7 @@
import selectApplicationForm from '@/components/business/selectApplicationForm'
import { listAll } from '@/api/business/applyChange'
import { merge } from '@/api/business/unionChange'
import ApplyChangeDetails from '@/components/business/ApplyChangeDetails'
import ApplyChangeDetails from '@/components/business/ApplyChangeUnitDetails'
import { fetchList as pageUnionList } from '@/api/business/unionApply'
import {getDetail} from "@/api/business/insuranceApply";
export default {
@@ -175,6 +178,7 @@
      solutions: [],
      currentPage:0,
      list: [],
      pickerOptions: {},
      tableData:[],
      tableTotal:0,
      endTime: '',
@@ -208,7 +212,7 @@
    checkDetial(row){
      getDetail(row.applyId).then(res => {
        // this.apply = res
        this.$refs.ApplyChangeDetails.open('加减保人员名单',res, row,2)
        this.$refs.ApplyChangeDetails.open('更换派遣单位人员',res, row,2)
      }).catch(err => {
      })
    },
@@ -246,6 +250,15 @@
      }
      this.visibleSelect=false
      this.form.unionApplyId = this.model.id
      var that =this
      this.pickerOptions = {
        disabledDate (time) {
          var start = new Date(that.model.startTime)
          start.setDate(start.getDate() + 1);
          var end = new Date(that.model.endTime)
          return ( time.getTime() < start.getTime() ||  time.getTime()>end.getTime())
        }
      }
      this.getList();
    },
    confirm () {
@@ -321,6 +334,7 @@
        capacity: 10,
        page: this.currentPage,
        model: {
          queryFlag:2,
          status: 3,
        }
      }).then(res => {
@@ -372,6 +386,9 @@
    align-items: center;
  }
}
::v-deep .desc_item_from .el-table__header .el-checkbox{
  display:none!important;
}
.submit {
  width: 100%;
  display: flex;