add event value chart

This commit is contained in:
Timi
2026-08-18 17:26:33 +08:00
parent eb6b8beb6b
commit 43833e6ab0
4 changed files with 228 additions and 1 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
import { axios } from "timi-web";
import type { CustomerDailyStatView, CustomerGenderStatView } from "@/types/Customer";
import type { StoreChartReq, StoreEventRecordCalendarView, StoreEventRecordDailyStatView } from "@/types/Store";
import type { StoreChartReq, StoreEventRecordCalendarView, StoreEventRecordDailyStatView, StoreEventRecordNumberValueDailyStatView } from "@/types/Store";
import { getCurrentStoreId, withCurrentStoreId } from "@/utils/store";
const BASE_URI = "/gao/store/chart";
@@ -19,6 +19,10 @@ async function eventRecordDailyStat(req: StoreChartReq): Promise<StoreEventRecor
return await axios.post(`${BASE_URI}/event/record/daily`, withCurrentStoreId(req));
}
async function eventRecordNumberValueDailyStat(req: StoreChartReq): Promise<StoreEventRecordNumberValueDailyStatView[]> {
return await axios.post(`${BASE_URI}/event/record/number-value/daily`, withCurrentStoreId(req));
}
async function eventRecordCalendar(req: StoreChartReq): Promise<StoreEventRecordCalendarView[]> {
return await axios.post(`${BASE_URI}/event/record/calendar`, withCurrentStoreId(req));
}
@@ -27,5 +31,6 @@ export default {
customerDailyStat,
customerGenderStat,
eventRecordDailyStat,
eventRecordNumberValueDailyStat,
eventRecordCalendar
};