ตำแหน่ง/เงินเดือน >>ต้นแบบเอกสารอ้างอิง
This commit is contained in:
parent
f8804e3b73
commit
7056b31aa3
3 changed files with 11 additions and 17 deletions
|
|
@ -107,21 +107,21 @@ export const useSalaryDataStore = defineStore("salary", () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: "เลื่อนเงินเดือนตามคำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
name: "เลื่อนขั้นเงินเดือนตามคำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
name: "เลื่อนเงินขั้นเดือน คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
name: "เลื่อนขั้นเงินเดือน คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
name: "เลื่อนเงินขั้นเดือน (1 ขั้น) คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
name: "เลื่อนขั้นเงินเดือน (1 ขั้น) คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 6,
|
id: 6,
|
||||||
name: "เลื่อนเงินขั้นเดือน (1.5 ขั้น) คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
name: "เลื่อนขั้นเงินเดือน (1.5 ขั้น) คำสั่ง {หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 7,
|
id: 7,
|
||||||
|
|
@ -172,6 +172,10 @@ export const useSalaryDataStore = defineStore("salary", () => {
|
||||||
id: 17,
|
id: 17,
|
||||||
name: "แต่งตั้งข้าราชการให้ดำรงตำแหน่งตามคำสั่ง{หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
name: "แต่งตั้งข้าราชการให้ดำรงตำแหน่งตามคำสั่ง{หน่วยงาน/สำนัก} ที่ {เลขที่}/{ปีงบประมาณ} ลว. {วันที่ลงนาม}",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 18,
|
||||||
|
name: "ปรับอัตราเงินเดือนตามพระราชกฤษฎีกาการปรับอัตราเงินเดือนของข้าราชการ พ.ศ. (.............)",
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const optiontype = ref<any>([
|
const optiontype = ref<any>([
|
||||||
|
|
|
||||||
|
|
@ -15,26 +15,18 @@ const positionId = defineModel<string>("positionId", { required: true });
|
||||||
const seletcId = defineModel<string>("seletcId", { required: true });
|
const seletcId = defineModel<string>("seletcId", { required: true });
|
||||||
const date = defineModel<Date>("datePos", { required: true });
|
const date = defineModel<Date>("datePos", { required: true });
|
||||||
const positionData = defineModel<any>("position", { required: true });
|
const positionData = defineModel<any>("position", { required: true });
|
||||||
// const props = defineProps({
|
|
||||||
// position: {
|
|
||||||
// type: Array(),
|
|
||||||
// require: true,
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
|
|
||||||
// const positionId = ref<string>("");
|
|
||||||
const filters = ref<string>("");
|
const filters = ref<string>("");
|
||||||
const rowsPosition = ref<Positions[]>([]);
|
const rowsPosition = ref<Positions[]>([]);
|
||||||
|
|
||||||
async function onClickSelectPos(id: string) {
|
async function onClickSelectPos(id: string) {
|
||||||
positionId.value = id;
|
positionId.value = id;
|
||||||
selected.value = [];
|
selected.value = [];
|
||||||
|
|
||||||
const position: DataPositionNo = positionData.value.find(
|
const position: DataPositionNo = positionData.value.find(
|
||||||
(e: DataPositionNo) => e.id === id
|
(e: DataPositionNo) => e.id === id
|
||||||
);
|
);
|
||||||
if (position) {
|
if (position) {
|
||||||
rowsPosition.value = await position.positions;
|
rowsPosition.value = position.positions;
|
||||||
if (seletcId.value) {
|
if (seletcId.value) {
|
||||||
selected.value = rowsPosition.value.filter(
|
selected.value = rowsPosition.value.filter(
|
||||||
(e) => e.id === seletcId.value
|
(e) => e.id === seletcId.value
|
||||||
|
|
@ -200,10 +192,8 @@ onMounted(async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await onClickSelectPos(positionId.value);
|
await onClickSelectPos(positionId.value);
|
||||||
await setTimeout(() => {
|
await hideLoader();
|
||||||
hideLoader();
|
}, 1000);
|
||||||
}, 500);
|
|
||||||
}, 500);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue