ปรับ เครื่องราชฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-06 12:02:13 +07:00
parent 388893395b
commit 981bab8061
4 changed files with 416 additions and 139 deletions

View file

@ -77,7 +77,7 @@ const clickOpenpopup = () => {
OrderTypeOption.value = props.OrderTypeOption.filter(
(e: any) => e.name !== "ทั้งหมด"
);
reportType.value = OrderTypeOption.value[0].id;
reportType.value = OrderTypeOption.value[0].name;
let currentDate = new Date();
let currentYear = currentDate.getFullYear();
reportYear.value = currentYear;
@ -89,7 +89,7 @@ const clickSearch = async () => {
await myForm.value!.validate().then((result: boolean) => {
if (result) {
let body = {
commandTypeId: reportType.value,
commandType: reportType.value,
year: reportYear.value,
posno: reportNo.value,
};
@ -110,7 +110,7 @@ const clickSearch = async () => {
position: e.position,
}));
} else {
notifyError($q, "ไม่มีข้อมูลที่ต้องการค้นหา");
// notifyError($q, "");
rows.value = [];
}
})
@ -188,7 +188,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
map-options
:options="OrderTypeOption"
option-label="name"
option-value="id"
option-value="name"
:label="`${' ประเภท'}`"
>
<template v-slot:no-option>