ผังบัญชีค่าจ้างลูกจ้างประจำ => ปรับ field date

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-28 15:14:34 +07:00
parent a2a4d2892d
commit e9ee7e7f40
5 changed files with 114 additions and 6 deletions

View file

@ -2,6 +2,8 @@ const supportMain = () => import("@/modules/00_support/views/MainPage.vue");
const supportCategory = () =>
import("@/modules/00_support/views/ManageCategory.vue");
const testView = () => import("@/views/TestManagement.vue");
export default [
{
path: "/support",
@ -23,4 +25,15 @@ export default [
Role: "support",
},
},
{
path: "/test",
name: "testView",
component: testView,
meta: {
Auth: true,
Key: [1.1],
Role: "support",
},
},
];

View file

@ -271,7 +271,6 @@ function onClickDownloadKp7(type: string) {
})
.then((res) => {
const data = res.data;
console.log(data);
const blob = new Blob([data], { type: "application/pdf" });
const url = URL.createObjectURL(blob);
const link = document.createElement("a");

View file

@ -127,6 +127,8 @@ watch(
() => {
if (modal.value && props.isStatusEdit) {
fetchSalaryDetail(props.data.id);
} else {
isReadonly.value = false;
}
}
);

View file

@ -66,11 +66,11 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px",
},
{
name: "date",
name: "startDate",
align: "left",
label: "วันที่มีผลบังคับใช้",
sortable: true,
field: "date",
field: "startDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -85,7 +85,12 @@ const columns = ref<QTableProps["columns"]>([
},
]);
const rows = ref<EmployeeSalary[]>([]);
const visibleColumns = ref<string[]>(["name", "group", "date", "isActive"]);
const visibleColumns = ref<string[]>([
"name",
"group",
"startDate",
"isActive",
]);
/** List Mune*/
const itemMenu = ref<ItemsMenu[]>([
@ -229,8 +234,8 @@ function onClickDelete(id: string) {
/** function เปิด dialog เพิ่มผังบัญชีค่าจ้างลูกจ้างประจำ*/
function onClickAdd() {
modalDialogEmployeeChart.value = true;
isStatusEdit.value = false;
modalDialogEmployeeChart.value = true;
}
/** functionn fetch ข้อมูลรายการหน้าแรก*/
@ -324,7 +329,7 @@ onMounted(() => {
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name === 'date'">
<div v-if="col.name === 'startDate'">
{{ col.value ? date2Thai(col.value) : "-" }}
</div>
<div v-else-if="col.name === 'group'">