แก้ bug เครื่องราช, เพิ่ม validate

This commit is contained in:
Warunee Tamkoo 2023-09-20 15:33:39 +07:00
parent fe672a5aff
commit 627df1a30a
16 changed files with 484 additions and 1167 deletions

View file

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