jiangping
2024-06-20 09da100729793848bc01b51f7b05ca3f1e7ec64f
company/src/components/business/ApplyChangeUnitDetails.vue
@@ -17,7 +17,7 @@
              <div class="box_table_head_item">保单号</div>
              <div class="box_table_head_item">保险生效起期</div>
              <div class="box_table_head_item">保险生效止期</div>
              <div class="box_table_head_item">换厂人数</div>
              <div class="box_table_head_item">更换派遣单位人数</div>
              <div class="box_table_head_item">批单生效期</div>
            </div>
            <div class="box_table_content "  >
@@ -38,8 +38,8 @@
                    <div class="box_table_head_item">身份证号</div>
                    <div class="box_table_head_item">原派遣单位</div>
                    <div class="box_table_head_item">原所属工种</div>
                    <div class="box_table_head_item">换厂后派遣单位</div>
                    <div class="box_table_head_item">换厂后所属工种</div>
                    <div class="box_table_head_item">更换后派遣单位</div>
                    <div class="box_table_head_item">更换后所属工种</div>
                </div>
                <div class="box_table_content" v-for="(item, index) in detailList" :key="index">
                    <div class="box_table_content_item">{{index + 1}}</div>
@@ -66,6 +66,9 @@
<!--            <el-button type="danger"  :loading="isWorking.export" @click="check(1)">审核不通过</el-button>-->
            <el-button @click="visible=false">取消</el-button>
        </template>
      <template v-else-if="type==1" v-slot:footer>
        <el-button @click="visible=false">返回</el-button>
      </template>
        <template v-else v-slot:footer>
            <el-button type="primary"  :loading="isWorking.export" @click="exportComFilesDo">企业证件</el-button>
            <el-button type="primary"  :loading="isWorking.export" @click="exportDetail">导出详单</el-button>
@@ -79,6 +82,7 @@
    import GlobalWindow from '@/components/common/GlobalWindow'
    import {getChangeDetailList, exportChangeUnitExcel} from "@/api/business/insuranceApply";
    import {exportComFiles} from "@/api/business/company";
    import {check} from "@/api/business/applyChange";
    // import {all as solutionAll} from "@/api/business/solutions";
    export default {
        name: 'ApplyChangeUnitDetails',
@@ -110,14 +114,31 @@
            })
        },
        methods: {
            open(title,target,target2){
            open(title,target,target2,target3){
              this.title=title
              this.visible=true
              this.apply = target
              this.model = target2
              this.form.id=target.id
              this.type=target3
              this.form.id=target2.id
              this.getDetailListDo()
            },
          check (type) {
            this.form.dealBackApply = type
            this.$dialog.messageConfirm('确认进行该操作吗?')
                .then(() => {
                  this.isWorking = true
                  check(this.form)
                      .then(response => {
                        this.visible = false
                        this.$emit('success')
                      }).catch(err => {
                    this.$tip.apiFailed(err)
                  })
                })
                .catch(() => {
                })
          },
           getDetailListDo() {
             this.detailList = []
             var that = this
@@ -265,13 +286,13 @@
                    border-bottom: 1px solid #b4bbc5;
                    box-sizing: border-box;
                  &:nth-child(4) {
                    flex: 1.5;;
                    flex: 1.5;
                  }
                  &:nth-child(6) {
                    flex: 1.5;;
                    flex: 1.5;
                  }
                  &:nth-child(8) {
                    flex: 1.5;;
                    flex: 1.5;
                  }
                }
              .box_table_head_item5 {
@@ -286,8 +307,11 @@
                border-right: 1px solid #b4bbc5;
                border-bottom: 1px solid #b4bbc5;
                box-sizing: border-box;
                &:nth-child(1) {
                   flex: 1;
                }
                &:nth-child(2) {
                   flex: 5;
                   flex: 8.5;
                }
              }
              .box_form_item {
@@ -315,8 +339,12 @@
                  border-bottom: 0px solid #b4bbc5 !important;
                }
              .box_table_content_item {
                    flex: 1;
                    height: 50px;
                //white-space: nowrap;
                overflow: hidden;
                //text-overflow: ellipsis;
                flex: 1;
                height: 50px;
                padding: 10px;
                    background: #ffffff;
                    display: flex;
                    align-items: center;
@@ -326,15 +354,22 @@
                    border-right: 1px solid #b4bbc5;
                    border-bottom: 1px solid #b4bbc5;
                    box-sizing: border-box;
                &:nth-child(4) {
                  flex: 1.5;
                }
                &:nth-child(6) {
                  flex: 1.5;
                }
                &:nth-child(8) {
                  flex: 1.5;
                }
                    &:nth-child(4) {
                      flex: 1.5;
                    }
                    &:nth-child(6) {
                      flex: 1.5;
                    }
                    &:nth-child(8) {
                      flex: 1.5;
                    }
                    span{
                      width: 100%;
                      white-space: nowrap;
                      word-wrap: break-word;
                      text-overflow: ellipsis;
                      overflow: hidden;
                    }
                }
            }
        }