From f96643cc6c1aa95d09635695f19fa002a2028765 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 11 Mar 2024 17:48:15 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=20=3D>=20=E0=B8=95=E0=B8=B3=E0=B9=81?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87=E0=B9=80=E0=B8=87=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/salaryNew/Salary.vue | 2 +- .../detail/Salary/01_PositionSalary.vue | 726 +++++++++++++++++- .../Salary/01_PositionSalaryHistory.vue | 227 ++++++ .../04_registryNew/interface/index/Main.ts | 6 +- .../04_registryNew/interface/index/salary.ts | 12 + .../interface/request/Salary.ts | 19 + .../04_registryNew/stores/DetailMain.ts | 2 +- src/modules/04_registryNew/stores/salary.ts | 187 +++++ 8 files changed, 1176 insertions(+), 5 deletions(-) create mode 100644 src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue create mode 100644 src/modules/04_registryNew/interface/index/salary.ts create mode 100644 src/modules/04_registryNew/interface/request/Salary.ts create mode 100644 src/modules/04_registryNew/stores/salary.ts diff --git a/src/modules/04_registry/components/salaryNew/Salary.vue b/src/modules/04_registry/components/salaryNew/Salary.vue index 264cac96a..bc3b5ca37 100644 --- a/src/modules/04_registry/components/salaryNew/Salary.vue +++ b/src/modules/04_registry/components/salaryNew/Salary.vue @@ -671,7 +671,7 @@ - + + diff --git a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue new file mode 100644 index 000000000..eb0c309a1 --- /dev/null +++ b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue @@ -0,0 +1,227 @@ + + + + diff --git a/src/modules/04_registryNew/interface/index/Main.ts b/src/modules/04_registryNew/interface/index/Main.ts index 46133c9b9..5930b43ac 100644 --- a/src/modules/04_registryNew/interface/index/Main.ts +++ b/src/modules/04_registryNew/interface/index/Main.ts @@ -6,5 +6,9 @@ interface DataOption { id: string; name: string; } +interface DataOption2 { + id: number; + name: string; +} -export type { Pagination, DataOption }; +export type { Pagination, DataOption, DataOption2 }; diff --git a/src/modules/04_registryNew/interface/index/salary.ts b/src/modules/04_registryNew/interface/index/salary.ts new file mode 100644 index 000000000..b702cde70 --- /dev/null +++ b/src/modules/04_registryNew/interface/index/salary.ts @@ -0,0 +1,12 @@ +interface ObjectSalaryRef { + date: object | null; + posNo: object | null; + position: object | null; + typePosition: object | null; + levelPosition: object | null; + salary: object | null; + doc: object | null; + + [key: string]: any; +} +export type { ObjectSalaryRef }; diff --git a/src/modules/04_registryNew/interface/request/Salary.ts b/src/modules/04_registryNew/interface/request/Salary.ts new file mode 100644 index 000000000..fdaea5559 --- /dev/null +++ b/src/modules/04_registryNew/interface/request/Salary.ts @@ -0,0 +1,19 @@ +interface FormSalaryNew { + date: Date | null; + posNo: string; + templatePos: string; + position: string; + positionLineName: string; + typePosition: string; + levelPosition: string; + positionPathSideName: string; + positionExecutiveName: string; + salary: number | null; + salaryPos: number | null; + salaryCompensation: number | null; + refCommandNo: string; + templateDoc: string; + doc: string; +} + +export type { FormSalaryNew }; diff --git a/src/modules/04_registryNew/stores/DetailMain.ts b/src/modules/04_registryNew/stores/DetailMain.ts index fec5f95ce..8ec35bba8 100644 --- a/src/modules/04_registryNew/stores/DetailMain.ts +++ b/src/modules/04_registryNew/stores/DetailMain.ts @@ -5,7 +5,7 @@ import { ref } from "vue"; export const useRegistryDetailNewDataStore = defineStore( "registryNewDetail", () => { - const tabMain = ref("1"); + const tabMain = ref("3"); return { tabMain }; } ); diff --git a/src/modules/04_registryNew/stores/salary.ts b/src/modules/04_registryNew/stores/salary.ts new file mode 100644 index 000000000..2220e6692 --- /dev/null +++ b/src/modules/04_registryNew/stores/salary.ts @@ -0,0 +1,187 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +import type { DataOption2 } from "@/modules/04_registryNew/interface/index/Main"; + +export const useSalaryDataStore = defineStore("salatyDataStore", () => { + const optionTemplatePos = 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: "โปรดเกล้าฯ แต่งตั้งให้ดำรงตำแหน่ง{รายละเอียดของตำแหน่งและหน่วยงาน}", + }, + ]); + + const optionTemplateDoc = ref([ + { + id: 1, + name: "บรรจุและแต่งตั้งผู้สอบแข่งขันได้ คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + { + id: 2, + name: "ปรับเงินเดือนตาม{รายละเอียดของบัญชี เช่นชื่อ ฉบับที่ ปี พ.ศ.}", + }, + { + id: 3, + name: "เลื่อนขั้นเงินเดือนตามคำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + + { + id: 4, + name: "เลื่อนขั้นเงินเดือน คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + + { + id: 5, + name: "เลื่อนขั้นเงินเดือน (1 ขั้น) คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + { + id: 6, + name: "เลื่อนขั้นเงินเดือน (1.5 ขั้น) คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}", + }, + { + 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: "ปรับอัตราเงินเดือนตามพระราชกฤษฎีกาการปรับอัตราเงินเดือนของข้าราชการ พ.ศ. (.............)", + }, + ]); + + return { + optionTemplatePos, + optionTemplateDoc, + }; +});