From 29423ee49fc413b7671fb50cd9bbb463d1a69cee Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Fri, 1 Aug 2025 17:11:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A3=9F=E5=A0=82=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E7=BB=9F=E8=AE=A1-=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hard/hard-total.ts | 15 ++++ .../components/dept-total-table.vue | 87 +++++++++++++++++++ .../components/product-total-table.vue | 2 +- .../hard/canteen-product-total/index.vue | 82 +++++++++++++++-- 4 files changed, 176 insertions(+), 10 deletions(-) create mode 100644 src/views/hard/canteen-product-total/components/dept-total-table.vue diff --git a/src/api/hard/hard-total.ts b/src/api/hard/hard-total.ts index e564982..446b620 100644 --- a/src/api/hard/hard-total.ts +++ b/src/api/hard/hard-total.ts @@ -1,5 +1,20 @@ import request from "/@/utils/request" +/** + * 根据部门 食堂菜品购买统计 + */ +export function productTotalByDept(query: any) { + return request({ + url: "/hard/hard-canteen-total-log/proudct-total-by-dept", + method: "post", + params: { + current: query.current, + size: query.size, + }, + data: query, + }) +} + /** * 食堂统计 */ diff --git a/src/views/hard/canteen-product-total/components/dept-total-table.vue b/src/views/hard/canteen-product-total/components/dept-total-table.vue new file mode 100644 index 0000000..d71e71d --- /dev/null +++ b/src/views/hard/canteen-product-total/components/dept-total-table.vue @@ -0,0 +1,87 @@ + + + + + \ No newline at end of file diff --git a/src/views/hard/canteen-product-total/components/product-total-table.vue b/src/views/hard/canteen-product-total/components/product-total-table.vue index 33ba56c..0ca8a7b 100644 --- a/src/views/hard/canteen-product-total/components/product-total-table.vue +++ b/src/views/hard/canteen-product-total/components/product-total-table.vue @@ -54,7 +54,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, postDownBlobFile, tableStyle } = useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, tableStyle } = useTable(state) const getSummaries = (param: any) => { const { columns, data } = param diff --git a/src/views/hard/canteen-product-total/index.vue b/src/views/hard/canteen-product-total/index.vue index bd2974e..4597565 100644 --- a/src/views/hard/canteen-product-total/index.vue +++ b/src/views/hard/canteen-product-total/index.vue @@ -34,35 +34,76 @@ - + :show-summary="true" @selection-change="selectionChangHandle" @sort-change="sortChangeHandle" + @expand-change="tableExpandChange"> + + + + + + - + - + - + - + - + - + @@ -88,22 +129,26 @@