# Conflicts:
# src/modules/06_evaluate/components/EvaluateStepMain.vue
This commit is contained in:
commit
6ccdc99892
4 changed files with 28 additions and 12 deletions
|
|
@ -103,10 +103,7 @@ async function fetchDataCalendar() {
|
||||||
const eventData = filterVal.value.map((item: any) => {
|
const eventData = filterVal.value.map((item: any) => {
|
||||||
return mainData.value
|
return mainData.value
|
||||||
.filter(
|
.filter(
|
||||||
(e: DataCalendar) =>
|
(e: DataCalendar) => e.keycloakId === item && e.status === "APPROVE"
|
||||||
e.keycloakId === item &&
|
|
||||||
e.status != "REJECT" &&
|
|
||||||
e.status != "DELETE"
|
|
||||||
)
|
)
|
||||||
.map((e) => ({
|
.map((e) => ({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
|
|
@ -246,10 +243,7 @@ watch(
|
||||||
const eventData = filterVal.value.map((item: any) => {
|
const eventData = filterVal.value.map((item: any) => {
|
||||||
return mainData.value
|
return mainData.value
|
||||||
.filter(
|
.filter(
|
||||||
(e: DataCalendar) =>
|
(e: DataCalendar) => e.keycloakId === item && e.status === "APPROVE"
|
||||||
e.keycloakId === item &&
|
|
||||||
e.status != "REJECT" &&
|
|
||||||
e.status != "DELETE"
|
|
||||||
)
|
)
|
||||||
.map((e) => ({
|
.map((e) => ({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ interface FormSpec {
|
||||||
isHaveSpecificQft: boolean;
|
isHaveSpecificQft: boolean;
|
||||||
isHaveProLicense: boolean;
|
isHaveProLicense: boolean;
|
||||||
isHaveMinPeriodOrHoldPos: boolean;
|
isHaveMinPeriodOrHoldPos: boolean;
|
||||||
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FormCommand {
|
interface FormCommand {
|
||||||
|
|
|
||||||
|
|
@ -228,12 +228,12 @@ function onSubmit(data: any) {
|
||||||
:readonly="isReadOnly"
|
:readonly="isReadOnly"
|
||||||
ref="titleRef"
|
ref="titleRef"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) => !!val || 'กรุณากรอกเรื่องอุทธรณ์/ร้องทุกข์',
|
(val) => !!val || 'กรุณากรอกอุทธรณ์/ร้องทุกข์',
|
||||||
]"
|
]"
|
||||||
v-model="formData.title"
|
v-model="formData.title"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
label="เรื่องอุทธรณ์/ร้องทุกข์"
|
label="อุทธรณ์/ร้องทุกข์"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -246,12 +246,12 @@ function onSubmit(data: any) {
|
||||||
:readonly="isReadOnly"
|
:readonly="isReadOnly"
|
||||||
ref="descriptionRef"
|
ref="descriptionRef"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) => !!val || 'กรุณากรอกรายละเอียดเรื่องร้องทุกข์',
|
(val) => !!val || 'กรุณากรอกรายละเอียดอุทธรณ์/ร้องทุกข์',
|
||||||
]"
|
]"
|
||||||
v-model="formData.description"
|
v-model="formData.description"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
label="รายละเอียดเรื่องร้องทุกข์"
|
label="รายละเอียดอุทธรณ์/ร้องทุกข์"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
rows="5"
|
rows="5"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
|
||||||
|
|
@ -853,6 +853,26 @@ export const useCounterMixin = defineStore("mixin", () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const dialogMessageNotify = (
|
||||||
|
q: any,
|
||||||
|
desc?: string, // ถ้ามี cancel action ใส่เป็น null
|
||||||
|
cancel?: Function
|
||||||
|
) => {
|
||||||
|
q.dialog({
|
||||||
|
component: CustomComponent,
|
||||||
|
componentProps: {
|
||||||
|
title: "ข้อความแจ้งเตือน",
|
||||||
|
message: desc && desc != null ? desc : "กรุณากรอกข้อมูลให้ครบ",
|
||||||
|
icon: "warning",
|
||||||
|
color: "orange",
|
||||||
|
textOk: "ตกลง",
|
||||||
|
onlycancel: true,
|
||||||
|
},
|
||||||
|
}).onCancel(() => {
|
||||||
|
if (cancel) cancel();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ฟังก์ชั่นเช็คและแปลงตัวเลขก่อนส่งไป convert เป็นข้อความที่ฟังก์ชั่น arabicNumberToText
|
* ฟังก์ชั่นเช็คและแปลงตัวเลขก่อนส่งไป convert เป็นข้อความที่ฟังก์ชั่น arabicNumberToText
|
||||||
* @param Number จำนวนเงินเดือน
|
* @param Number จำนวนเงินเดือน
|
||||||
|
|
@ -1043,6 +1063,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
||||||
fails,
|
fails,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
dialogRemove,
|
dialogRemove,
|
||||||
|
dialogMessageNotify,
|
||||||
arabicNumberToText,
|
arabicNumberToText,
|
||||||
calculateDurationYmd,
|
calculateDurationYmd,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue