add store closed day in event record calendar

This commit is contained in:
Timi
2026-08-13 14:50:35 +08:00
parent fa1f5f1f2d
commit e43ba9db8d
5 changed files with 82 additions and 7 deletions
@@ -39,6 +39,7 @@
v-model:selected-event-id-list="selectedEventIdList"
:customer-id="selectedCustomer.id || ''"
:customer-name="selectedCustomer.name"
:store-id="selectedCustomer.storeId"
@list="toEventRecordList"
/>
<customer-record-trend-chart
@@ -5,6 +5,7 @@
class="calendar-section"
:event-list="eventList"
:customer-name="customerName"
:store-id="storeId"
:loading="isCalendarLoading"
:records="records"
@list="value => emit('list', value)"
@@ -23,6 +24,7 @@ import type { StoreEventRecordCalendarView } from "@/types/Store";
const props = defineProps<{
customerId: string;
customerName?: string;
storeId?: string;
modelValue: Date;
selectedEventIdList: string[];
}>();
@@ -6,6 +6,7 @@
empty-text="当前月份暂无登记事件记录"
:loading="isCalendarLoading"
:records="monthRecords"
:store-id="storeId"
@list="value => emit('list', value)"
/>
</template>
@@ -17,6 +18,7 @@ import EventRecordCalendar, { type EventRecordCalendarListPayload } from "@/comp
import type { EventItem } from "@/types/EventItem";
import type { EventRecord } from "@/types/EventRecord";
import type { StoreEventRecordCalendarView } from "@/types/Store";
import { useCurrentStoreStore } from "@/store/currentStoreStore";
import { Time } from "timi-web";
const emit = defineEmits<{
@@ -28,6 +30,8 @@ const selectedEventIdList = ref<string[]>([]);
const monthRecords = ref<EventRecord[]>([]);
const isCalendarLoading = ref(false);
const monthCursor = ref(getMonthStart(new Date()));
const currentStoreStore = useCurrentStoreStore();
const storeId = computed(() => currentStoreStore.currentStoreId);
let calendarRequestId = 0;
watch(monthCursor, async () => {