Merge branch 'nice' into develop
This commit is contained in:
commit
a68c077454
10 changed files with 66 additions and 66 deletions
|
|
@ -48,16 +48,16 @@ const props = defineProps({
|
||||||
|
|
||||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||||
|
|
||||||
const dataLevel = ref<DataPosType[]>([]); // ข้อมูลประเภทตำแหน่ง
|
const dataLevel = ref<DataPosType[]>([]); // ข้อมูลตำแหน่งประเภท
|
||||||
const posExecutive = ref<string>(""); // ชื่อตำแหน่งทางการบริหาร
|
const posExecutive = ref<string>(""); // ชื่อตำแหน่งทางการบริหาร
|
||||||
const isSpecial = ref<boolean>(false); // เฉพาะสายงานที่กำหนด
|
const isSpecial = ref<boolean>(false); // เฉพาะสายงานที่กำหนด
|
||||||
const shape = ref<string>("false"); // ตำแหน่งทางการบริหาร
|
const shape = ref<string>("false"); // ตำแหน่งทางการบริหาร
|
||||||
const isDisValidate = ref<boolean>(false);
|
const isDisValidate = ref<boolean>(false);
|
||||||
|
|
||||||
const typeOpsMain = ref<DataOption[]>([]); //ตัวเลือกประเภทตำแหน่ง
|
const typeOpsMain = ref<DataOption[]>([]); //ตัวเลือกตำแหน่งประเภท
|
||||||
const levelOpsMain = ref<DataOption[]>([]); //ตัวเลือกระดับตำแหน่ง
|
const levelOpsMain = ref<DataOption[]>([]); //ตัวเลือกระดับตำแหน่ง
|
||||||
const executiveOpsMain = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
const executiveOpsMain = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
||||||
const typeOps = ref<DataOption[]>([]); //ตัวเลือกประเภทตำแหน่ง
|
const typeOps = ref<DataOption[]>([]); //ตัวเลือกตำแหน่งประเภท
|
||||||
const levelOps = ref<DataOption[]>([]); //ตัวเลือกระดับตำแหน่ง
|
const levelOps = ref<DataOption[]>([]); //ตัวเลือกระดับตำแหน่ง
|
||||||
const executiveOps = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
const executiveOps = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
||||||
const shapeOp = ref<DataOption[]>([
|
const shapeOp = ref<DataOption[]>([
|
||||||
|
|
@ -118,7 +118,7 @@ function saveSelectEdit() {
|
||||||
? {
|
? {
|
||||||
posDictName: formPositionSelect.positionName,
|
posDictName: formPositionSelect.positionName,
|
||||||
posDictField: formPositionSelect.positionField, //สายงาน
|
posDictField: formPositionSelect.positionField, //สายงาน
|
||||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||||
posExecutiveId: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
posExecutiveId: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||||
posDictExecutiveField:
|
posDictExecutiveField:
|
||||||
|
|
@ -129,7 +129,7 @@ function saveSelectEdit() {
|
||||||
: {
|
: {
|
||||||
posDictName: formPositionSelect.positionName,
|
posDictName: formPositionSelect.positionName,
|
||||||
posDictField: formPositionSelect.positionField, //สายงาน
|
posDictField: formPositionSelect.positionField, //สายงาน
|
||||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||||
posExecutive: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
posExecutive: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||||
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
||||||
|
|
@ -176,7 +176,7 @@ function onSubmitSelectEdit() {
|
||||||
? {
|
? {
|
||||||
posDictName: formPositionSelect.positionName,
|
posDictName: formPositionSelect.positionName,
|
||||||
posDictField: formPositionSelect.positionField, //สายงาน
|
posDictField: formPositionSelect.positionField, //สายงาน
|
||||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||||
posExecutiveId: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
posExecutiveId: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||||
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
||||||
|
|
@ -186,7 +186,7 @@ function onSubmitSelectEdit() {
|
||||||
: {
|
: {
|
||||||
posDictName: formPositionSelect.positionName,
|
posDictName: formPositionSelect.positionName,
|
||||||
posDictField: formPositionSelect.positionField, //สายงาน
|
posDictField: formPositionSelect.positionField, //สายงาน
|
||||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||||
posExecutive: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
posExecutive: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||||
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
||||||
|
|
@ -241,7 +241,7 @@ async function clearFormPositionSelect() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ฟังก์เรียกข้อมูลรายการประเภทตำแหน่ง
|
* ฟังก์เรียกข้อมูลรายการตำแหน่งประเภท
|
||||||
*/
|
*/
|
||||||
async function fetchType() {
|
async function fetchType() {
|
||||||
await http
|
await http
|
||||||
|
|
@ -260,8 +260,8 @@ async function fetchType() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ฟังก์ชันกำหนดตัวเลือกประเภทตำแหน่งตาม id ประเภทตำแหน่ง
|
* ฟังก์ชันกำหนดตัวเลือกตำแหน่งประเภทตาม id ตำแหน่งประเภท
|
||||||
* @param val id ประเภทตำแหน่ง
|
* @param val id ตำแหน่งประเภท
|
||||||
*/
|
*/
|
||||||
async function updateSelectType(val: string) {
|
async function updateSelectType(val: string) {
|
||||||
// หาระดับตำแหน่ง
|
// หาระดับตำแหน่ง
|
||||||
|
|
@ -320,7 +320,7 @@ function inputEdit(val: boolean) {
|
||||||
/**
|
/**
|
||||||
* ดูการเปลี่ยนแปลงของ modal.value
|
* ดูการเปลี่ยนแปลงของ modal.value
|
||||||
*
|
*
|
||||||
* ถ้าเป็น true ทำการเรียกข้อมูลรายการประเภทตำแหน่ง และ ข้อมูลรายการตำแหน่งทางการบริหาร
|
* ถ้าเป็น true ทำการเรียกข้อมูลรายการตำแหน่งประเภท และ ข้อมูลรายการตำแหน่งทางการบริหาร
|
||||||
* และถ้ามี props.data จะกำหนด formPositionSelect เป็นตาม props.data
|
* และถ้ามี props.data จะกำหนด formPositionSelect เป็นตาม props.data
|
||||||
*/
|
*/
|
||||||
watch(
|
watch(
|
||||||
|
|
@ -418,7 +418,7 @@ watch(
|
||||||
<q-select
|
<q-select
|
||||||
ref="positionTypeRef"
|
ref="positionTypeRef"
|
||||||
:class="inputEdit(isReadonly)"
|
:class="inputEdit(isReadonly)"
|
||||||
label="ประเภทตำแหน่ง"
|
label="ตำแหน่งประเภท"
|
||||||
v-model="formPositionSelect.positionType"
|
v-model="formPositionSelect.positionType"
|
||||||
:options="typeOps"
|
:options="typeOps"
|
||||||
emit-value
|
emit-value
|
||||||
|
|
@ -432,7 +432,7 @@ watch(
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="
|
:rules="
|
||||||
!isDisValidate
|
!isDisValidate
|
||||||
? [(val:string) => !!val || `${'กรุณาเลือกประเภทตำแหน่ง'}`]
|
? [(val:string) => !!val || `${'กรุณาเลือกตำแหน่งประเภท'}`]
|
||||||
: []
|
: []
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ const type = ref<string>("positionName"); //ประเภทค้นหา
|
||||||
const optionFilter = ref<DataOption[]>([
|
const optionFilter = ref<DataOption[]>([
|
||||||
{ id: "positionName", name: "ตำแหน่งในสายงาน" },
|
{ id: "positionName", name: "ตำแหน่งในสายงาน" },
|
||||||
{ id: "positionField", name: "สายงาน" },
|
{ id: "positionField", name: "สายงาน" },
|
||||||
{ id: "positionType", name: "ประเภทตำแหน่ง" },
|
{ id: "positionType", name: "ตำแหน่งประเภท" },
|
||||||
{ id: "positionLevel", name: "ระดับตำแหน่ง" },
|
{ id: "positionLevel", name: "ระดับตำแหน่ง" },
|
||||||
{ id: "positionExecutive", name: "ตำแหน่งทางการบริหาร" },
|
{ id: "positionExecutive", name: "ตำแหน่งทางการบริหาร" },
|
||||||
{ id: "positionExecutiveField", name: "ด้านทางการบริหาร" },
|
{ id: "positionExecutiveField", name: "ด้านทางการบริหาร" },
|
||||||
|
|
@ -252,7 +252,7 @@ function onSubmit() {
|
||||||
const positionsData = rows.value.map((e: RowDetailPositions) => ({
|
const positionsData = rows.value.map((e: RowDetailPositions) => ({
|
||||||
posDictName: e.positionName, //ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
posDictName: e.positionName, //ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||||
posDictField: e.positionField, //สายงาน
|
posDictField: e.positionField, //สายงาน
|
||||||
posTypeId: e.posTypeId, //*ประเภทตำแหน่ง
|
posTypeId: e.posTypeId, //*ตำแหน่งประเภท
|
||||||
posLevelId: e.posLevelId, //*ระดับตำแหน่ง
|
posLevelId: e.posLevelId, //*ระดับตำแหน่ง
|
||||||
posExecutiveId: e.posExecutiveId ? e.posExecutiveId : "", //ตำแหน่งทางการบริหาร
|
posExecutiveId: e.posExecutiveId ? e.posExecutiveId : "", //ตำแหน่งทางการบริหาร
|
||||||
posDictExecutiveField: e.positionExecutiveField, //ด้านทางการบริหาร
|
posDictExecutiveField: e.positionExecutiveField, //ด้านทางการบริหาร
|
||||||
|
|
@ -261,10 +261,10 @@ function onSubmit() {
|
||||||
positionIsSelected: e.positionIsSelected,
|
positionIsSelected: e.positionIsSelected,
|
||||||
}));
|
}));
|
||||||
const body = {
|
const body = {
|
||||||
posMasterNoPrefix: formData.prefixNo, //*Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
posMasterNoPrefix: formData.prefixNo, //*Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||||
posMasterNo: Number(formData.positionNo), //*ตำแหน่งเลขที่ เป็นตัวเลข
|
posMasterNo: Number(formData.positionNo), //*เลขที่ตำแหน่ง เป็นตัวเลข
|
||||||
posMasterNoSuffix: formData.suffixNo, //Suffix หลังตำแหน่งเลขที่ เช่น ช.
|
posMasterNoSuffix: formData.suffixNo, //Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||||
reason: formData.reason, //Suffix หลังตำแหน่งเลขที่ เช่น ช.
|
reason: formData.reason, //Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||||
isDirector: formData.isDirector,
|
isDirector: formData.isDirector,
|
||||||
// isStaff: formData.isStaff ? formData.isStaff : false,
|
// isStaff: formData.isStaff ? formData.isStaff : false,
|
||||||
isStaff: false,
|
isStaff: false,
|
||||||
|
|
@ -554,11 +554,11 @@ watch(
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
for="#positionNo"
|
for="#positionNo"
|
||||||
label="ตำแหน่งเลขที่"
|
label="เลขที่ตำแหน่ง"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[
|
:rules="[
|
||||||
(val:string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`,
|
(val:string) => !!val || `${'กรุณากรอกเลขที่ตำแหน่ง'}`,
|
||||||
]"
|
]"
|
||||||
mask="########################"
|
mask="########################"
|
||||||
/>
|
/>
|
||||||
|
|
@ -570,7 +570,7 @@ watch(
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
for="#suffixNo"
|
for="#suffixNo"
|
||||||
label="Suffix ตำแหน่งเลขที่"
|
label="Suffix เลขที่ตำแหน่ง"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posMasterNoPrefix",
|
name: "posMasterNoPrefix",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: " Prefix ตำแหน่งเลขที่",
|
label: " Prefix เลขที่ตำแหน่ง",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posMasterNoPrefix",
|
field: "posMasterNoPrefix",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -83,7 +83,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posMasterNo",
|
name: "posMasterNo",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งเลขที่",
|
label: "เลขที่ตำแหน่ง",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posMasterNo",
|
field: "posMasterNo",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -96,7 +96,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posMasterNoSuffix",
|
name: "posMasterNoSuffix",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "Suffix ตำแหน่งเลขที่",
|
label: "Suffix เลขที่ตำแหน่ง",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posMasterNoSuffix",
|
field: "posMasterNoSuffix",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -118,7 +118,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posType",
|
name: "posType",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posType",
|
field: "posType",
|
||||||
format(val, row) {
|
format(val, row) {
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,8 @@ const prosp = defineProps({
|
||||||
|
|
||||||
/** formData*/
|
/** formData*/
|
||||||
const formData = reactive<FormDetailPosition>({
|
const formData = reactive<FormDetailPosition>({
|
||||||
positionNo: "", //*ตำแหน่งเลขที่
|
positionNo: "", //*เลขที่ตำแหน่ง
|
||||||
positionType: "", //*ประเภทตำแหน่ง
|
positionType: "", //*ตำแหน่งประเภท
|
||||||
positionPathSide: "", //*ตำแหน่งในสายงาน
|
positionPathSide: "", //*ตำแหน่งในสายงาน
|
||||||
positionLine: "", //*สายงาน
|
positionLine: "", //*สายงาน
|
||||||
positionSide: "", //*ด้าน/สาขา
|
positionSide: "", //*ด้าน/สาขา
|
||||||
|
|
@ -49,7 +49,7 @@ function close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* callblack function ทำเมื่อเปิด popup set ตำแหน่งเลขที่ และสถานะตำแหน่ง
|
* callblack function ทำเมื่อเปิด popup set เลขที่ตำแหน่ง และสถานะตำแหน่ง
|
||||||
*/
|
*/
|
||||||
watch(
|
watch(
|
||||||
() => modal.value,
|
() => modal.value,
|
||||||
|
|
@ -93,7 +93,7 @@ watch(
|
||||||
<div class="row q-col-gutter-sm q-mb-xs">
|
<div class="row q-col-gutter-sm q-mb-xs">
|
||||||
<div class="col-4 text-bold">
|
<div class="col-4 text-bold">
|
||||||
<div>
|
<div>
|
||||||
<p>ตำแหน่งเลขที่</p>
|
<p>เลขที่ตำแหน่ง</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8 text-grey-8">
|
<div class="col-8 text-grey-8">
|
||||||
|
|
@ -103,7 +103,7 @@ watch(
|
||||||
<div class="row q-col-gutter-sm q-mb-xs">
|
<div class="row q-col-gutter-sm q-mb-xs">
|
||||||
<div class="col-4 text-bold">
|
<div class="col-4 text-bold">
|
||||||
<div>
|
<div>
|
||||||
<p>ประเภทตำแหน่ง</p>
|
<p>ตำแหน่งประเภท</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8 text-grey-8">
|
<div class="col-8 text-grey-8">
|
||||||
|
|
|
||||||
|
|
@ -67,20 +67,20 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||||
const typeOpsMain = ref<DataOption[]>([]); //ข้อมูลประเภทตำแหน่ง
|
const typeOpsMain = ref<DataOption[]>([]); //ข้อมูลตำแหน่งประเภท
|
||||||
const levelOpsMain = ref<DataOption[]>([]); //ข้อมูลระดับตำแหน่ง
|
const levelOpsMain = ref<DataOption[]>([]); //ข้อมูลระดับตำแหน่ง
|
||||||
const typeOps = ref<DataOption[]>([]); //ตัวเลือกรายการประเภทตำแหน่ง
|
const typeOps = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งประเภท
|
||||||
const levelOps = ref<DataOption[]>([]); //ตัวเลือกรายการระดับตำแหน่ง
|
const levelOps = ref<DataOption[]>([]); //ตัวเลือกรายการระดับตำแหน่ง
|
||||||
const dataLevel = ref<TypePos[]>([]); //ข้อมูลประเภทตำแหน่ง
|
const dataLevel = ref<TypePos[]>([]); //ข้อมูลตำแหน่งประเภท
|
||||||
const selected = ref<Position[]>([]); //เลือกตำแหน่ง
|
const selected = ref<Position[]>([]); //เลือกตำแหน่ง
|
||||||
const isSit = ref<boolean>(false); //นั่งทับตำแหน่ง
|
const isSit = ref<boolean>(false); //นั่งทับตำแหน่ง
|
||||||
|
|
||||||
const formData = reactive<FormPositionFilter>({
|
const formData = reactive<FormPositionFilter>({
|
||||||
positionNo: "", //*ตำแหน่งเลขที่
|
positionNo: "", //*เลขที่ตำแหน่ง
|
||||||
positionType: "", //*ตำแหน่งเลขที่
|
positionType: "", //*เลขที่ตำแหน่ง
|
||||||
positionLevel: "", //*ตำแหน่งเลขที่
|
positionLevel: "", //*เลขที่ตำแหน่ง
|
||||||
personal: "", //*ตำแหน่งเลขที่
|
personal: "", //*เลขที่ตำแหน่ง
|
||||||
position: "", //*ตำแหน่งเลขที่
|
position: "", //*เลขที่ตำแหน่ง
|
||||||
status: "",
|
status: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -228,7 +228,7 @@ const columnsResult = ref<QTableProps["columns"]>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function เรียกข้อมูลประเภทตำแหน่ง
|
* function เรียกข้อมูลตำแหน่งประเภท
|
||||||
*/
|
*/
|
||||||
function fetchType() {
|
function fetchType() {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -321,7 +321,7 @@ const selectedProfile = ref<SeaechResult[]>([]);
|
||||||
function searchData() {
|
function searchData() {
|
||||||
showLoader();
|
showLoader();
|
||||||
const reqBody = {
|
const reqBody = {
|
||||||
posTypeId: formData.positionType, // id ประเภทตำแหน่ง
|
posTypeId: formData.positionType, // id ตำแหน่งประเภท
|
||||||
posLevelId: formData.positionLevel, // id ระดับตำแหน่ง
|
posLevelId: formData.positionLevel, // id ระดับตำแหน่ง
|
||||||
position: formData.position, // ตำแหน่ง
|
position: formData.position, // ตำแหน่ง
|
||||||
page: page.value, //*หน้า
|
page: page.value, //*หน้า
|
||||||
|
|
@ -375,7 +375,7 @@ function clearForm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function เคลียร์ประเภทตำแหน่งและระดับตำแหน่ง
|
* function เคลียร์ตำแหน่งประเภทและระดับตำแหน่ง
|
||||||
*/
|
*/
|
||||||
function clearPosition() {
|
function clearPosition() {
|
||||||
formData.positionType = "";
|
formData.positionType = "";
|
||||||
|
|
@ -457,7 +457,7 @@ watch(
|
||||||
<div class="q-px-md">
|
<div class="q-px-md">
|
||||||
<div class="row q-col-gutter-sm q-mb-xs">
|
<div class="row q-col-gutter-sm q-mb-xs">
|
||||||
<div class="text-bold text-body1">
|
<div class="text-bold text-body1">
|
||||||
<p>ตำแหน่งเลขที่</p>
|
<p>เลขที่ตำแหน่ง</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-grey-8 q-ml-sm text-body1">
|
<div class="text-grey-8 q-ml-sm text-body1">
|
||||||
<p>{{ formData.positionNo }}</p>
|
<p>{{ formData.positionNo }}</p>
|
||||||
|
|
@ -582,7 +582,7 @@ watch(
|
||||||
<q-select
|
<q-select
|
||||||
ref="positionTypeRef"
|
ref="positionTypeRef"
|
||||||
:class="inputEdit(isReadonly)"
|
:class="inputEdit(isReadonly)"
|
||||||
label="ประเภทตำแหน่ง"
|
label="ตำแหน่งประเภท"
|
||||||
v-model="formData.positionType"
|
v-model="formData.positionType"
|
||||||
:options="typeOps"
|
:options="typeOps"
|
||||||
emit-value
|
emit-value
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posMasterNo",
|
name: "posMasterNo",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งเลขที่",
|
label: "เลขที่ตำแหน่ง",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posMasterNo",
|
field: "posMasterNo",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posMasterNo",
|
name: "posMasterNo",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งเลขที่",
|
label: "เลขที่ตำแหน่ง",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
field: "posMasterNo",
|
field: "posMasterNo",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -177,7 +177,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posTypeName",
|
name: "posTypeName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
field: "posTypeName",
|
field: "posTypeName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,8 @@ interface Position {
|
||||||
id: string; // id ตำแหน่ง
|
id: string; // id ตำแหน่ง
|
||||||
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||||
positionField: string; // สายงาน
|
positionField: string; // สายงาน
|
||||||
posTypeId: string; // ประเภทตำแหน่ง
|
posTypeId: string; // ตำแหน่งประเภท
|
||||||
posTypeName: string; // ประเภทตำแหน่ง
|
posTypeName: string; // ตำแหน่งประเภท
|
||||||
posLevelId: string; // ระดับตำแหน่ง
|
posLevelId: string; // ระดับตำแหน่ง
|
||||||
posLevelName: string; // ระดับตำแหน่ง
|
posLevelName: string; // ระดับตำแหน่ง
|
||||||
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
||||||
|
|
@ -95,13 +95,13 @@ interface Position {
|
||||||
interface PosMaster {
|
interface PosMaster {
|
||||||
id: string; // id อัตรากำลัง posmaster
|
id: string; // id อัตรากำลัง posmaster
|
||||||
orgShortname: string; // อักษรย่อตำแหน่ง
|
orgShortname: string; // อักษรย่อตำแหน่ง
|
||||||
posMasterNoPrefix: string; // Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
posMasterNoPrefix: string; // Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||||
posMasterNo: number | string; // ตำแหน่งเลขที่ เป็นตัวเลข
|
posMasterNo: number | string; // เลขที่ตำแหน่ง เป็นตัวเลข
|
||||||
posMasterNoSuffix: string | null; // Suffix หลังตำแหน่งเลขที่ เช่น ช.
|
posMasterNoSuffix: string | null; // Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||||
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||||
positionField: string; // สายงาน
|
positionField: string; // สายงาน
|
||||||
posTypeId: string; // ประเภทตำแหน่ง
|
posTypeId: string; // ตำแหน่งประเภท
|
||||||
posTypeName: string; // ประเภทตำแหน่ง
|
posTypeName: string; // ตำแหน่งประเภท
|
||||||
posLevelId: string; // ระดับตำแหน่ง
|
posLevelId: string; // ระดับตำแหน่ง
|
||||||
posLevelName: string; // ระดับตำแหน่ง
|
posLevelName: string; // ระดับตำแหน่ง
|
||||||
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
||||||
|
|
@ -124,8 +124,8 @@ interface Position2 {
|
||||||
id: string; // id ตำแหน่ง
|
id: string; // id ตำแหน่ง
|
||||||
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||||
positionField: string; // สายงาน
|
positionField: string; // สายงาน
|
||||||
posTypeId: string; // ประเภทตำแหน่ง
|
posTypeId: string; // ตำแหน่งประเภท
|
||||||
posTypeName: string; // ประเภทตำแหน่ง
|
posTypeName: string; // ตำแหน่งประเภท
|
||||||
posLevelId: string; // ระดับตำแหน่ง
|
posLevelId: string; // ระดับตำแหน่ง
|
||||||
posLevelName: string; // ระดับตำแหน่ง
|
posLevelName: string; // ระดับตำแหน่ง
|
||||||
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
||||||
|
|
@ -138,13 +138,13 @@ interface Position2 {
|
||||||
interface PosMaster2 {
|
interface PosMaster2 {
|
||||||
id: string; // id อัตรากำลัง posmaster
|
id: string; // id อัตรากำลัง posmaster
|
||||||
orgShortname: string; // อักษรย่อตำแหน่ง
|
orgShortname: string; // อักษรย่อตำแหน่ง
|
||||||
posMasterNoPrefix: string; // Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
posMasterNoPrefix: string; // Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||||
posMasterNo: number | string; // ตำแหน่งเลขที่ เป็นตัวเลข
|
posMasterNo: number | string; // เลขที่ตำแหน่ง เป็นตัวเลข
|
||||||
posMasterNoSuffix: string | null; // Suffix หลังตำแหน่งเลขที่ เช่น ช.
|
posMasterNoSuffix: string | null; // Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||||
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||||
positionField: string; // สายงาน
|
positionField: string; // สายงาน
|
||||||
posTypeId: string; // ประเภทตำแหน่ง
|
posTypeId: string; // ตำแหน่งประเภท
|
||||||
posTypeName: string; // ประเภทตำแหน่ง
|
posTypeName: string; // ตำแหน่งประเภท
|
||||||
posLevelId: string; // ระดับตำแหน่ง
|
posLevelId: string; // ระดับตำแหน่ง
|
||||||
posLevelName: string; // ระดับตำแหน่ง
|
posLevelName: string; // ระดับตำแหน่ง
|
||||||
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
posExecutiveId: string; // ตำแหน่งทางการบริหาร
|
||||||
|
|
@ -165,9 +165,9 @@ interface HistoryPos {
|
||||||
id: string; //id node
|
id: string; //id node
|
||||||
orgShotName: string; //ชื่อย่อส่วนราชการ
|
orgShotName: string; //ชื่อย่อส่วนราชการ
|
||||||
lastUpdatedAt: Date; //วันที่แก้ไข
|
lastUpdatedAt: Date; //วันที่แก้ไข
|
||||||
posMasterNoPrefix: string; //Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
posMasterNoPrefix: string; //Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||||
posMasterNo: number; //ตำแหน่งเลขที่ เป็นตัวเลข
|
posMasterNo: number; //เลขที่ตำแหน่ง เป็นตัวเลข
|
||||||
posMasterNoSuffix: string; //Suffix หลังตำแหน่งเลขที่ เช่น ช.
|
posMasterNoSuffix: string; //Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SelectPerson {
|
interface SelectPerson {
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posNo",
|
name: "posNo",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งเลขที่",
|
label: "เลขที่ตำแหน่ง",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
field: "posNo",
|
field: "posNo",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "profilePostype",
|
name: "profilePostype",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
field: "profilePostype",
|
field: "profilePostype",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue