feat (employee): add based component & conditional form input

This commit is contained in:
Abizrh
2025-08-31 17:21:09 +07:00
parent 2b4ec07185
commit f9af69fd27
42 changed files with 1071 additions and 189 deletions
+61
View File
@@ -0,0 +1,61 @@
export interface Doctor {
id: number
createdAt: string
updatedAt: string
name: string
frontTitle?: string
endTitle?: string
specialist_code?: string
sip_no: string
ihs_number: string
identity_number: string
phone?: string
bpjs_code?: string
status_code?: number
}
// use one dto for both create and update
export interface CreateDto {
name?: string
frontTitle?: string
endTitle?: string
identity_number?: string
sip_no?: string
ihs_number?: string
phone?: string
email?: string
bpjs_code?: string
status_code?: number
outPatient_rate?: number
inPatient_rate?: number
}
export interface GetListDto {
name?: string
identity_number?: string
sip_no?: string
ihs_number?: string
}
export interface GetDetailDto {
id?: string
}
export interface UpdateDto extends CreateDto {
id?: number
}
export interface DeleteDto {
id?: string
}
export function genDoctor(): Doctor {
return {
id: 0,
createdAt: '',
updatedAt: '',
name: '',
ihs_number: '',
identity_number: '',
sip_no: '',
}
}
View File
View File