fix
This commit is contained in:
parent
8aa8fbeb18
commit
3989c33dc5
1 changed files with 5 additions and 23 deletions
|
|
@ -1158,24 +1158,6 @@ export class KpiUserEvaluationController extends Controller {
|
||||||
})
|
})
|
||||||
.then(() => {})
|
.then(() => {})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
} else if (requestBody.status.trim().toUpperCase() == "APPROVE") { // ทุกขั้นอนุมัติแล้วส่งกลับไปหาผู้ขอประเมินเพื่อส่งขอทำการประเมินต่อ
|
|
||||||
await new CallAPI()
|
|
||||||
.PostData(request, "/placement/noti/profiles", {
|
|
||||||
subject: `ผู้ประเมินและผู้บังคับบัญชาอนุมัติข้อตกลงการประเมินผลฯ สามารถดำเนินการขั้นตอนต่อไปได้`,
|
|
||||||
body: `ผู้ประเมินและผู้บังคับบัญชาอนุมัติข้อตกลงการประเมินผลฯ สามารถดำเนินการขั้นตอนต่อไปได้`,
|
|
||||||
receiverUserIds: [
|
|
||||||
{
|
|
||||||
receiverUserId: kpiUserEvaluation.evaluatorId,
|
|
||||||
notiLink: `${process.env.USER_NOTI_URL}/KPI-evaluator/${kpiUserEvaluation.id}`,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
payload: "",
|
|
||||||
isSendMail: true,
|
|
||||||
isSendInbox: true,
|
|
||||||
isSendNotification: true,
|
|
||||||
})
|
|
||||||
.then(() => {})
|
|
||||||
.catch(() => {});
|
|
||||||
}
|
}
|
||||||
const before = structuredClone(kpiUserEvaluation);
|
const before = structuredClone(kpiUserEvaluation);
|
||||||
let _null: any = null;
|
let _null: any = null;
|
||||||
|
|
@ -1636,8 +1618,8 @@ export class KpiUserEvaluationController extends Controller {
|
||||||
} else {
|
} else {
|
||||||
await new CallAPI()
|
await new CallAPI()
|
||||||
.PostData(request, "/placement/noti/profiles", {
|
.PostData(request, "/placement/noti/profiles", {
|
||||||
subject: `${item.prefix}${item.firstName} ${item.lastName} ผู้บังคับบัญชาเหนือขึ้นไปอนุมัติข้อตกลง`,
|
subject: `${item.prefix}${item.firstName} ${item.lastName} ส่งข้อตกลงการประเมินผลการปฏิบัติราชการระดับบุคคลให้ผู้บังคับบัญชาเหนือขึ้นไปอนุมัติข้อตกลง`,
|
||||||
body: `${item.prefix}${item.firstName} ${item.lastName} ผู้บังคับบัญชาเหนือขึ้นไปอนุมัติข้อตกลง`,
|
body: `${item.prefix}${item.firstName} ${item.lastName} ส่งข้อตกลงการประเมินผลการปฏิบัติราชการระดับบุคคลให้ผู้บังคับบัญชาเหนือขึ้นไปอนุมัติข้อตกลง`,
|
||||||
receiverUserIds: [
|
receiverUserIds: [
|
||||||
{
|
{
|
||||||
receiverUserId: item.commanderHighId,
|
receiverUserId: item.commanderHighId,
|
||||||
|
|
@ -1654,15 +1636,15 @@ export class KpiUserEvaluationController extends Controller {
|
||||||
item.evaluationStatus = "NEW_COMMANDER_HIGH";
|
item.evaluationStatus = "NEW_COMMANDER_HIGH";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (role == "NEW_COMMANDER_HIGH") {
|
} else if (role == "COMMANDERHIGH") {
|
||||||
if (item.evaluationStatus == "NEW_COMMANDER_HIGH") {
|
if (item.evaluationStatus == "NEW_COMMANDER_HIGH") {
|
||||||
if (item.commanderHighId == null || item.commanderHighId == "") {
|
if (item.commanderHighId == null || item.commanderHighId == "") {
|
||||||
item.evaluationStatus = "APPROVE";
|
item.evaluationStatus = "APPROVE";
|
||||||
} else {
|
} else {
|
||||||
await new CallAPI()
|
await new CallAPI()
|
||||||
.PostData(request, "/placement/noti/profiles", {
|
.PostData(request, "/placement/noti/profiles", {
|
||||||
subject: `ผู้บังคับบัญชาได้อนุมัติข้อตกลงแล้ว ให้ดำเนินการส่งประเมินต่อไป`,
|
subject: `ผู้ประเมินและผู้บังคับบัญชาอนุมัติข้อตกลงการประเมินผลฯ สามารถดำเนินการขั้นตอนต่อไปได้`,
|
||||||
body: `ผู้บังคับบัญชาได้อนุมัติข้อตกลงแล้ว ให้ดำเนินการส่งประเมินต่อไป`,
|
body: `ผู้ประเมินและผู้บังคับบัญชาอนุมัติข้อตกลงการประเมินผลฯ สามารถดำเนินการขั้นตอนต่อไปได้`,
|
||||||
receiverUserIds: [
|
receiverUserIds: [
|
||||||
{
|
{
|
||||||
receiverUserId: item.profileId,
|
receiverUserId: item.profileId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue