feat: add date range selection to customer and employee management

This commit is contained in:
puriphatt 2025-04-17 17:03:16 +07:00
parent 461dd359b1
commit 36cef7ceb6
3 changed files with 64 additions and 30 deletions

View file

@ -113,6 +113,8 @@ const useCustomerStore = defineStore('api-customer', () => {
includeBranch?: boolean;
status?: 'CREATED' | 'ACTIVE' | 'INACTIVE';
customerType?: CustomerType;
startDate?: string;
endDate?: string;
},
Data extends Pagination<
(Customer &

View file

@ -45,6 +45,8 @@ const useEmployeeStore = defineStore('api-employee', () => {
customerId?: string;
customerBranchId?: string;
activeOnly?: boolean;
startDate?: string;
endDate?: string;
payload?: { passport?: string[] };
}) {
const { payload, ...params } = opts || {};