diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index d0fb7b902..fe5009c44 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -60,6 +60,8 @@ export default { // clear Position clearPosition: (personalId: string) => `${placement}/position/clear/${personalId}`, + clearDate: (personalId: string) => + `${placement}/date/update/${personalId}`, // Document documentByid: (personalId: string) => `${placement}/doc/${personalId}`, documentDelid: (personalId: string, docid: string) => diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index c1c498ba3..b1d333a01 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -154,6 +154,14 @@ const menuList = readonly([ path: "registryNew", role: "organization", }, + { + key: 4, + icon: "o_contact_page", + activeIcon: "registry_employee_page", + label: "ทะเบียนประวัติลูกจ้าง", + path: "registry-employee", + role: "registryEmployee", + }, { key: 4, icon: "verified", @@ -665,14 +673,6 @@ const menuList = readonly([ path: "registry", role: "registry", }, - { - key: 13.0, - icon: "o_contact_page", - activeIcon: "registry_employee_page", - label: "ทะเบียนประวัติลูกจ้าง", - path: "registry-employee", - role: "registryEmployee", - }, ], }, ]); diff --git a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue index 8274f9163..ad974494c 100644 --- a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue +++ b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue @@ -158,6 +158,10 @@ const visibleColumns = ref([ function closeDialog() { dialog.value = false; + name.value = ""; + isActive.value = false; + shortName.value = ""; + note.value = ""; } function validateForm() { @@ -210,7 +214,7 @@ async function addData() { name: name.value, isActive: isActive.value, shortName: shortName.value, - note: note.value == "" ? "-" : note.value, + note: note.value == "" || note.value == null ? "" : note.value, insigniaTypeId: id.value, }) .then(() => { @@ -226,12 +230,14 @@ async function addData() { } async function editData(idData: string) { + console.log(note.value); + await http .put(config.API.insigniaNewIdOrg(idData), { name: name.value, isActive: isActive.value, shortName: shortName.value, - note: note.value == "" ? "-" : note.value, + note: note.value == "" || note.value == null ? "" : note.value, insigniaTypeId: id.value, }) .then(() => { @@ -403,101 +409,105 @@ const dialogOrder = ref(false); - - - -
- - - - - - -
- -
-
- -
-
- -
-
- -
-
-
-

สถานะการใช้งาน

- -
-
-
- - - - บันทึกข้อมูล - - - -
-
+ + + +
+ + + + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+
+

สถานะการใช้งาน

+ +
+
+
+ + + + บันทึกข้อมูล + + + +
+