diff --git a/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue b/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue index eb7675cf3..7dc4576a0 100644 --- a/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue +++ b/src/modules/13_salary/components/05_salaryListsEmployee/TabMain.vue @@ -338,7 +338,12 @@ async function onClickDownload(data: DataOption, type: string = "xlsx") { data.id, props.rootId, props.periodId - ) + ) + + `${ + data.id === "emp2-04" || data.id === "emp-04" + ? `/type=${data.typeName}` + : "" + }` ) .then(async (res) => { const dataList = await res.data.result; diff --git a/src/modules/13_salary/interface/index/Main.ts b/src/modules/13_salary/interface/index/Main.ts index 894a3ef64..85b357746 100644 --- a/src/modules/13_salary/interface/index/Main.ts +++ b/src/modules/13_salary/interface/index/Main.ts @@ -2,6 +2,7 @@ interface DataOption { id: string; name: string; type?: string; + typeName?: string; } interface DataOptionShort { diff --git a/src/modules/13_salary/store/SalaryEmployeeListsStore.ts b/src/modules/13_salary/store/SalaryEmployeeListsStore.ts index 43029235c..81215e9cd 100644 --- a/src/modules/13_salary/store/SalaryEmployeeListsStore.ts +++ b/src/modules/13_salary/store/SalaryEmployeeListsStore.ts @@ -77,8 +77,15 @@ export const useSalaryEmployeeListSDataStore = defineStore( }, { id: "emp-04", - name: "แบบ ลจ. กทม. 1 - รายชื่อลูกจ้างผู้สมควรได้เลื่อนขั้นค่าจ้าง", + name: "แบบ ลจ. กทม. 1 - รายชื่อลูกจ้างผู้สมควรได้เลื่อนขั้นค่าจ้าง (0.5 ขั้น)", + typeName: "HAFT", }, + { + id: "emp-04", + name: "แบบ ลจ. กทม. 1 - รายชื่อลูกจ้างผู้สมควรได้เลื่อนขั้นค่าจ้าง (1 ขั้น) ", + typeName: "FULL", + }, + { id: "emp-05", name: "แบบ ลจ. กทม. 1 - 1 - รายชื่อลูกจ้างผู้สมควรได้รับค่าตอบแทนพิเศษ", @@ -147,7 +154,18 @@ export const useSalaryEmployeeListSDataStore = defineStore( }, { id: "emp2-04", - name: "บัญชีรายชื่อลูกจ้างประจำกรุงเทพมหานครผู้สมควรได้เลื่อนขั้นค่าจ้าง (แบบ ลจ. กทม. 1)", + name: "บัญชีรายชื่อลูกจ้างประจำกรุงเทพมหานครผู้สมควรได้เลื่อนขั้นค่าจ้าง (แบบ ลจ. กทม. 1) (0.5 ขั้น)", + typeName: "HAFT", + }, + { + id: "emp2-04", + name: "บัญชีรายชื่อลูกจ้างประจำกรุงเทพมหานครผู้สมควรได้เลื่อนขั้นค่าจ้าง (แบบ ลจ. กทม. 1) (1 ขั้น)", + typeName: "FULL", + }, + { + id: "emp2-04", + name: "บัญชีรายชื่อลูกจ้างประจำกรุงเทพมหานครผู้สมควรได้เลื่อนขั้นค่าจ้าง (แบบ ลจ. กทม. 1) (1.5 ขั้น)", + typeName: "FULLHAFT", }, { id: "emp2-05", diff --git a/src/modules/13_salary/views/05_salaryListsEmployee.vue b/src/modules/13_salary/views/05_salaryListsEmployee.vue index e4687c1a5..f05ea0eb8 100644 --- a/src/modules/13_salary/views/05_salaryListsEmployee.vue +++ b/src/modules/13_salary/views/05_salaryListsEmployee.vue @@ -4,7 +4,11 @@ import { useQuasar } from "quasar"; import { useSalaryEmployeeListSDataStore } from "@/modules/13_salary/store/SalaryEmployeeListsStore"; import { useCounterMixin } from "@/stores/mixin"; -import { checkPermission, checkPermissionList,checkPermissionCreate } from "@/utils/permissions"; +import { + checkPermission, + checkPermissionList, + checkPermissionCreate, +} from "@/utils/permissions"; import config from "@/app.config"; import http from "@/plugins/http"; @@ -408,7 +412,8 @@ onMounted(async () => { (((isOfficer || isStaff) && snapFilter === 'SNAP2') || roundFilter?.shortCode === 'SPECIAL') && periodLatest?.group1IsClose && - checkPermissionList(['COMMAND']) && checkPermissionCreate('COMMAND') + checkPermissionList(['COMMAND']) && + checkPermissionCreate('COMMAND') " > e === "C-PM-36" || e === "C-PM-37" + ) || undefined, }; const pathAPI =