refactor: edit type work

This commit is contained in:
Thanaphon Frappet 2024-11-12 10:24:57 +07:00
parent fbfe8399fb
commit 03ba79a401
2 changed files with 3 additions and 3 deletions

View file

@ -686,7 +686,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
employeeWork: [
{
workEndDate: null,
workPermitExpireDate: null,
workPermitIssueDate: null,
workPermitNo: '',
@ -694,7 +693,6 @@ export const useEmployeeForm = defineStore('form-employee', () => {
jobType: '',
positionName: '',
ownerName: '',
remark: '',
},
],

View file

@ -195,6 +195,7 @@ export type EmployeeWork = {
workPermitExpireDate: Date;
workPermitIssueDate: Date;
workPermitNo: string;
identityNo: string;
workplace: string;
jobType: string;
positionName: string;
@ -205,10 +206,11 @@ export type EmployeeWork = {
};
export type EmployeeWorkCreate = {
workEndDate?: Date | null;
workPermitExpireDate?: Date | null;
workPermitIssueDate?: Date | null;
workPermitNo?: string;
workPermitIssueAt?: string;
identityNo?: string;
workplace?: string;
jobType?: string;
positionName?: string;