diff --git a/src/api/hard/hard-total.ts b/src/api/hard/hard-total.ts index 446b620..d220d72 100644 --- a/src/api/hard/hard-total.ts +++ b/src/api/hard/hard-total.ts @@ -1,5 +1,16 @@ import request from "/@/utils/request" +/** + * 食堂菜品购买部门统计 + */ +export function listByDept(query: any) { + return request({ + url: "/hard/hard-canteen-total-dept/list-by-dept", + method: "post", + data: query, + }) +} + /** * 根据部门 食堂菜品购买统计 */ diff --git a/src/views/hard/canteen-dept-total/components/dept-person-total-table.vue b/src/views/hard/canteen-dept-total/components/dept-person-total-table.vue new file mode 100644 index 0000000..6a2cf14 --- /dev/null +++ b/src/views/hard/canteen-dept-total/components/dept-person-total-table.vue @@ -0,0 +1,249 @@ + + + + + + + + + + + {{ row.username }} + {{ row.userMobile }} + + + + 未知用户 + + + + + + + 商品 + + {{ row.productDesc }} + + + + 用餐时间段 + + + + + + + + + + 订单类型 + + + + + + 支付方式 + + + + + + 订单状态 + + + + + + + + + + 商品总价 + + {{ displayPrice(row.totalPrice, "元", 2) }} + + + + 额外支付 + + {{ displayPrice(row.extraPrice, "元", 2) }} + + + + 实际支付 + + {{ displayPrice(row.payPrice, "元", 2) }} + + + + + + + + 创建时间 + {{ row.createTime }} + + + 支付时间 + {{ row.payTime }} + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/hard/canteen-dept-total/components/dept-total-table.vue b/src/views/hard/canteen-dept-total/components/dept-total-table.vue deleted file mode 100644 index d71e71d..0000000 --- a/src/views/hard/canteen-dept-total/components/dept-total-table.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - {{ parseTime(row.createTime, "{y}-{m}-{d}") }} - - - - - - - - - \ No newline at end of file diff --git a/src/views/hard/canteen-dept-total/index.vue b/src/views/hard/canteen-dept-total/index.vue index da15848..d5c28c3 100644 --- a/src/views/hard/canteen-dept-total/index.vue +++ b/src/views/hard/canteen-dept-total/index.vue @@ -1,37 +1,115 @@ - - - - - - - - - - - - - - - {{ $t("common.queryBtn") }} - - {{ $t("common.resetBtn") }} - - - - - - - + + + + + + + + + + + + + + {{ $t("common.queryBtn") }} + + {{ $t("common.resetBtn") }} + + + + + + + + + + + + + + + + + + + {{ row.payUserCount || 0 }}人 + + + + + {{ row.timeCount || 0 }}次 + + + + + {{ row.payCount || 0 }}份 + + + + + {{ displayPrice(row.totalPrice) }} + + + + + + 购买人员 + + + + + + + + + + + + + {{ row.deptCount || 0 }}部门 + + + + + {{ row.payUserCount || 0 }}人 + + + + + {{ row.timeCount || 0 }}次 + + + + + {{ row.payCount || 0 }}份 + + + + + {{ displayPrice(row.totalPrice) }} + + + + + + 购买人员 + + + + + + @@ -39,26 +117,47 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue index 00e9077..8f90c58 100644 --- a/src/views/hard/hard-order/index.vue +++ b/src/views/hard/hard-order/index.vue @@ -7,8 +7,8 @@ - - + + @@ -252,7 +252,6 @@ import { useDict } from "/@/hooks/dict" import { displayPrice } from "/@/utils/formatMoney" import { ElLoading, TableColumnCtx } from "element-plus" import { VNode } from "vue" -import { ro } from "element-plus/es/locale" const { push } = useRouter()