diff --git a/src/modules/02_organizationalNew/components/DialogFormAgency.vue b/src/modules/02_organizationalNew/components/DialogFormAgency.vue index 13b06dc8d..3cfb00cfb 100644 --- a/src/modules/02_organizationalNew/components/DialogFormAgency.vue +++ b/src/modules/02_organizationalNew/components/DialogFormAgency.vue @@ -219,6 +219,7 @@ watch( if (props.modal === true) { if (actionType.value === "ADD") { console.log(props.dataNode); + console.log(level.value); if (props.dataNode) { formData.orgCode = @@ -351,7 +352,9 @@ function selectOrgLevele(val: string, status: boolean = true) {
{ if (props.modal === true) { fetchType(); - // fetchLevel(); fetchExecutive(); if (props.actionType === "ADD") { @@ -535,6 +535,7 @@ watch( formData.prefixNo = ""; formData.positionNo = ""; formData.suffixNo = ""; + formData.reason = ""; } else { props.rowId && fetchPosition(props.rowId); } @@ -543,6 +544,8 @@ watch( ); async function addPosition(data: RowDetailPositions) { + console.log(data); + const isIdExist = await rows.value.some( (item: any) => item.posExecutiveId == data.posExecutiveId && @@ -557,7 +560,6 @@ async function addPosition(data: RowDetailPositions) { if (!isIdExist) { rows.value = [...rows.value, data]; - // rows.value.push(data); } } @@ -603,6 +605,7 @@ async function clearFormPositionSelect() { function close() { props.close?.(); + clearFormPositionSelect(); isPosition.value = false; } diff --git a/src/modules/02_organizationalNew/store/organizational.ts b/src/modules/02_organizationalNew/store/organizational.ts index 096f392ca..bef3684f9 100644 --- a/src/modules/02_organizationalNew/store/organizational.ts +++ b/src/modules/02_organizationalNew/store/organizational.ts @@ -76,9 +76,9 @@ export const useOrganizational = defineStore("organizationalStore", () => { : "ว่าง", posMasterNo: e.orgShortname + - e.posMasterNoPrefix + - e.posMasterNo + - e.posMasterNoSuffix, + (e.posMasterNoPrefix ? e.posMasterNoPrefix : "") + + (e.posMasterNo?e.posMasterNo:"") + + (e.posMasterNoSuffix?e.posMasterNoSuffix:""), positionName: e.isSit ? e.profilePosition : e.positionName, posTypeName: e.isSit ? e.profilePostype : e.posTypeName, posLevelName: e.isSit ? e.profilePoslevel : e.posLevelName, diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index 1499e91f5..652d0f54e 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -338,12 +338,13 @@ onMounted(async () => { - +
{ - + - - - - - - + + - - -
+ +
{ />
-
+
{
-
+
{
- - - - - - - บันทึกข้อมูล - - - + + + + + บันทึกข้อมูล + + - + - - - - - - - + + + - - - + +
{ bg-color="white" v-model="historyKeyword" label="ค้นหา" - class="q-mr-sm" > - - - + + diff --git a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue index cb05031f9..c83a10e3f 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue @@ -496,9 +496,10 @@ onMounted(async () => { - +
{ - + - - - - - - - - - -
-
- -
-
- -
+ + + +
+
+
- -
- - -
-
-
- - - - - -
-
- - - - - -
-
-
-
- - - - - -
-
- - - - - -
-
-
-
+
+ +
+
+ +
+ + +
+