Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2024-11-04 13:48:25 +07:00
commit dbcb465344
3 changed files with 31 additions and 11 deletions

View file

@ -179,7 +179,8 @@ export default {
profileReportEmpId: (profileId: string) =>
`${report}kk1-employee/${profileId}`,
profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`,
profileKp7ShortEmpId: (profileId: string) => `${report}kp7-short-employee/${profileId}`,
profileKp7ShortEmpId: (profileId: string) =>
`${report}kp7-short-employee/${profileId}`,
profileChangeNameId: (profileId: string) =>
`${profile}changeName/${profileId}`,
@ -220,5 +221,10 @@ export default {
`${profile}search/new-page/oc/${id}/officer?page=${page}&pageSize=${pageSize}`,
orgProfileAvatar: `${registryNew}avatar`,
orgProfileAvatarbyType:(type:string)=> `${avatarNew}${type}/avatar`,
orgProfileAvatarbyType: (type: string) => `${avatarNew}${type}/avatar`,
profilFull: (id: string, type: string) =>
`${env.API_URI}/org/${type}/kk1/${id}`,
profilshort: (id: string, type: string) =>
`${env.API_URI}/org/${type}/kp7-short/${id}`,
};

View file

@ -399,11 +399,11 @@ async function onClickDownloadKp7(type: string) {
const url =
type === "FULL"
? empType.value
? config.API.profileReportEmpId(profileId.value)
: config.API.profileReportId(profileId.value)
? config.API.profilFull(profileId.value, "profile-employee")
: config.API.profilFull(profileId.value, "profile")
: empType.value
? config.API.profileKp7ShortEmpId(profileId.value)
: config.API.profileKp7ShortId(profileId.value);
? config.API.profilshort(profileId.value, "profile-employee")
: config.API.profilshort(profileId.value, "profile");
const fileName = type === "FULL" ? "ก.พ.7/ก.ก.1" : "ประวัติแบบย่อ";
await http
@ -411,13 +411,13 @@ async function onClickDownloadKp7(type: string) {
.then(async (res) => {
const data = await res.data.result;
await genReport(data, `${fileName}`, type);
hideLoader();
})
.catch((err) => {
messageError($q, err);
hideLoader();
})
.finally(() => {});
.finally(() => {
hideLoader();
});
}
/**
@ -1089,7 +1089,10 @@ onMounted(async () => {
<!-- Dialog เลอก Image -->
<q-dialog v-model="dialogImage" persistent>
<q-card style="width: 100vw; max-width: 60vw">
<DialogHeader :tittle="'เลือกรูปภาพ (150 x 200 px)'" :close="closeImage" />
<DialogHeader
:tittle="'เลือกรูปภาพ (150 x 200 px)'"
:close="closeImage"
/>
<q-separator />
<q-card-section class="col-12 row">

View file

@ -102,6 +102,16 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "actFullName",
align: "left",
label: "รักษาการแทน",
sortable: true,
field: "actFullName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
]);
//
@ -595,7 +605,8 @@ onMounted(async () => {
class="col-12"
v-if="
rowsAuthority[rowsAuthority.length - 1].comment !== null &&
step === 2 && !store.readonly
step === 2 &&
!store.readonly
"
>
<q-btn