From ba64953315e8eea6a47105f8092546e09797fb3d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 10 Jun 2024 18:00:12 +0700 Subject: [PATCH 01/15] =?UTF-8?q?=E0=B8=97=E0=B8=B3=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=8A=E0=B8=B1=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B2=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 4 +- src/api/registry/api.registry.ts | 13 + .../detail/Employee/01_DataEmployee.vue | 641 ++++++++++ .../detail/Employee/02_Employment.vue | 522 ++++++++ .../components/detail/Employee/Main.vue | 43 + .../detail/PersonalInformation/01_Profile.vue | 3 +- .../components/detail/TabMain.vue | 15 +- .../interface/request/Employee.ts | 19 + .../interface/request/Profile.ts | 8 +- .../interface/response/Employee.ts | 54 + src/modules/04_registryNew/stores/profile.ts | 8 +- .../04_registryNew/views/detailView.vue | 6 +- .../components/PersonalList/CardPosition.vue | 3 +- .../PersonalList/DialogSelectOrg.vue | 14 +- .../components/DialogAddEmployee.vue | 571 +++++++++ .../components/DialogSelectPos.vue | 929 +++++++++++++++ .../components/DialogSendOrder.vue | 301 +++++ .../interface/index/Main.ts | 13 +- .../interface/request/Employee.ts | 18 + .../interface/response/Employee.ts | 119 ++ src/modules/08_registryEmployee/router.ts | 51 +- .../stores/registry-employee.ts | 57 + .../08_registryEmployee/views/DetailView.vue | 9 + .../08_registryEmployee/views/Main.vue | 1061 ++++------------- .../08_registryEmployee/views/MainOld.vue | 1045 ++++++++++++++++ 25 files changed, 4679 insertions(+), 848 deletions(-) create mode 100644 src/modules/04_registryNew/components/detail/Employee/01_DataEmployee.vue create mode 100644 src/modules/04_registryNew/components/detail/Employee/02_Employment.vue create mode 100644 src/modules/04_registryNew/components/detail/Employee/Main.vue create mode 100644 src/modules/04_registryNew/interface/request/Employee.ts create mode 100644 src/modules/04_registryNew/interface/response/Employee.ts create mode 100644 src/modules/08_registryEmployee/components/DialogAddEmployee.vue create mode 100644 src/modules/08_registryEmployee/components/DialogSelectPos.vue create mode 100644 src/modules/08_registryEmployee/components/DialogSendOrder.vue create mode 100644 src/modules/08_registryEmployee/interface/request/Employee.ts create mode 100644 src/modules/08_registryEmployee/interface/response/Employee.ts create mode 100644 src/modules/08_registryEmployee/stores/registry-employee.ts create mode 100644 src/modules/08_registryEmployee/views/DetailView.vue create mode 100644 src/modules/08_registryEmployee/views/MainOld.vue diff --git a/src/api/index.ts b/src/api/index.ts index b147146b2..05c4f7bb4 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -10,8 +10,8 @@ export const apiUrlConfigReport = import.meta.env.VITE_API_REPORT_URL; const config = ref({ development: { - // API_URI: "https://localhost:7260/api", - API_URI: "https://bma-ehr.frappet.synology.me/api/v1", + API_URI: "http://localhost:13001/api/v1", + // API_URI: "https://bma-ehr.frappet.synology.me/api/v1", // API_URI_ORG_SERVICE: "https://localhost:7056/api/v1", //ใช้ชั่วคราว API_URI_ORG_SERVICE: "https://bma-ehr.frappet.synology.me/api/v1", //ใช้ชั่วคราว // API_URI_ORG_EMPLOYEE_SERVICE: "https://localhost:7208/api/v1", //ใช้ชั่วคราว diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index ad88412d5..982cc48e9 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -177,4 +177,17 @@ export default { `${registryNew}${empType}/family/${type}`, profileFamilyHistory: (id: string, empType: string, type: string) => `${registryNew}${empType}/family/${type}/history/${id}`, + + //ลูกจ้างชั่วคราว + positionEmployee: (id: string) => `${registryNew}-employee/position/${id}`, + informationEmployee: (id: string) => + `${registryNew}-employee/information/${id}`, + informationHistoryEmployee: (id: string) => + `${registryNew}-employee/information/history/${id}`, + employmentEmployee: (id: string) => + `${registryNew}-employee/employment/${id}`, + employmentEmployeeId: (id: string) => + `${registryNew}-employee/employment/id/${id}`, + employmentHistoryEmployee: (id: string) => + `${registryNew}-employee/employment/history/${id}`, }; diff --git a/src/modules/04_registryNew/components/detail/Employee/01_DataEmployee.vue b/src/modules/04_registryNew/components/detail/Employee/01_DataEmployee.vue new file mode 100644 index 000000000..817b8fa96 --- /dev/null +++ b/src/modules/04_registryNew/components/detail/Employee/01_DataEmployee.vue @@ -0,0 +1,641 @@ + + + + + diff --git a/src/modules/04_registryNew/components/detail/Employee/02_Employment.vue b/src/modules/04_registryNew/components/detail/Employee/02_Employment.vue new file mode 100644 index 000000000..e5c48239d --- /dev/null +++ b/src/modules/04_registryNew/components/detail/Employee/02_Employment.vue @@ -0,0 +1,522 @@ + + + + + diff --git a/src/modules/04_registryNew/components/detail/Employee/Main.vue b/src/modules/04_registryNew/components/detail/Employee/Main.vue new file mode 100644 index 000000000..ae78c760c --- /dev/null +++ b/src/modules/04_registryNew/components/detail/Employee/Main.vue @@ -0,0 +1,43 @@ + + + + diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 06b5c71ee..39c457bb2 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -291,8 +291,9 @@ async function editData() { await http .put(config.API.profileNewProfileById(id.value, empType.value), { ...formData, + employeeClass: route.name === "registry-employeeId" ? "TEMP" : undefined, }) - .then((res) => { + .then(() => { success($q, "บันทึกข้อมูลสำเร็จ"); getData(), (modal.value = false); props.fetchDataPersonal?.(); diff --git a/src/modules/04_registryNew/components/detail/TabMain.vue b/src/modules/04_registryNew/components/detail/TabMain.vue index 5c038c04e..874b76953 100644 --- a/src/modules/04_registryNew/components/detail/TabMain.vue +++ b/src/modules/04_registryNew/components/detail/TabMain.vue @@ -1,5 +1,6 @@ From bed11441d94d3ec8c0154007e35943a509ef8de6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 11 Jun 2024 09:07:50 +0700 Subject: [PATCH 03/15] API --- src/api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 05c4f7bb4..b29b5fb3d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -10,8 +10,8 @@ export const apiUrlConfigReport = import.meta.env.VITE_API_REPORT_URL; const config = ref({ development: { - API_URI: "http://localhost:13001/api/v1", - // API_URI: "https://bma-ehr.frappet.synology.me/api/v1", + // API_URI: "http://localhost:13001/api/v1", + API_URI: "https://bma-ehr.frappet.synology.me/api/v1", // API_URI_ORG_SERVICE: "https://localhost:7056/api/v1", //ใช้ชั่วคราว API_URI_ORG_SERVICE: "https://bma-ehr.frappet.synology.me/api/v1", //ใช้ชั่วคราว // API_URI_ORG_EMPLOYEE_SERVICE: "https://localhost:7208/api/v1", //ใช้ชั่วคราว From 63ac10c1063717211d4181dff3c824538867ccc2 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 11 Jun 2024 09:46:06 +0700 Subject: [PATCH 04/15] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20path=20buil?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f5436c589..c233f34d4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,10 +8,10 @@ on: env: REGISTRY: docker.frappet.com IMAGE_NAME: ehr/bma-ehr-app - DEPLOY_HOST: 49.0.91.80 + DEPLOY_HOST: frappet.com COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr jobs: - # act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=version-1.0.110 -s DOCKER_USER=kittapath@frappet.com -s DOCKER_PASS=P@ssw0rd -s SSH_PASSWORD=FPTadmin2357 + # act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=latest -s DOCKER_USER=kittapath@frappet.com -s DOCKER_PASS=P@ssw0rd -s SSH_PASSWORD=FPTadmin2357 release-test: runs-on: ubuntu-latest steps: From 230e01a83380639f43e3fcf0509dd02227417f22 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 11 Jun 2024 10:19:36 +0700 Subject: [PATCH 05/15] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20dialog=20?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=B2=E0=B8=A8=E0=B9=80?= =?UTF-8?q?=E0=B8=81=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupReason.vue | 7 +++---- .../components/ListRetirement/TableList.vue | 21 ++++++++++++------- .../components/ListRetirement/popupAdd.vue | 9 ++++---- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/components/Dialogs/PopupReason.vue b/src/components/Dialogs/PopupReason.vue index d151fe55a..e7916fffe 100644 --- a/src/components/Dialogs/PopupReason.vue +++ b/src/components/Dialogs/PopupReason.vue @@ -47,7 +47,7 @@ const submit = () => { }; function closeModal() { - modal.value = false + modal.value = false; } @@ -57,7 +57,7 @@ function closeModal() { - +
@@ -77,9 +77,8 @@ function closeModal() {
- + - +
+ + -
-
+
+
-
+
+ + บันทึก diff --git a/src/modules/06_retirement/components/ListRetirement/popupAdd.vue b/src/modules/06_retirement/components/ListRetirement/popupAdd.vue index 7ed7d8542..fbebbe5cd 100644 --- a/src/modules/06_retirement/components/ListRetirement/popupAdd.vue +++ b/src/modules/06_retirement/components/ListRetirement/popupAdd.vue @@ -114,12 +114,10 @@ const cerateRetirement = async (data: object) => { -
เพิ่มประกาศ
+
เพิ่มประกาศ
+

เลือกประกาศที่ต้องการเพิ่มข้อมูล

- - เลือกประกาศที่ต้องการเพิ่มข้อมูล -
@@ -196,7 +194,8 @@ const cerateRetirement = async (data: object) => { Date: Tue, 11 Jun 2024 11:07:34 +0700 Subject: [PATCH 06/15] =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AD?= =?UTF-8?q?=E0=B8=B4=E0=B8=AA=E0=B8=A3=E0=B8=B4=E0=B8=A2=E0=B8=B2=E0=B8=A0?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B9=8C=20=3D>=20=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20form=20Dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 1 - .../components/3_result/DialogForm.vue | 122 ++++++------ .../components/3_result/Dialogbody.vue | 148 +++++++------- .../components/4_Allocate/DialogEdit.vue | 36 ++-- .../components/4_Allocate/DialogForm.vue | 69 ++++--- .../components/5_Borrow/DialogForm.vue | 188 ++++++++---------- .../stores/registry-employee.ts | 2 +- 7 files changed, 276 insertions(+), 290 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 6a30a99fd..41321aad3 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -1360,7 +1360,6 @@ onMounted(async () => { @click="clickSave" class="q-px-md" > - บันทึก diff --git a/src/modules/07_insignia/components/3_result/DialogForm.vue b/src/modules/07_insignia/components/3_result/DialogForm.vue index 79252e3c8..6c6cd9a38 100644 --- a/src/modules/07_insignia/components/3_result/DialogForm.vue +++ b/src/modules/07_insignia/components/3_result/DialogForm.vue @@ -1,4 +1,4 @@ - diff --git a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue index 9eff283e9..4b4017692 100644 --- a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue +++ b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue @@ -160,46 +160,44 @@ async function fetchOrgList() { // บันทึกข้อมูลการยืม-คืน /** function บันทึกการเพิ่มข้อมูล*/ -async function clickSave() { - await myForm.value!.validate().then((result: boolean) => { - if (result) { - dialogConfirm($q, async () => { - if (props.action == "addData") { - await http - .post(config.API.insigniaManageBorrow(), { - borrowDate: receivedate.value, - // borrowOrganizationId: OrganazationId.value, - insigniaNoteProfileId: insigniaNoteProfileId.value, - }) - .then(() => { - success($q, "บันทึกข้อมูลสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - clearData(); - props.closeAndFecth(); - }); - } else { - await http - .put(config.API.insigniaManageBorrowReturn(props.profileId), { - returnDate: returndate.value, - returnOrganizationId: OrganazationId.value, - returnReason: reason.value, - }) - .then(() => { - success($q, "บันทึกข้อมูลสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - clearData(); - props.closeAndFecth(); - }); - } - }); +async function onSubmit() { + dialogConfirm($q, async () => { + showLoader(); + if (props.action == "addData") { + await http + .post(config.API.insigniaManageBorrow(), { + borrowDate: receivedate.value, + insigniaNoteProfileId: insigniaNoteProfileId.value, + }) + .then(() => { + success($q, "บันทึกข้อมูลสำเร็จ"); + clearData(); + props.closeAndFecth(); + }) + .catch((err) => { + messageError($q, err); + }) + .finally(() => { + hideLoader(); + }); + } else { + await http + .put(config.API.insigniaManageBorrowReturn(props.profileId), { + returnDate: returndate.value, + returnOrganizationId: OrganazationId.value, + returnReason: reason.value, + }) + .then(() => { + success($q, "บันทึกข้อมูลสำเร็จ"); + clearData(); + props.closeAndFecth(); + }) + .catch((err) => { + messageError($q, err); + }) + .finally(() => { + hideLoader(); + }); } }); } @@ -297,11 +295,15 @@ watch(props, () => {
- -
{
+ +
-->
{ :label="`สาเหตุที่ส่งคืนเครื่องราชอิสริยาภรณ์`" />
-
-
-
-
+
- -
-
- + + + + บันทึก -
-
+
+ diff --git a/src/modules/08_registryEmployee/stores/registry-employee.ts b/src/modules/08_registryEmployee/stores/registry-employee.ts index dfaca7844..0f34dac2e 100644 --- a/src/modules/08_registryEmployee/stores/registry-employee.ts +++ b/src/modules/08_registryEmployee/stores/registry-employee.ts @@ -36,7 +36,7 @@ export const useRegistryEmp = defineStore("registry-employee", () => { switch (val) { case "WAITTING": return "รอดำเนินการ"; - case "REPORT": + case "PENDING": return "เลือกตำแหน่งแล้ว"; case "APPROVE": return "อนุมัติ"; From 6f9a82faa3f46ce7eafe8d8bcdffc70553197c3d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 11 Jun 2024 11:17:43 +0700 Subject: [PATCH 07/15] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=20=3D>=20fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryNew/components/TableView.vue | 8 ++++++-- src/modules/04_registryNew/views/list.vue | 14 -------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/modules/04_registryNew/components/TableView.vue b/src/modules/04_registryNew/components/TableView.vue index 3fbd2da6e..b8988c058 100644 --- a/src/modules/04_registryNew/components/TableView.vue +++ b/src/modules/04_registryNew/components/TableView.vue @@ -323,7 +323,9 @@ watch( > ดูทะเบียนประวัติ {{ - `${props.row.prefix}${props.row.firstName} ${props.row.lastName}` + `${props.row.prefix ? props.row.prefix : ""}${ + props.row.firstName + } ${props.row.lastName}` }}
{{ props.row.citizenId }}
@@ -347,7 +349,9 @@ watch(
{{ - `${props.row.prefix}${props.row.firstName} ${props.row.lastName}` + `${props.row.prefix ? props.row.prefix : ""}${ + props.row.firstName + } ${props.row.lastName}` }}
diff --git a/src/modules/04_registryNew/views/list.vue b/src/modules/04_registryNew/views/list.vue index efbce7087..93d4f45c5 100644 --- a/src/modules/04_registryNew/views/list.vue +++ b/src/modules/04_registryNew/views/list.vue @@ -70,9 +70,6 @@ function fetchType() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); }); } @@ -85,14 +82,10 @@ function fetchLevel() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); }); } function fetchOptionGroup() { - showLoader(); http .get(config.API.orgEmployeeType) .then((res) => { @@ -100,14 +93,10 @@ function fetchOptionGroup() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); }); } function fetchLevelGroup() { - showLoader(); http .get(config.API.orgEmployeelevel) .then((res) => { @@ -115,9 +104,6 @@ function fetchLevelGroup() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); }); } From dafe59cf27cfda1fbbb0b972a913cfd4fd98f6f6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 11 Jun 2024 13:16:30 +0700 Subject: [PATCH 08/15] =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=93=20=3D>=20?= =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20form=20Dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../indicatorByPlan/IndicatorByPlan.vue | 787 +++++++++--------- .../competency/02ListLinkPosition.vue | 4 +- .../components/competency/03ListLinkGroup.vue | 4 +- .../components/competency/04ListCriteria.vue | 151 ++-- .../components/competency/AddPage.vue | 21 +- .../components/competency/Forms/Main.vue | 267 +++--- .../01_metadataNew/interface/request/Main.ts | 2 +- .../01_metadataNew/views/Strategic.vue | 16 +- 8 files changed, 619 insertions(+), 633 deletions(-) diff --git a/src/modules/01_metadataNew/components/Indicators/indicatorByPlan/IndicatorByPlan.vue b/src/modules/01_metadataNew/components/Indicators/indicatorByPlan/IndicatorByPlan.vue index bf1a832c1..fde9bee1d 100644 --- a/src/modules/01_metadataNew/components/Indicators/indicatorByPlan/IndicatorByPlan.vue +++ b/src/modules/01_metadataNew/components/Indicators/indicatorByPlan/IndicatorByPlan.vue @@ -1,3 +1,4 @@ +divdivdivdivdivdivdiv