ออกคำสั่ง => คำสั่งเลื่อน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-09 17:14:40 +07:00
parent f86250b668
commit 0bdb67b0ff
3 changed files with 11 additions and 7 deletions

View file

@ -57,7 +57,7 @@ const CommandOption = ref<DataOption1[]>([]);
//Main //Main
const typeOrder = ref<any>(); const typeOrder = ref<any>();
const nameOrder = ref<any>(""); const nameOrder = ref<string>("");
const command = ref<number | "">(); const command = ref<number | "">();
const dateYear = ref<number | null>(null); const dateYear = ref<number | null>(null);
const dateCommand = ref<Date | null>(null); const dateCommand = ref<Date | null>(null);
@ -174,6 +174,7 @@ const fecthTypeOption = async (actions: string) => {
.get(config.API.typeOrder()) .get(config.API.typeOrder())
.then((res) => { .then((res) => {
const response = res.data.result; const response = res.data.result;
const filterRes = response.filter((e: any) => const filterRes = response.filter((e: any) =>
commandCodes.value.includes(e.commandCode) commandCodes.value.includes(e.commandCode)
); );
@ -327,7 +328,8 @@ const optionsData = async (commandCode: string) => {
orderTypeCode == "C-PM-01" || orderTypeCode == "C-PM-01" ||
orderTypeCode == "C-PM-02" || orderTypeCode == "C-PM-02" ||
orderTypeCode == "C-PM-03" || orderTypeCode == "C-PM-03" ||
orderTypeCode == "C-PM-04" orderTypeCode == "C-PM-04" ||
orderTypeCode == "C-PM-39"
) { ) {
fecthExamRoundOption(orderTypeCode); fecthExamRoundOption(orderTypeCode);
} }
@ -504,7 +506,8 @@ const onSubmit = async () => {
typeOrder.value.commandCode == "C-PM-01" || typeOrder.value.commandCode == "C-PM-01" ||
typeOrder.value.commandCode == "C-PM-02" || typeOrder.value.commandCode == "C-PM-02" ||
typeOrder.value.commandCode == "C-PM-03" || typeOrder.value.commandCode == "C-PM-03" ||
typeOrder.value.commandCode == "C-PM-04" typeOrder.value.commandCode == "C-PM-04" ||
typeOrder.value.commandCode == "C-PM-39"
) { ) {
Object.assign(formdata, { Object.assign(formdata, {
examRound: examRound.value, examRound: examRound.value,
@ -1058,7 +1061,8 @@ const getClass = (val: boolean) => {
(typeOrder.commandCode === 'C-PM-01' || (typeOrder.commandCode === 'C-PM-01' ||
typeOrder.commandCode === 'C-PM-02' || typeOrder.commandCode === 'C-PM-02' ||
typeOrder.commandCode === 'C-PM-03' || typeOrder.commandCode === 'C-PM-03' ||
typeOrder.commandCode === 'C-PM-04') typeOrder.commandCode === 'C-PM-04' ||
typeOrder.commandCode === 'C-PM-39')
" "
> >
<div class="col-xs-12 col-md-12"> <div class="col-xs-12 col-md-12">

View file

@ -49,7 +49,7 @@ const statusOrder = ref<string>();
const orderName = ref<string>(""); const orderName = ref<string>("");
const orderStatusName = ref<string>(""); const orderStatusName = ref<string>("");
const orderId = ref<string>(orderId_params.toString()); const orderId = ref<string>(orderId_params?.toString());
onMounted(async () => { onMounted(async () => {
if (orderId.value) { if (orderId.value) {
await fetchAttachment(orderId.value); await fetchAttachment(orderId.value);

View file

@ -180,8 +180,8 @@ export const useOrderPlacementDataStore = defineStore("placementOrder", () => {
return "คำสั่งให้ลูกจ้างประจำได้รับค่าตอบแทนพิเศษ"; return "คำสั่งให้ลูกจ้างประจำได้รับค่าตอบแทนพิเศษ";
case "C-PM-38": case "C-PM-38":
return "แต่งตั้งข้าราชการให้ดำรงตำแหน่ง"; // คำสั่งปรับโครงสร้าง return "แต่งตั้งข้าราชการให้ดำรงตำแหน่ง"; // คำสั่งปรับโครงสร้าง
// case "C-PM-39": case "C-PM-39":
// return "คำสั่งปรับโครงสร้าง"; return "คำสั่งเลื่อน : สำหรับข้าราชการ กทม. เดิม";
default: default:
return ""; return "";
} }