load
This commit is contained in:
parent
51b26ba51c
commit
ad8cf4553a
4 changed files with 136 additions and 8 deletions
|
|
@ -211,7 +211,27 @@ function validateFormPositionEdit() {
|
|||
/** ฟังชั่น บันทึก */
|
||||
function onSubmit() {
|
||||
dialogConfirm($q, () => {
|
||||
console.log(formData);
|
||||
const positionsData = rows.value.map((e) => ({
|
||||
posDictName: e.positionName, //ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||
posDictField: e.positionField, //สายงาน
|
||||
posTypeId: e.positionName, //*ประเภทตำแหน่ง
|
||||
posLevelId: e.positionName, //*ระดับตำแหน่ง
|
||||
posExecutiveId: e.positionName, //ตำแหน่งทางการบริหาร
|
||||
posDictExecutiveField: e.positionName, //ด้านทางการบริหาร
|
||||
posDictArea: e.positionArea, //ด้าน/สาขา
|
||||
}));
|
||||
const body = {
|
||||
posMasterNoPrefix: formData.prefixNo, //*Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||
posMasterNo: Number(formData.positionNo), //*เลขที่ตำแหน่ง เป็นตัวเลข
|
||||
posMasterNoSuffix: formData.suffixNo, //Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||
// orgRootId: Guid, //Id สำนัก
|
||||
// orgChild1Id: Guid, //Id โครงสร้างระดับ1
|
||||
// orgChild2Id: Guid, //Id โครงสร้างระดับ2
|
||||
// orgChild3Id: Guid, //Id โครงสร้างระดับ3
|
||||
// orgChild4Id: Guid, //Id โครงสร้างระดับ4
|
||||
positions: [positionsData],
|
||||
};
|
||||
console.log(body);
|
||||
});
|
||||
}
|
||||
/** ฟังชั่น บันทึก */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue