From 884fab15604e9ec02ab0defdcc0fc81f51bd37ff Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 10 Sep 2024 18:03:01 +0700 Subject: [PATCH] =?UTF-8?q?UI=20=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Main/DialogCopyCommand.vue | 105 ++++++ .../18_command/components/Main/TableMain.vue | 245 ++++++++++++++ .../18_command/components/Step/1_Detail.vue | 205 +++++++++++- .../components/Step/2_ListPersons.vue | 308 +++++++++++++++++- .../components/Step/3_ReceivedCopy.vue | 243 +++++++++++++- .../components/Step/Dialog1_Perview.vue | 144 ++++++++ .../components/Step/Dialog2_AddPerson.vue | 121 +++++++ .../components/Step/Dialog2_Salary.vue | 113 +++++++ .../18_command/interface/index/Main.ts | 2 +- src/modules/18_command/router.ts | 14 +- src/modules/18_command/store/DetailStore.ts | 17 +- src/modules/18_command/store/ListStore.ts | 11 +- src/modules/18_command/store/PosSalary.ts | 106 ++++++ src/modules/18_command/views/detail.vue | 86 ++++- src/modules/18_command/views/lists.vue | 126 ++++++- 15 files changed, 1828 insertions(+), 18 deletions(-) create mode 100644 src/modules/18_command/components/Main/DialogCopyCommand.vue create mode 100644 src/modules/18_command/components/Main/TableMain.vue create mode 100644 src/modules/18_command/components/Step/Dialog1_Perview.vue create mode 100644 src/modules/18_command/components/Step/Dialog2_AddPerson.vue create mode 100644 src/modules/18_command/components/Step/Dialog2_Salary.vue create mode 100644 src/modules/18_command/store/PosSalary.ts diff --git a/src/modules/18_command/components/Main/DialogCopyCommand.vue b/src/modules/18_command/components/Main/DialogCopyCommand.vue new file mode 100644 index 000000000..ab6f7457e --- /dev/null +++ b/src/modules/18_command/components/Main/DialogCopyCommand.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/src/modules/18_command/components/Main/TableMain.vue b/src/modules/18_command/components/Main/TableMain.vue new file mode 100644 index 000000000..764b77632 --- /dev/null +++ b/src/modules/18_command/components/Main/TableMain.vue @@ -0,0 +1,245 @@ + + + + + diff --git a/src/modules/18_command/components/Step/1_Detail.vue b/src/modules/18_command/components/Step/1_Detail.vue index b45cce13f..60f1a833f 100644 --- a/src/modules/18_command/components/Step/1_Detail.vue +++ b/src/modules/18_command/components/Step/1_Detail.vue @@ -1,5 +1,206 @@ - + diff --git a/src/modules/18_command/components/Step/2_ListPersons.vue b/src/modules/18_command/components/Step/2_ListPersons.vue index f81fa2cc9..4b60f68bd 100644 --- a/src/modules/18_command/components/Step/2_ListPersons.vue +++ b/src/modules/18_command/components/Step/2_ListPersons.vue @@ -1,5 +1,309 @@ - + diff --git a/src/modules/18_command/components/Step/3_ReceivedCopy.vue b/src/modules/18_command/components/Step/3_ReceivedCopy.vue index 526ca259f..56331e298 100644 --- a/src/modules/18_command/components/Step/3_ReceivedCopy.vue +++ b/src/modules/18_command/components/Step/3_ReceivedCopy.vue @@ -1,5 +1,244 @@ - + diff --git a/src/modules/18_command/components/Step/Dialog1_Perview.vue b/src/modules/18_command/components/Step/Dialog1_Perview.vue new file mode 100644 index 000000000..b18357f43 --- /dev/null +++ b/src/modules/18_command/components/Step/Dialog1_Perview.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/modules/18_command/components/Step/Dialog2_AddPerson.vue b/src/modules/18_command/components/Step/Dialog2_AddPerson.vue new file mode 100644 index 000000000..f8a9ba2a1 --- /dev/null +++ b/src/modules/18_command/components/Step/Dialog2_AddPerson.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/src/modules/18_command/components/Step/Dialog2_Salary.vue b/src/modules/18_command/components/Step/Dialog2_Salary.vue new file mode 100644 index 000000000..15b8c44c1 --- /dev/null +++ b/src/modules/18_command/components/Step/Dialog2_Salary.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/modules/18_command/interface/index/Main.ts b/src/modules/18_command/interface/index/Main.ts index 46133c9b9..7a77d8c18 100644 --- a/src/modules/18_command/interface/index/Main.ts +++ b/src/modules/18_command/interface/index/Main.ts @@ -3,7 +3,7 @@ interface Pagination { } interface DataOption { - id: string; + id: string | number; name: string; } diff --git a/src/modules/18_command/router.ts b/src/modules/18_command/router.ts index 45d7f2c93..fbfa2ebcf 100644 --- a/src/modules/18_command/router.ts +++ b/src/modules/18_command/router.ts @@ -13,8 +13,18 @@ export default [ }, }, { - path: "/command/:id", - name: "commandDetailPage", + path: "/command/view/:id", + name: "commandViewDetailPage", + component: detailPage, + meta: { + Auth: true, + Key: "COMMAND", + Role: "STAFF", + }, + }, + { + path: "/command/edit/:id", + name: "commandEditDetailPage", component: detailPage, meta: { Auth: true, diff --git a/src/modules/18_command/store/DetailStore.ts b/src/modules/18_command/store/DetailStore.ts index 268852a5e..dbf1f0f58 100644 --- a/src/modules/18_command/store/DetailStore.ts +++ b/src/modules/18_command/store/DetailStore.ts @@ -1,5 +1,18 @@ +import { ref } from "vue"; import { defineStore } from "pinia"; -export const usePositionEmp = defineStore("commandDetailStore", () => { - return {}; +export const useCommandDetail = defineStore("commandDetailStore", () => { + const readonly = ref(false); + + const classInput = (val: boolean) => { + return { + "full-width inputgreen cursor-pointer": val, + "full-width cursor-pointer": !val, + }; + }; + + return { + classInput, + readonly, + }; }); diff --git a/src/modules/18_command/store/ListStore.ts b/src/modules/18_command/store/ListStore.ts index 50ecf442d..06d0c97ad 100644 --- a/src/modules/18_command/store/ListStore.ts +++ b/src/modules/18_command/store/ListStore.ts @@ -1,5 +1,12 @@ import { defineStore } from "pinia"; +import { ref } from "vue"; -export const usePositionEmp = defineStore("commandListStore", () => { - return {}; +export const useCommandListStore = defineStore("commandListStore", () => { + const tabsMain = ref("list_draft"); + const rows = ref([]); + + return { + tabsMain, + rows, + }; }); diff --git a/src/modules/18_command/store/PosSalary.ts b/src/modules/18_command/store/PosSalary.ts new file mode 100644 index 000000000..f9070483c --- /dev/null +++ b/src/modules/18_command/store/PosSalary.ts @@ -0,0 +1,106 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +import type { DataOption } from "@/modules/18_command/interface/index/Main"; + +export const usePosSalaryDataStore = defineStore("possalary", () => { + const optionPos = ref([ + { + id: 1, + name: "เลื่อนเงินเดือน", + }, + { + id: 2, + name: "เลื่อนเงินเดือน (ดีเด่น)", + }, + { + id: 3, + name: "เลื่อนเงินเดือน (เพิ่มเติม)", + }, + + { + id: 4, + name: "ปรับเงินเดือน", + }, + + { + id: 5, + name: "ปรับเงินเดือนเพิ่มเติมตามคุณวุฒิการศึกษา", + }, + { + id: 6, + name: "ปรับเงินเดือนเพิ่มเติมตามคุณวุฒิการศึกษา (เพิ่มเติม)", + }, + { + id: 7, + name: "เลื่อนเงินเดือนและให้ข้าราชการ กทม. สามัญได้รับเงินเดือนสูงกว่าขั้นสูงของตำแหน่งที่ได้รับแต่งตั้ง", + }, + { + id: 8, + name: "เลื่อนเงินเดือนกรณีพิเศษให้แก่ผู้ปฏิบัติงานด้านยาเสพติด", + }, + { + id: 9, + name: "{ประเภทตำแหน่ง} {ชื่อตำแหน่ง} สำนัก{ชื่อสำนัก}", + }, + { + id: 10, + name: "แต่งตั้งข้าราชการ {ประเภทตำแหน่ง} {ชื่อตำแหน่ง} สำนัก{ชื่อสำนัก}", + }, + { + id: 11, + name: "แก้ไขคำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + + { + id: 12, + name: "โปรดเกล้าฯ {ชื่อตำแหน่ง} สำนัก{ชื่อสำนัก}", + }, + + { + id: 13, + name: "ช่วยราชการที่{หน่วยงานและรายละเอียดต่างๆ}", + }, + + { + id: 14, + name: "ปฏิบัติหน้าที่ในตำแหน่ง{ชื่อตำแหน่ง} สำนัก{ชื่อสำนัก}", + }, + + { + id: 15, + name: "รักษาการในตำแหน่ง{ชื่อตำแหน่ง} สำนัก{ชื่อสำนัก}", + }, + { + id: 16, + name: "พ้นจากการทดลองปฏิบัติหน้าที่ราชการ", + }, + + { + id: 17, + name: "งดเลื่อนขั้นเงินเดือน", + }, + { + id: 18, + name: "แก้ไขคำสั่งเลื่อนขั้นเงินเดือน {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + { + id: 19, + name: "ยกเลิกคำสั่งเลื่อนขั้นเงินเดือน {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + { + id: 20, + name: "กลับไปปฏิบัติงานทางต้นสังกัดเดิม", + }, + { + id: 21, + name: "โปรดเกล้าฯ แต่งตั้งให้ดำรงตำแหน่ง{รายละเอียดของตำแหน่งและหน่วยงาน}", + }, + { + id: 22, + name: "รักษาการในตำแหน่งหัวหน้าฝ่าย {ฝ่าย…} {หน่วยงาน/สำนัก} {ลำดับที่…} คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่/ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + ]); + + return { optionPos }; +}); diff --git a/src/modules/18_command/views/detail.vue b/src/modules/18_command/views/detail.vue index 17ba5981c..154b3672a 100644 --- a/src/modules/18_command/views/detail.vue +++ b/src/modules/18_command/views/detail.vue @@ -1,11 +1,91 @@ - + diff --git a/src/modules/18_command/views/lists.vue b/src/modules/18_command/views/lists.vue index a1fde2de2..d0bfda13f 100644 --- a/src/modules/18_command/views/lists.vue +++ b/src/modules/18_command/views/lists.vue @@ -1,11 +1,133 @@ - +