diff --git a/src/components/CardProfile.vue b/src/components/CardProfile.vue
index 57f7029a2..38b1cf3b1 100644
--- a/src/components/CardProfile.vue
+++ b/src/components/CardProfile.vue
@@ -16,7 +16,7 @@ import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
import { useCounterMixin } from "@/stores/mixin";
/** use*/
-const { findOrgNameOld, findOrgName } = useCounterMixin();
+const { findOrgNameOld, findOrgName, textTranForm } = useCounterMixin();
/** propsDataProfile*/
const props = defineProps({
@@ -154,7 +154,7 @@ watch(
{{
props.type.toLowerCase() == "employee"
? "กลุ่มงาน"
- : "ประเภทตำแหน่ง"
+ : "ตำแหน่งประเภท"
}}
@@ -165,8 +165,8 @@ watch(
สังกัด
-
- {{ profile.organization }}
+
+ {{ textTranForm(profile.organization) }}
diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue
index fae1f653e..e31059a9a 100644
--- a/src/components/Dialogs/PopupPersonalNew.vue
+++ b/src/components/Dialogs/PopupPersonalNew.vue
@@ -22,7 +22,7 @@ const mixin = useCounterMixin();
const router = useRouter();
const $q = useQuasar();
const retireDate = ref
();
-const { showLoader, hideLoader, messageError, date2Thai } = mixin;
+const { showLoader, hideLoader, messageError, date2Thai,textTranForm } = mixin;
const isEmployee = defineModel("isEmployee", { type: String });
const empType = ref("officer");
@@ -370,11 +370,11 @@ async function fetchProfile(id: string, avatarName: string) {
ข้อมูลราชการ
-
+
diff --git a/src/modules/06_retirement/components/01_retirement/AddList.vue b/src/modules/06_retirement/components/01_retirement/AddList.vue
index fbdb99b3f..3b0103091 100644
--- a/src/modules/06_retirement/components/01_retirement/AddList.vue
+++ b/src/modules/06_retirement/components/01_retirement/AddList.vue
@@ -1,5 +1,5 @@
-
- เพิ่มรายชื่อ
-
-
+
@@ -315,12 +276,10 @@ watch(modal, () => {
{{ props.row.position ? props.row.position : "-" }}
{{ props.row.level }}
-
- {{ props.row.organizationOrganization }}
+
+
+ {{ props.row.organizationOrganization }}
+
(null);
/** ตัวแปร */
+const modal = ref(false);
const retireld_params = route.params.retirementId;
const retireld = ref(retireld_params.toString());
const modalPersonal = ref(false);
@@ -54,7 +56,7 @@ const fileUpload = ref(null);
const round = ref();
const typeReport = ref("");
const statusReport = ref();
-const dataProfile = ref
diff --git a/src/modules/06_retirement/components/02_resign/Table.vue b/src/modules/06_retirement/components/02_resign/Table.vue
index c050970f9..b7ef6851c 100644
--- a/src/modules/06_retirement/components/02_resign/Table.vue
+++ b/src/modules/06_retirement/components/02_resign/Table.vue
@@ -23,8 +23,15 @@ const stroeResign = useDataStore();
const { statusText } = stroe;
const router = useRouter();
const mixin = useCounterMixin();
-const { messageError, date2Thai, showLoader, hideLoader, onSearchDataTable } =
- mixin;
+const {
+ messageError,
+ date2Thai,
+ showLoader,
+ hideLoader,
+ onSearchDataTable,
+ findOrgName,
+ textTranForm,
+} = mixin;
/** Table */
const rows = ref
([]);
@@ -65,7 +72,7 @@ const columns = ref([
{
name: "positionLevel",
align: "left",
- label: "ประเภทตำแหน่ง",
+ label: "ตำแหน่งประเภท",
sortable: true,
field: "positionLevel",
headerStyle: "font-size: 14px",
@@ -85,7 +92,7 @@ const columns = ref([
{
name: "positionNumberOld",
align: "left",
- label: "เลขที่",
+ label: "เลขที่ตำแหน่ง",
sortable: true,
field: "positionNumberOld",
headerStyle: "font-size: 14px",
@@ -99,6 +106,9 @@ const columns = ref([
field: "organizationPositionOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
+ format(val, row) {
+ return `${row.organizationPositionOld.replace(/\n/g, " ")}`;
+ },
},
{
name: "datetext",
@@ -377,7 +387,19 @@ onMounted(async () => {
: ''
"
>
- {{ col.value ? col.value : "-" }}
+
+ {{
+ props.row.organizationPositionOld
+ ? textTranForm(props.row.organizationPositionOld)
+ : "-"
+ }}
+
+
+ {{ col.value ? col.value : "-" }}
+
@@ -389,7 +411,7 @@ onMounted(async () => {
{
}));
});
const mixin = useCounterMixin();
-const { dialogConfirm, date2Thai, onSearchDataTable } = mixin;
+const { dialogConfirm, date2Thai, onSearchDataTable, textTranForm } = mixin;
/** props*/
const props = defineProps({
@@ -41,10 +41,11 @@ const props = defineProps({
closeModal: { type: Function, requreid: true },
fecthList: { type: Function, requreid: true },
rows: { type: Array as PropType, requreid: true },
- filterKeyword2: { type: String, requreid: true },
mainTabs: { type: String, requreid: true },
});
+const filterKeyword = defineModel("filterKeyword", { required: true });
+
//Table
const rowsData = ref([]);
const rowsDataMain = ref([]);
@@ -104,7 +105,7 @@ const columns = ref([
{
name: "positionNumberOld",
align: "left",
- label: "เลขที่",
+ label: "ตำแหน่งเลขที่",
sortable: true,
field: "positionNumberOld",
headerStyle: "font-size: 14px",
@@ -118,6 +119,9 @@ const columns = ref([
field: "organizationPositionOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
+ format(val, row) {
+ return `${row.organizationPositionOld.replace(/\n/g, " ")}`;
+ },
},
{
name: "datetext",
@@ -179,7 +183,7 @@ function updateInput(value: any) {
async function onSearch() {
rowsData.value = onSearchDataTable(
- props.filterKeyword2 ? props.filterKeyword2 : "",
+ filterKeyword.value,
rowsDataMain.value,
columns.value ? columns.value : []
);
@@ -212,8 +216,7 @@ watch(
borderless
outlined
dense
- :model-value="filterKeyword2"
- @update:model-value="updateInput"
+ :model-value="filterKeyword"
placeholder="ค้นหา"
@keydown.enter="onSearch"
>
@@ -267,14 +270,17 @@ watch(
- {{ col.value ? col.value : "" }}
+ {{
+ props.row.organizationPositionOld
+ ? textTranForm(props.row.organizationPositionOld)
+ : "-"
+ }}
+
+
+ {{ col.value ? col.value : "-" }}
diff --git a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue
index 8c58a186d..de28f01f6 100644
--- a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue
+++ b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue
@@ -1295,9 +1295,9 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="posNo"
- :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]"
hide-bottom-space
- :label="`${'เลขที่'}`"
+ :label="`${'ตำแหน่งเลขที่'}`"
/>
diff --git a/src/modules/06_retirement/components/03_resignEmp/ResignReject.vue b/src/modules/06_retirement/components/03_resignEmp/ResignReject.vue
index e4df16e86..f94cf4bbc 100644
--- a/src/modules/06_retirement/components/03_resignEmp/ResignReject.vue
+++ b/src/modules/06_retirement/components/03_resignEmp/ResignReject.vue
@@ -667,9 +667,9 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="posNo"
- :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]"
hide-bottom-space
- :label="`${'เลขที่'}`"
+ :label="`${'ตำแหน่งเลขที่'}`"
/>
diff --git a/src/modules/06_retirement/components/03_resignEmp/Table.vue b/src/modules/06_retirement/components/03_resignEmp/Table.vue
index 1c73be261..b971d0cb4 100644
--- a/src/modules/06_retirement/components/03_resignEmp/Table.vue
+++ b/src/modules/06_retirement/components/03_resignEmp/Table.vue
@@ -23,8 +23,14 @@ const stroeResign = useDataStore();
const { statusText } = stroe;
const router = useRouter();
const mixin = useCounterMixin();
-const { messageError, date2Thai, showLoader, hideLoader, onSearchDataTable } =
- mixin;
+const {
+ messageError,
+ date2Thai,
+ showLoader,
+ hideLoader,
+ onSearchDataTable,
+ textTranForm,
+} = mixin;
/** Table */
const rows = ref