{{ item.label }}
@@ -134,6 +137,7 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+ {{ `${row.quitneckNum}张` }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/modules/financeBillManage.js b/src/router/modules/financeBillManage.js
index 9da78d7..642f93f 100644
--- a/src/router/modules/financeBillManage.js
+++ b/src/router/modules/financeBillManage.js
@@ -5,6 +5,7 @@ import BillReceiptURL from "@/pages/finance-bill-manage/billReceipt.vue";
import BillQuitneckURL from "@/pages/finance-bill-manage/billQuitneck.vue";
import BillBreakagekURL from "@/pages/finance-bill-manage/billBreakage.vue";
import BillDestroyURL from "@/pages/finance-bill-manage/billDestroy.vue";
+import DetailReportURL from "@/pages/finance-bill-manage/detailReport.vue";
const financeBillManage = [
{
@@ -61,6 +62,14 @@ const financeBillManage = [
title: "票据核销",
},
},
+ {
+ path: "DetailReport",
+ name: "detailReport",
+ component: DetailReportURL,
+ meta: {
+ title: "报表明细",
+ },
+ },
],
},
];
From 13fd2c21fd9ad608d106f4eaaf23a2186595fa22 Mon Sep 17 00:00:00 2001
From: sundongyu <2811054731@qq.com>
Date: Tue, 9 Apr 2024 16:40:06 +0800
Subject: [PATCH 4/7] =?UTF-8?q?=E2=9C=A8=20feat:=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=E4=BA=86=E5=87=8F=E5=85=8D=E8=B4=B9=E7=94=A8=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/LayoutAside.vue | 3 +
.../receivables-management/billCollected.vue | 18 +-
src/pages/receivables-management/daily.vue | 7 +
.../receivables-management/waiverForm.vue | 257 ++++++++++++++++++
src/router/modules/receivablesManagement.js | 12 +
5 files changed, 295 insertions(+), 2 deletions(-)
create mode 100644 src/pages/receivables-management/daily.vue
create mode 100644 src/pages/receivables-management/waiverForm.vue
diff --git a/src/layout/components/LayoutAside.vue b/src/layout/components/LayoutAside.vue
index 133932b..faf4f0d 100644
--- a/src/layout/components/LayoutAside.vue
+++ b/src/layout/components/LayoutAside.vue
@@ -45,6 +45,9 @@
助学贷款
+
+ 收费日报
+
diff --git a/src/pages/receivables-management/billCollected.vue b/src/pages/receivables-management/billCollected.vue
index df23924..c02a631 100644
--- a/src/pages/receivables-management/billCollected.vue
+++ b/src/pages/receivables-management/billCollected.vue
@@ -14,6 +14,9 @@
填写电子票据
+ 申请为减免学生
@@ -170,6 +173,7 @@ const editableCellState = cellParams => {
return row.status !== 2
}
const tableRef = ref()
+//收费表格
const columns = computed(() => [
{
title: '学生姓名',
@@ -289,12 +293,22 @@ const columns = computed(() => [
},
{
title: '操作',
- colKey: 'operation'
+ width: 300,
+ colKey: 'operation',
+ align: 'center'
}
])
+// 发票
const handleEdit = row => {
router.push({
- path: 'bill-bill',
+ path: '/bill-bill',
+ query: row
+ })
+}
+// 申请为减免学生
+const waivarForm = row => {
+ router.push({
+ path: '/waivar-form',
query: row
})
}
diff --git a/src/pages/receivables-management/daily.vue b/src/pages/receivables-management/daily.vue
new file mode 100644
index 0000000..6ac5ab5
--- /dev/null
+++ b/src/pages/receivables-management/daily.vue
@@ -0,0 +1,7 @@
+
+ 1
+
+
+
+
+
diff --git a/src/pages/receivables-management/waiverForm.vue b/src/pages/receivables-management/waiverForm.vue
new file mode 100644
index 0000000..374a172
--- /dev/null
+++ b/src/pages/receivables-management/waiverForm.vue
@@ -0,0 +1,257 @@
+
+
+
+
+
+
+
diff --git a/src/router/modules/receivablesManagement.js b/src/router/modules/receivablesManagement.js
index 1b84c36..2f199e8 100644
--- a/src/router/modules/receivablesManagement.js
+++ b/src/router/modules/receivablesManagement.js
@@ -31,6 +31,18 @@ const ReceivablesManagement = [
name: "StudentLoan",
component: () => import("@/pages/receivables-management/studentLoan.vue"),
meta: { title: "助学贷款", },
+ },
+ {
+ path: "/waivar-form",
+ name: "WaivarForm",
+ component: () => import("@/pages/receivables-management/waiverForm.vue"),
+ meta: { title: "学生减免单", hidden: false },
+ },
+ {
+ path: "/daily",
+ name: "Daily",
+ component: () => import("@/pages/receivables-management/daily.vue"),
+ meta: { title: "收费日报", },
}
],
},
From abac43466f122f17d3954d794b5c5f120289adad Mon Sep 17 00:00:00 2001
From: ycy <2861518472@qq.com>
Date: Tue, 9 Apr 2024 16:40:21 +0800
Subject: [PATCH 5/7] =?UTF-8?q?=E2=9C=A8=20feat:=20=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=AE=8C=E6=88=90=20=E5=B0=81=E8=A3=85echart?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/echarts/bar.vue | 83 +++++++++++++++++
src/components/echarts/line.vue | 114 +++++++++++++++++++++++
src/components/echarts/pie.vue | 81 ++++++++++++++++
src/pages/home/components/homeCenter.vue | 91 ++++++++++++++++++
src/pages/home/components/homeFooter.vue | 40 ++++++++
src/pages/home/components/homeHeader.vue | 90 ++++++++++++++++++
src/pages/home/index.vue | 40 +++++++-
7 files changed, 536 insertions(+), 3 deletions(-)
create mode 100644 src/components/echarts/bar.vue
create mode 100644 src/components/echarts/line.vue
create mode 100644 src/components/echarts/pie.vue
create mode 100644 src/pages/home/components/homeCenter.vue
create mode 100644 src/pages/home/components/homeFooter.vue
create mode 100644 src/pages/home/components/homeHeader.vue
diff --git a/src/components/echarts/bar.vue b/src/components/echarts/bar.vue
new file mode 100644
index 0000000..b4a916b
--- /dev/null
+++ b/src/components/echarts/bar.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
diff --git a/src/components/echarts/line.vue b/src/components/echarts/line.vue
new file mode 100644
index 0000000..4875089
--- /dev/null
+++ b/src/components/echarts/line.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
diff --git a/src/components/echarts/pie.vue b/src/components/echarts/pie.vue
new file mode 100644
index 0000000..a34ecbb
--- /dev/null
+++ b/src/components/echarts/pie.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
diff --git a/src/pages/home/components/homeCenter.vue b/src/pages/home/components/homeCenter.vue
new file mode 100644
index 0000000..71e32ab
--- /dev/null
+++ b/src/pages/home/components/homeCenter.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
diff --git a/src/pages/home/components/homeFooter.vue b/src/pages/home/components/homeFooter.vue
new file mode 100644
index 0000000..7c05996
--- /dev/null
+++ b/src/pages/home/components/homeFooter.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/home/components/homeHeader.vue b/src/pages/home/components/homeHeader.vue
new file mode 100644
index 0000000..acb7bf9
--- /dev/null
+++ b/src/pages/home/components/homeHeader.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 677f24b..af7b30f 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -1,7 +1,41 @@
-
+
+
+
+
+
+
+
+
+
-
+
-
+
From 5381a970e6dcbecfb071efc36ec6f7080293b7e0 Mon Sep 17 00:00:00 2001
From: ycy <2861518472@qq.com>
Date: Tue, 9 Apr 2024 16:42:45 +0800
Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=8C=88=20style:=20=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/echarts/bar.vue | 6 ++++++
src/components/echarts/line.vue | 3 +++
src/components/echarts/pie.vue | 1 +
3 files changed, 10 insertions(+)
diff --git a/src/components/echarts/bar.vue b/src/components/echarts/bar.vue
index b4a916b..7d94e15 100644
--- a/src/components/echarts/bar.vue
+++ b/src/components/echarts/bar.vue
@@ -12,26 +12,32 @@ import { onMounted, ref } from "vue";
const barChartRef = ref(null);
const { categories, seriesData, title, legendList } = defineProps({
+ // 横坐标
categories: {
type: Array,
required: true,
},
+ // 纵坐标
seriesData: {
type: Array,
required: true,
},
+ // 标题
title: {
type: String,
required: true,
},
+ // 图例
legendList: {
type: Array,
required: true,
},
+ // 宽度
width: {
type: String,
default: "100%",
},
+ // 高度
height: {
type: String,
default: "100%",
diff --git a/src/components/echarts/line.vue b/src/components/echarts/line.vue
index 4875089..3e21e69 100644
--- a/src/components/echarts/line.vue
+++ b/src/components/echarts/line.vue
@@ -14,10 +14,12 @@ import { onMounted, ref } from "vue";
const lineChartRef = ref(null);
const { categories, seriesData, titleP, legendList } = defineProps({
+ // 横坐标
categories: {
type: Array,
required: true,
},
+ // 纵坐标
seriesData: {
type: Array,
required: true,
@@ -26,6 +28,7 @@ const { categories, seriesData, titleP, legendList } = defineProps({
type: String,
default: "示例折线图",
},
+ // 图例
legendList: {
type: Array,
required: true,
diff --git a/src/components/echarts/pie.vue b/src/components/echarts/pie.vue
index a34ecbb..8343c39 100644
--- a/src/components/echarts/pie.vue
+++ b/src/components/echarts/pie.vue
@@ -12,6 +12,7 @@ import { onMounted, ref } from "vue";
const pieChartRef = ref(null);
const { titleP, dataP } = defineProps({
+ // 图表数据
dataP: {
type: Array,
default: () => [],
From ae216140dcae830b4ad818903ac19c9cf09f9260 Mon Sep 17 00:00:00 2001
From: ycy <2861518472@qq.com>
Date: Tue, 9 Apr 2024 17:18:01 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=AF=BC=E5=87=BAexcel=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 ++
.../finance-bill-manage/detailReport.vue | 32 +++++++++++++++++++
src/utils/excel.js | 24 ++++++++++++++
3 files changed, 58 insertions(+)
create mode 100644 src/utils/excel.js
diff --git a/package.json b/package.json
index a027f07..beb66d2 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,8 @@
"axios": "^1.6.8",
"dayjs": "^1.11.10",
"echarts": "^5.5.0",
+ "exceljs": "^4.4.0",
+ "file-saver": "^2.0.5",
"less": "^4.2.0",
"mockjs": "^1.1.0",
"pinia": "^2.1.7",
diff --git a/src/pages/finance-bill-manage/detailReport.vue b/src/pages/finance-bill-manage/detailReport.vue
index e25e79e..578b0b7 100644
--- a/src/pages/finance-bill-manage/detailReport.vue
+++ b/src/pages/finance-bill-manage/detailReport.vue
@@ -29,6 +29,9 @@
报表明细
+
+ 导出报表明细
+
{
const refresh = () => {
tableList();
};
+
+// 导出excel
+const exportExcel = () => {
+ const title = "报表明细excel";
+ const titleFile = "报表明细";
+ const columns = [
+ { header: "部门", key: "1", width: 20 },
+ { header: "入库量", key: "2", width: 20 },
+ { header: "退库量", key: "3", width: 20 },
+ { header: "领用量", key: "4", width: 20 },
+ { header: "报损量", key: "5", width: 20 },
+ { header: "核销量", key: "6", width: 20 },
+ { header: "总票据比例", key: "7", width: 20 },
+ ];
+ const addRow = [];
+ tableData.value.forEach((item) => {
+ addRow.push({
+ 1: item.branch,
+ 2: item.stockNum,
+ 3: item.cancelNum,
+ 4: item.receiveNum,
+ 5: item.breakNum,
+ 6: item.destoryNum,
+ 7: item.grossBillRatio,
+ });
+ });
+ ExcelUtils(title, titleFile, columns, addRow);
+};
onMounted(() => {
tableList();
});
diff --git a/src/utils/excel.js b/src/utils/excel.js
new file mode 100644
index 0000000..17e7935
--- /dev/null
+++ b/src/utils/excel.js
@@ -0,0 +1,24 @@
+import ExcelJS from "exceljs";
+import saveAs from "file-saver"; // 引入FileSaver.js以使用saveAs函数
+
+const ExcelUtils = (title, titleFile, columns, addRow) => {
+ // 创建一个新的工作簿
+ const workbook = new ExcelJS.Workbook();
+ // 添加一个新的工作表
+ const worksheet = workbook.addWorksheet(title);
+ // 添加表头
+ worksheet.columns = columns;
+ // 添加数据行
+ for (const row of addRow) {
+ worksheet.addRow(row);
+ }
+ // 写入文件并下载
+ workbook.xlsx.writeBuffer().then((buffer) => {
+ const blob = new Blob([buffer], {
+ type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
+ });
+ saveAs(blob, `${titleFile}.xlsx`);
+ });
+};
+
+export { ExcelUtils };