fix เลขที่ตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-02 14:38:28 +07:00
parent 1a109fd5e3
commit d438c1accc
15 changed files with 31 additions and 31 deletions

View file

@ -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",

View file

@ -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>

View file

@ -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?.()"

View file

@ -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, //

View file

@ -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">

View file

@ -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>

View file

@ -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">

View file

@ -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",

View file

@ -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) {

View file

@ -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",

View file

@ -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>

View file

@ -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);

View file

@ -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 , ,

View file

@ -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>();

View file

@ -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>(); //