Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2025-01-13 14:56:20 +07:00
commit 53fd998953
10 changed files with 79 additions and 73 deletions

View file

@ -33,6 +33,7 @@ export default {
probationsGetAssign: (assignId: string) => `${finish}?assign_id=${assignId}`,
changestatusProbations: (personalId: string) =>
`${evaluate}/report/change-status?personal_id=${personalId}`,
probationCommittee : `${appointMain}/committee`,
// probationGetAssignList: (personalId: string) =>
// `${finish}/assign-list?personal_id=${personalId}`,

View file

@ -261,6 +261,16 @@ watch(
1
}}
</div>
<div v-else-if="col.name == 'posMasterNo'">
{{ col.value }}
<q-icon
name="mdi-star"
color="primary"
v-if="props.row.isDirector"
>
<q-tooltip>อำนวยการ/วหน</q-tooltip>
</q-icon>
</div>
<div v-else>
{{ col.value }}

View file

@ -305,9 +305,15 @@ function onClickOpenDialog(statusEdit: boolean = false, data: any = []) {
formDataSalary.positionPathSide = statusEdit ? data.positionPathSide : "";
formDataSalary.positionExecutive = statusEdit ? data.positionExecutive : "";
formDataSalary.salaryCompensation = statusEdit ? data.mouthSalaryAmount : "";
formDataSalary.salary = statusEdit ? data.amount.toLocaleString() : "";
formDataSalary.salary = statusEdit
? data.amount
? data.amount.toLocaleString()
: ""
: "";
formDataSalary.salaryPos = statusEdit
? data.positionSalaryAmount.toLocaleString()
? data.positionSalaryAmount
? data.positionSalaryAmount.toLocaleString()
: ""
: "";
formDataSalary.refCommandNo = statusEdit ? data.refCommandNo : "";
formDataSalary.templateDoc = "";
@ -712,9 +718,10 @@ onMounted(() => {
<q-btn
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
flat
:disable="props.row.commandId !== null && props.row.commandId !== ''"
:color="props.row.commandId ? 'grey' : 'edit'"
dense
round
color="edit"
icon="edit"
clickable
@click="onClickOpenDialog(true, props.row)"
@ -1144,8 +1151,8 @@ onMounted(() => {
v-model="formDataSalary.refCommandNo"
hide-bottom-space
:label="`${'เลขที่คำสั่ง'}`"
mask="#####################"
>
<!-- mask="#####################" -->
<!-- :rules="[(val: string) => !!val || `${'กรุณากรอกเลขที่คำสั่ง'}`]" -->
</q-input>
</div>

View file

@ -46,7 +46,7 @@ const fullname = ref<string>();
const date_start = ref<Date>();
const date_finish = ref<any>();
const other_desc = ref<string>("");
const other4_desc = ref<string>();
const other4_desc = ref<string>("");
const monthOp: MonthOption[] = [];
const other5_no1_desc = ref<string>("");
const group = ref<any | null>(null);
@ -572,12 +572,12 @@ function putDataEdit(id: string) {
: dateToISO(new Date(date_finish.value)),
assign_knowledges: know_ledge,
assign_jobs: assign_job.filter((item) => item !== null),
other_desc: other_desc.value,
other_desc: other_desc.value ?? "",
assign_skill: allSkills,
assign_competency: assign_competencyMain.value,
assign_competency_group: assign_competencyGroupMain.value,
other4_desc: other4_desc.value,
other5_no1_desc: other5_no1_desc.value,
other4_desc: other4_desc.value ?? "",
other5_no1_desc: other5_no1_desc.value ?? "",
assign_outputs: Productivity_assign.filter((item) => item !== null),
assign_director: assign_director,
experimenter_dated:
@ -708,12 +708,12 @@ function putData(id: string) {
assign_knowledges: know_ledge,
assign_jobs: assign_job.filter((item) => item !== null),
other_desc: other_desc.value,
other_desc: other_desc.value ?? "",
assign_skill: allSkills,
assign_competency: assign_competencyMain.value,
assign_competency_group: assign_competencyGroupMain.value,
other4_desc: other4_desc.value,
other5_no1_desc: other5_no1_desc.value,
other4_desc: other4_desc.value ?? "",
other5_no1_desc: other5_no1_desc.value ?? "",
assign_outputs: Productivity_assign.filter((item) => item !== null),
assign_director: assign_director,
@ -2249,7 +2249,8 @@ onMounted(async () => {
<div class="col-12 row q-col-gutter-md">
<div class="col-12 column q-ml-md">
<li>
ศตน และเสยสละเวลาในการปฏงานอยางเตมกำลงความสามารถ
ศตน
และเสยสละเวลาในการปฏงานอยางเตมกำลงความสามารถ
</li>
<li>
ตสำนกท ปฏงานดวยความซอสตย จร
@ -2271,8 +2272,8 @@ onMounted(async () => {
แตงกายในการปฏงานไดอยางเหมาะสมกบการเปนขาราชการ
</li>
<li>
ไมกระทำการใดๆ
นเปนการเสอมเกยรต และศกดศรของความเปนขาราชการ
ไมกระทำการใดๆ นเปนการเสอมเกยรต
และศกดศรของความเปนขาราชการ
</li>
<li>
ไมกระทำการใดๆ
@ -2398,8 +2399,9 @@ onMounted(async () => {
</div>
<div class="col-12 row">
<div class="col-12 text-top2">
ทดลองปฏหนาทราชการตองเขารวมในการปฐมนเทศ และอบรมหลกสตรตาง
ภายในระยะเวลาทดลองปฏหนาทราชการ งน
ทดลองปฏหนาทราชการตองเขารวมในการปฐมนเทศ
และอบรมหลกสตรตาง ภายในระยะเวลาทดลองปฏหนาทราชการ
งน
</div>
<div class="col-12 text-top2 row items-center">
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
@ -2479,7 +2481,8 @@ onMounted(async () => {
<div class="col-12 row q-col-gutter-md">
<div class="col-12 column q-ml-md">
<li>
นทกผลการทดลองปฏหนาทราชการของผแลการทดลองปฏหนาทราชการ และผงคบบญา
นทกผลการทดลองปฏหนาทราชการของผแลการทดลองปฏหนาทราชการ
และผงคบบญา
</li>
<li>
แบบประเมนผลการทดลองปฏหนาทราชการของผงคบบญชา

View file

@ -164,6 +164,7 @@ async function fetchEvaluate() {
training_seminar.value = data.training_seminar.toString();
other_training.value = data.other_training.toString();
dateAutherise.value = data.commander_dated;
evaluate_no.value = data.no;
if (
data.achievement_other_desc !== "" &&
@ -285,7 +286,6 @@ watch(props, async () => {
onMounted(async () => {
if (props.tab && props.action == "edit") {
evaluate_no.value = Number(props.tab.charAt(4));
dataArr.value = await props.data;
fecthAssign();
fetchEvaluate();

View file

@ -277,6 +277,8 @@ async function fetchEvaluate() {
develop_result.value = data.develop_result;
evaluate_result.value = data.evaluate_result;
dateAutherise.value = data.chairman_dated;
evaluate_no.value = data.no;
director1_dated.value = data.director1_dated;
director2_dated.value = data.director2_dated;
if (
@ -408,7 +410,7 @@ watch(props, async () => {
onMounted(async () => {
if (props.tab && props.action == "edit") {
evaluate_no.value = Number(props.tab.charAt(4));
// evaluate_no.value = Number(props.tab.charAt(4));
dataArr.value = await props.data;
await fetchEvaluate();
await fecthAssign();

View file

@ -243,12 +243,6 @@ function clickSelect(id: string) {
}
}
/** รีเซ็ตค่าในช่อง input */
function resetFilter() {
filterKeyword.value = "";
filterRef.value.focus();
}
function paginationLabel(start: string, end: string, total: string) {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
@ -284,6 +278,19 @@ async function fetchProfilePhoto() {
});
}
const isCommittee = ref<boolean>(false); //
function fetchCheckCommittee() {
http
.get(config.API.probationCommittee + `/${personalId.value}`)
.then((res) => {
const data = res.data.result;
isCommittee.value = data;
})
.catch((err) => {
messageError($q, err);
});
}
function onSearch() {
rows.value = onSearchDataTable(
filterKeyword.value,
@ -294,7 +301,12 @@ function onSearch() {
/** get ค่า เมื่อโหลดหน้า */
onMounted(async () => {
await Promise.all([getpersonalList(), getAssignList(), fetchProfilePhoto()]);
await Promise.all([
getpersonalList(),
getAssignList(),
fetchProfilePhoto(),
fetchCheckCommittee(),
]);
});
</script>
@ -389,8 +401,7 @@ onMounted(async () => {
<div>
<q-btn
v-if="
checkPermission($route)?.attrIsUpdate &&
(probation_status == 1 || probation_status == 7)
isCommittee && (probation_status == 1 || probation_status == 7)
"
@click="router.push(`/probation/add/${personalId}`)"
flat

View file

@ -79,6 +79,7 @@ const rows = ref<tableType[]>([]);
const visibleColumnsRespondent = ref<string[]>([
"info",
"no",
"citizenId",
"name",
"position",
"organization",
@ -102,6 +103,15 @@ const columnsRespondent = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "citizenId",
align: "left",
label: "เลขประจำตัวประชาชน",
sortable: false,
field: "citizenId",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "name",
align: "left",
@ -162,7 +172,7 @@ function searchInput() {
showLoader();
const body = {
fieldName: type.value,
keyword: search.value,
keyword: search.value ? search.value.trim() : "",
};
http
.post(
@ -190,6 +200,7 @@ function searchInput() {
organization: e.organization ?? "-",
phone: e.phone ?? "-",
email: e.email ?? "-",
citizenId: e.citizenId ?? "-",
}));
rows.value = list;
@ -296,7 +307,6 @@ onMounted(async () => {
hide-bottom-space
dense
label="คำค้น"
:rules="[(val:string) => !!val || `กรุณากรอกคำค้น`]"
>
<template v-slot:after>
<q-btn
@ -305,7 +315,7 @@ onMounted(async () => {
outline
label="ค้นหา"
class="full-width q-py-sm q-px-md"
@click="searchInput()"
@click="(pagination.page = 1), searchInput()"
>
</q-btn>
</template>

View file

@ -125,18 +125,6 @@ async function fetchDataCommand(type: string) {
.finally(() => {
hideLoader();
});
// await http
// .get(config.API.commandRegisterByType(commandId.value, type))
// .then(async (res) => {
// const dataMain = await res.data.result;
// if (type === "cover") {
// dataCover.value = dataMain;
// issue.value = await res.data.result.data.commandTitle;
// await fetchPDF(dataCover.value);
// } else {
// dataAttachment.value = dataMain;
// }
// });
}
/** ฟังชั่นกำหนดค่าของ PDF*/
@ -165,29 +153,6 @@ async function fetchPDF(data: any, type: string = "docx?folder=command") {
messageError($q, err);
isLoadView.value = true;
});
// await axios
// .post(config.API.reportTemplate + `/${type}`, data, {
// headers: {
// accept: "application/pdf",
// "content-Type": "application/json",
// },
// responseType: "blob",
// })
// .then(async (res) => {
// const blob = new Blob([res.data]);
// const objectUrl = URL.createObjectURL(blob);
// const pdfData = usePDF(`${objectUrl}`);
// setTimeout(() => {
// pdfSrc.value = pdfData.pdf.value;
// numOfPages.value = pdfData.pages.value;
// isLoadView.value = true;
// }, 1500);
// })
// .catch(async (e) => {
// messageError($q, e);
// isLoadView.value = true;
// });
}
watch(
@ -205,6 +170,9 @@ watch(
.finally(() => {
hideLoader();
});
} else {
tab.value = "main";
pdfSrc.value = undefined;
}
}
);

View file

@ -84,13 +84,7 @@ const modalLoginLinkage = ref<boolean>(false); //เข้าสู่ระบ
// landing page redirect
const landingPageUrl = ref<string>(getLandingUrl());
function getLandingUrl() {
if (window.location.hostname === "bmasso.bma.go.th") {
return `${configParam.landingPageUrl}/landing?mode=dev`;
} else if (window.location.hostname === "bma-ehr.frappet.com") {
return `${configParam.landingPageUrl}/landing?mode=prod`;
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`;
}
return `${configParam.landingPageUrl}/landing`;
}
async function fetchmsgNoread() {