This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-08 17:21:01 +07:00
parent e27c26ba0a
commit 0821095838
6 changed files with 244 additions and 114 deletions

View file

@ -250,18 +250,53 @@ function checkSelectForm() {
/** function บันทักตรวจสอบคุณสมบัติ*/
async function saveStep1() {
showLoader();
const salaries = formDetail.value.salaries.map((e: any) => ({
amount: e.amount,
date: e.date,
mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,
// amount: e.amount,
// date: e.date,
// mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,
// posNo: e.posNo,
// position: e.position,
// positionSalaryAmount: e.positionSalaryAmount ? e.positionSalaryAmount : 0,
// refCommandDate: e.refCommandDate,
// refCommandNo: e.refCommandNo ? e.refCommandNo : "",
// salaryClass: e.salaryClass ? e.salaryClass : "",
// salaryRef: e.salaryRef ? e.salaryRef : "",
// salaryStatus: e.salaryStatus ? e.salariesStatus : "",
profileId: e.profileId,
commandCode: e.commandCode,
commandNo: e.commandNo,
commandYear: e.commandYear ? Number(e.commandYear) : 0,
commandDateAffect: e.commandDateAffect,
commandDateSign: e.commandDateSign,
posNoAbb: e.posNoAbb,
posNo: e.posNo,
position: e.position,
positionSalaryAmount: e.positionSalaryAmount ? e.positionSalaryAmount : 0,
refCommandDate: e.refCommandDate,
refCommandNo: e.refCommandNo ? e.refCommandNo : "",
salaryClass: e.salaryClass ? e.salaryClass : "",
salaryRef: e.salaryRef ? e.salaryRef : "",
salaryStatus: e.salaryStatus ? e.salariesStatus : "",
positionName: e.positionName,
positionType: e.positionType,
positionLevel: e.positionLevel,
positionLine: e.positionLine,
positionPathSide: e.positionPathSide,
positionExecutive: e.positionExecutive,
amount: e.amount ? e.amount.toString() : "0",
amountSpecial: e.amountSpecial ? e.amountSpecial.toString() : "0",
positionSalaryAmount: e.positionSalaryAmount
? e.positionSalaryAmount.toString()
: "0",
mouthSalaryAmount: e.mouthSalaryAmount
? e.mouthSalaryAmount.toString()
: "0",
orgRoot: e.orgRoot,
orgChild1: e.orgChild1,
orgChild2: e.orgChild2,
orgChild3: e.orgChild3,
orgChild4: e.orgChild4,
remark: e.remark,
commandId: e.commandId,
isGovernment: e.isGovernment,
positionCee: e.positionCee,
commandName: e.commandName,
posNumCodeSit: e.posNumCodeSit,
posNumCodeSitAbb: e.posNumCodeSitAbb,
}));
const educations = formDetail.value.educations.map((e: any) => ({