แก้ทะเบียนประวัติ

This commit is contained in:
Warunee Tamkoo 2024-02-20 17:28:38 +07:00
parent 5d1ed92e99
commit 5db28c7978
2 changed files with 25 additions and 5 deletions

View file

@ -102,7 +102,7 @@
:hide-dropdown-icon="!edit"
hide-bottom-space
:class="getClass(edit)"
:readonly="!edit || status != 'prefix'"
:readonly="!edit || status == 'lastName' || status == 'firstNameLastName' || status == 'firstName'"
:borderless="!edit"
:rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="edit"
@ -128,7 +128,7 @@
:outlined="edit"
dense
lazy-rules
:readonly="!edit || status == 'lastName' || status == 'prefix'"
:readonly="!edit || status == 'lastName' || status == 'prefix' || status == 'prefixAndlastName'"
:borderless="!edit"
v-model="firstName"
:rules="[(val) => !!val || `${'กรุณากรอกชื่อ'}`]"
@ -401,15 +401,23 @@ const Ops = ref<OldNameOps>({
name: "เปลี่ยนนามสกุล",
},
{
id: "all",
id: "firstNameLastName",
name: "เปลี่ยนชื่อ-นามสกุล",
},
{
id: "prefixAndlastName",
name: "เปลี่ยนคำนำหน้าชื่อ และนามสกุล",
},
{
id: "all",
name: "เปลี่ยนคำนำหน้าชื่อ, ชื่อ-นามสกุล",
},
],
});
const OpsFilter = ref<OldNameOps>({
prefixOps: [],
statusOps: [
{
{
id: "prefix",
name: "เปลี่ยนคำนำหน้าชื่อ",
},
@ -422,9 +430,17 @@ const OpsFilter = ref<OldNameOps>({
name: "เปลี่ยนนามสกุล",
},
{
id: "all",
id: "firstNameLastName",
name: "เปลี่ยนชื่อ-นามสกุล",
},
{
id: "prefixAndlastName",
name: "เปลี่ยนคำนำหน้าชื่อ และนามสกุล",
},
{
id: "all",
name: "เปลี่ยนคำนำหน้าชื่อ และชื่อ-นามสกุล",
},
],
});
profileData.oldName.columns.length == 0

View file

@ -825,7 +825,11 @@ export const useCounterMixin = defineStore("mixin", () => {
case "lastName":
return "เปลี่ยนนามสกุล";
case "all":
return "เปลี่ยนคำนำหน้าชื่อ, ชื่อ-นามสกุล";
case "firstNameLastName":
return "เปลี่ยนชื่อ-นามสกุล";
case "prefixAndlastName":
return "เปลี่ยนคำนำหน้าชื่อ และนามสกุล";
default:
return "-";
}