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

View file

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