From 0aeb812143017c48fd19e81e099b8978aa566c27 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:33:15 +0700 Subject: [PATCH] feat: add filter active only customer This close #143 --- src/components/shared/select/SelectCustomer.vue | 1 + src/stores/customer/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/shared/select/SelectCustomer.vue b/src/components/shared/select/SelectCustomer.vue index c5c08819..5644dd79 100644 --- a/src/components/shared/select/SelectCustomer.vue +++ b/src/components/shared/select/SelectCustomer.vue @@ -44,6 +44,7 @@ const { getOptions, setFirstValue, getSelectedOption, filter } = const ret = await getList({ query, ...props.params, + activeRegisBranchOnly: true, includeCustomer: true, }); if (ret) return ret.result; diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index ca111974..1e7e1f05 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -79,6 +79,7 @@ const useCustomerStore = defineStore('api-customer', () => { customerId?: string; company?: boolean; includeCustomer?: boolean; + activeRegisBranchOnly?: boolean; registeredBranchId?: string; status?: 'CREATED' | 'ACTIVE' | 'INACTIVE'; query?: string;