feat(Retired): add convertTypeRetired RETIRE_MILITARY

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-06-11 16:27:07 +07:00
parent f6f2c18d0f
commit f1b94c0d93
2 changed files with 5 additions and 3 deletions

View file

@ -25,8 +25,7 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
{
id: "posNo",
name:
route.name === "registryNew" ||
route.name === "registryRetireOfficer"
route.name === "registryNew" || route.name === "registryRetireOfficer"
? "เลขที่ตำแหน่ง"
: "ตำแหน่งเลขที่",
},
@ -130,6 +129,8 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
return "ให้ออกจากราชการ";
case "DISCIPLINE_TEMP_SUSPEND":
return "ให้ออกจากราชการไว้ก่อน";
case "RETIRE_MILITARY":
return "ลาออกเพื่อไปรับราชการทหาร";
default:
return "";
}

View file

@ -857,7 +857,8 @@ onMounted(async () => {
])) ||
leaveType === 'DISCIPLINE_TEMP_SUSPEND' ||
leaveType === 'RETIRE_RESIGN' ||
leaveType === 'DISCIPLINE_SUSPEND'
leaveType === 'DISCIPLINE_SUSPEND' ||
leaveType === 'RETIRE_MILITARY'
"
size="md"
rounded