fix: commandTypeCodeArray shortCode === OCT

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-12-03 09:54:16 +07:00
parent 626cc338f8
commit 628befff93

View file

@ -79,6 +79,15 @@ const titleCommand = computed(() => {
return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นค่าจ้าง${txt}`; return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นค่าจ้าง${txt}`;
}); });
//
const commandTypeCodeArray = computed(() => {
if (roundFilter.value?.shortCode === "OCT") {
return ["C-PM-36", "C-PM-37", "C-PM-45", "C-PM-46"];
} else {
return ["C-PM-36", "C-PM-37"];
}
});
/** /**
* function เรยกขอมลรอบการขนคาจาง * function เรยกขอมลรอบการขนคาจาง
*/ */
@ -586,14 +595,13 @@ onMounted(async () => {
/> />
</q-card> </q-card>
<!-- 'C-PM-45', 'C-PM-46' -->
<DialogCommand <DialogCommand
v-model:modal="modalCommand" v-model:modal="modalCommand"
v-model:root-id="agencyFilter" v-model:root-id="agencyFilter"
v-model:is-officer="isOfficer" v-model:is-officer="isOfficer"
v-model:is-staff="isStaff" v-model:is-staff="isStaff"
system-name="SALARY_EMP" system-name="SALARY_EMP"
:command-type-code-array="['C-PM-36', 'C-PM-37']" :command-type-code-array="commandTypeCodeArray"
:salary-period-id="salaryPeriodId" :salary-period-id="salaryPeriodId"
:title-command="titleCommand" :title-command="titleCommand"
/> />