From d626279c6c1936a19d063ae8e85b1577808e72f6 Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Mon, 17 Jul 2023 10:38:48 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=20ui=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=AA=E0=B8=99=E0=B8=AD=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=9E=E0=B8=A3=E0=B8=B0=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=97?= =?UTF-8?q?=E0=B8=B2=E0=B8=99=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AD=E0=B8=B4?= =?UTF-8?q?=E0=B8=AA=E0=B8=A3=E0=B8=B4=E0=B8=A2=E0=B8=B2=E0=B8=A0=E0=B8=A3?= =?UTF-8?q?=E0=B8=93=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/request/main/main.ts | 8 + src/modules/07_insignia/router.ts | 24 +++ .../views/1_Proposals/addProposals.vue | 171 ++++++++++++++++++ .../views/1_Proposals/listProposals.vue | 9 +- src/views/MainLayout.vue | 21 ++- 5 files changed, 220 insertions(+), 13 deletions(-) diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 3552d4a07..fc19715ec 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -221,6 +221,14 @@ const menuList = readonly([ label: "เครื่องราชอิสริยาภรณ์", path: "insignia", role: "insignia", + children: [ + { + key: 8.1, + label: "รายการเสนอขอ" /* รายชื่อผู้สอบผ่าน */, + path: "insigniaProposals", + role: "insignia", + }, + ], }, { key: 9, diff --git a/src/modules/07_insignia/router.ts b/src/modules/07_insignia/router.ts index 20a41a5c3..fd30260db 100644 --- a/src/modules/07_insignia/router.ts +++ b/src/modules/07_insignia/router.ts @@ -3,6 +3,10 @@ */ const Main = () => import("@/modules/07_insignia/views/Main.vue"); +const insigniaProposals = () => + import("@/modules/07_insignia/views/1_Proposals/listProposals.vue"); +const roundAdd = () => + import("@/modules/07_insignia/views/1_Proposals/addProposals.vue"); export default [ { @@ -15,4 +19,24 @@ export default [ Role: "insignia", }, }, + { + path: "/insignia/round-proposals", + name: "insigniaProposals", + component: insigniaProposals, + meta: { + Auth: true, + Key: [7.1], + Role: "insignia", + }, + }, + { + path: "/insignia/round/add", + name: "roundAdd", + component: roundAdd, + meta: { + Auth: true, + Key: [7.1], + Role: "insignia", + }, + }, ]; diff --git a/src/modules/07_insignia/views/1_Proposals/addProposals.vue b/src/modules/07_insignia/views/1_Proposals/addProposals.vue index e69de29bb..1e63df651 100644 --- a/src/modules/07_insignia/views/1_Proposals/addProposals.vue +++ b/src/modules/07_insignia/views/1_Proposals/addProposals.vue @@ -0,0 +1,171 @@ + + diff --git a/src/modules/07_insignia/views/1_Proposals/listProposals.vue b/src/modules/07_insignia/views/1_Proposals/listProposals.vue index da8a7ef99..ebda6400a 100644 --- a/src/modules/07_insignia/views/1_Proposals/listProposals.vue +++ b/src/modules/07_insignia/views/1_Proposals/listProposals.vue @@ -118,9 +118,9 @@ round color="indigo" @click.stop.prevent="clickProposals(props.row.id)" - icon="mdi-clipboard-arrow-down" + icon="mdi-file-download" > - ดาวน์โหลดเอกสารประกอบ + ดาวน์โหลดเอกสารประกอบ @@ -284,10 +284,7 @@ const clickDelete = (id: string) => { }; const clickAdd = () => { - modal.value = true; -}; -const clickClose = async () => { - modal.value = false; + router.push({ name: "roundAdd" }); }; // ค้นหาในตาราง diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index d8d241366..441a9ee82 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -716,7 +716,10 @@ if (keycloak.tokenParsed != null) { expand-icon="mdi-chevron-down" expanded-icon="mdi-chevron-up" v-if=" - menuItem.key == 3 || menuItem.key == 5 || menuItem.key == 6 + menuItem.key == 3 || + menuItem.key == 5 || + menuItem.key == 6 || + menuItem.key == 8 " > @@ -751,7 +754,9 @@ if (keycloak.tokenParsed != null) { :to="{ name: `${subMenu2.path}` }" > - {{ subMenu2.label }} + {{ subMenu2.label }} + @@ -781,7 +786,9 @@ if (keycloak.tokenParsed != null) { :to="{ name: `${subMenu.path}` }" > - {{ subMenu.label }} + {{ + subMenu.label + }} @@ -930,7 +937,7 @@ if (keycloak.tokenParsed != null) { .menuSub .q-item { border-radius: 0 100px 100px 0; margin-right: 2%; - font-weight: 500 ; + font-weight: 500; } .expan2 .q-item { padding-left: 10%; @@ -938,8 +945,8 @@ if (keycloak.tokenParsed != null) { /* .menuSubAct { background: #1e2529d9; } */ -.font-400{ - font-weight: 400 ; +.font-400 { + font-weight: 400; } .expan2 .menuSubHover { padding-left: 30%; From 27b4e9dd4cd7ee1e2d006ea89e04516c1e0cb3a2 Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Mon, 17 Jul 2023 14:02:44 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B8=AD=E0=B8=B1=E0=B8=9E=E0=B9=80?= =?UTF-8?q?=E0=B8=94=E0=B8=97=20type=20//=E0=B9=80=E0=B8=A1=E0=B8=99?= =?UTF-8?q?=E0=B8=B9=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/request/main/main.ts | 24 ++ .../07_insignia/interface/request/Main.ts | 10 +- .../views/1_Proposals/addProposals.vue | 4 + .../views/1_Proposals/listProposals.vue | 5 +- src/modules/08_registryEmployee/index/Main.ts | 1 + .../08_registryEmployee/request/Main.ts | 13 + .../08_registryEmployee/response/Main.ts | 1 + .../08_registryEmployee/views/Main.vue | 402 ++++++++---------- 8 files changed, 221 insertions(+), 239 deletions(-) create mode 100644 src/modules/08_registryEmployee/index/Main.ts create mode 100644 src/modules/08_registryEmployee/request/Main.ts create mode 100644 src/modules/08_registryEmployee/response/Main.ts diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index fc19715ec..e8f8f5d66 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -228,6 +228,30 @@ const menuList = readonly([ path: "insigniaProposals", role: "insignia", }, + { + key: 8.2, + label: "จัดทำรายชื่อข้าราชการสามัญ" /* รายชื่อผู้สอบผ่าน */, + path: "insigniaNameList", + role: "insignia", + }, + { + key: 8.3, + label: "อนุมัติรายชื่อข้าราชการสามัญ" /* รายชื่อผู้สอบผ่าน */, + path: "insigniaNameApprove", + role: "insignia", + }, + { + key: 8.4, + label: "บันทึกผลการได้รับพระราช..." /* รายชื่อผู้สอบผ่าน */, + path: "insigniaRecord", + role: "insignia", + }, + { + key: 8.5, + label: "รายงาน" /* รายชื่อผู้สอบผ่าน */, + path: "insigniaReport", + role: "insignia", + }, ], }, { diff --git a/src/modules/07_insignia/interface/request/Main.ts b/src/modules/07_insignia/interface/request/Main.ts index e4ea7770c..2c598c6d4 100644 --- a/src/modules/07_insignia/interface/request/Main.ts +++ b/src/modules/07_insignia/interface/request/Main.ts @@ -1 +1,9 @@ -export type {}; +interface FormProprsalsRound { + id: number; + name: string; + year: number; + startDate: number; + endDate: number; + status: string; +} +export type { FormProprsalsRound }; diff --git a/src/modules/07_insignia/views/1_Proposals/addProposals.vue b/src/modules/07_insignia/views/1_Proposals/addProposals.vue index 1e63df651..63ee7bb6a 100644 --- a/src/modules/07_insignia/views/1_Proposals/addProposals.vue +++ b/src/modules/07_insignia/views/1_Proposals/addProposals.vue @@ -167,5 +167,9 @@ const $q = useQuasar(); const dateStart = ref(new Date()); const dateEnd = ref(new Date()); +const roundInsig = ref(""); +const year = ref(""); +const datelast = ref(""); + const routeName = router.currentRoute.value.name; diff --git a/src/modules/07_insignia/views/1_Proposals/listProposals.vue b/src/modules/07_insignia/views/1_Proposals/listProposals.vue index ebda6400a..48d761c5d 100644 --- a/src/modules/07_insignia/views/1_Proposals/listProposals.vue +++ b/src/modules/07_insignia/views/1_Proposals/listProposals.vue @@ -116,7 +116,7 @@ size="12px" flat round - color="indigo" + color="light-blue-8" @click.stop.prevent="clickProposals(props.row.id)" icon="mdi-file-download" > @@ -161,6 +161,7 @@ import { ref, useAttrs } from "vue"; import type { QTableProps } from "quasar"; import router from "@/router"; import { useQuasar } from "quasar"; +import type { FormProprsalsRound } from " @/modules/07_insignia/interface/request/Main.ts"; const $q = useQuasar(); //ใช้ noti quasar const modal = ref(false); @@ -229,7 +230,7 @@ const columns = ref([ ]); // ข้อมูลตาราง (จำลอง) -const rows = ref([ +const rows = ref([ { round: "รอบการเสนอขอพระราชทานเครื่องราชฯ", year: "2566", diff --git a/src/modules/08_registryEmployee/index/Main.ts b/src/modules/08_registryEmployee/index/Main.ts new file mode 100644 index 000000000..e4ea7770c --- /dev/null +++ b/src/modules/08_registryEmployee/index/Main.ts @@ -0,0 +1 @@ +export type {}; diff --git a/src/modules/08_registryEmployee/request/Main.ts b/src/modules/08_registryEmployee/request/Main.ts new file mode 100644 index 000000000..eecf581d1 --- /dev/null +++ b/src/modules/08_registryEmployee/request/Main.ts @@ -0,0 +1,13 @@ +interface FormRegistryEmployee { + no: string; + name: string; + positionNum: string; + position: string; + path: string; + type: string; + level: string; + affiliation: string; + yearly: number; + pay: string; +} +export type { FormRegistryEmployee }; diff --git a/src/modules/08_registryEmployee/response/Main.ts b/src/modules/08_registryEmployee/response/Main.ts new file mode 100644 index 000000000..e4ea7770c --- /dev/null +++ b/src/modules/08_registryEmployee/response/Main.ts @@ -0,0 +1 @@ +export type {}; diff --git a/src/modules/08_registryEmployee/views/Main.vue b/src/modules/08_registryEmployee/views/Main.vue index 24c94dede..485ed54d1 100644 --- a/src/modules/08_registryEmployee/views/Main.vue +++ b/src/modules/08_registryEmployee/views/Main.vue @@ -2,157 +2,173 @@
รายชื่อลูกจ้างชั่วคราว
- -
- - เพิ่มข้อมูล - - -
- - - - - - -
-
-
- +
+ + เพิ่มข้อมูล + + +
+ + -