# Conflicts:

#	src/modules/06_evaluate/components/EvaluateStepMain.vue
This commit is contained in:
Tanyalak 2024-01-17 10:42:01 +07:00
commit 6ccdc99892
4 changed files with 28 additions and 12 deletions

View file

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

View file

@ -32,6 +32,7 @@ interface FormSpec {
isHaveSpecificQft: boolean;
isHaveProLicense: boolean;
isHaveMinPeriodOrHoldPos: boolean;
[key: string]: any;
}
interface FormCommand {

View file

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

View file

@ -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,
};