filter KPI
This commit is contained in:
parent
6b17fd4c25
commit
a9d5fc3770
3 changed files with 10 additions and 8 deletions
|
|
@ -239,7 +239,6 @@ function checkSelectForm() {
|
|||
? dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
showLoader();
|
||||
saveStep1();
|
||||
},
|
||||
"ยืนยันการดำเนินการ",
|
||||
|
|
@ -250,6 +249,7 @@ function checkSelectForm() {
|
|||
|
||||
/** function บันทักตรวจสอบคุณสมบัติ*/
|
||||
async function saveStep1() {
|
||||
showLoader();
|
||||
const salaries = formDetail.value.salaries.map((e: any) => ({
|
||||
amount: e.amount,
|
||||
date: e.date,
|
||||
|
|
@ -286,9 +286,9 @@ async function saveStep1() {
|
|||
userId: formDetail.value.id,
|
||||
citizenId: formDetail.value.citizenId,
|
||||
prefix: formDetail.value.prefix,
|
||||
fullName: `${formDetail.value.firstName} ${formDetail.value.lastName}`,
|
||||
fullName: `${formDetail.value.prefix}${formDetail.value.firstName} ${formDetail.value.lastName}`,
|
||||
position: formDetail.value.position,
|
||||
oc: formDetail.value.oc,
|
||||
oc: formDetail.value.org,
|
||||
salary: formDetail.value.salary ? formDetail.value.salary.toString() : null,
|
||||
positionLevel: formDetail.value.positionLevel,
|
||||
posNo: formDetail.value.posNo,
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ function fetcheSigner(id: string) {
|
|||
.get(config.API.evaluationSignerDoc1(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
|
||||
formCommand.commanderFullname = data.commanderFullname;
|
||||
formCommand.commanderPosition = data.commanderPosition;
|
||||
formCommand.commanderAboveFullname = data.commanderAboveFullname;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ async function fetchDetail() {
|
|||
formDetail.posNo = data.rootShortName + data.posMasterNo;
|
||||
formDetail.birthDate = data.birthDate;
|
||||
formDetail.govAge = data.govAge; // ยังไม่มี
|
||||
formDetail.salary = data.salary;
|
||||
|
||||
http.get(config.API.dataUserEducations).then((res) => {
|
||||
formDetail.educations = res.data.result;
|
||||
|
|
@ -102,11 +103,11 @@ async function fetchDetail() {
|
|||
|
||||
http.get(config.API.dataUserSalary).then((res) => {
|
||||
formDetail.salaries = res.data.result;
|
||||
formDetail.salary = formDetail.salaries
|
||||
? formattedNumber(
|
||||
formDetail.salaries[formDetail.salaries.length - 1].amount
|
||||
)
|
||||
: "";
|
||||
// formDetail.salary = formDetail.salaries
|
||||
// ? formattedNumber(
|
||||
// formDetail.salaries[formDetail.salaries.length - 1].amount
|
||||
// )
|
||||
// : "";
|
||||
});
|
||||
|
||||
http.get(config.API.dataUserCertificate("training")).then((res) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue