fix posLevel
This commit is contained in:
parent
240f2aab7e
commit
ece5bbf051
1 changed files with 4 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ export class ProfileGovernmentEmployeeController extends Controller {
|
||||||
posLevel:
|
posLevel:
|
||||||
record.posType == null && record.posLevel == null
|
record.posType == null && record.posLevel == null
|
||||||
? null
|
? null
|
||||||
: `${record.posType.posTypeShortName}${record.posLevel.posLevelName}`, //ระดับ
|
: `${record.posType.posTypeShortName} ${record.posLevel.posLevelName}`, //ระดับ
|
||||||
posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง
|
posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง
|
||||||
posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท
|
posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท
|
||||||
dateLeave: record.birthDate == null ? null : calculateRetireDate(record.birthDate),
|
dateLeave: record.birthDate == null ? null : calculateRetireDate(record.birthDate),
|
||||||
|
|
@ -299,7 +299,9 @@ export class ProfileGovernmentEmployeeController extends Controller {
|
||||||
const data = {
|
const data = {
|
||||||
org: org, //สังกัด
|
org: org, //สังกัด
|
||||||
position: record.position, //ตำแหน่ง
|
position: record.position, //ตำแหน่ง
|
||||||
posLevel: record.posLevel == null ? null : record.posLevel.posLevelName, //ระดับ
|
posLevel: record.posLevel == null && record.posType == null
|
||||||
|
? null
|
||||||
|
: `${record.posType.posTypeShortName} ${record.posLevel.posLevelName}`, //ระดับ
|
||||||
posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง
|
posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง
|
||||||
posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท
|
posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท
|
||||||
dateLeave: record.birthDate == null ? null : calculateRetireDate(record.birthDate), //วันเกษียณ
|
dateLeave: record.birthDate == null ? null : calculateRetireDate(record.birthDate), //วันเกษียณ
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue