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 @@