เพิ่มออกคำสั่ง **รอกลับไปเเก้ paging
This commit is contained in:
parent
cc68e51fad
commit
34e72b5651
3 changed files with 554 additions and 66 deletions
|
|
@ -3,7 +3,10 @@ import { ref } from "vue";
|
|||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import type { FormPlacementMainData } from "@/modules/05_placement/interface/request/Main";
|
||||
import type {
|
||||
FormPlacementMainData,
|
||||
OpfillterType,
|
||||
} from "@/modules/05_placement/interface/request/Main";
|
||||
import type { FormOrderPlacementMainData } from "@/modules/05_placement/interface/request/Main";
|
||||
|
||||
export const useProfileDataStore = defineStore("profilePlacenent", () => {
|
||||
|
|
@ -305,6 +308,49 @@ export const useOrderPlacementDataStore = defineStore("placementOrder", () => {
|
|||
});
|
||||
|
||||
export const useTransferDataStore = defineStore("transferDataStore", () => {
|
||||
const optionStatusProbation = ref<OpfillterType[]>([
|
||||
{
|
||||
id: 0,
|
||||
value: "ทั้งหมด",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
value: "อยู่ระหว่างการทดลองปฏิบัติหน้าที่ราชการ",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "พ้นการทดลองปฏิบัติหน้าที่ราชการ",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
value: "ยุติการทดลองปฏิบัติหน้าที่ราชการเนื่องจากเปลี่ยนตำแหน่ง",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
value: "ยุติการทดลองปฏิบัติหน้าที่ราชการเนื่องจากลาออก",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
value: "ยุติการทดลองปฏิบัติหน้าที่ราชการเนื่องจากถึงแก่กรรม",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
value: "ขยายระยะเวลาทดลองปฏิบัติหน้าที่ราชการ",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
value: "ส่งรายชื่อไปออกคำสั่ง",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
value: "ออกคำสั่งเสร็จแล้ว",
|
||||
},
|
||||
]);
|
||||
|
||||
const statusText = (val: string) => {
|
||||
switch (val) {
|
||||
case "WAITTING":
|
||||
|
|
@ -324,7 +370,7 @@ export const useTransferDataStore = defineStore("transferDataStore", () => {
|
|||
return "-";
|
||||
}
|
||||
};
|
||||
const statusProbationMain = (val: number) => {
|
||||
function statusProbationMain(val: number) {
|
||||
switch (val) {
|
||||
case 1:
|
||||
return "อยู่ระหว่างการทดลองปฏิบัติหน้าที่ราชการ";
|
||||
|
|
@ -347,10 +393,11 @@ export const useTransferDataStore = defineStore("transferDataStore", () => {
|
|||
default:
|
||||
return "-";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
statusText,
|
||||
statusProbationMain,
|
||||
optionStatusProbation,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue