แก้ข้อความและคำผิดทะเบียนประวัติ

This commit is contained in:
Warunee Tamkoo 2024-06-13 16:44:41 +07:00
parent b6c1896944
commit 68ac03ffa5
10 changed files with 47 additions and 39 deletions

View file

@ -329,7 +329,7 @@ watch(
bg-color="white"
outlined
v-model="formData.position"
label="ตำแหน่ง"
label="ตำแหน่งในสายงาน"
dense
lazy-rules
borderless
@ -339,7 +339,7 @@ watch(
<q-select
bg-color="white"
v-model="formData.posTypeId"
label="ประเภทตำแหน่ง"
label="ตำแหน่งประเภท"
outlined
:options="store.posTypeOps"
dense
@ -349,13 +349,13 @@ watch(
option-label="name"
option-value="id"
hide-bottom-space
:rules="[(val) => !!val || 'กรุณาเลือกประเภทตำแหน่ง']"
:rules="[(val) => !!val || 'กรุณาเลือกตำแหน่งประเภท']"
@update:model-value="fetchLevel"
/>
<q-select
bg-color="white"
v-model="formData.posLevelId"
label="ระดับตำแหน่ง"
label="ระดับ"
:options="levelOps"
outlined
dense
@ -365,7 +365,7 @@ watch(
option-value="id"
options-cover
hide-bottom-space
:rules="[(val) => !!val || 'กรุณาเลือกระดับตำแหน่ง']"
:rules="[(val) => !!val || 'กรุณาเลือกระดับ']"
/>
</q-card-section>

View file

@ -64,7 +64,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "position",
align: "left",
label: "ตำแหน่ง",
label: "ตำแหน่งในสายงาน",
sortable: true,
field: "position",
headerStyle: "font-size: 14px",
@ -75,7 +75,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "posPath",
align: "left",
label: "ประเภทตำแหน่ง",
label: "ตำแหน่งประเภท",
sortable: true,
field: "posType",
headerStyle: "font-size: 14px",
@ -86,7 +86,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "posLevel",
align: "left",
label: "ระดับตำแหน่ง",
label: "ระดับ",
sortable: true,
field: "posLevel",
headerStyle: "font-size: 14px",
@ -295,6 +295,11 @@ watch(
<span class="text-weight-medium" v-else-if="col.name === 'posPath'">{{
empType === "officer" ? col.label : "กลุ่มงาน"
}}</span>
<span
class="text-weight-medium"
v-else-if="col.name === 'position'"
>{{ empType === "officer" ? col.label : "ตำแหน่ง" }}</span
>
<span class="text-weight-medium" v-else>{{ col.label }}</span>
</q-th>
@ -375,7 +380,9 @@ watch(
<q-item dense>
<q-item-section>
<q-item-label caption>ตำแหน</q-item-label>
<q-item-label caption>{{
empType === "officer" ? `ตำแหน่งในสายงาน` : `ตำแหน่ง`
}}</q-item-label>
</q-item-section>
<q-item-section>
<q-item-label caption class="text-black">
@ -390,7 +397,7 @@ watch(
<q-item-section>
<q-item-label caption>
{{
empType === "officer" ? "ประเภทตำแหน่ง" : "กลุ่มงาน"
empType === "officer" ? "ตำแหน่งประเภท" : "กลุ่มงาน"
}}</q-item-label
>
</q-item-section>
@ -407,7 +414,7 @@ watch(
<q-item-section>
<q-item-label caption>
{{
empType === "officer" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน"
empType === "officer" ? "ระดับ" : "ระดับชั้นงาน"
}}</q-item-label
>
</q-item-section>

View file

@ -466,7 +466,7 @@ onMounted(() => {
</div>
<div class="row items-center">
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>ตำแหน</div>
<div>{{ empType === "" ? `ตำแหน่งในสายงาน` : `ตำแหน่ง` }}</div>
</div>
<div class="col-12 col-sm-12 col-md-7">{{ formMain.positionId }}</div>
</div>
@ -504,7 +504,7 @@ onMounted(() => {
</div>
<div class="row items-center">
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>{{ empType === "" ? "ประเภทตำแหน่ง" : "กลุ่มงาน" }}</div>
<div>{{ empType === "" ? "ตำแหน่งประเภท" : "กลุ่มงาน" }}</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionType }}
@ -512,7 +512,7 @@ onMounted(() => {
</div>
<div class="row items-center">
<div class="col-12 col-sm-12 col-md-5 text-grey-6 text-weight-medium">
<div>{{ empType === "" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน" }}</div>
<div>{{ empType === "" ? "ระดับ" : "ระดับชั้นงาน" }}</div>
</div>
<div class="col-12 col-sm-12 col-md-7">
{{ formMain.positionLevel }}

View file

@ -216,7 +216,8 @@ async function addData() {
const method = rows.value === null ? "post" : "patch";
await http[method](url, {
profileId: rows.value === null && empType.value === "" ? id.value : undefined,
profileId:
rows.value === null && empType.value === "" ? id.value : undefined,
profileEmployeeId: empType.value !== "" ? id.value : undefined,
motherLive: motherIsHaveInfo.value ? motherIsLive.value : null,
motherCitizenId: motherIsHaveInfo.value ? motherDataEdit.citizenId : null,
@ -353,7 +354,7 @@ onMounted(async () => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ fatherData.citizenId ? fatherData.citizenId : "-" }}
@ -397,7 +398,7 @@ onMounted(async () => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ motherData.citizenId ? motherData.citizenId : "-" }}
@ -441,7 +442,7 @@ onMounted(async () => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ spouseData.citizenId ? spouseData.citizenId : "-" }}
@ -493,7 +494,7 @@ onMounted(async () => {
<div class="col-12 q-pa-md q-col-gutter-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col-10">
{{ children.childrenCitizenId }}
@ -1156,7 +1157,7 @@ onMounted(async () => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ historyRows[index - 1].fatherCitizenId }}
@ -1200,7 +1201,7 @@ onMounted(async () => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ historyRows[index - 1].motherCitizenId }}
@ -1251,7 +1252,7 @@ onMounted(async () => {
>
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ historyRows[index - 1].coupleCitizenId }}
@ -1309,7 +1310,7 @@ onMounted(async () => {
<div class="col-12 q-pa-md q-col-gutter-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col-10">
{{ children.childrenCitizenId }}

View file

@ -46,7 +46,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "citizenId",
align: "left",
label: "เลขประจำตัวประชาชนตัวประชาชน",
label: "เลขประจำตัวประชาชน",
sortable: true,
field: "citizenId",
headerStyle: "font-size: 14px",
@ -465,7 +465,7 @@ onMounted(() => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ fatherData.citizenId ? fatherData.citizenId : "-" }}
@ -540,7 +540,7 @@ onMounted(() => {
<q-card bordered class="bg-grey-1 q-gutter-md q-ma-none q-pb-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col">
{{ motherData.citizenId ? motherData.citizenId : "-" }}
@ -635,7 +635,7 @@ onMounted(() => {
</div>
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col-10">
{{ coupleData.citizenId ?? "-" }}
@ -738,7 +738,7 @@ onMounted(() => {
<div class="col-12 q-pa-md q-col-gutter-md">
<div class="row items-center">
<div class="col-2 text-grey-6 text-weight-medium">
<div>เลขประจำตวประชาชนวประชาชน</div>
<div>เลขประจำตวประชาชน</div>
</div>
<div class="col-10">
{{ item.childrenCitizenId }}

View file

@ -29,7 +29,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "educationLevel",
align: "left",
label: "ระดับศึกษา",
label: "ระดับการศึกษา",
sortable: true,
field: "educationLevel",
headerStyle: "font-size: 14px",
@ -202,7 +202,7 @@ const historyColumns = ref<QTableProps["columns"]>([
{
name: "educationLevel",
align: "left",
label: "ระดับศึกษา",
label: "ระดับการศึกษา",
sortable: true,
field: "educationLevel",
headerStyle: "font-size: 14px",

View file

@ -118,7 +118,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "positionType",
align: "left",
label: "ประเภทตำแหน่ง",
label: "ตำแหน่งประเภท",
sortable: true,
field: "positionType",
headerStyle: "font-size: 14px",

View file

@ -12,7 +12,7 @@ export const useRegistryNewDataStore = defineStore("registryNew", () => {
{ id: "fullName", name: "ชื่อ-นามสกุล" },
{ id: "citizenId", name: "เลขประจำตัวประชาชน" },
// { id: "posNo", name: "ตำแหน่งเลขที่" },
{ id: "position", name: "ตำแหน่งสายงาน" },
{ id: "position", name: "ตำแหน่งในสายงาน" },
]);
const employeeClassOps = ref<DataOption[]>([
{ id: "officer", name: "ข้าราชการ กทม.สามัญ" },

View file

@ -647,7 +647,7 @@ onMounted(async () => {
icon="mdi-file-eye-outline"
size="md"
>
<q-tooltip>ดาวนไฟล</q-tooltip>
<q-tooltip>ดาวนโหลดไฟล</q-tooltip>
<q-menu>
<q-list style="min-width: 130px">
<q-item clickable v-close-popup @click="onClickDownloadKp7('FULL')">
@ -712,7 +712,7 @@ onMounted(async () => {
<div class="col-2">
<div class="col-sm-3 col-md-3">
<div class="col text-grey-6 text-caption">
{{ empType === "" ? "ประเภทตำแหน่ง" : "กลุ่มงาน" }}
{{ empType === "" ? "ตำแหน่งประเภท" : "กลุ่มงาน" }}
</div>
<div class="col">
{{ formDetail?.posType?.posTypeName || "-" }}
@ -722,7 +722,7 @@ onMounted(async () => {
<div class="col-2">
<div class="col-sm-3 col-md-3">
<div class="col text-grey-6 text-caption">
{{ empType === "" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน" }}
{{ empType === "" ? "ระดับ" : "ระดับชั้นงาน" }}
</div>
<div class="col">
{{ formDetail?.posLevel?.posLevelName || "-" }}

View file

@ -61,7 +61,7 @@ const conditionTotal = computed(() => {
return num;
});
/** function เรียกข้อมูลประเภทตำแหน่ง*/
/** function เรียกข้อมูลตำแหน่งประเภท*/
function fetchType() {
http
.get(config.API.orgPosType)
@ -73,7 +73,7 @@ function fetchType() {
});
}
/** function เรียกข้อมูลระดับตำแหน่ง*/
/** function เรียกข้อมูลระดับ*/
function fetchLevel() {
http
.get(config.API.orgPosLevel)
@ -396,7 +396,7 @@ onMounted(async () => {
labelOption.posType !== "ทั้งหมด"
? labelOption.posType
: empType === "officer"
? `ประเภทตำแหน่ง${labelOption.posType}`
? `ตำแหน่งประเภท${labelOption.posType}`
: `กลุ่มงาน${labelOption.posType}`
}}
<q-btn
@ -439,7 +439,7 @@ onMounted(async () => {
labelOption.posLevel !== "ทั้งหมด"
? labelOption.posLevel
: empType === "officer"
? `ระดับตำแหน่ง${labelOption.posLevel}`
? `ระดับ${labelOption.posLevel}`
: `ระดับชั้นงาน${labelOption.posLevel}`
}}
<q-btn