feat(specialist): add specialist detail page with position management
- Add specialist detail page with unit relation - Implement position management including CRUD operations - Update specialist model to include unit relation - Add list and detail components for specialist positions - Create entry form for specialist positions - Implement pagination and search for positions - Add confirmation dialogs for delete operations
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Unit } from './unit'
|
||||
|
||||
export interface Specialist extends Base {
|
||||
code: string
|
||||
name: string
|
||||
unit_id?: number | string | null
|
||||
|
||||
unit?: Unit | null
|
||||
}
|
||||
|
||||
export function genSpecialist(): Specialist {
|
||||
@@ -11,6 +14,6 @@ export function genSpecialist(): Specialist {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
unit_id: 0
|
||||
unit_id: 0,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user