fix:command-type-code-array

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-12-03 09:33:58 +07:00
parent 6ce1d01ee4
commit 626cc338f8
2 changed files with 13 additions and 2 deletions

View file

@ -80,6 +80,15 @@ const titleCommand = computed(() => {
return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นเงินเดือน ${txt}`;
});
//
const commandTypeCodeArray = computed(() => {
if (roundFilter.value?.shortCode === "OCT") {
return ["C-PM-33", "C-PM-34", "C-PM-35"];
} else {
return ["C-PM-33", "C-PM-34"];
}
});
/** function เรียกข้อมูลรอบการขึ้นเงินเดือน*/
async function getRound() {
showLoader();
@ -644,13 +653,14 @@ onMounted(async () => {
/>
</q-card>
<!-- '' -->
<DialogCommand
v-model:modal="modalCommand"
v-model:root-id="agencyFilter"
v-model:is-officer="isOfficer"
v-model:is-staff="isStaff"
system-name="SALARY"
:command-type-code-array="['C-PM-33', 'C-PM-34', 'C-PM-35']"
:command-type-code-array="commandTypeCodeArray"
:salary-period-id="salaryPeriodId"
:title-command="titleCommand"
:is-deputy="isDeputy"

View file

@ -586,13 +586,14 @@ onMounted(async () => {
/>
</q-card>
<!-- 'C-PM-45', 'C-PM-46' -->
<DialogCommand
v-model:modal="modalCommand"
v-model:root-id="agencyFilter"
v-model:is-officer="isOfficer"
v-model:is-staff="isStaff"
system-name="SALARY_EMP"
:command-type-code-array="['C-PM-36', 'C-PM-37', 'C-PM-45', 'C-PM-46']"
:command-type-code-array="['C-PM-36', 'C-PM-37']"
:salary-period-id="salaryPeriodId"
:title-command="titleCommand"
/>