feat: add date range filtering to product and service lists

This commit is contained in:
puriphatt 2025-04-17 16:40:43 +07:00
parent efeb1b51eb
commit 461dd359b1
2 changed files with 108 additions and 43 deletions

View file

@ -56,6 +56,8 @@ const useProductServiceStore = defineStore('api-product-service', () => {
query?: string;
status?: 'CREATED' | 'ACTIVE' | 'INACTIVE';
activeOnly?: boolean;
startDate?: string;
endDate?: string;
}) {
const params = new URLSearchParams();
@ -142,6 +144,8 @@ const useProductServiceStore = defineStore('api-product-service', () => {
orderField?: string;
activeOnly?: boolean;
orderBy?: 'asc' | 'desc';
startDate?: string;
endDate?: string;
}) {
const params = new URLSearchParams();
@ -249,6 +253,8 @@ const useProductServiceStore = defineStore('api-product-service', () => {
productGroupId?: string;
status?: string;
fullDetail?: boolean;
startDate?: string;
endDate?: string;
}) {
const params = new URLSearchParams();