diff --git a/src/modules/04_registry/components/Profile.vue b/src/modules/04_registry/components/Profile.vue
index 930e04a59..9b84e9244 100644
--- a/src/modules/04_registry/components/Profile.vue
+++ b/src/modules/04_registry/components/Profile.vue
@@ -155,7 +155,9 @@
ยืนยันการตรวจสอบข้อมูล
([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "21",
@@ -686,7 +686,7 @@ const refOptionsFilter = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "0",
@@ -947,7 +947,7 @@ const columns = ref([
{
name: "postionTypeName",
align: "left",
- label: "ตำแหน่งประเภท",
+ label: "ประเภทตำแหน่ง",
sortable: true,
field: "postionTypeName",
headerStyle: "font-size: 14px",
@@ -1125,7 +1125,7 @@ const columnsHistory = ref([
{
name: "positionType",
align: "left",
- label: "ตำแหน่งประเภท",
+ label: "ประเภทตำแหน่ง",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",
@@ -1290,7 +1290,7 @@ function inputPositionLevelBlur() {
if (
!optionStore.optipnLevel.some(
- (v:any) => v.name === tempPositionLevelInput.value
+ (v: any) => v.name === tempPositionLevelInput.value
)
) {
createValue(tempPositionLevelInput.value);
diff --git a/src/modules/04_registry/components/SalaryEmployee.vue b/src/modules/04_registry/components/SalaryEmployee.vue
index 5421345db..c802c0058 100644
--- a/src/modules/04_registry/components/SalaryEmployee.vue
+++ b/src/modules/04_registry/components/SalaryEmployee.vue
@@ -142,7 +142,6 @@
:class="getClass(edit)"
:outlined="edit"
dense
-
:borderless="!edit"
:model-value="date2Thai(date)"
:rules="[
@@ -531,7 +530,7 @@
-
+
([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "21",
@@ -806,7 +805,7 @@ const refOptionsFilter = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "0",
@@ -1417,7 +1416,7 @@ const nodeTree = async () => {
messageError($q, e);
})
.finally(() => {
- store.isLoad++
+ store.isLoad++;
});
};
@@ -1494,7 +1493,7 @@ const fetchData = async () => {
.get(config.API.profileSalaryEmployeeId(profileId.value))
.then((res) => {
const data = res.data.result;
-
+
rows.value = [];
data.map((e: any) => {
rows.value.push({
@@ -1541,7 +1540,7 @@ const fetchData = async () => {
// refCommandDate: new Date(e.refCommandDate),
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
- salaryStatus: null
+ salaryStatus: null,
});
});
})
@@ -1549,7 +1548,7 @@ const fetchData = async () => {
messageError($q, e);
})
.finally(() => {
- store.isLoad++
+ store.isLoad++;
});
}
};
@@ -1698,7 +1697,7 @@ const templateDetail = async () => {
// );
// if (positionTypeF.length > 0) {
// salaryClass.value =
- // salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `;
+ // salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `;
// }
// const positionLevelF = positionLevelOptions.value.filter(
// (r: DataOption) => r.id == positionLevelId.value
@@ -2022,7 +2021,7 @@ const clickHistory = async (row: RequestItemsEmployee) => {
refCommandNo: e.refCommandNo,
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
- salaryStatus: null
+ salaryStatus: null,
});
});
})
diff --git a/src/modules/04_registry/components/SalaryEmployeeTemp.vue b/src/modules/04_registry/components/SalaryEmployeeTemp.vue
index f529e7cfe..b1036e219 100644
--- a/src/modules/04_registry/components/SalaryEmployeeTemp.vue
+++ b/src/modules/04_registry/components/SalaryEmployeeTemp.vue
@@ -142,7 +142,6 @@
:class="getClass(edit)"
:outlined="edit"
dense
-
:borderless="!edit"
:model-value="date2Thai(date)"
:rules="[
@@ -645,7 +644,7 @@ const refOptions = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "21",
@@ -781,7 +780,7 @@ const refOptionsFilter = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "0",
@@ -1726,7 +1725,7 @@ const templateDetail = async () => {
// );
// if (positionTypeF.length > 0) {
// salaryClass.value =
- // salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `;
+ // salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `;
// }
// const positionLevelF = positionLevelOptions.value.filter(
// (r: DataOption) => r.id == positionLevelId.value
diff --git a/src/modules/04_registry/components/salaryNew/Salary.vue b/src/modules/04_registry/components/salaryNew/Salary.vue
index bc3b5ca37..608fbddef 100644
--- a/src/modules/04_registry/components/salaryNew/Salary.vue
+++ b/src/modules/04_registry/components/salaryNew/Salary.vue
@@ -324,9 +324,9 @@
:borderless="!edit"
v-model="positionTypeId"
:rules="[
- (val: string) => !!val || `${'กรุณาเลือกตำแหน่งประเภท'}`,
+ (val: string) => !!val || `${'กรุณาเลือกประเภทตำแหน่ง'}`,
]"
- :label="`${'ตำแหน่งประเภท'}`"
+ :label="`${'ประเภทตำแหน่ง'}`"
@update:modelValue="updateSelectType"
emit-value
map-options
@@ -824,7 +824,7 @@ const refOptions = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "21",
@@ -960,7 +960,7 @@ const refOptionsFilter = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "0",
@@ -1221,7 +1221,7 @@ const columns = ref([
{
name: "positionType",
align: "left",
- label: "ตำแหน่งประเภท",
+ label: "ประเภทตำแหน่ง",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",
@@ -1399,7 +1399,7 @@ const columnsHistory = ref([
{
name: "positionType",
align: "left",
- label: "ตำแหน่งประเภท",
+ label: "ประเภทตำแหน่ง",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",
@@ -1928,7 +1928,7 @@ const clickAdd = async () => {
// );
// if (positionTypeF.length > 0) {
// salaryClass.value =
-// salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `;
+// salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `;
// }
// const positionLevelF = positionLevelOptions.value.filter(
diff --git a/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue b/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue
index 5421345db..c802c0058 100644
--- a/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue
+++ b/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue
@@ -142,7 +142,6 @@
:class="getClass(edit)"
:outlined="edit"
dense
-
:borderless="!edit"
:model-value="date2Thai(date)"
:rules="[
@@ -531,7 +530,7 @@
-
+
([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "21",
@@ -806,7 +805,7 @@ const refOptionsFilter = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "0",
@@ -1417,7 +1416,7 @@ const nodeTree = async () => {
messageError($q, e);
})
.finally(() => {
- store.isLoad++
+ store.isLoad++;
});
};
@@ -1494,7 +1493,7 @@ const fetchData = async () => {
.get(config.API.profileSalaryEmployeeId(profileId.value))
.then((res) => {
const data = res.data.result;
-
+
rows.value = [];
data.map((e: any) => {
rows.value.push({
@@ -1541,7 +1540,7 @@ const fetchData = async () => {
// refCommandDate: new Date(e.refCommandDate),
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
- salaryStatus: null
+ salaryStatus: null,
});
});
})
@@ -1549,7 +1548,7 @@ const fetchData = async () => {
messageError($q, e);
})
.finally(() => {
- store.isLoad++
+ store.isLoad++;
});
}
};
@@ -1698,7 +1697,7 @@ const templateDetail = async () => {
// );
// if (positionTypeF.length > 0) {
// salaryClass.value =
- // salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `;
+ // salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `;
// }
// const positionLevelF = positionLevelOptions.value.filter(
// (r: DataOption) => r.id == positionLevelId.value
@@ -2022,7 +2021,7 @@ const clickHistory = async (row: RequestItemsEmployee) => {
refCommandNo: e.refCommandNo,
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
- salaryStatus: null
+ salaryStatus: null,
});
});
})
diff --git a/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue b/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue
index e42a38998..cdff54576 100644
--- a/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue
+++ b/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue
@@ -644,7 +644,7 @@ const refOptions = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "21",
@@ -780,7 +780,7 @@ const refOptionsFilter = ref([
},
{
id: "20",
- name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
+ name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
{
id: "0",
@@ -1725,7 +1725,7 @@ const templateDetail = async () => {
// );
// if (positionTypeF.length > 0) {
// salaryClass.value =
- // salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `;
+ // salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `;
// }
// const positionLevelF = positionLevelOptions.value.filter(
// (r: DataOption) => r.id == positionLevelId.value
diff --git a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue
index 569ec1ee4..2ec844c0b 100644
--- a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue
+++ b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue
@@ -92,7 +92,7 @@ const columns = ref([
{
name: "positionType",
align: "left",
- label: "ตำแหน่งประเภท",
+ label: "ประเภทตำแหน่ง",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",
@@ -772,7 +772,7 @@ onMounted(() => {
lazy-rules
borderless
v-model="formDataSalary.positionType"
- :label="empType == '' ? 'ตำแหน่งประเภท' : 'กลุ่มงาน'"
+ :label="empType == '' ? 'ประเภทตำแหน่ง' : 'กลุ่มงาน'"
emit-value
map-options
option-label="name"
@@ -782,7 +782,7 @@ onMounted(() => {
use-input
input-debounce="0"
@update:model-value="updateSelectType"
- :rules="empType == '' ? [(val: string) => !!val || 'กรุณาเลือกตำแหน่งประเภท' ]:[(val: string) => !!val || 'กรุณาเลือกกลุ่มงาน' ]"
+ :rules="empType == '' ? [(val: string) => !!val || 'กรุณาเลือกประเภทตำแหน่ง' ]:[(val: string) => !!val || 'กรุณาเลือกกลุ่มงาน' ]"
@filter="(inputValue: any,
doneFn: Function) => filterSelector(inputValue, doneFn, 'posType'
)"
diff --git a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue
index 37521b40f..7fda9a7db 100644
--- a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue
+++ b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue
@@ -118,7 +118,7 @@ const columns = ref([
{
name: "positionType",
align: "left",
- label: "ตำแหน่งประเภท",
+ label: "ประเภทตำแหน่ง",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",
diff --git a/src/modules/04_registryNew/views/detailView.vue b/src/modules/04_registryNew/views/detailView.vue
index 21d293061..06e726228 100644
--- a/src/modules/04_registryNew/views/detailView.vue
+++ b/src/modules/04_registryNew/views/detailView.vue
@@ -183,12 +183,66 @@ async function fetchProfile(id: string) {
});
}
+const reasonStatus = ref(false);
+const leaveReason = ref("");
+const reasonOptions = ref([
+ {
+ id: "RETIRE",
+ name: "เกษียณอายุราชการ",
+ },
+ {
+ id: "RESIGN",
+ name: "ลาออก",
+ },
+ {
+ id: "TRANSFER",
+ name: "ให้โอน",
+ },
+ {
+ id: "DEATH",
+ name: "ถึงแก่กรรม",
+ },
+ {
+ id: "LAYOFF",
+ name: "ให้ออก",
+ },
+ {
+ id: "DISCHARGE",
+ name: "ปลดออก",
+ },
+ {
+ id: "DISMISS",
+ name: "ไล่ออก",
+ },
+ {
+ id: "OTHER",
+ name: "อื่นๆ",
+ },
+]);
+
async function fetchDataPersonal() {
showLoader();
await http
.get(config.API.registryNewByProfileId(profileId.value, empType.value))
.then((res) => {
formDetail.value = res.data.result;
+
+ if (res.data.result.leaveReason) {
+ // เหตุผลพ้นจากราชการต่อท้ายชื่อ
+ const reason = reasonOptions.value.filter(
+ (r: DataOption) => r.id == res.data.result.leaveReason
+ );
+ if (reason.length > 0) {
+ leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${reason[0].name})`;
+ } else if (
+ res.data.result.leaveReason !== null &&
+ res.data.result.leaveReason !== ""
+ ) {
+ leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${res.data.result.leaveReason})`;
+ }
+ reasonStatus.value = reason.length > 0 ? true : false;
+ }
+
fileName.value = res.data.result.avatarName;
if (formDetail.value?.avatarName) {
fetchProfile(profileId.value);
@@ -205,11 +259,32 @@ async function fetchDataPersonal() {
}
function onClickDownloadKp7(type: string) {
- if (type === "FULL") {
- window.open(config.API.profileReportId(profileId.value));
- } else if (type === "SHORT") {
- window.open(config.API.profileKp7ShortId(profileId.value));
- }
+ showLoader();
+ const url =
+ type === "FULL"
+ ? config.API.profileReportId(profileId.value)
+ : config.API.profileKp7ShortId(profileId.value);
+ const fileName = type === "FULL" ? "ก.พ.7/ก.ก.1" : "ประวัติแบบย่อ";
+ http
+ .get(url, {
+ responseType: "arraybuffer", //
+ })
+ .then((res) => {
+ const data = res.data;
+ const blob = new Blob([data], { type: "application/pdf" });
+ const url = URL.createObjectURL(blob);
+ const link = document.createElement("a");
+ link.href = url;
+ link.download = `${fileName}.pdf`;
+ document.body.appendChild(link);
+ link.click();
+ })
+ .catch((err) => {
+ messageError($q, err);
+ })
+ .finally(() => {
+ hideLoader();
+ });
}
/** ช่วยราชการ */
@@ -593,7 +668,7 @@ onMounted(async () => {
v-if="formDetail && formDetail.firstName && formDetail.lastName"
>
{{
- `${formDetail?.prefix}${formDetail?.firstName} ${formDetail?.lastName}`
+ `${formDetail?.prefix}${formDetail?.firstName} ${formDetail?.lastName} ${leaveReason}`
}}
diff --git a/src/modules/05_placement/components/AppointEmployee/Detail.vue b/src/modules/05_placement/components/AppointEmployee/Detail.vue
index 8a037e626..d46e389a6 100644
--- a/src/modules/05_placement/components/AppointEmployee/Detail.vue
+++ b/src/modules/05_placement/components/AppointEmployee/Detail.vue
@@ -7,7 +7,7 @@ import type { ResponseTitle } from "@/modules/05_placement/interface/response/Re
import type {
appointmentData,
ResponseData,
- DataProfile
+ DataProfile,
} from "@/modules/05_placement/interface/response/AppointMent";
import type { QForm } from "quasar";
import http from "@/plugins/http";
@@ -181,11 +181,8 @@ onMounted(async () => {
/>
รายละเอียดการปรับระดับชั้นงานลูกจ้าง {{ title.fullname }}