แก้ bug เครื่องราช, เพิ่ม validate
This commit is contained in:
parent
fe672a5aff
commit
627df1a30a
16 changed files with 484 additions and 1167 deletions
|
|
@ -6,7 +6,7 @@ import config from "@/app.config";
|
|||
import { useResultDataStore } from "@/modules/07_insignia/storeResult";
|
||||
|
||||
import DialogForm from "@/modules/07_insignia/components/3_result/DialogForm.vue";
|
||||
import fileUploadview from "../components/3_result/fileUpload.vue";
|
||||
import fileUploadview from "../components/3_result/FileUpload.vue";
|
||||
|
||||
import type { OptionData } from "@/modules/07_insignia/interface/index/Main";
|
||||
import type { QTableProps, QInput } from "quasar";
|
||||
|
|
@ -34,9 +34,11 @@ const profileType = ref<string>("");
|
|||
const fileResult = ref<any>(null);
|
||||
const fileinvoice = ref<any>(null);
|
||||
const loadView = ref<boolean>(false);
|
||||
|
||||
onMounted(async () => {
|
||||
await fecthRound();
|
||||
});
|
||||
|
||||
// รอบการเสนอขอพระราชทานเครื่องราช
|
||||
const fecthRound = async () => {
|
||||
showLoader();
|
||||
|
|
@ -107,15 +109,14 @@ const visibleColumns = ref<String[]>([
|
|||
"address",
|
||||
"action",
|
||||
]);
|
||||
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "no",
|
||||
align: "left",
|
||||
label: "ลำดับ",
|
||||
field: "no",
|
||||
sortable: true,
|
||||
sort: (a: string, b: string) =>
|
||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
name: "status",
|
||||
|
|
@ -270,10 +271,12 @@ watch(modal, () => {
|
|||
fecthlistInsignia();
|
||||
}
|
||||
});
|
||||
|
||||
// เลือกประเภทเครื่องราช
|
||||
const selectorInsignia = () => {
|
||||
fecthlistInsignia();
|
||||
};
|
||||
|
||||
// เลือกประเภทเครื่องราช
|
||||
const selectorRound = (round: string) => {
|
||||
if (round) {
|
||||
|
|
@ -281,6 +284,7 @@ const selectorRound = (round: string) => {
|
|||
}
|
||||
fecthlistInsignia();
|
||||
};
|
||||
|
||||
// ราชชื่อบันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ
|
||||
const fecthlistInsignia = async () => {
|
||||
showLoader();
|
||||
|
|
@ -302,6 +306,7 @@ const fecthlistInsignia = async () => {
|
|||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
const uploadFile = async (event: any, action: string) => {
|
||||
if (selectRound.value !== undefined) {
|
||||
let id = selectRound.value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue