feat: employee address (same with employer)

This commit is contained in:
puriphatt 2024-06-13 10:07:20 +00:00
parent c72f44d50a
commit 39118cc227
5 changed files with 204 additions and 40 deletions

View file

@ -9,12 +9,13 @@ import {
EmployeeOther,
EmployeeWork,
} from './types';
import { CustomerBranch } from '../customer/types';
import axios from 'axios';
const useEmployeeStore = defineStore('api-employee', () => {
const data = ref<Pagination<Employee[]>>();
const globalOption = ref();
const ownerOption = ref<{ label: string; value: string }[]>();
const ownerOption = ref<CustomerBranch[]>();
async function fetchList(
opts?: {