เพิ่ม งาน/ฝ่าย/กลุ่ม, กอง/ศูนย์/ส่วน

This commit is contained in:
Bright 2025-06-16 10:42:38 +07:00
parent 436bcb002b
commit c6f1db8670

View file

@ -344,7 +344,13 @@ export class ReoportController {
oc: evaluation.oc ? evaluation.oc.replace(/\n/g, " ") : "-",
org: org ? org : "-", //สังกัด
orgNoNewLine: _orgNoNewLine ? _orgNoNewLine : "-", //สังกัดแบบไม่เว้นวรรค
root: root ? root : "-", //หน่วยงาน
root: evaluation.salaries.length > 0 ? evaluation.salaries[0].orgRoot : "-", //หน่วยงาน
child1: evaluation.salaries.length > 0 // กอง / ศูนย์ / ส่วน
? evaluation.salaries[0].orgChild1
: "-",
child432: evaluation.salaries.length > 0 // งาน / ฝ่าย / กลุ่ม
? `${evaluation.salaries[0].orgChild4 ?? ""} ${evaluation.salaries[0].orgChild3 ?? ""} ${evaluation.salaries[0].orgChild2 ?? ""}`.trim()
: "-",
salary: evaluation.salary ? Extension.ToThaiNumber(Number(evaluation.salary).toLocaleString()) : "-",
salaryWithPrefix: evaluation.salary ? "อัตราเงินเดือนปัจจุบัน" +" "+ Extension.ToThaiNumber(Number(evaluation.salary).toLocaleString()) : "-",
positionLevel: evaluation.positionLevel ? evaluation.positionLevel : "",