fix Salary

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-05 10:48:21 +07:00
parent 783c3c6e50
commit b483007300
5 changed files with 38 additions and 5 deletions

View file

@ -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;

View file

@ -2,6 +2,7 @@ interface DataOption {
id: string;
name: string;
type?: string;
typeName?: string;
}
interface DataOptionShort {

View file

@ -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",

View file

@ -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')
"
>
<q-btn

View file

@ -240,6 +240,10 @@ function getPerson() {
const body = {
rootId: rootId.value ? rootId.value : "",
type: props.systemName == "SALARY_EMP" ? "" : group.value,
isRetired:
props.commandTypeCodeArray?.some(
(e) => e === "C-PM-36" || e === "C-PM-37"
) || undefined,
};
const pathAPI =