diff --git a/src/api/admin/user.ts b/src/api/admin/user.ts index 509dd42f..609c5674 100644 --- a/src/api/admin/user.ts +++ b/src/api/admin/user.ts @@ -1,4 +1,4 @@ -import request, {CommonHeaderEnum} from "/@/utils/request" +import request, { CommonHeaderEnum } from "/@/utils/request" /** * 同步用户食堂信息 @@ -17,6 +17,18 @@ export const list = () => { }) } +export const pageSelect = (query: any) => { + return request({ + url: "/admin/user/select", + method: "post", + params: { + current: query.current, + size: query.size, + }, + data: query, + }) +} + export const pageList = (query: any) => { return request({ url: "/admin/user/page", @@ -41,9 +53,9 @@ export const getObj = (id: String) => { return request({ url: "/admin/user/details/" + id, method: "get", - headers: { - [CommonHeaderEnum.ENC_FLAG]: true, - }, + headers: { + [CommonHeaderEnum.ENC_FLAG]: true, + }, }) } diff --git a/src/api/hard/hard-order.ts b/src/api/hard/hard-order.ts index df3be9b2..f0f0f6a8 100644 --- a/src/api/hard/hard-order.ts +++ b/src/api/hard/hard-order.ts @@ -11,6 +11,13 @@ export function offlinePay(data: any) { }) } +export function adminRserveCancelOrder(orderId: string) { + return request({ + url: "/hard/hard-order/rserve-cancel-order/" + orderId, + method: "put", + }) +} + export function pageJoin(query: any) { return request({ url: "/hard/hard-order/page-join", diff --git a/src/api/hard/hard-total.ts b/src/api/hard/hard-total.ts index d220d722..cd2fd4e4 100644 --- a/src/api/hard/hard-total.ts +++ b/src/api/hard/hard-total.ts @@ -56,6 +56,21 @@ export function canteenProudctQuery(query: any) { }) } +/** + * 菜品出售商户统计 + */ +export function canteenProudctMchQuery(query: any) { + return request({ + url: "/hard/hard-canteen-total-log/proudct-mch-query", + method: "post", + params: { + current: query.current, + size: query.size, + }, + data: query, + }) +} + export function pageListDept(query?: any) { return request({ url: "/hard/hard-total/page-list-dept", diff --git a/src/components/Select/SelectMch.vue b/src/components/Select/SelectMch.vue index 3884b854..69674faa 100644 --- a/src/components/Select/SelectMch.vue +++ b/src/components/Select/SelectMch.vue @@ -1,7 +1,7 @@ @@ -129,15 +138,18 @@ import { BasicTableProps, useTable } from "/@/hooks/table" import { displayPrice } from "/@/utils/formatMoney" import { useDict } from "/@/hooks/dict" import { getDicts } from "/@/api/admin/dict" +import { parseTime } from "/@/utils/formatTime" import * as hardTotalApi from "/@/api/hard/hard-total" const DeptPersonTotalTable = defineAsyncComponent(() => import("./components/dept-person-total-table.vue")) +const ProductTotalTable = defineAsyncComponent(() => import("./components/product-total-table.vue")) // 定义查询字典 const { daily_menu } = useDict("daily_menu") const deptPersonTotalTableRef = ref() +const productTotalTableRef = ref() // 搜索变量 const queryRef = ref() 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 0ca8a7be..c8fad71b 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 @@ -1,9 +1,20 @@