refactor: เป้าหมาย

This commit is contained in:
oat_dev 2024-04-10 10:37:46 +07:00
parent ec36ffe6ba
commit 0dfe2f5e13
3 changed files with 65 additions and 25 deletions

View file

@ -20,7 +20,25 @@ interface FormGroupTarget {
position: string;
posType: string | null;
level: string | null;
type: string;
type: string | null;
amount: number | null;
}
interface FormGroupTargetPlannedGoal {
positions:[
{
position: string,
posTypePlannedId: string,
posLevelPlannedId: string,
}
]
;
groupTarget: string;
groupTargetSub: string;
position: string;
posType: string | null;
level: string | null;
type: string | null;
amount: number | null;
}
@ -178,17 +196,21 @@ interface actualGoals {
position: string;
posTypeActualId: string | null;
posLevelActualId: string | null;
type: string;
type: string | null;
amount: number | null;
}
interface PlannedGoals {
groupTarget: string;
groupTargetSub: string;
position: string;
posTypePlannedId: string | null;
posLevelPlannedId: string | null;
type: string;
positions:[
{
position: string,
posTypePlannedId: string,
posLevelPlannedId: string,
}
]
type: string | null;
amount: number | null;
}
@ -203,4 +225,5 @@ export type {
FormAddHistory,
FormAddHistoryProject,
FormAddHistoryEmployee,
FormGroupTargetPlannedGoal
};

View file

@ -81,17 +81,22 @@ interface ResActualGoals {
position: string;
posTypeActualId: string | null;
posLevelActualId: string | null;
type: string;
type: string | null;
amount: number | null;
}
interface ResPlannedGoals {
groupTarget: string;
groupTargetSub: string;
position: string;
posTypePlannedId: string | null;
posLevelPlannedId: string | null;
type: string;
positions:[
{
position: string,
posTypePlannedId: string,
posLevelPlannedId: string,
}
]
;
type: string | null;
amount: number | null;
}