# 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) => {
|
||||
return mainData.value
|
||||
.filter(
|
||||
(e: DataCalendar) =>
|
||||
e.keycloakId === item &&
|
||||
e.status != "REJECT" &&
|
||||
e.status != "DELETE"
|
||||
(e: DataCalendar) => e.keycloakId === item && e.status === "APPROVE"
|
||||
)
|
||||
.map((e) => ({
|
||||
id: e.id,
|
||||
|
|
@ -246,10 +243,7 @@ watch(
|
|||
const eventData = filterVal.value.map((item: any) => {
|
||||
return mainData.value
|
||||
.filter(
|
||||
(e: DataCalendar) =>
|
||||
e.keycloakId === item &&
|
||||
e.status != "REJECT" &&
|
||||
e.status != "DELETE"
|
||||
(e: DataCalendar) => e.keycloakId === item && e.status === "APPROVE"
|
||||
)
|
||||
.map((e) => ({
|
||||
id: e.id,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ interface FormSpec {
|
|||
isHaveSpecificQft: boolean;
|
||||
isHaveProLicense: boolean;
|
||||
isHaveMinPeriodOrHoldPos: boolean;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
interface FormCommand {
|
||||
|
|
|
|||
|
|
@ -228,12 +228,12 @@ function onSubmit(data: any) {
|
|||
:readonly="isReadOnly"
|
||||
ref="titleRef"
|
||||
:rules="[
|
||||
(val) => !!val || 'กรุณากรอกเรื่องอุทธรณ์/ร้องทุกข์',
|
||||
(val) => !!val || 'กรุณากรอกอุทธรณ์/ร้องทุกข์',
|
||||
]"
|
||||
v-model="formData.title"
|
||||
dense
|
||||
outlined
|
||||
label="เรื่องอุทธรณ์/ร้องทุกข์"
|
||||
label="อุทธรณ์/ร้องทุกข์"
|
||||
hide-bottom-space
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -246,12 +246,12 @@ function onSubmit(data: any) {
|
|||
:readonly="isReadOnly"
|
||||
ref="descriptionRef"
|
||||
:rules="[
|
||||
(val) => !!val || 'กรุณากรอกรายละเอียดเรื่องร้องทุกข์',
|
||||
(val) => !!val || 'กรุณากรอกรายละเอียดอุทธรณ์/ร้องทุกข์',
|
||||
]"
|
||||
v-model="formData.description"
|
||||
dense
|
||||
outlined
|
||||
label="รายละเอียดเรื่องร้องทุกข์"
|
||||
label="รายละเอียดอุทธรณ์/ร้องทุกข์"
|
||||
type="textarea"
|
||||
rows="5"
|
||||
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
|
||||
* @param Number จำนวนเงินเดือน
|
||||
|
|
@ -1043,6 +1063,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
fails,
|
||||
dialogConfirm,
|
||||
dialogRemove,
|
||||
dialogMessageNotify,
|
||||
arabicNumberToText,
|
||||
calculateDurationYmd,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue