feat(subspecialist): add detail view and position management

- Implement detail view for subspecialist with specialist relation
- Add position management functionality including CRUD operations
- Create new components for detail display and position listing
- Update service to handle position-related requests
- Include employee selection for position assignments
This commit is contained in:
Khafid Prayoga
2025-10-31 15:57:41 +07:00
parent ba0ac753b2
commit 581eee41f4
10 changed files with 640 additions and 106 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
import { type Base, genBase } from "./_base"
import { type Base, genBase } from './_base'
import { type Specialist } from './specialist'
export interface Subspecialist extends Base {
code: string
name: string
specialist_id?: number | string | null
specialist?: Specialist | null
}
export function genSubspecialist(): Subspecialist {
@@ -11,6 +13,6 @@ export function genSubspecialist(): Subspecialist {
...genBase(),
code: '',
name: '',
specialist_id: 0
specialist_id: 0,
}
}