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 @@