From 6b3eb23bdcd7e52c3862f14b8b8d9b5df372129e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 15 Oct 2023 23:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=AC=A0=E6=AC=BE=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=AF=BC=E5=87=BAexcel=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8D=95=E6=8D=AE=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/report/modules/DebtAccountList.vue | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/jshERP-web/src/views/report/modules/DebtAccountList.vue b/jshERP-web/src/views/report/modules/DebtAccountList.vue index bfb2896a..6574d812 100644 --- a/jshERP-web/src/views/report/modules/DebtAccountList.vue +++ b/jshERP-web/src/views/report/modules/DebtAccountList.vue @@ -34,7 +34,7 @@ 查询 打印 - 导出 + 导出 {{historyText}} @@ -70,7 +70,7 @@ import BillDetail from '../../bill/dialog/BillDetail' import HistoryFinancialList from './HistoryFinancialList' import { JeecgListMixin } from '@/mixins/JeecgListMixin' - import { openDownloadDialog, sheet2blob} from "@/utils/util" + import { getMpListShort } from "@/utils/util" import {mixinDevice} from '@/utils/mixin' import { findBillDetailByNumber } from '@/api/api' import Vue from 'vue' @@ -93,7 +93,8 @@ type: "", subType: "", roleType: Vue.ls.get('roleType'), - status: "" + status: "", + mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性 }, historyText: '', financialType: '', @@ -135,7 +136,8 @@ { title: '待收欠款', dataIndex: 'debt',width:70} ], url: { - list: "/depotHead/debtList" + list: "/depotHead/debtList", + exportXlsUrl: "/depotHead/debtExport" } } }, @@ -190,15 +192,6 @@ onDateOk(value) { console.log(value); }, - exportExcel() { - let aoa = [['单据编号', this.columns[2].title, '商品信息', '单据日期', '操作员', '本单欠款', '已收欠款', '待收欠款']] - for (let i = 0; i < this.dataSource.length; i++) { - let ds = this.dataSource[i] - let item = [ds.number, ds.organName, ds.materialsList, ds.operTimeStr, ds.userName, ds.needDebt, ds.finishDebt, ds.debt] - aoa.push(item) - } - openDownloadDialog(sheet2blob(aoa), '欠款详情') - }, handleHistoryFinancial() { this.$refs.historyFinancial.visible = true this.$refs.historyFinancial.title = this.historyText