UI รายการคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล (Individual Development Plan)

This commit is contained in:
STW_TTTY\stwtt 2024-09-26 17:30:58 +07:00
parent 72d597b465
commit d7a6c8d9bc
7 changed files with 1026 additions and 1 deletions

View file

@ -0,0 +1,29 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import type { DataOption } from "@/modules/10_registry/interface/index/Main";
export const useIndividualDevelopmentPlan = defineStore(
"individualDevelopmentPlan",
() => {
const optionStatus = ref<DataOption[]>([
{ id: "", name: "ทั้งหมด" },
{ id: "PENDING", name: "รอดำเนินการ" },
{ id: "COMPLETE", name: "ดำเนินการแก้ไขแล้ว" },
{ id: "REJECT", name: "ไม่อนุมัตการแก้ไข" },
]);
function convertStatus(val: string) {
switch (val) {
case "PENDING":
return "รอดำเนินการ";
case "COMPLETE":
return "ดำเนินการแก้ไขแล้ว";
case "REJECT":
return "ไม่อนุมัตการแก้ไข";
default:
return "-";
}
}
return { convertStatus, optionStatus };
}
);