no message

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-21 11:00:05 +07:00
parent d4a59110c0
commit 9ba0bf2468
5 changed files with 88 additions and 90 deletions

View file

@ -91,7 +91,7 @@ const fecthInsignia = async () => {
);
});
};
// Tab
// Tab
const fecthInsigniaType = async () => {
await http(config.API.insigniaType)
.then(async (res) => {
@ -138,6 +138,8 @@ const columns = ref<QTableProps["columns"]>([
label: "ลำดับ",
field: "no",
sortable: false,
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "citizenId",
@ -145,8 +147,8 @@ const columns = ref<QTableProps["columns"]>([
label: "เลขประจำตัวประชาชน",
field: "citizenId",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "name",
@ -154,8 +156,8 @@ const columns = ref<QTableProps["columns"]>([
label: "ชื่อ - นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "employeeType",
@ -163,8 +165,8 @@ const columns = ref<QTableProps["columns"]>([
label: "สถานภาพ",
field: "employeeType",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "type",
@ -172,8 +174,8 @@ const columns = ref<QTableProps["columns"]>([
label: "ประเภทเครื่องราชฯ",
field: "type",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "dateReceive",
@ -181,8 +183,8 @@ const columns = ref<QTableProps["columns"]>([
label: "วันที่ได้รับพระราชทาน",
field: "dateReceive",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
@ -191,8 +193,8 @@ const columns = ref<QTableProps["columns"]>([
label: "วันที่ในราชกิจนุเบกษา",
field: "date",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "volumeNo",
@ -200,8 +202,8 @@ const columns = ref<QTableProps["columns"]>([
label: "เล่มที่ในราชกิจนุเบกษา",
field: "volumeNo",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "section",
@ -209,8 +211,8 @@ const columns = ref<QTableProps["columns"]>([
label: "ตอนที่ในราชกิจนุเบกษา",
field: "section",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "page",
@ -218,8 +220,8 @@ const columns = ref<QTableProps["columns"]>([
label: "หน้าในราชกิจนุเบกษา",
field: "page",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "number",
@ -227,8 +229,8 @@ const columns = ref<QTableProps["columns"]>([
label: "ลำดับที่ในราชกิจจานุเบกษา",
field: "number",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "vatnumber",
@ -236,8 +238,8 @@ const columns = ref<QTableProps["columns"]>([
label: "หมายเลขใบกำกับ",
field: "vatnumber",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "datepay",
@ -245,8 +247,8 @@ const columns = ref<QTableProps["columns"]>([
label: "วันที่จ่ายใบกำกับฯ",
field: "datepay",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "typepay",
@ -254,8 +256,8 @@ const columns = ref<QTableProps["columns"]>([
label: "รูปแบบการจ่าย",
field: "typepay",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "address",
@ -263,8 +265,8 @@ const columns = ref<QTableProps["columns"]>([
label: "ที่อยู่ที่จ่าย",
field: "address",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "borrowOrganization",
@ -272,8 +274,8 @@ const columns = ref<QTableProps["columns"]>([
label: "หน่วยงานที่ยืม",
field: "borrowOrganization",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "borrowDate",
@ -281,8 +283,8 @@ const columns = ref<QTableProps["columns"]>([
label: "วันที่ยืม",
field: "borrowDate",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "returnOrganization",
@ -290,8 +292,8 @@ const columns = ref<QTableProps["columns"]>([
label: "หน่วยงานที่คืน",
field: "returnOrganization",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "returnDate",
@ -299,8 +301,8 @@ const columns = ref<QTableProps["columns"]>([
label: "วันที่คืน",
field: "returnDate",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "returnReason",
@ -308,8 +310,8 @@ const columns = ref<QTableProps["columns"]>([
label: "เหตุผลการคืน",
field: "returnReason",
sortable: true,
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "action",
@ -328,6 +330,7 @@ watch(tab, async () => {
});
const yearRound = ref<number>();
//
const selectorRound = async (round: number) => {
roundYear.value = round;
await fecthlistInsignia();
@ -549,9 +552,10 @@ const paginationLabel = (start: number, end: number, total: number) => {
:columns="columns"
:visible-columns="visibleColumns"
:filter="filter"
row-key="name"
row-key="id"
:pagination-label="paginationLabel"
v-model:pagination="pagination"
:paging="true"
>
<template v-slot:body-cell="props">
<q-td :props="props">