MrShi
2024-11-12 5ec088f7b2c1281a1874ef6ba4e783a64acb8079
company/src/components/business/OperaInsuranceApplyWindow.vue
@@ -195,8 +195,8 @@
                            <el-button type="primary" style="width: 80px;" @click="search">查询</el-button>
                            <el-button @click="resetting" style="width: 80px;">重置</el-button>
                            <el-button type="primary" style="width: 80px;" @click="exportExcel" v-if="activeName === '0'">导出名单</el-button>
                          <el-button type="primary" style="width: 100px;" @click="$refs.OperaApplyChangeMonthWindow.open('加减保费用月度统计',model)" v-if="activeName === '1'">费用统计查询</el-button>
                            <el-button type="primary" style="width: 100px;" @click="$refs.OperaApplyChangeMonthWindow.open('加减保费用月度统计',model)" v-if="activeName === '1'">费用统计查询</el-button>
                            <el-button type="primary" style="width: 120px;" @click="exportRecords" v-if="activeName === '1' && (model.status === 5 || model.status === 27)">导出加减保记录</el-button>
                        </el-form-item>
                    </el-form>
                </div>
@@ -504,7 +504,7 @@
import applyReturn from '@/components/enterprise/applyReturn'
import { getDetail, getSignLink, applyDetailPage,  exportExcel, applyChagneDetailExcel, applyOpt } from '@/api/business/insuranceApply'
import { findListByDTO } from '@/api/business/dispatchUnit'
import { fetchList } from '@/api/business/applyChange'
import { fetchList, exportApplyJiajianBaoExcel } from '@/api/business/applyChange'
import { findListByDTO as worktypeFindListByDTO } from '@/api/business/worktype'
import OperaInsuranceApplyAddWindow from '@/components/enterprise/OperaInsuranceApplyAddWindow'
import { mapState } from 'vuex'
@@ -604,6 +604,14 @@
      this.getDW()
      this.getGZ()
    },
    exportRecords() {
      // let formDate = new FormData()
      // formDate.append('id', this.dataId)
      exportApplyJiajianBaoExcel({ id: this.dataId })
        .then(response => {
          this.download(response)
        })
    },
    result(flag,param){
      console.log(flag,param)
      if(param && param.godetail && param.id){