update
This commit is contained in:
parent
46533bbd62
commit
15d3ac574d
128 changed files with 347 additions and 322 deletions
|
|
@ -155,7 +155,7 @@ async function fetchProfileGov(id: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function redirecToRegistry() {
|
function redirecToRegistry() {
|
||||||
router.push(`/registry-new${empType.value}/${props.id}`);
|
router.push(`/registry-person${empType.value}/${props.id}`);
|
||||||
modal.value = false;
|
modal.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -270,7 +270,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.citizenId ? imformation.citizenId:'-'"
|
:model-value="
|
||||||
|
imformation.citizenId ? imformation.citizenId : '-'
|
||||||
|
"
|
||||||
label="เลขประจำตัวประชาชน"
|
label="เลขประจำตัวประชาชน"
|
||||||
></q-input>
|
></q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -278,7 +280,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.prefix ? imformation.prefix:'-'"
|
:model-value="
|
||||||
|
imformation.prefix ? imformation.prefix : '-'
|
||||||
|
"
|
||||||
label="คำนำหน้าชื่อ"
|
label="คำนำหน้าชื่อ"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -286,7 +290,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.firstName ? imformation.firstName:'-'"
|
:model-value="
|
||||||
|
imformation.firstName ? imformation.firstName : '-'
|
||||||
|
"
|
||||||
label="ชื่่อ"
|
label="ชื่่อ"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -294,7 +300,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.lastName ? imformation.lastName:'-'"
|
:model-value="
|
||||||
|
imformation.lastName ? imformation.lastName : '-'
|
||||||
|
"
|
||||||
label="นามสกุล"
|
label="นามสกุล"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -302,7 +310,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.birthDate ? imformation.birthDate:'-'"
|
:model-value="
|
||||||
|
imformation.birthDate ? imformation.birthDate : '-'
|
||||||
|
"
|
||||||
label="วัน/เดือน/ปีเกิด"
|
label="วัน/เดือน/ปีเกิด"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -310,7 +320,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.gender ? imformation.gender:'-'"
|
:model-value="
|
||||||
|
imformation.gender ? imformation.gender : '-'
|
||||||
|
"
|
||||||
label="เพศ"
|
label="เพศ"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -318,7 +330,7 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="imformation.age ? imformation.age:'-'"
|
:model-value="imformation.age ? imformation.age : '-'"
|
||||||
label="อายุ"
|
label="อายุ"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -346,7 +358,7 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.posNo ? goverment.posNo:'-'"
|
:model-value="goverment.posNo ? goverment.posNo : '-'"
|
||||||
label="ตำแหน่งเลขที่"
|
label="ตำแหน่งเลขที่"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -354,7 +366,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.position ? goverment.position:'-'"
|
:model-value="
|
||||||
|
goverment.position ? goverment.position : '-'
|
||||||
|
"
|
||||||
label="ตำแหน่ง"
|
label="ตำแหน่ง"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -362,7 +376,11 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.positionPathSide ? goverment.positionPathSide:'-'"
|
:model-value="
|
||||||
|
goverment.positionPathSide
|
||||||
|
? goverment.positionPathSide
|
||||||
|
: '-'
|
||||||
|
"
|
||||||
label="ด้าน/สาขา"
|
label="ด้าน/สาขา"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -370,7 +388,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.positionLine ? goverment.positionLine:'-'"
|
:model-value="
|
||||||
|
goverment.positionLine ? goverment.positionLine : '-'
|
||||||
|
"
|
||||||
label="สายงาน"
|
label="สายงาน"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -378,7 +398,9 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.positionType ? goverment.positionType:'-'"
|
:model-value="
|
||||||
|
goverment.positionType ? goverment.positionType : '-'
|
||||||
|
"
|
||||||
label="ประเภทตำแหน่ง"
|
label="ประเภทตำแหน่ง"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -386,7 +408,11 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.positionLevel ? goverment.positionLevel:'-'"
|
:model-value="
|
||||||
|
goverment.positionLevel
|
||||||
|
? goverment.positionLevel
|
||||||
|
: '-'
|
||||||
|
"
|
||||||
label="ระดับตำแหน่ง"
|
label="ระดับตำแหน่ง"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -397,7 +423,11 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.positionExecutive ? goverment.positionExecutive:'-'"
|
:model-value="
|
||||||
|
goverment.positionExecutive
|
||||||
|
? goverment.positionExecutive
|
||||||
|
: '-'
|
||||||
|
"
|
||||||
label="ตำแหน่งทางการบริหาร"
|
label="ตำแหน่งทางการบริหาร"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -408,7 +438,11 @@ async function fetchProfile(id: string, avatarName: string) {
|
||||||
<q-input
|
<q-input
|
||||||
borderless
|
borderless
|
||||||
readonly
|
readonly
|
||||||
:model-value="goverment.positionExecutiveSide ? goverment.positionExecutiveSide:'-'"
|
:model-value="
|
||||||
|
goverment.positionExecutiveSide
|
||||||
|
? goverment.positionExecutiveSide
|
||||||
|
: '-'
|
||||||
|
"
|
||||||
label="ด้านตำแหน่งทางการบริหาร"
|
label="ด้านตำแหน่งทางการบริหาร"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ import config from "@/app.config";
|
||||||
import type {
|
import type {
|
||||||
DataOption,
|
DataOption,
|
||||||
FormPositionSelect,
|
FormPositionSelect,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/Main";
|
} from "@/modules/02_organization/interface/index/Main";
|
||||||
import type {
|
import type {
|
||||||
OptionType,
|
OptionType,
|
||||||
OptionLevel,
|
OptionLevel,
|
||||||
OptionExecutive,
|
OptionExecutive,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
|
|
@ -8,11 +8,11 @@ import type {
|
||||||
FormDataAgency,
|
FormDataAgency,
|
||||||
FormAgencyRef,
|
FormAgencyRef,
|
||||||
DataOption,
|
DataOption,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/Main";
|
} from "@/modules/02_organization/interface/index/Main";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const level = defineModel<number>("orgLevel", { required: true });
|
const level = defineModel<number>("orgLevel", { required: true });
|
||||||
|
|
@ -3,8 +3,8 @@ import { ref, watch, computed } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import type { FormDateTimeRef } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { FormDateTimeRef } from "@/modules/02_organization/interface/index/Main";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
|
|
@ -16,18 +16,18 @@ import type {
|
||||||
FormPositionSelect,
|
FormPositionSelect,
|
||||||
RowDetailPositions,
|
RowDetailPositions,
|
||||||
ListMenu,
|
ListMenu,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/Main";
|
} from "@/modules/02_organization/interface/index/Main";
|
||||||
import type {
|
import type {
|
||||||
OptionType,
|
OptionType,
|
||||||
OptionExecutive,
|
OptionExecutive,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
import type { FilterMaster } from "@/modules/02_organizationalNew/interface/request/organizational";
|
import type { FilterMaster } from "@/modules/02_organization/interface/request/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
*/
|
*/
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import DialogAddPosition from "@/modules/02_organizationalNew/components/DialogAddPosition.vue";
|
import DialogAddPosition from "@/modules/02_organization/components/DialogAddPosition.vue";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importStore
|
* importStore
|
||||||
|
|
@ -8,7 +8,7 @@ import config from "@/app.config";
|
||||||
* importType
|
* importType
|
||||||
*/
|
*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { HistoryPostType } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { HistoryPostType } from "@/modules/02_organization/interface/index/Main";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponrnts
|
* importComponrnts
|
||||||
|
|
@ -8,7 +8,7 @@ import config from "@/app.config";
|
||||||
* import Type
|
* import Type
|
||||||
*/
|
*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { HistoryPos } from "@/modules/02_organizationalNew/interface/response/organizational";
|
import type { HistoryPos } from "@/modules/02_organization/interface/response/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* import Components
|
* import Components
|
||||||
|
|
@ -19,7 +19,7 @@ import Header from "@/components/DialogHeader.vue";
|
||||||
* import Store
|
* import Store
|
||||||
*/
|
*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/** Use*/
|
/** Use*/
|
||||||
const store = useOrganizational();
|
const store = useOrganizational();
|
||||||
|
|
@ -11,13 +11,13 @@ import type { QTableProps } from "quasar";
|
||||||
import type {
|
import type {
|
||||||
OrgTree,
|
OrgTree,
|
||||||
PosMaster2,
|
PosMaster2,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
import type { NewPagination } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { NewPagination } from "@/modules/02_organization/interface/index/Main";
|
||||||
import type {
|
import type {
|
||||||
MovePos,
|
MovePos,
|
||||||
FilterMaster,
|
FilterMaster,
|
||||||
} from "@/modules/02_organizationalNew/interface/request/organizational";
|
} from "@/modules/02_organization/interface/request/organizational";
|
||||||
import type { DataTree } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { DataTree } from "@/modules/02_organization/interface/index/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
|
|
@ -28,7 +28,7 @@ import HeaderDialog from "@/components/DialogHeader.vue";
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use
|
* use
|
||||||
|
|
@ -12,7 +12,7 @@ import type {
|
||||||
FormNewStructureRef,
|
FormNewStructureRef,
|
||||||
DataOption,
|
DataOption,
|
||||||
HistoryType,
|
HistoryType,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/Main";
|
} from "@/modules/02_organization/interface/index/Main";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
@ -21,7 +21,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use
|
* use
|
||||||
|
|
@ -5,7 +5,7 @@ import { useQuasar } from "quasar";
|
||||||
/**
|
/**
|
||||||
* import type
|
* import type
|
||||||
*/
|
*/
|
||||||
import type { FormDetailPosition } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { FormDetailPosition } from "@/modules/02_organization/interface/index/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
|
|
@ -15,7 +15,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
/**
|
/**
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use
|
* use
|
||||||
|
|
@ -12,17 +12,17 @@ import type {
|
||||||
Position,
|
Position,
|
||||||
SeaechResult,
|
SeaechResult,
|
||||||
FormPositionFilter,
|
FormPositionFilter,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/organizational";
|
} from "@/modules/02_organization/interface/index/organizational";
|
||||||
import type {
|
import type {
|
||||||
DataOption,
|
DataOption,
|
||||||
NewPagination,
|
NewPagination,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/Main";
|
} from "@/modules/02_organization/interface/index/Main";
|
||||||
import type {
|
import type {
|
||||||
OptionType,
|
OptionType,
|
||||||
OptionLevel,
|
OptionLevel,
|
||||||
SelectPerson,
|
SelectPerson,
|
||||||
TypePos,
|
TypePos,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importCompoonents
|
* importCompoonents
|
||||||
|
|
@ -33,7 +33,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
* import*Store
|
* import*Store
|
||||||
*/
|
*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use
|
* use
|
||||||
|
|
@ -8,7 +8,7 @@ import config from "@/app.config";
|
||||||
* importType
|
* importType
|
||||||
*/
|
*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { DataSortAgency } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { DataSortAgency } from "@/modules/02_organization/interface/index/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
|
|
@ -19,7 +19,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use
|
* use
|
||||||
|
|
@ -8,7 +8,7 @@ import config from "@/app.config";
|
||||||
* importType
|
* importType
|
||||||
*/
|
*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { DataSortPos } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { DataSortPos } from "@/modules/02_organization/interface/index/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
|
|
@ -19,7 +19,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* use
|
* use
|
||||||
|
|
@ -7,7 +7,7 @@ import config from "@/app.config";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
|
|
@ -6,23 +6,23 @@ import config from "@/app.config";
|
||||||
|
|
||||||
/** importType*/
|
/** importType*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { NewPagination } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { NewPagination } from "@/modules/02_organization/interface/index/Main";
|
||||||
import type { DataTree } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { DataTree } from "@/modules/02_organization/interface/index/organizational";
|
||||||
import type {
|
import type {
|
||||||
OrgTree,
|
OrgTree,
|
||||||
PosMaster,
|
PosMaster,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
import type {
|
import type {
|
||||||
FilterMaster,
|
FilterMaster,
|
||||||
Inherit,
|
Inherit,
|
||||||
} from "@/modules/02_organizationalNew/interface/request/organizational";
|
} from "@/modules/02_organization/interface/request/organizational";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import Header from "@/components/DialogHeader.vue";
|
import Header from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
/** use*/
|
/** use*/
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
|
@ -8,7 +8,7 @@ import config from "@/app.config";
|
||||||
import { StructChart } from "structure-chart";
|
import { StructChart } from "structure-chart";
|
||||||
import "structure-chart/structure-chart.css";
|
import "structure-chart/structure-chart.css";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
|
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const store = useOrganizational();
|
const store = useOrganizational();
|
||||||
|
|
@ -5,18 +5,18 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
/** importType*/
|
/** importType*/
|
||||||
import type { ListMenu } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { ListMenu } from "@/modules/02_organization/interface/index/Main";
|
||||||
import type { OrgTree } from "@/modules/02_organizationalNew/interface/response/organizational";
|
import type { OrgTree } from "@/modules/02_organization/interface/response/organizational";
|
||||||
import type { DataTree } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { DataTree } from "@/modules/02_organization/interface/index/organizational";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import DialogAgency from "@/modules/02_organizationalNew/components/DialogFormAgency.vue";
|
import DialogAgency from "@/modules/02_organization/components/DialogFormAgency.vue";
|
||||||
import DialogStructureDetail from "@/modules/02_organizationalNew/components/DialogStructureDetail.vue";
|
import DialogStructureDetail from "@/modules/02_organization/components/DialogStructureDetail.vue";
|
||||||
import DialogSortAgency from "@/modules/02_organizationalNew/components/DialogSortAgency.vue";
|
import DialogSortAgency from "@/modules/02_organization/components/DialogSortAgency.vue";
|
||||||
import DialogHistory from "@/modules/02_organizationalNew/components/DialogHistory.vue";
|
import DialogHistory from "@/modules/02_organization/components/DialogHistory.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
/** use*/
|
/** use*/
|
||||||
|
|
@ -10,25 +10,25 @@ import type { QTableProps } from "quasar";
|
||||||
import type {
|
import type {
|
||||||
ListMenu,
|
ListMenu,
|
||||||
NewPagination,
|
NewPagination,
|
||||||
} from "@/modules/02_organizationalNew/interface/index/Main";
|
} from "@/modules/02_organization/interface/index/Main";
|
||||||
import type { FilterMaster } from "@/modules/02_organizationalNew/interface/request/organizational";
|
import type { FilterMaster } from "@/modules/02_organization/interface/request/organizational";
|
||||||
import type {
|
import type {
|
||||||
PosMaster2,
|
PosMaster2,
|
||||||
OrgTree,
|
OrgTree,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
import type { DataPosition } from "@/modules/02_organizationalNew/interface/index/organizational";
|
import type { DataPosition } from "@/modules/02_organization/interface/index/organizational";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import DialogFormPosotion from "@/modules/02_organizationalNew/components/DialogFormPosition.vue";
|
import DialogFormPosotion from "@/modules/02_organization/components/DialogFormPosition.vue";
|
||||||
import DialogPositionDetail from "@/modules/02_organizationalNew/components/DialogPositionDetail.vue";
|
import DialogPositionDetail from "@/modules/02_organization/components/DialogPositionDetail.vue";
|
||||||
import DialogSort from "@/modules/02_organizationalNew/components/DialogSortPosition.vue";
|
import DialogSort from "@/modules/02_organization/components/DialogSortPosition.vue";
|
||||||
import DialogMovePos from "@/modules/02_organizationalNew/components/DialogMovePos.vue";
|
import DialogMovePos from "@/modules/02_organization/components/DialogMovePos.vue";
|
||||||
import DialogHistoryPos from "@/modules/02_organizationalNew/components/DialogHistoryPos.vue";
|
import DialogHistoryPos from "@/modules/02_organization/components/DialogHistoryPos.vue";
|
||||||
import DialogSelectPerson from "@/modules/02_organizationalNew/components/DialogSelectPerson.vue";
|
import DialogSelectPerson from "@/modules/02_organization/components/DialogSelectPerson.vue";
|
||||||
import DialogSuccession from "@/modules/02_organizationalNew/components/DialogSuccession.vue";
|
import DialogSuccession from "@/modules/02_organization/components/DialogSuccession.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
|
@ -10,15 +10,15 @@ import type {
|
||||||
PosMaster,
|
PosMaster,
|
||||||
Position,
|
Position,
|
||||||
PosMaster2,
|
PosMaster2,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
import type { FilterMaster } from "@/modules/02_organizationalNew/interface/request/organizational";
|
import type { FilterMaster } from "@/modules/02_organization/interface/request/organizational";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import TreeMain from "@/modules/02_organizationalNew/components/TreeMain.vue";
|
import TreeMain from "@/modules/02_organization/components/TreeMain.vue";
|
||||||
import TreeTable from "@/modules/02_organizationalNew/components/TreeTable.vue";
|
import TreeTable from "@/modules/02_organization/components/TreeTable.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
/** use*/
|
/** use*/
|
||||||
14
src/modules/02_organization/router.ts
Normal file
14
src/modules/02_organization/router.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
const mainPage = () => import("@/modules/02_organization/views/main.vue");
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
path: "/organization",
|
||||||
|
name: "organizationalNew",
|
||||||
|
component: mainPage,
|
||||||
|
meta: {
|
||||||
|
Auth: true,
|
||||||
|
Key: "SYS_ORG",
|
||||||
|
Role: "STAFF",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
@ -6,7 +6,7 @@ import type {
|
||||||
DataActive,
|
DataActive,
|
||||||
SumPosition,
|
SumPosition,
|
||||||
PosMaster,
|
PosMaster,
|
||||||
} from "@/modules/02_organizationalNew/interface/response/organizational";
|
} from "@/modules/02_organization/interface/response/organizational";
|
||||||
|
|
||||||
export const useOrganizational = defineStore("organizationalStore", () => {
|
export const useOrganizational = defineStore("organizationalStore", () => {
|
||||||
const typeOrganizational = ref<string>("current");
|
const typeOrganizational = ref<string>("current");
|
||||||
|
|
@ -77,8 +77,8 @@ export const useOrganizational = defineStore("organizationalStore", () => {
|
||||||
posMasterNo:
|
posMasterNo:
|
||||||
e.orgShortname +
|
e.orgShortname +
|
||||||
(e.posMasterNoPrefix ? e.posMasterNoPrefix : "") +
|
(e.posMasterNoPrefix ? e.posMasterNoPrefix : "") +
|
||||||
(e.posMasterNo?e.posMasterNo:"") +
|
(e.posMasterNo ? e.posMasterNo : "") +
|
||||||
(e.posMasterNoSuffix?e.posMasterNoSuffix:""),
|
(e.posMasterNoSuffix ? e.posMasterNoSuffix : ""),
|
||||||
positionName: e.isSit ? e.profilePosition : e.positionName,
|
positionName: e.isSit ? e.profilePosition : e.positionName,
|
||||||
posTypeName: e.isSit ? e.profilePostype : e.posTypeName,
|
posTypeName: e.isSit ? e.profilePostype : e.posTypeName,
|
||||||
posLevelName: e.isSit ? e.profilePoslevel : e.posLevelName,
|
posLevelName: e.isSit ? e.profilePoslevel : e.posLevelName,
|
||||||
|
|
@ -4,11 +4,11 @@ import { useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { ListMenu } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { ListMenu } from "@/modules/02_organization/interface/index/Main";
|
||||||
import type { OrgTree } from "@/modules/02_organizationalNew/interface/response/organizational";
|
import type { OrgTree } from "@/modules/02_organization/interface/response/organizational";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const store = useOrganizational();
|
const store = useOrganizational();
|
||||||
|
|
@ -45,7 +45,7 @@ const breakLoop = ref<boolean>(false);
|
||||||
const dataObject = ref([]);
|
const dataObject = ref([]);
|
||||||
async function onSort(orgRootId: string) {
|
async function onSort(orgRootId: string) {
|
||||||
if (orgRootId) {
|
if (orgRootId) {
|
||||||
idVal.value = 'children => '+orgRootId;
|
idVal.value = "children => " + orgRootId;
|
||||||
breakLoop.value = false;
|
breakLoop.value = false;
|
||||||
|
|
||||||
const targetNodeId = orgRootId;
|
const targetNodeId = orgRootId;
|
||||||
|
|
@ -56,7 +56,7 @@ async function onSort(orgRootId: string) {
|
||||||
if (breakLoop.value) break;
|
if (breakLoop.value) break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
idVal.value = 'root';
|
idVal.value = "root";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -7,21 +7,21 @@ import config from "@/app.config";
|
||||||
/**
|
/**
|
||||||
* importType
|
* importType
|
||||||
*/
|
*/
|
||||||
import type { DataOption } from "@/modules/02_organizationalNew/interface/index/Main";
|
import type { DataOption } from "@/modules/02_organization/interface/index/Main";
|
||||||
import type { OrgRevision } from "@/modules/02_organizationalNew/interface/response/organizational";
|
import type { OrgRevision } from "@/modules/02_organization/interface/response/organizational";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
*/
|
*/
|
||||||
import TreeView from "@/modules/02_organizationalNew/components/TreeView.vue";
|
import TreeView from "@/modules/02_organization/components/TreeView.vue";
|
||||||
import StructureView from "@/modules/02_organizationalNew/components/StructureMain.vue";
|
import StructureView from "@/modules/02_organization/components/StructureMain.vue";
|
||||||
import DialogFormNewStructure from "@/modules/02_organizationalNew/components/DialogNewStructure.vue";
|
import DialogFormNewStructure from "@/modules/02_organization/components/DialogNewStructure.vue";
|
||||||
import DialogDateTime from "@/modules/02_organizationalNew/components/DialogFormDateTime.vue";
|
import DialogDateTime from "@/modules/02_organization/components/DialogFormDateTime.vue";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
import { useOrganizational } from "@/modules/02_organization/store/organizational";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
const mainPage = () => import("@/modules/02_organizationalNew/views/main.vue");
|
|
||||||
|
|
||||||
export default [
|
|
||||||
{
|
|
||||||
path: "/organization-new",
|
|
||||||
name: "organizationalNew",
|
|
||||||
component: mainPage,
|
|
||||||
meta: {
|
|
||||||
Auth: true,
|
|
||||||
Key: [7],
|
|
||||||
Role: "organization",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
const listPage = () => import("@/modules/04_registryNew/views/list.vue");
|
|
||||||
const detailPage = () =>
|
|
||||||
import("@/modules/04_registryNew/views/detailView.vue");
|
|
||||||
|
|
||||||
const requestEdit = () =>
|
|
||||||
import("@/modules/04_registryNew/views/requestEdit.vue");
|
|
||||||
|
|
||||||
export default [
|
|
||||||
{
|
|
||||||
path: "/registry-new",
|
|
||||||
name: "registryNew",
|
|
||||||
component: listPage,
|
|
||||||
meta: {
|
|
||||||
Auth: true,
|
|
||||||
Key: [7],
|
|
||||||
Role: "registry",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/registry-new/:id",
|
|
||||||
name: "registryNewByid",
|
|
||||||
component: detailPage,
|
|
||||||
meta: {
|
|
||||||
Auth: true,
|
|
||||||
Key: [7],
|
|
||||||
Role: "registry",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/registry-new-employee/:id",
|
|
||||||
name: "registryNewEmployeeByid",
|
|
||||||
component: detailPage,
|
|
||||||
meta: {
|
|
||||||
Auth: true,
|
|
||||||
Key: [7],
|
|
||||||
Role: "registry",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/registry-new/request-edit",
|
|
||||||
name: "registryNewRequestEdit",
|
|
||||||
component: requestEdit,
|
|
||||||
meta: {
|
|
||||||
Auth: true,
|
|
||||||
Key: [7],
|
|
||||||
Role: "registry",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
@ -4,17 +4,17 @@ import { useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { DataOption } from "@/modules/04_registryNew/interface/index/Main";
|
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
import type { DataType } from "@/modules/04_registryNew/interface/response/Main";
|
import type { DataType } from "@/modules/04_registryPerson/interface/response/Main";
|
||||||
import type {
|
import type {
|
||||||
FormAddPerson,
|
FormAddPerson,
|
||||||
MyObjectRef,
|
MyObjectRef,
|
||||||
} from "@/modules/04_registryNew/interface/request/Main";
|
} from "@/modules/04_registryPerson/interface/request/Main";
|
||||||
import { useProfileDataStore } from "@/modules/04_registryNew/stores/profile";
|
import { useProfileDataStore } from "@/modules/04_registryPerson/stores/profile";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useRegistryNewDataStore } from "@/modules/04_registryNew/store";
|
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const profileStore = useProfileDataStore();
|
const profileStore = useProfileDataStore();
|
||||||
|
|
@ -10,11 +10,11 @@ import config from "@/app.config";
|
||||||
*/
|
*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { QForm } from "quasar";
|
import type { QForm } from "quasar";
|
||||||
import type { DataOption } from "@/modules/04_registryNew/interface/index/Main";
|
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
import type {
|
import type {
|
||||||
HistoryPos,
|
HistoryPos,
|
||||||
Position,
|
Position,
|
||||||
} from "@/modules/04_registryNew/interface/response/History";
|
} from "@/modules/04_registryPerson/interface/response/History";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* import components
|
* import components
|
||||||
|
|
@ -253,9 +253,7 @@ function filterFn(val: string, update: Function) {
|
||||||
*/
|
*/
|
||||||
function clickRedirect(id: string) {
|
function clickRedirect(id: string) {
|
||||||
const url =
|
const url =
|
||||||
employeeClass.value === "officer"
|
employeeClass.value === "officer" ? "registry-person" : "registry-employee";
|
||||||
? "registry-new"
|
|
||||||
: "registry-new-employee";
|
|
||||||
router.push(`${url}/${id}`);
|
router.push(`${url}/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4,14 +4,14 @@ import { useRouter } from "vue-router";
|
||||||
|
|
||||||
/** importType*/
|
/** importType*/
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { FormFilter } from "@/modules/04_registryNew/interface/request/Main";
|
import type { FormFilter } from "@/modules/04_registryPerson/interface/request/Main";
|
||||||
|
|
||||||
/** importComponent*/
|
/** importComponent*/
|
||||||
import DialogAddData from "@/modules/04_registryNew/components/DialogAddData.vue";
|
import DialogAddData from "@/modules/04_registryPerson/components/DialogAddData.vue";
|
||||||
import DialogHistory from "@/modules/04_registryNew/components/DialogHistory.vue";
|
import DialogHistory from "@/modules/04_registryPerson/components/DialogHistory.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useRegistryNewDataStore } from "@/modules/04_registryNew/store";
|
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
||||||
|
|
||||||
const store = useRegistryNewDataStore();
|
const store = useRegistryNewDataStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
@ -172,9 +172,9 @@ function onClickHistory() {
|
||||||
|
|
||||||
function onClickViewDetail(id: string) {
|
function onClickViewDetail(id: string) {
|
||||||
if (empType.value === "officer") {
|
if (empType.value === "officer") {
|
||||||
router.push(`/registry-new/${id}`);
|
router.push(`/registry-person/${id}`);
|
||||||
} else {
|
} else {
|
||||||
router.push(`/registry-new-employee/${id}`);
|
router.push(`/registry-employee/${id}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -182,7 +182,7 @@ function onClickViewDetail(id: string) {
|
||||||
* function redirect ไปหน้ารายการคำร้องขอแก้ไขข้อมูล
|
* function redirect ไปหน้ารายการคำร้องขอแก้ไขข้อมูล
|
||||||
*/
|
*/
|
||||||
function redirectToPagePetition() {
|
function redirectToPagePetition() {
|
||||||
router.push(`/registry-new/request-edit`);
|
router.push(`/registry-person/request-edit`);
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|
@ -5,8 +5,8 @@ import type { QTableProps } from "quasar";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { QForm, useQuasar } from "quasar";
|
import { QForm, useQuasar } from "quasar";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/ProfesLicense";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/ProfesLicense";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/ProfesLicense";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/ProfesLicense";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
|
|
@ -491,7 +491,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -4,8 +4,8 @@ import dialogHeader from "@/components/DialogHeader.vue";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/Training";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/Training";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/Training";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/Training";
|
||||||
import { QForm, useQuasar } from "quasar";
|
import { QForm, useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
@ -636,7 +636,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -7,15 +7,15 @@ import config from "@/app.config";
|
||||||
import type { QTableProps, QForm } from "quasar";
|
import type { QTableProps, QForm } from "quasar";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useInsigniaDataStore } from "@/modules/04_registryNew/stores/insignia";
|
import { useInsigniaDataStore } from "@/modules/04_registryPerson/stores/insignia";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import type {
|
import type {
|
||||||
DataOption,
|
DataOption,
|
||||||
DataOptionInsignia,
|
DataOptionInsignia,
|
||||||
InsigniaOps,
|
InsigniaOps,
|
||||||
} from "@/modules/04_registryNew/interface/index/Main";
|
} from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/Insignia";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/Insignia";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/Insignia";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/Insignia";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -749,7 +749,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -1120,7 +1119,7 @@ onMounted(async () => {
|
||||||
tittle="ประวัติแก้ไขเครื่องราชอิสริยาภรณ์"
|
tittle="ประวัติแก้ไขเครื่องราชอิสริยาภรณ์"
|
||||||
:close="() => (modalHistory = false)"
|
:close="() => (modalHistory = false)"
|
||||||
/>
|
/>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<q-card-section style="max-height: 60vh" class="scroll">
|
<q-card-section style="max-height: 60vh" class="scroll">
|
||||||
<div class="row q-gutter-sm q-mb-sm">
|
<div class="row q-gutter-sm q-mb-sm">
|
||||||
|
|
@ -8,8 +8,8 @@ import type { QTableProps, QForm } from "quasar";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/DeclarationHonor";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/DeclarationHonor";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/DeclarationHonor";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/DeclarationHonor";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -479,7 +479,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -7,11 +7,11 @@ import config from "@/app.config";
|
||||||
import type { QTableProps, QForm } from "quasar";
|
import type { QTableProps, QForm } from "quasar";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useResultsPerformDataStore } from "@/modules/04_registryNew/stores/ResultsPerformance";
|
import { useResultsPerformDataStore } from "@/modules/04_registryPerson/stores/ResultsPerformance";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/ResultsPerformance";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/ResultsPerformance";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/ResultsPerformance";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/ResultsPerformance";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -551,7 +551,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import ProfessionalLicense from "@/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue";
|
import ProfessionalLicense from "@/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue";
|
||||||
import Train from "@/modules/04_registryNew/components/detail/Achievement/02_Train.vue";
|
import Train from "@/modules/04_registryPerson/components/detail/Achievement/02_Train.vue";
|
||||||
import Insignia from "@/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue";
|
import Insignia from "@/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue";
|
||||||
import DeclarationHonor from "@/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue";
|
import DeclarationHonor from "@/modules/04_registryPerson/components/detail/Achievement/04_DeclarationHonor.vue";
|
||||||
import ResultsPerformance from "@/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue";
|
import ResultsPerformance from "@/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue";
|
||||||
|
|
||||||
const tab = ref<string>("1");
|
const tab = ref<string>("1");
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -14,20 +14,22 @@ const tab = ref<string>("1");
|
||||||
<div class="row items-center q-my-md">
|
<div class="row items-center q-my-md">
|
||||||
<div class="text-dark row items-center q-px-md">
|
<div class="text-dark row items-center q-px-md">
|
||||||
<q-icon name="mdi-account" class="q-mr-md" size="22px" />
|
<q-icon name="mdi-account" class="q-mr-md" size="22px" />
|
||||||
<div class="text-subtitle1 text-weight-bold">ข้อมูลผลงานและเครื่องราชฯ</div>
|
<div class="text-subtitle1 text-weight-bold">
|
||||||
|
ข้อมูลผลงานและเครื่องราชฯ
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-tabs
|
<q-tabs
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
active-color="blue-8"
|
active-color="blue-8"
|
||||||
align="left"
|
align="left"
|
||||||
bordered
|
bordered
|
||||||
narrow-indicator
|
narrow-indicator
|
||||||
indicator-color="transparent"
|
indicator-color="transparent"
|
||||||
dense
|
dense
|
||||||
class="text-grey q-pl-sm"
|
class="text-grey q-pl-sm"
|
||||||
>
|
>
|
||||||
<q-tab name="1" label="ใบอนุญาตประกอบวิชาชีพ" />
|
<q-tab name="1" label="ใบอนุญาตประกอบวิชาชีพ" />
|
||||||
<q-tab name="2" label="การฝึกอบรม/ดูงาน" />
|
<q-tab name="2" label="การฝึกอบรม/ดูงาน" />
|
||||||
|
|
@ -5,11 +5,11 @@ import { useRoute } from "vue-router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { FormEmployee } from "@/modules/04_registryNew/interface/request/Employee";
|
import type { FormEmployee } from "@/modules/04_registryPerson/interface/request/Employee";
|
||||||
import type {
|
import type {
|
||||||
EmployeeHistory,
|
EmployeeHistory,
|
||||||
ResEmployee,
|
ResEmployee,
|
||||||
} from "@/modules/04_registryNew/interface/response/Employee";
|
} from "@/modules/04_registryPerson/interface/response/Employee";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
|
|
@ -9,8 +9,8 @@ import type { QTableProps } from "quasar";
|
||||||
import type {
|
import type {
|
||||||
Employment,
|
Employment,
|
||||||
EmploymentHistory,
|
EmploymentHistory,
|
||||||
} from "@/modules/04_registryNew/interface/response/Employee";
|
} from "@/modules/04_registryPerson/interface/response/Employee";
|
||||||
import type { FormEmployment } from "@/modules/04_registryNew/interface/request/Employee";
|
import type { FormEmployment } from "@/modules/04_registryPerson/interface/request/Employee";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
|
|
@ -294,7 +294,6 @@ onMounted(() => {
|
||||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<span class="text-weight-medium">{{ col.label }}</span>
|
<span class="text-weight-medium">{{ col.label }}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
|
|
@ -340,7 +339,6 @@ onMounted(() => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
</d-table>
|
</d-table>
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
import DataEmployee from "@/modules/04_registryNew/components/detail/Employee/01_DataEmployee.vue";
|
import DataEmployee from "@/modules/04_registryPerson/components/detail/Employee/01_DataEmployee.vue";
|
||||||
import Employment from "@/modules/04_registryNew/components/detail/Employee/02_Employment.vue";
|
import Employment from "@/modules/04_registryPerson/components/detail/Employee/02_Employment.vue";
|
||||||
|
|
||||||
const tab = ref<string>("1");
|
const tab = ref<string>("1");
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -4,7 +4,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
||||||
import type {
|
import type {
|
||||||
RequestItemsHistoryObject,
|
RequestItemsHistoryObject,
|
||||||
FormMain,
|
FormMain,
|
||||||
} from "@/modules/04_registryNew/interface/index/government";
|
} from "@/modules/04_registryPerson/interface/index/government";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
|
@ -6,13 +6,13 @@ import type {
|
||||||
FormFilter,
|
FormFilter,
|
||||||
DataOption,
|
DataOption,
|
||||||
DisciplineOps,
|
DisciplineOps,
|
||||||
} from "@/modules/04_registryNew/interface/index/discipline";
|
} from "@/modules/04_registryPerson/interface/index/discipline";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import DialogHistory from "@/modules/04_registryNew/components/detail/GovernmentInformation/02_DisciplineHistory.vue";
|
import DialogHistory from "@/modules/04_registryPerson/components/detail/GovernmentInformation/02_DisciplineHistory.vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -496,7 +496,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -11,7 +11,7 @@ import config from "@/app.config";
|
||||||
import type {
|
import type {
|
||||||
RequestItemsObject,
|
RequestItemsObject,
|
||||||
FormFilter,
|
FormFilter,
|
||||||
} from "@/modules/04_registryNew/interface/index/discipline";
|
} from "@/modules/04_registryPerson/interface/index/discipline";
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
const id = defineModel<string>("id", { required: true });
|
const id = defineModel<string>("id", { required: true });
|
||||||
|
|
@ -12,9 +12,9 @@ import type {
|
||||||
DataOption,
|
DataOption,
|
||||||
ResponseTotalObject,
|
ResponseTotalObject,
|
||||||
MyObjectRef,
|
MyObjectRef,
|
||||||
} from "@/modules/04_registryNew/interface/index/leave";
|
} from "@/modules/04_registryPerson/interface/index/leave";
|
||||||
|
|
||||||
import DialogHistory from "@/modules/04_registryNew/components/detail/GovernmentInformation/03_LeaveHistory.vue";
|
import DialogHistory from "@/modules/04_registryPerson/components/detail/GovernmentInformation/03_LeaveHistory.vue";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
|
|
@ -602,7 +602,6 @@ onMounted(() => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -11,7 +11,7 @@ import config from "@/app.config";
|
||||||
import type {
|
import type {
|
||||||
DetailData,
|
DetailData,
|
||||||
FormFilter,
|
FormFilter,
|
||||||
} from "@/modules/04_registryNew/interface/index/leave";
|
} from "@/modules/04_registryPerson/interface/index/leave";
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
const id = defineModel<string>("id", { required: true });
|
const id = defineModel<string>("id", { required: true });
|
||||||
|
|
@ -4,7 +4,7 @@ import { useQuasar, type QTableProps } from "quasar";
|
||||||
import type {
|
import type {
|
||||||
FormFilter,
|
FormFilter,
|
||||||
RequestItemsObject,
|
RequestItemsObject,
|
||||||
} from "@/modules/04_registryNew/interface/index/performSpecialWork";
|
} from "@/modules/04_registryPerson/interface/index/performSpecialWork";
|
||||||
|
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
@ -12,7 +12,7 @@ import config from "@/app.config";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import DialogHistory from "@/modules/04_registryNew/components/detail/GovernmentInformation/04_PerformSpecialWorkHistory.vue";
|
import DialogHistory from "@/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWorkHistory.vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -453,7 +453,6 @@ onMounted(async () => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -10,7 +10,7 @@ import config from "@/app.config";
|
||||||
import type {
|
import type {
|
||||||
FormFilter,
|
FormFilter,
|
||||||
ResponseObject,
|
ResponseObject,
|
||||||
} from "@/modules/04_registryNew/interface/index/performSpecialWork";
|
} from "@/modules/04_registryPerson/interface/index/performSpecialWork";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import Info from "@/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue";
|
import Info from "@/modules/04_registryPerson/components/detail/GovernmentInformation/01_Info.vue";
|
||||||
import Discipline from "@/modules/04_registryNew/components/detail/GovernmentInformation/02_Discipline.vue";
|
import Discipline from "@/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue";
|
||||||
import Leave from "@/modules/04_registryNew/components/detail/GovernmentInformation/03_Leave.vue";
|
import Leave from "@/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue";
|
||||||
import PerformSpecialWork from "@/modules/04_registryNew/components/detail/GovernmentInformation/04_PerformSpecialWork.vue";
|
import PerformSpecialWork from "@/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWork.vue";
|
||||||
|
|
||||||
const tab = ref<string>("1");
|
const tab = ref<string>("1");
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -5,14 +5,14 @@ import type {
|
||||||
RowList,
|
RowList,
|
||||||
FormFilter,
|
FormFilter,
|
||||||
MyObjectRef,
|
MyObjectRef,
|
||||||
} from "@/modules/04_registryNew/interface/index/other";
|
} from "@/modules/04_registryPerson/interface/index/other";
|
||||||
|
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import DialogHistory from "@/modules/04_registryNew/components/detail/Other/01_OtherInformationHistory.vue";
|
import DialogHistory from "@/modules/04_registryPerson/components/detail/Other/01_OtherInformationHistory.vue";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
|
|
@ -344,7 +344,6 @@ onMounted(() => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -5,7 +5,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useQuasar, type QTableProps } from "quasar";
|
import { useQuasar, type QTableProps } from "quasar";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
import type { RowList } from "@/modules/04_registryNew/interface/index/other";
|
import type { RowList } from "@/modules/04_registryPerson/interface/index/other";
|
||||||
|
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
@ -13,7 +13,7 @@ import config from "@/app.config";
|
||||||
import type {
|
import type {
|
||||||
RequestItemsObject,
|
RequestItemsObject,
|
||||||
FormFilter,
|
FormFilter,
|
||||||
} from "@/modules/04_registryNew/interface/index/discipline";
|
} from "@/modules/04_registryPerson/interface/index/discipline";
|
||||||
|
|
||||||
const modal = defineModel<boolean>("modal", { required: true });
|
const modal = defineModel<boolean>("modal", { required: true });
|
||||||
const id = defineModel<string>("id", { required: true });
|
const id = defineModel<string>("id", { required: true });
|
||||||
|
|
@ -6,7 +6,7 @@ import config from "@/app.config";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import type { ArrayFileList } from "@/modules/04_registryNew/interface/index/document";
|
import type { ArrayFileList } from "@/modules/04_registryPerson/interface/index/document";
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
|
|
@ -26,7 +26,7 @@ const profileId = ref<string>(
|
||||||
);
|
);
|
||||||
|
|
||||||
async function getData() {
|
async function getData() {
|
||||||
showLoader()
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(
|
.get(
|
||||||
config.API.file("ระบบทะเบียนประวัติ", "เอกสารหลักฐาน", profileId.value)
|
config.API.file("ระบบทะเบียนประวัติ", "เอกสารหลักฐาน", profileId.value)
|
||||||
|
|
@ -38,7 +38,7 @@ async function getData() {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader()
|
hideLoader();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import OtherInformation from "@/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue";
|
import OtherInformation from "@/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue";
|
||||||
import Documentipline from "@/modules/04_registryNew/components/detail/Other/02_Document.vue";
|
import Documentipline from "@/modules/04_registryPerson/components/detail/Other/02_Document.vue";
|
||||||
|
|
||||||
const tab = ref<string>("1");
|
const tab = ref<string>("1");
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -7,10 +7,10 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useProfileDataStore } from "@/modules/04_registryNew/stores/profile";
|
import { useProfileDataStore } from "@/modules/04_registryPerson/stores/profile";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import type { RequestObject } from "@/modules/04_registryNew/interface/request/Profile";
|
import type { RequestObject } from "@/modules/04_registryPerson/interface/request/Profile";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/Profile";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/Profile";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -9,9 +9,9 @@ import config from "@/app.config";
|
||||||
import dialogHeader from "@/components/DialogHeader.vue";
|
import dialogHeader from "@/components/DialogHeader.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import type { ResponseObject } from "@/components/information/interface/response/OldName";
|
import type { ResponseObject } from "@/components/information/interface/response/OldName";
|
||||||
import type { Pagination } from "@/modules/04_registryNew/interface/index/Main";
|
import type { Pagination } from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
import type { RequestItemsObject } from "@/components/information/interface/request/OldName";
|
import type { RequestItemsObject } from "@/components/information/interface/request/OldName";
|
||||||
import { useProfileDataStore } from "@/modules/04_registryNew/stores/profile";
|
import { useProfileDataStore } from "@/modules/04_registryPerson/stores/profile";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -8,10 +8,10 @@ import config from "@/app.config";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useAddressDataStore } from "@/modules/04_registryNew/stores/Address";
|
import { useAddressDataStore } from "@/modules/04_registryPerson/stores/Address";
|
||||||
|
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/Address";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/Address";
|
||||||
import type { RequestObject } from "@/modules/04_registryNew/interface/request/Address";
|
import type { RequestObject } from "@/modules/04_registryPerson/interface/request/Address";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const store = useAddressDataStore();
|
const store = useAddressDataStore();
|
||||||
|
|
@ -6,7 +6,7 @@ import { QForm, useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { useProfileDataStore } from "@/modules/04_registryNew/stores/profile";
|
import { useProfileDataStore } from "@/modules/04_registryPerson/stores/profile";
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const {
|
const {
|
||||||
|
|
@ -6,15 +6,15 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { DataOption } from "@/modules/04_registryNew/interface/index/Main";
|
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
import type {
|
import type {
|
||||||
FormPerson,
|
FormPerson,
|
||||||
FormChildren,
|
FormChildren,
|
||||||
} from "@/modules/04_registryNew/interface/index/family";
|
} from "@/modules/04_registryPerson/interface/index/family";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
import { useProfileDataStore } from "@/modules/04_registryNew/stores/profile";
|
import { useProfileDataStore } from "@/modules/04_registryPerson/stores/profile";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
|
@ -4,8 +4,8 @@ import dialogHeader from "@/components/DialogHeader.vue";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/Education";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/Education";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/Education";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/Education";
|
||||||
import { QForm, useQuasar } from "quasar";
|
import { QForm, useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
@ -567,8 +567,13 @@ function editForm(row: any) {
|
||||||
educationData.durationYear = row.durationYear;
|
educationData.durationYear = row.durationYear;
|
||||||
educationData.note = row.note;
|
educationData.note = row.note;
|
||||||
educationData.startYear =
|
educationData.startYear =
|
||||||
row.isDate == "true" ? row.startDate.slice(0, 4) : new Date(row.startDate).getFullYear();
|
row.isDate == "true"
|
||||||
educationData.endYear = row.isDate == "true" ? row.endDate.slice(0, 4) : new Date(row.endDate).getFullYear();;
|
? row.startDate.slice(0, 4)
|
||||||
|
: new Date(row.startDate).getFullYear();
|
||||||
|
educationData.endYear =
|
||||||
|
row.isDate == "true"
|
||||||
|
? row.endDate.slice(0, 4)
|
||||||
|
: new Date(row.endDate).getFullYear();
|
||||||
dialog.value = true;
|
dialog.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -850,7 +855,6 @@ onMounted(async () => {
|
||||||
{{ col.value === "" || col.value === null ? "-" : col.value }}
|
{{ col.value === "" || col.value === null ? "-" : col.value }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -3,8 +3,8 @@ import { ref, reactive, onMounted } from "vue";
|
||||||
import { QForm, useQuasar } from "quasar";
|
import { QForm, useQuasar } from "quasar";
|
||||||
import dialogHeader from "@/components/DialogHeader.vue";
|
import dialogHeader from "@/components/DialogHeader.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/SpecialSkill";
|
import type { RequestItemsObject } from "@/modules/04_registryPerson/interface/request/SpecialSkill";
|
||||||
import type { ResponseObject } from "@/modules/04_registryNew/interface/response/SpecialSkill";
|
import type { ResponseObject } from "@/modules/04_registryPerson/interface/response/SpecialSkill";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
|
@ -444,7 +444,6 @@ onMounted(async () => {
|
||||||
<q-td v-for="col in props.cols" :key="col.id">
|
<q-td v-for="col in props.cols" :key="col.id">
|
||||||
<div>{{ col.value ? col.value : "-" }}</div>
|
<div>{{ col.value ? col.value : "-" }}</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item="props" v-else>
|
<template v-slot:item="props" v-else>
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import Profile from "@/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue";
|
import Profile from "@/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue";
|
||||||
import NameChangeHistory from "@/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue";
|
import NameChangeHistory from "@/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue";
|
||||||
import Address from "@/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue";
|
import Address from "@/modules/04_registryPerson/components/detail/PersonalInformation/03_Address.vue";
|
||||||
import Family from "@/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue";
|
import Family from "@/modules/04_registryPerson/components/detail/PersonalInformation/04_Family.vue";
|
||||||
import Education from "@/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue";
|
import Education from "@/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue";
|
||||||
import SpecialSkill from "@/modules/04_registryNew/components/detail/PersonalInformation/06_SpecialSkill.vue";
|
import SpecialSkill from "@/modules/04_registryPerson/components/detail/PersonalInformation/06_SpecialSkill.vue";
|
||||||
|
|
||||||
import FamilyNew from "@/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue";
|
import FamilyNew from "@/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue";
|
||||||
|
|
||||||
const tab = ref<string>("1");
|
const tab = ref<string>("1");
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -47,7 +47,7 @@ const props = defineProps({
|
||||||
|
|
||||||
<q-tab-panels v-model="tab" animated>
|
<q-tab-panels v-model="tab" animated>
|
||||||
<q-tab-panel name="1">
|
<q-tab-panel name="1">
|
||||||
<Profile :fetchDataPersonal="props.fetchDataPersonal"/>
|
<Profile :fetchDataPersonal="props.fetchDataPersonal" />
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
<q-tab-panel name="2">
|
<q-tab-panel name="2">
|
||||||
<NameChangeHistory :fetchDataPersonal="props.fetchDataPersonal" />
|
<NameChangeHistory :fetchDataPersonal="props.fetchDataPersonal" />
|
||||||
|
|
@ -9,15 +9,15 @@ import type { QTableProps } from "quasar";
|
||||||
import type {
|
import type {
|
||||||
DataOption2,
|
DataOption2,
|
||||||
DataOption,
|
DataOption,
|
||||||
} from "@/modules/04_registryNew/interface/index/Main";
|
} from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
|
|
||||||
import type { FormSalaryNew } from "@/modules/04_registryNew/interface/request/Salary";
|
import type { FormSalaryNew } from "@/modules/04_registryPerson/interface/request/Salary";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import DialogHistory from "@/modules/04_registryNew/components/detail/Salary/01_PositionSalaryHistory.vue";
|
import DialogHistory from "@/modules/04_registryPerson/components/detail/Salary/01_PositionSalaryHistory.vue";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useSalaryDataStore } from "@/modules/04_registryNew/stores/salary";
|
import { useSalaryDataStore } from "@/modules/04_registryPerson/stores/salary";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -668,7 +668,6 @@ onMounted(() => {
|
||||||
{{ col.value ? col.value : "-" }}
|
{{ col.value ? col.value : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
</d-table>
|
</d-table>
|
||||||
|
|
@ -7,11 +7,11 @@ import config from "@/app.config";
|
||||||
|
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import DialogHisotory from "@/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalaryHistory.vue";
|
import DialogHisotory from "@/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalaryHistory.vue";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { RowList } from "@/modules/04_registryNew/interface/index/salary";
|
import type { RowList } from "@/modules/04_registryPerson/interface/index/salary";
|
||||||
import type { RequestNoPaidObject } from "@/modules/04_registryNew/interface/request/Salary";
|
import type { RequestNoPaidObject } from "@/modules/04_registryPerson/interface/request/Salary";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -7,7 +7,7 @@ import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
import type { RowList } from "@/modules/04_registryNew/interface/index/salary";
|
import type { RowList } from "@/modules/04_registryPerson/interface/index/salary";
|
||||||
|
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
/** importComponents*/
|
/** importComponents*/
|
||||||
import PositionSalary from "@/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue";
|
import PositionSalary from "@/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue";
|
||||||
import NotReceiveSalary from "@/modules/04_registryNew/components/detail/Salary/02_NotReceiveSalary.vue";
|
import NotReceiveSalary from "@/modules/04_registryPerson/components/detail/Salary/02_NotReceiveSalary.vue";
|
||||||
|
|
||||||
const tab = ref<string>("1");
|
const tab = ref<string>("1");
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
import { useRegistryDetailNewDataStore } from "@/modules/04_registryNew/stores/DetailMain";
|
import { useRegistryDetailNewDataStore } from "@/modules/04_registryPerson/stores/DetailMain";
|
||||||
|
|
||||||
import PersonalInformationMain from "@/modules/04_registryNew/components/detail/PersonalInformation/Main.vue";
|
import PersonalInformationMain from "@/modules/04_registryPerson/components/detail/PersonalInformation/Main.vue";
|
||||||
import GovernmentInformationMain from "@/modules/04_registryNew/components/detail/GovernmentInformation/Main.vue";
|
import GovernmentInformationMain from "@/modules/04_registryPerson/components/detail/GovernmentInformation/Main.vue";
|
||||||
import salaryMain from "@/modules/04_registryNew/components/detail/Salary/Main.vue";
|
import salaryMain from "@/modules/04_registryPerson/components/detail/Salary/Main.vue";
|
||||||
import AchievementMain from "@/modules/04_registryNew/components/detail/Achievement/Main.vue";
|
import AchievementMain from "@/modules/04_registryPerson/components/detail/Achievement/Main.vue";
|
||||||
import OtherMaim from "@/modules/04_registryNew/components/detail/Other/Main.vue";
|
import OtherMaim from "@/modules/04_registryPerson/components/detail/Other/Main.vue";
|
||||||
import EmployeeMain from "@/modules/04_registryNew/components/detail/Employee/Main.vue";
|
import EmployeeMain from "@/modules/04_registryPerson/components/detail/Employee/Main.vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
import type { DataOption } from "@/modules/04_registryNew/interface/index/Main";
|
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* importComponents
|
* importComponents
|
||||||
|
|
@ -14,7 +14,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
/**
|
/**
|
||||||
* importStore
|
* importStore
|
||||||
*/
|
*/
|
||||||
import { useRequestEditStore } from "@/modules/04_registryNew/stores/RequestEdit";
|
import { useRequestEditStore } from "@/modules/04_registryPerson/stores/RequestEdit";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue