ปรับข้อความรอบประเมิน

This commit is contained in:
Warunee Tamkoo 2024-07-12 13:41:54 +07:00
parent f82e3727e4
commit eb9e512b5d
4 changed files with 33 additions and 32 deletions

View file

@ -75,14 +75,14 @@ const formDetail = reactive<any>({
strategyId: "", strategyId: "",
strategyName: "", strategyName: "",
documentInfoEvidence: "", documentInfoEvidence: "",
startDate:null, startDate: null,
endDate:null endDate: null,
}); });
/** Option รอบการประเมิน*/ /** Option รอบการประเมิน*/
const roundOp = ref<DataOption[]>([ const roundOp = ref<DataOption[]>([
{ id: "APR", name: "รอบเมษายน" }, { id: "APR", name: "รอบที่ 1 เมษายน" },
{ id: "OCT", name: "รอบตุลาคม" }, { id: "OCT", name: "รอบที่ 2 ตุลาคม" },
]); ]);
function fetchListPlan() { function fetchListPlan() {
@ -125,8 +125,8 @@ function fetchListPlanByid(id: string) {
formDetail.achievement5 = data.achievement5; formDetail.achievement5 = data.achievement5;
formDetail.documentInfoEvidence = data.documentInfoEvidence; formDetail.documentInfoEvidence = data.documentInfoEvidence;
formDetail.startDate = data.startDate formDetail.startDate = data.startDate;
formDetail.endDate = data.endDate formDetail.endDate = data.endDate;
listCheckID.value = data.kpiPlanId; listCheckID.value = data.kpiPlanId;
}) })
@ -178,8 +178,8 @@ function fetchRoleByid(id: string) {
formDetail.achievement4 = data.achievement4; formDetail.achievement4 = data.achievement4;
formDetail.achievement5 = data.achievement5; formDetail.achievement5 = data.achievement5;
formDetail.documentInfoEvidence = data.documentInfoEvidence; formDetail.documentInfoEvidence = data.documentInfoEvidence;
formDetail.startDate = data.startDate formDetail.startDate = data.startDate;
formDetail.endDate = data.endDate formDetail.endDate = data.endDate;
listCheckID.value = data.kpiRoleId; listCheckID.value = data.kpiRoleId;
// clickList(data.kpiRoleId, true); // clickList(data.kpiRoleId, true);
@ -240,8 +240,8 @@ function fetchspecialByid(id: string) {
formDetail.formula = data.formula; formDetail.formula = data.formula;
formDetail.meaning = data.meaning; formDetail.meaning = data.meaning;
formDetail.documentInfoEvidence = data.documentInfoEvidence; formDetail.documentInfoEvidence = data.documentInfoEvidence;
formDetail.startDate = data.startDate formDetail.startDate = data.startDate;
formDetail.endDate = data.endDate formDetail.endDate = data.endDate;
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
@ -326,8 +326,8 @@ function closeDialog() {
formDetail.strategy = ""; formDetail.strategy = "";
formDetail.strategyId = ""; formDetail.strategyId = "";
formDetail.documentInfoEvidence = ""; formDetail.documentInfoEvidence = "";
formDetail.startDate = null formDetail.startDate = null;
formDetail.endDate = null formDetail.endDate = null;
formFilter.isAll = false; formFilter.isAll = false;
formFilter.keyword = ""; formFilter.keyword = "";
@ -574,7 +574,7 @@ const title = computed(() => {
@click="clickList(item.id)" @click="clickList(item.id)"
> >
<q-item-section class="q-pa-none"> <q-item-section class="q-pa-none">
<div class="row items-center full-width "> <div class="row items-center full-width">
<div class="col-5"> <div class="col-5">
{{ item.including }} {{ item.including }}
</div> </div>
@ -875,7 +875,9 @@ const title = computed(() => {
outlined outlined
class="inputgreen" class="inputgreen"
:model-value=" :model-value="
formDetail.startDate ? date2Thai(formDetail.startDate) : null formDetail.startDate
? date2Thai(formDetail.startDate)
: null
" "
:label="`${'ช่วงเวลาเริ่มต้น'}`" :label="`${'ช่วงเวลาเริ่มต้น'}`"
hide-bottom-space hide-bottom-space
@ -919,7 +921,9 @@ const title = computed(() => {
outlined outlined
class="inputgreen" class="inputgreen"
:model-value=" :model-value="
formDetail.endDate ? date2Thai(formDetail.endDate) : null formDetail.endDate
? date2Thai(formDetail.endDate)
: null
" "
:label="`${'ช่วงเวลาสิ้นสุด'}`" :label="`${'ช่วงเวลาสิ้นสุด'}`"
hide-bottom-space hide-bottom-space

View file

@ -177,9 +177,9 @@ function fetchRoundOption() {
id: e.id, id: e.id,
name: name:
e.durationKPI === "OCT" e.durationKPI === "OCT"
? "รอบตุลาคม" ? "รอบที่ 2 ตุลาคม"
: e.durationKPI === "APR" : e.durationKPI === "APR"
? "รอบเมษายน" ? "รอบที่ 1 เมษายน"
: "", : "",
isClosed: !e.isActive, isClosed: !e.isActive,
})); }));
@ -271,10 +271,10 @@ function updateSelect() {
search.value = ""; search.value = "";
} }
function getOrgOp(check: boolean,id:string) { function getOrgOp(check: boolean, id: string) {
if (check == false) { if (check == false) {
http http
.get(config.API.Kpiorg+`/${id}`) .get(config.API.Kpiorg + `/${id}`)
.then((res) => { .then((res) => {
const data = res.data.result; const data = res.data.result;
evaluatorIdMainOp.value = data.caregiver.map((i: any) => ({ evaluatorIdMainOp.value = data.caregiver.map((i: any) => ({
@ -461,7 +461,7 @@ watch(
color="primary" color="primary"
dense dense
v-model="props.selected" v-model="props.selected"
@click="getOrgOp(props.selected,props.row.id)" @click="getOrgOp(props.selected, props.row.id)"
/> />
</q-td> </q-td>
<q-td <q-td

View file

@ -11,7 +11,7 @@ import type { QTableProps } from "quasar";
import { useCounterMixin } from "@/stores/mixin"; import { useCounterMixin } from "@/stores/mixin";
import { useKpiDataStore } from "@/modules/14_KPI/store"; import { useKpiDataStore } from "@/modules/14_KPI/store";
import DialogEvalute from '@/modules/14_KPI/components/Tab/Dialog/DialogEvalute.vue' import DialogEvalute from "@/modules/14_KPI/components/Tab/Dialog/DialogEvalute.vue";
const $q = useQuasar(); const $q = useQuasar();
const router = useRouter(); const router = useRouter();
const store = useKpiDataStore(); const store = useKpiDataStore();
@ -25,7 +25,7 @@ const rows = ref<any[]>([]);
const year = ref<number | null>(new Date().getFullYear()); const year = ref<number | null>(new Date().getFullYear());
const modalDialog = ref<boolean>(false) const modalDialog = ref<boolean>(false);
const round = ref<string>(""); const round = ref<string>("");
const roundOp = ref<DataOption[]>([]); const roundOp = ref<DataOption[]>([]);
@ -106,9 +106,9 @@ function fetchRoundOption() {
id: e.id, id: e.id,
name: name:
e.durationKPI === "OCT" e.durationKPI === "OCT"
? "รอบตุลาคม" ? "รอบที่ 2 ตุลาคม"
: e.durationKPI === "APR" : e.durationKPI === "APR"
? "รอบเมษายน" ? "รอบที่ 1 เมษายน"
: "", : "",
})); }));
@ -195,8 +195,8 @@ watch(
} }
); );
function onDialog(){ function onDialog() {
modalDialog.value = true modalDialog.value = true;
} }
onMounted(async () => { onMounted(async () => {
fetchRoundOption(); fetchRoundOption();
@ -374,12 +374,9 @@ onMounted(async () => {
</div> </div>
</div> </div>
<DialogEvalute v-model:modal="modalDialog" />
<DialogEvalute
v-model:modal="modalDialog"/>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.icon-color { .icon-color {
color: #4154b3; color: #4154b3;

View file

@ -105,9 +105,9 @@ function fetchRoundOption() {
id: e.id, id: e.id,
name: name:
e.durationKPI === "OCT" e.durationKPI === "OCT"
? "รอบตุลาคม" ? "รอบที่ 2 ตุลาคม"
: e.durationKPI === "APR" : e.durationKPI === "APR"
? "รอบเมษายน" ? "รอบmuj 1 เมษายน"
: "", : "",
})); }));
roundOp.value = list; roundOp.value = list;