feat: add api param active only for employee

This commit is contained in:
Methapon2001 2024-12-18 17:24:01 +07:00
parent 6c370f4020
commit 2e5f1313a5
2 changed files with 2 additions and 0 deletions

View file

@ -228,6 +228,7 @@ async function getWorkerList() {
query: state.search,
passport: true,
customerBranchId: props.customerBranchId,
activeOnly: true,
});
if (!ret) return false;

View file

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