Commit 1deb9512 authored by 孙海亮's avatar 孙海亮

Merge branch 'func_eccs_1939' into 'master'

账单查询页面增加导出功能

See merge request !30
parents 802d1a54 378f5eee
......@@ -15,4 +15,5 @@ export default {
receiptSettlement:"/backstage/auth/receiptSettlement",//账单结算
sendReceipListExport:"/backstage/auth/sendReceipListExport",//寄送关联账单导出
receiptPrint:"/backstage/auth/receiptPrint",//账单打印
rceiptListReport: '/backstage/auth/rceiptListReport', // 账单导出
};
......@@ -61,7 +61,10 @@ const SENDRECEIPTLISTEXPORT= function (data) {
const RECEIPTPRINT= function (data) {
return req.post(apis.receiptPrint, data);
};
// 账单导出报表
const RceiptListReport = (data) => {
return req.post(apis.rceiptListReport, data, {responseType: 'blob'});
};
// 对象数组
export default {
......@@ -80,4 +83,5 @@ export default {
RECEIPTSETTLEMENT,
SENDRECEIPTLISTEXPORT,
RECEIPTPRINT,
RceiptListReport,
};
......@@ -102,6 +102,9 @@
<a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
</a-button>
<a-button class="mar-left10" type="primary" @click="exportExcel">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
</a-form-model-item>
</a-col>
</a-row>
......@@ -138,6 +141,7 @@
import BurtPagination from "@/components/CUSTOMER/pagation";
import { mapState } from "vuex"
import moment from "moment";
import { exportFile } from '@/utils/index';
export default {
data() {
const columns = [
......@@ -295,6 +299,15 @@ export default {
addNewCharge() {
// this.$router.push("/customer/edit");
},
//导出报表
exportExcel(){
let filter = {
...this.form,
}
this.$apis.RceiptListReport(filter).then(res => {
exportFile(res, '账单报表.xls');
})
}
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment