fix เลขที่ตำแหน่ง
This commit is contained in:
parent
1a109fd5e3
commit
d438c1accc
15 changed files with 31 additions and 31 deletions
|
|
@ -96,7 +96,7 @@ const columns2 = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "positionNumberOld",
|
name: "positionNumberOld",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งเลขที่เดิม",
|
label: "เลขที่ตำแหน่งเดิม",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "positionNumberOld",
|
field: "positionNumberOld",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ const mainData = ref<any>();
|
||||||
|
|
||||||
const educationOld = ref<string>(""); //วุฒิ/สาขา
|
const educationOld = ref<string>(""); //วุฒิ/สาขา
|
||||||
const organizationPositionOld = ref<string>(""); //ตำแหน่ง/สังกัด
|
const organizationPositionOld = ref<string>(""); //ตำแหน่ง/สังกัด
|
||||||
const positionTypeOld = ref<string>(""); //ประเภทตำแหน่ง
|
const positionTypeOld = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const positionLevelOld = ref<string>(""); //ระดับตำแหน่ง
|
const positionLevelOld = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const posNo = ref<string>(""); //เลขที่
|
const posNo = ref<string>(""); //เลขที่
|
||||||
const salary = ref<number>(0); //เงินเดือน
|
const salary = ref<number>(0); //เงินเดือน
|
||||||
|
|
@ -283,9 +283,9 @@ onMounted(async () => {
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="positionTypeOld"
|
v-model="positionTypeOld"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'ประเภทตำแหน่ง'}`"
|
:label="`${'ตำแหน่งประเภท'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,12 @@ const selected = defineModel("selectedPos", { required: true }); //ตำแห
|
||||||
const positionId = defineModel<string>("positionId", { required: true }); //id ตำแหน่งที่เลือก
|
const positionId = defineModel<string>("positionId", { required: true }); //id ตำแหน่งที่เลือก
|
||||||
const seletcId = defineModel<string>("seletcId", { required: true }); // ตำแหน่งที่เลือก
|
const seletcId = defineModel<string>("seletcId", { required: true }); // ตำแหน่งที่เลือก
|
||||||
const date = defineModel<Date>("datePos", { required: true }); //วันยที่รายงานคัว
|
const date = defineModel<Date>("datePos", { required: true }); //วันยที่รายงานคัว
|
||||||
const positionData = defineModel<any[]>("position", { required: true }); //ข้อมูลรายการตำแหน่งเลขที่
|
const positionData = defineModel<any[]>("position", { required: true }); //ข้อมูลรายการเลขที่ตำแหน่ง
|
||||||
const isAll = defineModel<boolean>("isAll", { required: true }); //แสดงตำแหน่งทั้งหมด
|
const isAll = defineModel<boolean>("isAll", { required: true }); //แสดงตำแหน่งทั้งหมด
|
||||||
const isBlank = defineModel<boolean>("isBlank", { required: true }); //แสดงเฉพาะตำแหน่งว่าง
|
const isBlank = defineModel<boolean>("isBlank", { required: true }); //แสดงเฉพาะตำแหน่งว่าง
|
||||||
const isPosition = defineModel<string>("isPosition", { required: true });
|
const isPosition = defineModel<string>("isPosition", { required: true });
|
||||||
// const isPositionOld = defineModel<boolean>("isPositionOld", { required: true }); //แสดงตำแหน่งที่ตรงกับประเภทและระดับเดิม
|
// const isPositionOld = defineModel<boolean>("isPositionOld", { required: true }); //แสดงตำแหน่งที่ตรงกับประเภทและระดับเดิม
|
||||||
const posType = defineModel<FormPosType>("posType", { required: true }); //ประเภทตำแหน่ง
|
const posType = defineModel<FormPosType>("posType", { required: true }); //ตำแหน่งประเภท
|
||||||
const posLevel = defineModel<string>("posLevel", { required: true }); //ระดับตำแหน่ง
|
const posLevel = defineModel<string>("posLevel", { required: true }); //ระดับตำแหน่ง
|
||||||
const optionPosType = defineModel<FormPosType[]>("optionPosType", {
|
const optionPosType = defineModel<FormPosType[]>("optionPosType", {
|
||||||
required: true,
|
required: true,
|
||||||
|
|
@ -74,7 +74,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",
|
||||||
|
|
@ -92,7 +92,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posTypeName",
|
name: "posTypeName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posTypeName",
|
field: "posTypeName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -202,7 +202,7 @@ const visibleColumns = ref<string[]>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function เลือกตำแหน่งเลขที่
|
* function เลือกเลขที่ตำแหน่ง
|
||||||
* @param id เลชที่ตำแหน่ง
|
* @param id เลชที่ตำแหน่ง
|
||||||
*/
|
*/
|
||||||
async function onClickSelectPos(id: string) {
|
async function onClickSelectPos(id: string) {
|
||||||
|
|
@ -265,11 +265,11 @@ onMounted(async () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="column q-col-gutter-sm">
|
<div class="column q-col-gutter-sm">
|
||||||
<!-- เลือกตำแหน่งเลขที่ -->
|
<!-- เลือกเลขที่ตำแหน่ง -->
|
||||||
<div class="col-7">
|
<div class="col-7">
|
||||||
<q-card bordered style="height: 100%; border: 1px solid #d6dee1">
|
<q-card bordered style="height: 100%; border: 1px solid #d6dee1">
|
||||||
<div class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
<div class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
||||||
เลือกตำแหน่งเลขที่
|
เลือกเลขที่ตำแหน่ง
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="col-12">
|
<!-- <div class="col-12">
|
||||||
|
|
@ -306,7 +306,7 @@ onMounted(async () => {
|
||||||
v-model="posType"
|
v-model="posType"
|
||||||
:options="optionPosType"
|
:options="optionPosType"
|
||||||
option-label="posTypeName"
|
option-label="posTypeName"
|
||||||
label="ประเภทตำแหน่ง"
|
label="ตำแหน่งประเภท"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
@update:model-value="props.onPosType?.()"
|
@update:model-value="props.onPosType?.()"
|
||||||
|
|
|
||||||
|
|
@ -227,7 +227,7 @@ async function onClickSubmit() {
|
||||||
nodeId: dataPosMaster.nodeId,
|
nodeId: dataPosMaster.nodeId,
|
||||||
orgRevisionId: orgRevisionId.value,
|
orgRevisionId: orgRevisionId.value,
|
||||||
positionId: selectedPos.value[0].id,
|
positionId: selectedPos.value[0].id,
|
||||||
posMasterNo: dataPosMaster.posMasterNo, //ตำแหน่งเลขที่(เลขอย่่างเดียว)
|
posMasterNo: dataPosMaster.posMasterNo, //เลขที่ตำแหน่ง(เลขอย่่างเดียว)
|
||||||
positionName: selectedPos.value[0].positionName, //ชื่อตำแหน่ง
|
positionName: selectedPos.value[0].positionName, //ชื่อตำแหน่ง
|
||||||
positionField: selectedPos.value[0].positionField, //ชื่อตำแหน่ง
|
positionField: selectedPos.value[0].positionField, //ชื่อตำแหน่ง
|
||||||
posTypeId: selectedPos.value[0].posTypeId, //ชื่อตำแหน่ง
|
posTypeId: selectedPos.value[0].posTypeId, //ชื่อตำแหน่ง
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
const profileId = ref<string>("");
|
const profileId = ref<string>("");
|
||||||
const educationOld = ref<string>(""); //วุฒิ/สาขา
|
const educationOld = ref<string>(""); //วุฒิ/สาขา
|
||||||
const organizationPositionOld = ref<string>(""); //ตำแหน่ง/สังกัด
|
const organizationPositionOld = ref<string>(""); //ตำแหน่ง/สังกัด
|
||||||
const positionTypeOld = ref<string>(""); //ประเภทตำแหน่ง
|
const positionTypeOld = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const positionLevelOld = ref<string>(""); //ระดับตำแหน่ง
|
const positionLevelOld = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const posNo = ref<string>(""); //เลขที่
|
const posNo = ref<string>(""); //เลขที่
|
||||||
const salary = ref<number>(0); //เงินเดือน
|
const salary = ref<number>(0); //เงินเดือน
|
||||||
|
|
@ -988,9 +988,9 @@ onMounted(async () => {
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="positionTypeOld"
|
v-model="positionTypeOld"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'ประเภทตำแหน่ง'}`"
|
:label="`${'ตำแหน่งประเภท'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-sm-4">
|
<div class="col-xs-6 col-sm-4">
|
||||||
|
|
|
||||||
|
|
@ -260,9 +260,9 @@ onMounted(() => {
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="positionTypeOld"
|
v-model="positionTypeOld"
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
|
:rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'ประเภทตำแหน่ง'}`"
|
:label="`${'ตำแหน่งประเภท'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ const dataProfile = ref<DataProfile>(); //ข้อมูลส่วนตั
|
||||||
const workflowRef = ref<any>(null);
|
const workflowRef = ref<any>(null);
|
||||||
|
|
||||||
const organizationPositionOld = ref<string>(""); //ตำแหน่ง/สังกัด
|
const organizationPositionOld = ref<string>(""); //ตำแหน่ง/สังกัด
|
||||||
const positionTypeOld = ref<string>(""); //ประเภทตำแหน่ง
|
const positionTypeOld = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const positionLevelOld = ref<string>(""); //ระดับตำแหน่ง
|
const positionLevelOld = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const posNo = ref<string>(""); //เลขที่
|
const posNo = ref<string>(""); //เลขที่
|
||||||
const salary = ref<number>(0); //เงินเดือน
|
const salary = ref<number>(0); //เงินเดือน
|
||||||
|
|
@ -561,9 +561,9 @@ onMounted(async () => {
|
||||||
:readonly="!edit"
|
:readonly="!edit"
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
v-model="positionTypeOld"
|
v-model="positionTypeOld"
|
||||||
:rules="edit ? [(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]:[]"
|
:rules="edit ? [(val:string) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]:[]"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:label="`${'ประเภทตำแหน่ง'}`"
|
:label="`${'ตำแหน่งประเภท'}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 col-sm-4">
|
<div class="col-xs-6 col-sm-4">
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "positionType",
|
name: "positionType",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "positionType",
|
field: "positionType",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -225,7 +225,7 @@ const columnsMember = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posType",
|
name: "posType",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posType",
|
field: "posType",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,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) {
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ const columns2 = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "posLevelName",
|
name: "posLevelName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ประเภทตำแหน่ง",
|
label: "ตำแหน่งประเภท",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posLevelName",
|
field: "posLevelName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
|
|
@ -354,7 +354,7 @@ onMounted(async () => {
|
||||||
|
|
||||||
<div class="col-xs-6 col-sm-2 row items-center">
|
<div class="col-xs-6 col-sm-2 row items-center">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="col-12 text-top">ประเภทตำแหน่ง</div>
|
<div class="col-12 text-top">ตำแหน่งประเภท</div>
|
||||||
<div class="col-12 text-detail">{{ position_level }}</div>
|
<div class="col-12 text-detail">{{ position_level }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ const personalId = ref<string>(""); //บุคคล
|
||||||
|
|
||||||
const files = ref<any>(); //ไฟล์
|
const files = ref<any>(); //ไฟล์
|
||||||
|
|
||||||
const posType = ref<string>(""); //ประเภทตำแหน่ง
|
const posType = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const position = ref<string>(""); //ตำแหน่ง
|
const position = ref<string>(""); //ตำแหน่ง
|
||||||
const type = ref<string | null>(null);
|
const type = ref<string | null>(null);
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ const status = ref<string>("");
|
||||||
|
|
||||||
const modal = ref<boolean>(false); //แสดง popup ส่งไปออกคำสั่ง
|
const modal = ref<boolean>(false); //แสดง popup ส่งไปออกคำสั่ง
|
||||||
const modalTree = ref<boolean>(false); //แสดง popup เลือกหน่วยงานที่แต่งตั้ง - เลื่อน - ย้าย
|
const modalTree = ref<boolean>(false); //แสดง popup เลือกหน่วยงานที่แต่งตั้ง - เลื่อน - ย้าย
|
||||||
const posType = ref<string>(""); //ประเภทตำแหน่ง
|
const posType = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const position = ref<string>(""); //ตำแหน่ง
|
const position = ref<string>(""); //ตำแหน่ง
|
||||||
const typeModal = ref<string | null>(null); //ประเภท popup แต่งตั้ง , เลื่อน , ย้าย
|
const typeModal = ref<string | null>(null); //ประเภท popup แต่งตั้ง , เลื่อน , ย้าย
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ const personalId = ref<string>("");
|
||||||
const modal = ref<boolean>(false); //แสดง popup ส่งไปออกคำสั่ง
|
const modal = ref<boolean>(false); //แสดง popup ส่งไปออกคำสั่ง
|
||||||
const modalTree = ref<boolean>(false); //แสดง popup เลือกหน่วยงานที่รับการปรับระดับชั้นงาน
|
const modalTree = ref<boolean>(false); //แสดง popup เลือกหน่วยงานที่รับการปรับระดับชั้นงาน
|
||||||
const typeModal = ref<string>(""); //ประเภท popup ปรับระดับชั้นงาน,รับย้าย
|
const typeModal = ref<string>(""); //ประเภท popup ปรับระดับชั้นงาน,รับย้าย
|
||||||
const posType = ref<string>(""); //ประเภทตำแหน่ง
|
const posType = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const position = ref<string>(""); //ตำแหน่ง
|
const position = ref<string>(""); //ตำแหน่ง
|
||||||
const dataRows = ref<PersonData>();
|
const dataRows = ref<PersonData>();
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "positionNumberOld",
|
name: "positionNumberOld",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งเลขที่เดิม",
|
label: "เลขที่ตำแหน่งเดิม",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "positionNumberOld",
|
field: "positionNumberOld",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
@ -232,7 +232,7 @@ const modalSelectOrg = ref<boolean>(false);
|
||||||
const type = ref<string | null>(null);
|
const type = ref<string | null>(null);
|
||||||
const personalId = ref<string>("");
|
const personalId = ref<string>("");
|
||||||
|
|
||||||
const posType = ref<string>(""); //ประเภทตำแหน่ง
|
const posType = ref<string>(""); //ตำแหน่งประเภท
|
||||||
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
const posLevel = ref<string>(""); //ระดับตำแหน่ง
|
||||||
const position = ref<string>(""); //ตำแหน่ง
|
const position = ref<string>(""); //ตำแหน่ง
|
||||||
const dataRows = ref<any>(); //ข้อมูลที่ต้องการเลือกหน่วยงานที่รับโอน
|
const dataRows = ref<any>(); //ข้อมูลที่ต้องการเลือกหน่วยงานที่รับโอน
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue