nidapeng
2024-04-03 3a5fbcae78f6d395468826ce5dbcf6b4643aec7e
company/src/components/business/ApplyChangeUnitDetails.vue
@@ -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 {