修改
This commit is contained in:
parent
c9ac53f06e
commit
3f7b35a7f4
@ -38,12 +38,14 @@
|
|||||||
>计算工资</el-button>
|
>计算工资</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
|
||||||
|
<!--handleExport-->
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="submitFormExport"
|
||||||
v-hasPermi="['finance:financeDetail:export']"
|
v-hasPermi="['finance:financeDetail:export']"
|
||||||
>导出</el-button>
|
>导出</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -51,7 +53,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="detailList">
|
<el-table v-loading="loading" :data="detailList">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="员工姓名" align="center" prop="name" />
|
<el-table-column label="员工姓名" align="center" prop="name" />
|
||||||
<el-table-column label="工资月份" align="center" prop="month" width="100">
|
<el-table-column label="工资月份" align="center" prop="month" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -379,7 +381,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listDetail, getDetail, delDetail, addDetail, updateDetail } from "@/api/finance/financeDetail";
|
import { listDetail, getDetail, delDetail, addDetail, updateDetail,exportgzd } from "@/api/finance/financeDetail";
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
import { listAllDepts } from '@/api/system/dept';
|
import { listAllDepts } from '@/api/system/dept';
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||||
@ -559,10 +561,25 @@ export default {
|
|||||||
},
|
},
|
||||||
submitFormExport(){
|
submitFormExport(){
|
||||||
let param = this.form;
|
let param = this.form;
|
||||||
exportPayroll(param).then(response => {
|
// exportPayroll(param).then(response => {
|
||||||
this.downloadExcel(response.msg);
|
// this.downloadExcel(response.msg);
|
||||||
this.openExport = false;
|
// this.openExport = false;
|
||||||
})
|
// })
|
||||||
|
console.log(1)
|
||||||
|
if(this.queryParams.month == '' || this.queryParams.month == null){
|
||||||
|
this.$message({
|
||||||
|
message: '请选择月份',
|
||||||
|
type: 'warning'
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
exportgzd({
|
||||||
|
month:this.queryParams.month
|
||||||
|
}).then(response => {
|
||||||
|
this.downloadExcel(response.msg);
|
||||||
|
this.openExport = false;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user