feat: import worker with multiple criteria (#72)
* feat: add i18n import from file * fix: background color * feat: add import worker component * feat: support newer passport * refactor: update validator * fix: wrong endpoint * refactor: change to display passport * feat: add component and state * fix: wrong validator * refactor: add i18n * refactor: add slont top-append * refactor: use v-model * refactor: impurt workder * fix: criteria * refactor: add customer branch id --------- Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
This commit is contained in:
parent
481d9d4e9e
commit
202e8c2e6f
7 changed files with 359 additions and 25 deletions
|
|
@ -43,12 +43,13 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
visa?: boolean;
|
||||
zipCode?: string;
|
||||
customerId?: string;
|
||||
customerBranchId?: string;
|
||||
payload?: { passport?: string[] };
|
||||
}) {
|
||||
const { payload, ...params } = opts || {};
|
||||
|
||||
const res = payload
|
||||
? await api.post<Pagination<Employee[]>>(`/employee`, payload, {
|
||||
? await api.post<Pagination<Employee[]>>(`/employee/list`, payload, {
|
||||
params,
|
||||
})
|
||||
: await api.get<Pagination<Employee[]>>(`/employee`, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue