+
{{ titleText }}
diff --git a/src/modules/03_recruiting/views/01_compete/Detail.vue b/src/modules/03_recruiting/views/01_compete/Detail.vue
index 2dfbdf764..6da585171 100644
--- a/src/modules/03_recruiting/views/01_compete/Detail.vue
+++ b/src/modules/03_recruiting/views/01_compete/Detail.vue
@@ -11,14 +11,16 @@
class="q-mr-sm"
@click="router.go(-1)"
/>
- รายชื่อผู้สมัครสอบรอบ {{ name }} ครั้งที่ {{ round }}/{{ year }}
+ รายชื่อผู้สมัครสอบแข่งขัน {{ name }} ครั้งที่ {{ round }}/{{ year }}
ดาวน์โหลดไฟล์
- ส่งออกข้อมูลผู้มีสิทธิ์สอบ
+ ส่งออกข้อมูลผู้มีสิทธิ์สอบ
([
headerStyle: "font-size: 14px; min-width: 20px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "profileID",
@@ -187,7 +192,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "gender",
@@ -198,7 +206,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "position_name",
@@ -209,7 +220,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "university",
@@ -220,7 +234,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "degree",
@@ -231,7 +248,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "major",
@@ -242,7 +262,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "certificateNo",
@@ -253,7 +276,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "certificateIssueDate",
@@ -264,7 +290,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "examAttribute",
@@ -275,7 +304,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "examScore",
@@ -286,18 +318,24 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "examResult",
align: "left",
- label: "ผลการสอบ",
+ label: "ผลคะแนนสอบ",
sortable: true,
field: "examResult",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
{
name: "applyDate",
@@ -308,7 +346,10 @@ const columns = ref([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ a.localeCompare(b, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ }),
},
]);
@@ -392,22 +433,29 @@ const fetchData = async () => {
examResult: "",
})
.then((res) => {
- var header = res.data.result.header;
+ let header = res.data.result.header;
+ let period = res.data.result.period;
count.value = header.count;
pass.value = header.pass;
notpass.value = header.notpass;
+
+ // period information
+ name.value = period.name;
+ round.value = period.order as string;
+ year.value =
+ period.year >= 2500 ? period.year : ((period.year + 543) as string);
+
const data = res.data.result.data;
- let result: RecruitDetailResponse[] = [];
if (data.length > 0) {
- data.map((r: RecruitDetailResponse) => {
- r.personName = `${r.prefix}${r.fullName}`;
- result.push(r);
- });
+ let result: RecruitDetailResponse[] = [];
+ if (data.length > 0) {
+ data.map((r: RecruitDetailResponse) => {
+ r.personName = `${r.prefix}${r.fullName}`;
+ result.push(r);
+ });
+ }
+ rows.value = result;
}
- rows.value = result;
- name.value = result[0].exam_name as string;
- round.value = result[0].exam_order as string;
- year.value = result[0].score_year as string;
})
.catch((e) => {
messageError($q, e);
diff --git a/src/modules/03_recruiting/views/01_compete/DetailEx.vue b/src/modules/03_recruiting/views/01_compete/DetailEx.vue
index 6319215b0..89dd0b905 100644
--- a/src/modules/03_recruiting/views/01_compete/DetailEx.vue
+++ b/src/modules/03_recruiting/views/01_compete/DetailEx.vue
@@ -27,7 +27,7 @@
- คำนำหน้านาม
+ คำนำหน้าชื่อนาม
{{ prefix }}
@@ -81,10 +81,10 @@
- จำนวนครั้งที่สมัครสอบ
+ ครั้งที่ประกาศรับสมัคร
- {{ examCount }}
+ {{ examOrder }}
@@ -111,7 +111,7 @@
>
- ผลการสอบ
+ ผลคะแนนสอบ
("");
const scoreC = ref("");
const scoreSumFull = ref("");
const scoreSum = ref("");
-const examCount = ref("");
+const examOrder = ref("");
const number = ref("");
const score_expired = ref("");
const mixin = useCounterMixin();
@@ -286,32 +286,33 @@ const fetchData = async () => {
.get(config.API.getExamDetail(importId.value, examId.value))
.then((res) => {
let data = res.data.result;
-
- profile_id.value = data.profileID;
- examID.value = data.examID;
- prefix.value = data.prefix;
- fullname.value = data.fullName;
- birthdate.value = data.dateOfBirth;
- gender.value = data.gender;
- degree.value = data.degree;
- major.value = data.major;
- university.value = data.university;
- position_name.value = data.positionName;
- cert_issuedate.value = data.certificateIssueDate;
- examAttribute.value = data.examAttribute;
- number.value = data.number;
- examCount.value = data.examCount;
- score_expired.value = data.scoreExpire;
- if (data.scoreResult != null) {
- scoreAFull.value = data.scoreResult.scoreAFull;
- scoreA.value = data.scoreResult.scoreA;
- scoreBFull.value = data.scoreResult.scoreBFull;
- scoreB.value = data.scoreResult.scoreB;
- scoreCFull.value = data.scoreResult.scoreCFull;
- scoreC.value = data.scoreResult.scoreC;
- scoreSumFull.value = data.scoreResult.scoreSumFull;
- scoreSum.value = data.scoreResult.scoreSum;
- examResultinscore.value = data.scoreResult.examResult;
+ if (data != null) {
+ profile_id.value = data.profileID;
+ examID.value = data.examID;
+ prefix.value = data.prefix;
+ fullname.value = data.fullName;
+ birthdate.value = data.dateOfBirth;
+ gender.value = data.gender;
+ degree.value = data.degree;
+ major.value = data.major;
+ university.value = data.university;
+ position_name.value = data.positionName;
+ cert_issuedate.value = data.certificateIssueDate;
+ examAttribute.value = data.examAttribute;
+ number.value = data.number;
+ examOrder.value = data.examOrder;
+ score_expired.value = data.scoreExpire;
+ if (data.scoreResult != null) {
+ scoreAFull.value = data.scoreResult.scoreAFull;
+ scoreA.value = data.scoreResult.scoreA;
+ scoreBFull.value = data.scoreResult.scoreBFull;
+ scoreB.value = data.scoreResult.scoreB;
+ scoreCFull.value = data.scoreResult.scoreCFull;
+ scoreC.value = data.scoreResult.scoreC;
+ scoreSumFull.value = data.scoreResult.scoreSumFull;
+ scoreSum.value = data.scoreResult.scoreSum;
+ examResultinscore.value = data.scoreResult.examResult;
+ }
}
})
.catch((e) => {
diff --git a/src/modules/03_recruiting/views/01_compete/Period.vue b/src/modules/03_recruiting/views/01_compete/Period.vue
index 6fb0bfe6e..6ba96b5e6 100644
--- a/src/modules/03_recruiting/views/01_compete/Period.vue
+++ b/src/modules/03_recruiting/views/01_compete/Period.vue
@@ -1,355 +1,408 @@
-
- จัดการข้อมูลผู้สมัครสอบแข่งขัน
-
-
-
-
-
-
-
-
- {{ props.rowIndex + 1 }}
-
-
- {{ col.value }}
-
-
- {{ col.value + 543 }}
-
-
-
-
-
- นำเข้าไฟล์ผลการสอบ
-
-
- {{ col.value }}
-
- นำเข้าไฟล์ผลการสอบอีกครั้ง
-
+
+ จัดการรอบสอบแข่งขัน
+
+
+
+
+
+
+
+
+ {{ props.rowIndex + 1 }}
+
+
+ {{ col.value }}
+
+
+ {{ col.value + 543 }}
+
+
+
+
+
+ นำเข้าไฟล์ผลคะแนนสอบ
+
+
+ {{ col.value }}
+
+ นำเข้าไฟล์ผลคะแนนสอบอีกครั้ง
+
-
- ดาวน์โหลดรายชื่อผู้สอบแข่งขันได้
-
-
-
-
-
-
- นำเข้าไฟล์ผู้สมัครสอบ
-
-
- {{ col.value }}
+
+ ดาวน์โหลดรายชื่อผู้สอบแข่งขันได้
+
+
+
+
+
+
+ นำเข้าไฟล์ผู้สมัครสอบ
+
+
+ {{ col.value }}
-
- นำเข้าไฟล์ผู้สมัครสอบอีกครั้ง
-
+
+ นำเข้าไฟล์ผู้สมัครสอบอีกครั้ง
+
-
- ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ
-
-
-
-
- {{ col.value }}
-
-
-
-
- แก้ไขข้อมูล
-
-
- ลบข้อมูล
-
+
+ ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ
+
+
+
+
+ {{ col.value }}
+
+
+
+
+ แก้ไขข้อมูล
+
+
+ ลบข้อมูล
+
-
- แสดงประวัติการทำงาน
-
-
-
-
-
-
-
+
+ แสดงประวัติการทำงาน
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{ textDate(col.value) }}
-
+
+
+
+
+
+
+
+
+
+ {{ textDate(col.value) }}
+
-
- {{ col.value }}
-
-
-
-
-
+
+ {{ col.value }}
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ บันทึก
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ บันทึก
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ บันทึก
+
+
+
+
+
diff --git a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue
index ec41e4b9a..fc0d44ffb 100644
--- a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue
+++ b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue
@@ -1,667 +1,797 @@
-
-
- {{ edit ? "แก้ไขข้อมูลการสอบแข่งขัน" : "เพิ่มข้อมูลการสอบแข่งขัน" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
- {{
- parseInt(value + 543)
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {{ edit ? "แก้ไขรอบสอบแข่งขัน" : "เพิ่มรอบสอบแข่งขัน" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ year + 543
+ }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
รูปภาพประกอบ
-
-
-
-
-
- ลบทั้งหมด
-
-
- ลบไฟล์ที่อัปโหลด
-
-
-
-
- {{ "[ไฟล์ jpg,png,pdf,csv,doc ขนาดไม่เกิน 10MB]" }}
-
-
- {{ scope.uploadSizeLabel }}
- /
- {{ scope.uploadProgressLabel }}
-
-
-
-
- เลือกไฟล์
-
-
- ยกเลิกการอัปโหลด
-
-
-
-
-
-
-
-
-
-
- {{ file.fileName }}
-
+
+
+
+ รูปภาพประกอบ
+
+
+
+
+
+
+ ลบทั้งหมด
+
+
+ ลบไฟล์ที่อัปโหลด
+
+
+
+
+ {{
+ "[ไฟล์ jpg,png,pdf,csv,doc ขนาดไม่เกิน 10MB]"
+ }}
+
+
+ {{ scope.uploadSizeLabel }}
+ /
+ {{
+ scope.uploadProgressLabel
+ }}
+
+
+
+
+ เลือกไฟล์
+
+
+ ยกเลิกการอัปโหลด
+
+
+
+
+
+
+
+
+
+
+ {{ file.fileName }}
+
-
- สถานะ: {{ file.fileType }} /
- {{ file.fileSize }}
-
-
-
-
-
- ดาวน์โหลด
-
-
- ลบไฟล์
-
-
-
-
-
-
-
-
-
เอกสารประกอบ
-
-
-
-
-
- ลบทั้งหมด
-
-
- ลบไฟล์ที่อัปโหลด
-
-
-
-
- {{ "[ไฟล์ jpg,png,pdf,csv,doc ขนาดไม่เกิน 10MB]" }}
-
-
- {{ scope.uploadSizeLabel }}
- /
- {{ scope.uploadProgressLabel }}
-
-
-
-
- เลือกไฟล์
-
-
- ยกเลิกการอัปโหลด
-
-
-
-
-
-
-
-
-
-
- {{ file.fileName }}
-
+
+ สถานะ: {{ file.fileType }} /
+ {{ file.fileSize }}
+
+
+
+
+
+ ดาวน์โหลด
+
+
+ ลบไฟล์
+
+
+
+
+
+
+
+
+
+ เอกสารประกอบ
+
+
+
+
+
+
+ ลบทั้งหมด
+
+
+ ลบไฟล์ที่อัปโหลด
+
+
+
+
+ {{
+ "[ไฟล์ jpg,png,pdf,csv,doc ขนาดไม่เกิน 10MB]"
+ }}
+
+
+ {{ scope.uploadSizeLabel }}
+ /
+ {{
+ scope.uploadProgressLabel
+ }}
+
+
+
+
+ เลือกไฟล์
+
+
+ ยกเลิกการอัปโหลด
+
+
+
+
+
+
+
+
+
+
+ {{ file.fileName }}
+
-
- สถานะ: {{ file.fileType }} /
- {{ file.fileSize }}
-
-
-
-
-
- ดาวน์โหลด
-
-
- ลบไฟล์
-
-
-
-
-
-
-
-
-
-
-
+
+ สถานะ: {{ file.fileType }} /
+ {{ file.fileSize }}
+
+
+
+
+
+ ดาวน์โหลด
+
+
+ ลบไฟล์
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{ edit ? "แก้ไขข้อมูล" : "บันทึกข้อมูล" }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{
+ edit ? "แก้ไขข้อมูล" : "บันทึกข้อมูล"
+ }}
+
+
+
+
diff --git a/src/modules/03_recruiting/views/01_compete/PeriodStat.vue b/src/modules/03_recruiting/views/01_compete/PeriodStat.vue
index 3bfe427ab..8dfad847f 100644
--- a/src/modules/03_recruiting/views/01_compete/PeriodStat.vue
+++ b/src/modules/03_recruiting/views/01_compete/PeriodStat.vue
@@ -1,7 +1,7 @@
- ข้อมูลสถิติการสมัครสอบแข่งขัน
+ สถิติสมัครสอบแข่งขัน
-
คำนำหน้านาม
+
+ คำนำหน้าชื่อนาม
+
{{ prefix }}
-
ชื่อ-นามสกุล
+
+ ชื่อ-นามสกุล
+
{{ fullname }}
@@ -55,26 +59,32 @@
{{ position_name }}
-
สถานศึกษา
+
+ สถานศึกษา
+
{{ university }}
-
วุฒิการศึกษา
+
+ วุฒิการศึกษา
+
{{ degree }}
-
สาขาวิชาเอก
+
+ สาขาวิชาเอก
+
{{ major }}
- จำนวนครั้งที่สมัครสอบ
+ ครั้งที่ประกาศรับสมัคร
- {{ examCount }}
+ {{ examOrder }}
@@ -101,7 +111,7 @@
>
- ผลการสอบ
+ ผลคะแนนสอบ
ดาวน์โหลดผลคะแนน
-
+
ดาวน์โหลดเอกสารรับรอง
@@ -138,12 +152,18 @@
-
ประเภท
-
คะแนนเต็ม
+
+ ประเภท
+
+
+ คะแนนเต็ม
+
คะแนนที่ได้
-
+
ภาค ก
@@ -181,10 +201,16 @@
คะแนน
-
ผลการสอบ
-
+
+ ผลการสอบ
+
+
{{ examResultinscore }}
@@ -195,7 +221,7 @@
- วันหมดอายุบัญชีคัดเลือกผู้พิการ
+ วันหมดอายุบัญชีคัดเลือกคนพิการ
{{ score_expired }}
@@ -245,7 +271,7 @@ const scoreCFull = ref
("");
const scoreC = ref("");
const scoreSumFull = ref("");
const scoreSum = ref("");
-const examCount = ref("");
+const examOrder = ref("");
const number = ref("");
const score_expired = ref("");
const attachments = ref([
@@ -268,8 +294,7 @@ const fetchData = async () => {
.get(config.API.getDisableExamDetail(importId.value, examId.value))
.then((res) => {
let data = res.data.result.data;
- if (res.data.result != null) {
- examCount.value = res.data.result.examCount;
+ if (data != null) {
profile_id.value = data.profileID;
examID.value = data.examID;
prefix.value = data.prefix;
@@ -284,7 +309,7 @@ const fetchData = async () => {
examAttribute.value = data.examAttribute;
number.value = data.number;
console.log(data);
- examCount.value = data.examCount;
+ examOrder.value = data.examOrder;
score_expired.value = data.scoreExpire;
if (data.scoreResult != null) {
scoreAFull.value = data.scoreResult.scoreAFull;
@@ -331,9 +356,12 @@ const downloadScore = async () => {
const downloadCertificate = async () => {
loaderPage(true);
await http
- .get(config.API.downloadDisableExamReport(importId.value, examId.value, 2), {
- responseType: "blob",
- })
+ .get(
+ config.API.downloadDisableExamReport(importId.value, examId.value, 2),
+ {
+ responseType: "blob",
+ }
+ )
.then((res) => {
var a = document.createElement("a");
a.href = URL.createObjectURL(res.data);
diff --git a/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue b/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue
index 097beb127..ccb021623 100644
--- a/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue
+++ b/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue
@@ -1,357 +1,406 @@
-
- จัดการรอบคัดเลือกคนพิการ
-
-
-
-
-
-
-
-
- {{ props.rowIndex + 1 }}
-
-
- {{ col.value }}
-
-
- {{ col.value + 543 }}
-
-
-
-
-
- นำเข้าไฟล์ผลการสอบ
-
-
- {{ col.value }}
-
- นำเข้าไฟล์ผลการสอบอีกครั้ง
-
+
+ จัดการรอบคัดเลือกคนพิการ
+
+
+
+
+
+
+
+
+ {{ props.rowIndex + 1 }}
+
+
+ {{ col.value }}
+
+
+ {{ col.value + 543 }}
+
+
+
+
+
+ นำเข้าไฟล์ผลคะแนนสอบ
+
+
+ {{ col.value }}
+
+ นำเข้าไฟล์ผลคะแนนสอบอีกครั้ง
+
-
- ดาวน์โหลดรายชื่อผู้สอบแข่งขันได้
-
-
-
-
-
-
- นำเข้าไฟล์ผู้สมัครสอบ
-
-
- {{ col.value }}
+
+ ดาวน์โหลดรายชื่อผู้สอบแข่งขันได้
+
+
+
+
+
+
+ นำเข้าไฟล์ผู้สมัครสอบ
+
+
+ {{ col.value }}
-
- นำเข้าไฟล์ผู้สมัครสอบอีกครั้ง
-
+
+ นำเข้าไฟล์ผู้สมัครสอบอีกครั้ง
+
-
- ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ
-
-
-
-
- {{ col.value }}
-
-
-
-
- แก้ไขข้อมูล
-
-
- ลบข้อมูล
-
+
+ ดาวน์โหลดรายชื่อผู้มีสิทธิ์สอบ
+
+
+
+
+ {{ col.value }}
+
+
+
+
+ แก้ไขข้อมูล
+
+
+ ลบข้อมูล
+
-
- แสดงประวัติการทำงาน
-
-
-
-
-
-
-
+
+ แสดงประวัติการทำงาน
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{ textDate(col.value) }}
-
+
+
+
+
+
+
+
+
+
+ {{ textDate(col.value) }}
+
-
- {{ col.value }}
-
-
-
-
-
+
+ {{ col.value }}
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ บันทึก
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ บันทึก
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ บันทึก
+
+
+
+
+
diff --git a/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue
index ab201af97..8630c1005 100644
--- a/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue
+++ b/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue
@@ -1,4 +1,4 @@
-
+
{{
- edit ? "แก้ไขข้อมูลการคัดเลือกผู้พิการ" : "เพิ่มข้อมูลการคัดเลือกผู้พิการ"
+ edit ? "แก้ไขข้อมูลการคัดเลือกคนพิการ" : "เพิ่มข้อมูลการคัดเลือกคนพิการ"
}}
@@ -24,13 +24,12 @@
@@ -836,7 +835,7 @@ const addData = async () => {
.then(async (res) => {
const data = res.data.result;
id.value = data;
- success($q, "บันทึกรอบการสอบผู้พิการสำเร็จ");
+ success($q, "บันทึกรอบการสอบคนพิการสำเร็จ");
await uploadImgData();
await uploadDocData();
clickBack();
@@ -854,7 +853,7 @@ const editData = async (id: string) => {
await http
.put(config.API.editDisablePeriod(id), sendData())
.then(async () => {
- success($q, "แก้ไขรอบการสอบผู้พิการสำเร็จ");
+ success($q, "แก้ไขรอบการสอบคนพิการสำเร็จ");
await uploadImgData();
await uploadDocData();
clickBack();
diff --git a/src/modules/03_recruiting/views/02_qualify/Manage.vue b/src/modules/03_recruiting/views/02_qualify/Manage.vue
index 3c2d2f50e..6702dd063 100644
--- a/src/modules/03_recruiting/views/02_qualify/Manage.vue
+++ b/src/modules/03_recruiting/views/02_qualify/Manage.vue
@@ -108,7 +108,7 @@ const columns = ref
([
{
name: "name",
align: "left",
- label: "ชื่อรอบการคัดเลือก",
+ label: "ชื่อรอบคัดเลือก",
sortable: true,
field: "name",
headerStyle: "font-size: 14px",
diff --git a/src/modules/03_recruiting/views/02_qualify/Period.vue b/src/modules/03_recruiting/views/02_qualify/Period.vue
index c8a16735e..210a8200a 100644
--- a/src/modules/03_recruiting/views/02_qualify/Period.vue
+++ b/src/modules/03_recruiting/views/02_qualify/Period.vue
@@ -1,79 +1,88 @@
-
- จัดการรอบคัดเลือก
-
-
-
-
-
-
-
-
- {{ props.rowIndex + 1 }}
-
-
- {{ col.value + 543 }}
-
-
- {{ dateThaiRange(col.value) }}
-
-
- {{ col.value ? "ข่าวการสอบ" : "ข่าวทั่วไป" }}
-
-
- {{ typeCategoryExam(col.value) }}
-
-
- {{ col.value }}
-
-
-
-
- ลบข้อมูล
-
-
-
-
-
-
-
+
+ จัดการรอบคัดเลือก
+
+
+
+
+
+
+
+
+ {{ props.rowIndex + 1 }}
+
+
+ {{ col.value + 543 }}
+
+
+ {{ dateThaiRange(col.value) }}
+
+
+ {{ col.value ? "ข่าวการสอบ" : "ข่าวทั่วไป" }}
+
+
+ {{ typeCategoryExam(col.value) }}
+
+
+ {{ col.value }}
+
+
+
+
+ ลบข้อมูล
+
+
+
+
+
+
+
diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue
index 0112f7120..83381a653 100644
--- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue
+++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue
@@ -11,7 +11,7 @@
class="q-mr-sm"
@click="clickBack"
/>
- {{ edit ? `แก้ไข${nameRaw}` : "เพิ่มระยะเวลาการคัดเลือก" }}
+ {{ edit ? `แก้ไขรอบคัดเลือก` : "เพิ่มรอบคัดเลือก" }}
{{
edit && announcementExam
? `ครั้งที่ ${roundRaw}/${yearlyRaw == null ? "" : yearlyRaw + 543}`
@@ -21,27 +21,26 @@
-
+
-
-
+
-
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ selectGovernmentCode(value)"
+ >
+
+
+ selectOrganization(value)"
+ >
+
+
+
+
+
+
เลือกวีธีการชำระเงิน
-
+
{
.then(async (res) => {
const data = res.data.result;
id.value = data;
- success($q, "บันทึกรอบการคัดเลือกสำเร็จ");
+ success($q, "บันทึกรอบคัดเลือกสำเร็จ");
await uploadImgData();
await uploadDocData();
await clickBack();
@@ -1433,7 +1434,7 @@ const editData = async (id: string) => {
await http
.put(config.API.periodExamId(id), sendData())
.then(async (res) => {
- success($q, "แก้ไขรอบการคัดเลือกสำเร็จ");
+ success($q, "แก้ไขรอบคัดเลือกสำเร็จ");
await uploadImgData();
await uploadDocData();
await clickBack();
diff --git a/src/modules/03_recruiting/views/02_qualify/manageDetail.vue b/src/modules/03_recruiting/views/02_qualify/manageDetail.vue
index 51f2aadb4..74b8776c2 100644
--- a/src/modules/03_recruiting/views/02_qualify/manageDetail.vue
+++ b/src/modules/03_recruiting/views/02_qualify/manageDetail.vue
@@ -34,13 +34,13 @@
-
+
-
-
-
สรุปจำนวนผู้สมัครคัดเลือก
+
+
+ สรุปจำนวนผู้สมัครคัดเลือก
@@ -75,10 +75,8 @@
-
ดาวน์โหลดรายชื่อผู้สอบแข่งขันได้
-
+
-
+
บัตรประจำตัวผู้สอบ
diff --git a/src/modules/03_recruiting/views/03_editor/index.vue b/src/modules/03_recruiting/views/03_editor/index.vue
index 0e91abb4e..8f372fe5e 100644
--- a/src/modules/03_recruiting/views/03_editor/index.vue
+++ b/src/modules/03_recruiting/views/03_editor/index.vue
@@ -455,8 +455,8 @@
lazy-rules
:readonly="!editvisible"
:borderless="!editvisible"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
- label="ชื่อ"
+ :rules="[(val) => !!val || `${'กรุณากรอก ฃื่อ'}`]"
+ label="ฃื่อ"
/>
+ icon="mdi-delete-outline"
+ >
+ ลบข้อมูล
+ icon="mdi-pencil-outline"
+ >
+ แก้ไขข้อมูล
+ icon="mdi-undo"
+ >
+ ยกเลิก
+ icon="mdi-content-save-outline"
+ >
+ บันทึก
+ icon="mdi-content-save-outline"
+ >
+ บันทึก
diff --git a/src/modules/04_registry/components/Assessment.vue b/src/modules/04_registry/components/Assessment.vue
index 5f171a8d6..c93364503 100644
--- a/src/modules/04_registry/components/Assessment.vue
+++ b/src/modules/04_registry/components/Assessment.vue
@@ -366,9 +366,7 @@ const tittleHistory = ref("ประวัติแก้ไขผลก
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
@@ -597,36 +595,34 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileAssessmentId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- name: e.name,
- point1Total: e.point1Total,
- point1: e.point1,
- point2Total: e.point2Total,
- point2: e.point2,
- pointSumTotal: e.pointSumTotal,
- pointSum: e.pointSum,
- date: new Date(e.date),
- createdAt: new Date(e.createdAt),
- createdFullName: e.createdFullName,
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileAssessmentId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ name: e.name,
+ point1Total: e.point1Total,
+ point1: e.point1,
+ point2Total: e.point2Total,
+ point2: e.point2,
+ pointSumTotal: e.pointSumTotal,
+ pointSum: e.pointSum,
+ date: new Date(e.date),
+ createdAt: new Date(e.createdAt),
+ createdFullName: e.createdFullName,
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -716,31 +712,29 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileAssessmentId(profileId.value), {
- id: id.value,
- name: name.value,
- point1Total: point1Total.value,
- point1: point1.value,
- point2Total: point2Total.value,
- point2: point2.value,
- pointSumTotal: pointSumTotal.value,
- pointSum: pointSum.value,
- date: dateToISO(date.value),
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileAssessmentId(profileId.value), {
+ id: id.value,
+ name: name.value,
+ point1Total: point1Total.value,
+ point1: point1.value,
+ point2Total: point2Total.value,
+ point2: point2.value,
+ pointSumTotal: pointSumTotal.value,
+ pointSum: pointSum.value,
+ date: dateToISO(date.value),
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
diff --git a/src/modules/04_registry/components/Coin.vue b/src/modules/04_registry/components/Coin.vue
index b30a37c71..122508ea6 100644
--- a/src/modules/04_registry/components/Coin.vue
+++ b/src/modules/04_registry/components/Coin.vue
@@ -25,8 +25,11 @@
@click="selectData(props)"
class="cursor-pointer"
>
-
- {{ date2Thai(col.value) }}
+
+ {{ col.value == null ? null : date2Thai(col.value) }}
{{ col.value }}
@@ -118,9 +121,9 @@
:readonly="!edit"
:borderless="!edit"
v-model="issuer"
- :rules="[(val) => !!val || `${'กรุณากรอกหน่วยงานที่ออก'}`]"
+ :rules="[(val) => !!val || `${'กรุณากรอกผู้มีอำนาจลงนาม'}`]"
hide-bottom-space
- :label="`${'หน่วยงานที่ออก'}`"
+ :label="`${'ผู้มีอำนาจลงนาม'}`"
@update:modelValue="clickEditRow"
/>
@@ -140,6 +143,72 @@
@update:modelValue="clickEditRow"
/>
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
@@ -173,10 +242,14 @@
- {{ date2Thai(col.value) }}
+ {{ col.value == null ? null : date2Thai(col.value) }}
{{ col.value }}
@@ -230,6 +303,8 @@ const id = ref
("");
const issuer = ref();
const detail = ref();
const issueDate = ref(new Date());
+const refCommandNo = ref();
+const refCommandDate = ref(new Date());
const myForm = ref(); //form data input
const edit = ref(false); //เช็คการกดปุ่มแก้ไขใน dialog
const modal = ref(false); //modal add detail
@@ -244,14 +319,18 @@ const tittleHistory = ref("ประวัติแก้ไขประ
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
profileData.coined.columns.length == 0
- ? (visibleColumns.value = ["issuer", "detail", "issueDate"])
+ ? (visibleColumns.value = [
+ "issuer",
+ "detail",
+ "issueDate",
+ "refCommandNo",
+ "refCommandDate",
+ ])
: (visibleColumns.value = profileData.coined.columns);
const columns = ref([
{
@@ -268,7 +347,7 @@ const columns = ref([
{
name: "issuer",
align: "left",
- label: "หน่วยงานที่ออก",
+ label: "ผู้มีอำนาจลงนาม",
sortable: true,
field: "issuer",
headerStyle: "font-size: 14px",
@@ -287,6 +366,28 @@ const columns = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "refCommandNo",
+ align: "left",
+ label: "เลขที่คำสั่ง",
+ sortable: true,
+ field: "refCommandNo",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "refCommandDate",
+ align: "left",
+ label: "เอกสารอ้างอิง (ลงวันที่)",
+ sortable: true,
+ field: "refCommandDate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
]);
const columnsHistory = ref([
{
@@ -303,7 +404,7 @@ const columnsHistory = ref([
{
name: "issuer",
align: "left",
- label: "หน่วยงานที่ออก",
+ label: "ผู้มีอำนาจลงนาม",
sortable: true,
field: "issuer",
headerStyle: "font-size: 14px",
@@ -322,6 +423,28 @@ const columnsHistory = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "refCommandNo",
+ align: "left",
+ label: "เลขที่คำสั่ง",
+ sortable: true,
+ field: "refCommandNo",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "refCommandDate",
+ align: "left",
+ label: "เอกสารอ้างอิง (ลงวันที่)",
+ sortable: true,
+ field: "refCommandDate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
{
name: "createdFullName",
align: "left",
@@ -349,6 +472,8 @@ const visibleColumnsHistory = ref([
"issuer",
"detail",
"issueDate",
+ "refCommandNo",
+ "refCommandDate",
"createdFullName",
"createdAt",
]);
@@ -362,31 +487,32 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileHonorId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- issuer: e.issuer,
- detail: e.detail,
- issueDate: new Date(e.issueDate),
- createdAt: new Date(e.createdAt),
- createdFullName: e.createdFullName,
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileHonorId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ issuer: e.issuer,
+ detail: e.detail,
+ issueDate: new Date(e.issueDate),
+ refCommandNo: e.refCommandNo,
+ refCommandDate:
+ e.refCommandDate == null ? null : new Date(e.refCommandDate),
+ createdAt: new Date(e.createdAt),
+ createdFullName: e.createdFullName,
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -417,6 +543,8 @@ const getData = () => {
issuer.value = row.issuer;
detail.value = row.detail;
issueDate.value = row.issueDate;
+ refCommandNo.value = row.refCommandNo;
+ refCommandDate.value = row.refCommandDate;
id.value = row.id;
};
@@ -471,26 +599,27 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileHonorId(profileId.value), {
- id: id.value,
- issuer: issuer.value,
- detail: detail.value,
- issueDate: dateToISO(issueDate.value),
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileHonorId(profileId.value), {
+ id: id.value,
+ issuer: issuer.value,
+ detail: detail.value,
+ issueDate: dateToISO(issueDate.value),
+ refCommandNo: refCommandNo.value,
+ refCommandDate:
+ refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
@@ -504,6 +633,9 @@ const editData = async () => {
issuer: issuer.value,
detail: detail.value,
issueDate: dateToISO(issueDate.value),
+ refCommandNo: refCommandNo.value,
+ refCommandDate:
+ refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
})
.then((res) => {
success($q, "บันทึกข้อมูลสำเร็จ");
@@ -584,6 +716,8 @@ const selectData = async (props: DataProps) => {
issuer.value = props.row.issuer;
detail.value = props.row.detail;
issueDate.value = props.row.issueDate;
+ refCommandNo.value = props.row.refCommandNo;
+ refCommandDate.value = props.row.refCommandDate;
id.value = props.row.id;
await checkRowPage();
};
@@ -598,6 +732,8 @@ const addData = () => {
issuer.value = "";
detail.value = "";
issueDate.value = new Date();
+ refCommandNo.value = "";
+ refCommandDate.value = null;
};
/**
@@ -651,6 +787,9 @@ const clickHistory = async (row: RequestItemsObject) => {
issuer: e.issuer,
detail: e.detail,
issueDate: new Date(e.issueDate),
+ refCommandNo: e.refCommandNo,
+ refCommandDate:
+ e.refCommandDate == null ? null : new Date(e.refCommandDate),
createdAt: new Date(e.createdAt),
createdFullName: e.createdFullName,
});
@@ -686,6 +825,7 @@ const getClass = (val: boolean) => {
"full-width cursor-pointer": !val,
};
};
+const resetFilter = () => {};
diff --git a/src/modules/04_registry/components/Information/Address.vue b/src/modules/04_registry/components/Information/Address.vue
index 99192c26b..64f63ecf4 100644
--- a/src/modules/04_registry/components/Information/Address.vue
+++ b/src/modules/04_registry/components/Information/Address.vue
@@ -5,12 +5,11 @@
header="ข้อมูลที่อยู่"
icon="mdi-map-marker"
:save="saveData"
- :history="!statusAdd()"
+ :history="true"
:changeBtn="changeBtn"
:disable="statusEdit"
:cancel="refreshData"
:historyClick="clickHistory"
- :addEmployee="statusAdd()"
/>
@@ -312,10 +311,6 @@ const props = defineProps({
type: Boolean,
required: true,
},
- statusAdd: {
- type: Boolean,
- default: false,
- },
});
const emit = defineEmits(["update:statusEdit"]);
@@ -512,28 +507,8 @@ const visibleColumnsHistory = ref
([
onMounted(async () => {
await getNewData();
emit("update:statusEdit", false);
- defaultAdd();
});
-const statusAdd = () => props.statusAdd;
-
-const defaultAdd = () => {
- if (props.statusAdd) {
- edit.value = props.statusAdd;
- addressData.value = {
- address: null,
- provinceId: null,
- districtId: null,
- subdistrictId: null,
- addressC: null,
- provinceIdC: null,
- districtIdC: null,
- subdistrictIdC: null,
- same: "0",
- };
- }
-};
-
const filterSelector = (val: any, update: Function, refData: string) => {
switch (refData) {
case "provinceOps":
@@ -581,39 +556,37 @@ const filterSelector = (val: any, update: Function, refData: string) => {
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลที่เลือก
*/
const clickHistory = async () => {
- if (route.params.id) {
- modalHistory.value = true;
- loaderPage(true);
- await http
- .get(config.API.profileAdrsHisId(route.params.id.toString()))
- .then((res) => {
- let data = res.data.result;
- rowsHistory.value = [];
- data.map((e: RequestItemsHistoryObject) => {
- rowsHistory.value.push({
- currentAddress: e.currentAddress,
- currentDistrict: e.currentDistrict,
- currentProvince: e.currentProvince,
- currentSubDistrict: e.currentSubDistrict,
- currentZipCode: e.currentZipCode,
- registrationSame: e.registrationSame,
- registrationAddress: e.registrationAddress,
- registrationDistrict: e.registrationDistrict,
- registrationProvince: e.registrationProvince,
- registrationSubDistrict: e.registrationSubDistrict,
- registrationZipCode: e.registrationZipCode,
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ modalHistory.value = true;
+ loaderPage(true);
+ await http
+ .get(config.API.profileAdrsHisId(route.params.id.toString()))
+ .then((res) => {
+ let data = res.data.result;
+ rowsHistory.value = [];
+ data.map((e: RequestItemsHistoryObject) => {
+ rowsHistory.value.push({
+ currentAddress: e.currentAddress,
+ currentDistrict: e.currentDistrict,
+ currentProvince: e.currentProvince,
+ currentSubDistrict: e.currentSubDistrict,
+ currentZipCode: e.currentZipCode,
+ registrationSame: e.registrationSame,
+ registrationAddress: e.registrationAddress,
+ registrationDistrict: e.registrationDistrict,
+ registrationProvince: e.registrationProvince,
+ registrationSubDistrict: e.registrationSubDistrict,
+ registrationZipCode: e.registrationZipCode,
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
const refreshData = async () => {
@@ -633,29 +606,27 @@ const getNewData = async () => {
};
const fetchData = async () => {
- if (route.params.id) {
- loaderPage(true);
- await http
- .get(config.API.profileAdrsId(route.params.id.toString()))
- .then((res) => {
- const data: ResponseObject = res.data.result;
- addressData.value.address = data.registrationAddress;
- addressData.value.addressC = data.currentAddress;
- addressData.value.districtId = data.registrationDistrictId;
- addressData.value.districtIdC = data.currentDistrictId;
- addressData.value.provinceId = data.registrationProvinceId;
- addressData.value.provinceIdC = data.currentProvinceId;
- addressData.value.subdistrictId = data.registrationSubDistrictId;
- addressData.value.subdistrictIdC = data.currentSubDistrictId;
- addressData.value.same = data.registrationSame ? "1" : "0";
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
- });
- }
+ loaderPage(true);
+ await http
+ .get(config.API.profileAdrsId(route.params.id.toString()))
+ .then((res) => {
+ const data: ResponseObject = res.data.result;
+ addressData.value.address = data.registrationAddress;
+ addressData.value.addressC = data.currentAddress;
+ addressData.value.districtId = data.registrationDistrictId;
+ addressData.value.districtIdC = data.currentDistrictId;
+ addressData.value.provinceId = data.registrationProvinceId;
+ addressData.value.provinceIdC = data.currentProvinceId;
+ addressData.value.subdistrictId = data.registrationSubDistrictId;
+ addressData.value.subdistrictIdC = data.currentSubDistrictId;
+ addressData.value.same = data.registrationSame ? "1" : "0";
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
const editData = async () => {
@@ -705,34 +676,12 @@ const editData = async () => {
const saveData = async () => {
await myform.value.validate().then(async (success: boolean) => {
if (success) {
- if (props.statusAdd) {
- await addData();
- } else {
- await editData();
- }
+ await editData();
} else {
}
});
};
-const addData = async () => {
- // loaderPage(true);
- // await http
- // .put(config.API.profileInforId(route.params.id.toString()), body)
- // .then((res) => {
- // success($q, "บันทึกข้อมูลสำเร็จ");
- // })
- // .catch((e) => {
- // messageError($q, e);
- // })
- // .finally(async () => {
- // edit.value = false;
- // emit("update:statusEdit", false);
- // await fetchData();
- // await changeBirth(informaData.value.birthDate ?? new Date());
- // });
-};
-
const selectProvince = async (e: string | null, name: string) => {
if (e != null) {
if (name == "1") {
diff --git a/src/modules/04_registry/components/Information/Certicate.vue b/src/modules/04_registry/components/Information/Certicate.vue
index a2025677f..721bf17c0 100644
--- a/src/modules/04_registry/components/Information/Certicate.vue
+++ b/src/modules/04_registry/components/Information/Certicate.vue
@@ -285,10 +285,6 @@ const props = defineProps({
type: String,
required: true,
},
- statusAdd: {
- type: Boolean,
- default: false,
- },
});
const $q = useQuasar();
@@ -320,9 +316,7 @@ const tittleHistory = ref("ประวัติแก้ไขใบอ
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
@@ -490,33 +484,31 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileCertId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- certificateNo: e.certificateNo,
- issuer: e.issuer,
- issueDate: new Date(e.issueDate),
- expireDate: new Date(e.expireDate),
- certificateType: e.certificateType,
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileCertId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ certificateNo: e.certificateNo,
+ issuer: e.issuer,
+ issueDate: new Date(e.issueDate),
+ expireDate: new Date(e.expireDate),
+ certificateType: e.certificateType,
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -603,28 +595,26 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileCertId(profileId.value), {
- id: id.value,
- certificateNo: certificateNo.value,
- issuer: issuer.value,
- issueDate: dateToISO(issueDate.value),
- expireDate: dateToISO(expireDate.value),
- certificateType: certificateType.value,
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileCertId(profileId.value), {
+ id: id.value,
+ certificateNo: certificateNo.value,
+ issuer: issuer.value,
+ issueDate: dateToISO(issueDate.value),
+ expireDate: dateToISO(expireDate.value),
+ certificateType: certificateType.value,
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
diff --git a/src/modules/04_registry/components/Information/Family.vue b/src/modules/04_registry/components/Information/Family.vue
index d07de77a7..6c49531e0 100644
--- a/src/modules/04_registry/components/Information/Family.vue
+++ b/src/modules/04_registry/components/Information/Family.vue
@@ -5,24 +5,62 @@
header="ข้อมูลครอบครัว"
icon="mdi-account-group"
:save="saveData"
- :history="!statusAdd()"
+ :history="true"
:changeBtn="changeBtn"
:disable="statusEdit"
:cancel="refreshData"
:historyClick="historyData"
- :addEmployee="statusAdd()"
/>
-
• บิดา
-
+
+
+
+
+
-
+
- • มารดา
-
+
+
+
+
+
-
+
-
-
-
+ • คู่สมรส
+
+
+
+
+
-
+
+
+
+
+
+
@@ -184,7 +309,7 @@
:class="getClass(edit)"
:readonly="!edit"
:borderless="!edit"
- :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="edit"
dense
lazy-rules
@@ -194,7 +319,7 @@
option-label="name"
:options="Ops.prefixOps"
option-value="id"
- :label="`${'คำนำหน้า'}`"
+ :label="`${'คำนำหน้าชื่อ'}`"
use-input
input-debounce="0"
@filter="(inputValue:any,
@@ -203,7 +328,7 @@
/>
-
+
-
-
+
@@ -282,35 +409,70 @@
-
- ลบข้อมูล
-
-
+
+ {{ index + 1 }}
+
+
+
+
+
+ ลบข้อมูล {{ index + 1 }}
+
+
+
+
+
+
-
@@ -390,15 +564,50 @@
}`
}}
-
• บิดา
-
+
+ • บิดา
+
+
+
+
+
+
+
-
+
- • มารดา
-
+
+ • มารดา
+
+
+
+
+
+
+
-
+
+
+
-
+
+
+
+
+
+
+
+
-
+
console.log("not function"),
},
- statusAdd: {
- type: Boolean,
- default: false,
- },
});
const emit = defineEmits(["update:statusEdit"]);
@@ -815,16 +1140,22 @@ const familyData = ref({
lastnameC: null,
lastnameCOld: null,
occupationC: null,
+ liveC: null,
+ citizenIdC: null,
prefixM: null,
prefixIdM: null,
firstnameM: null,
lastnameM: null,
occupationM: null,
+ liveM: null,
+ citizenIdM: null,
prefixF: null,
prefixIdF: null,
firstnameF: null,
lastnameF: null,
occupationF: null,
+ liveF: null,
+ citizenIdF: null,
same: "0",
childrens: [],
});
@@ -840,37 +1171,8 @@ onMounted(async () => {
await fetchPrefix();
await fetchData();
emit("update:statusEdit", false);
- defaultAdd();
});
-const statusAdd = () => props.statusAdd;
-
-const defaultAdd = () => {
- if (props.statusAdd) {
- edit.value = props.statusAdd;
- familyData.value = {
- prefixC: null,
- prefixIdC: null,
- firstnameC: null,
- lastnameC: null,
- lastnameCOld: null,
- occupationC: null,
- prefixM: null,
- prefixIdM: null,
- firstnameM: null,
- lastnameM: null,
- occupationM: null,
- prefixF: null,
- prefixIdF: null,
- firstnameF: null,
- lastnameF: null,
- occupationF: null,
- same: "0",
- childrens: [],
- };
- }
-};
-
const historyData = async () => {
await fetchHistory();
};
@@ -918,6 +1220,8 @@ const addChildren = async () => {
childrenFirstName: "",
childrenLastName: "",
childrenCareer: "",
+ childrenLive: "1",
+ childrenCitizenId: "",
});
familyData.value.childrens.sort(
@@ -948,14 +1252,20 @@ const fetchHistory = async () => {
coupleLastName: row.coupleLastName,
coupleLastNameOld: row.coupleLastNameOld,
coupleCareer: row.coupleCareer,
+ coupleLive: row.coupleLive ? "1" : "0",
+ coupleCitizenId: row.coupleCitizenId,
fatherPrefixId: row.fatherPrefixId,
fatherFirstName: row.fatherFirstName,
fatherLastName: row.fatherLastName,
fatherCareer: row.fatherCareer,
+ fatherLive: row.fatherLive ? "1" : "0",
+ fatherCitizenId: row.fatherCitizenId,
motherPrefixId: row.motherPrefixId,
motherFirstName: row.motherFirstName,
motherLastName: row.motherLastName,
motherCareer: row.motherCareer,
+ motherLive: row.motherLive ? "1" : "0",
+ motherCitizenId: row.motherCitizenId,
childrens: row.childrens,
createdFullName: row.createdFullName,
createdAt: new Date(row.createdAt),
@@ -989,55 +1299,61 @@ const fetchHistory = async () => {
};
const fetchData = async () => {
- if (route.params.id) {
- loaderPage(true);
- await http
- .get(config.API.profileFamiId(route.params.id.toString()))
- .then((res) => {
- const data: ResponseObject = res.data.result;
- familyData.value.prefixC = "";
- familyData.value.prefixIdC = data.couplePrefixId;
- familyData.value.firstnameC = data.coupleFirstName;
- familyData.value.lastnameC = data.coupleLastName;
- familyData.value.lastnameCOld = data.coupleLastNameOld;
- familyData.value.occupationC = data.coupleCareer;
- familyData.value.prefixM = "";
- familyData.value.prefixIdM = data.fatherPrefixId;
+ loaderPage(true);
+ await http
+ .get(config.API.profileFamiId(route.params.id.toString()))
+ .then((res) => {
+ const data: ResponseObject = res.data.result;
+ familyData.value.prefixC = "";
+ familyData.value.prefixIdC = data.couplePrefixId;
+ familyData.value.firstnameC = data.coupleFirstName;
+ familyData.value.lastnameC = data.coupleLastName;
+ familyData.value.lastnameCOld = data.coupleLastNameOld;
+ familyData.value.occupationC = data.coupleCareer;
+ familyData.value.liveC = data.coupleLive ? "1" : "0";
+ familyData.value.citizenIdC = data.coupleCitizenId;
- familyData.value.firstnameM = data.fatherFirstName;
- familyData.value.lastnameM = data.fatherLastName;
- familyData.value.occupationM = data.fatherCareer;
- familyData.value.prefixF = "";
- familyData.value.prefixIdF = data.motherPrefixId;
+ familyData.value.prefixM = "";
+ familyData.value.prefixIdM = data.fatherPrefixId;
+ familyData.value.firstnameM = data.fatherFirstName;
+ familyData.value.lastnameM = data.fatherLastName;
+ familyData.value.occupationM = data.fatherCareer;
+ familyData.value.liveM = data.fatherLive ? "1" : "0";
+ familyData.value.citizenIdM = data.fatherCitizenId;
- familyData.value.firstnameF = data.motherFirstName;
- familyData.value.lastnameF = data.motherLastName;
- familyData.value.occupationF = data.motherCareer;
- familyData.value.same = data.couple ? "1" : "0";
+ familyData.value.prefixF = "";
+ familyData.value.prefixIdF = data.motherPrefixId;
+ familyData.value.firstnameF = data.motherFirstName;
+ familyData.value.lastnameF = data.motherLastName;
+ familyData.value.occupationF = data.motherCareer;
+ familyData.value.liveF = data.motherLive ? "1" : "0";
+ familyData.value.citizenIdF = data.motherCitizenId;
+ familyData.value.same = data.couple ? "1" : "0";
- if (data.childrens.length > 0) {
- let dataChild: childrenFamily[] = [];
- data.childrens.map((row: childrenFamily, index: number) => {
- dataChild.push({
- id: `${index + 1}`,
- childrenPrefixId: row.childrenPrefixId,
- childrenFirstName: row.childrenFirstName,
- childrenLastName: row.childrenLastName,
- childrenCareer: row.childrenCareer,
- });
+ if (data.childrens.length > 0) {
+ let dataChild: childrenFamily[] = [];
+ data.childrens.map((row: childrenFamily, index: number) => {
+ dataChild.push({
+ id: `${index + 1}`,
+ childrenPrefixId: row.childrenPrefixId,
+ childrenFirstName: row.childrenFirstName,
+ childrenLastName: row.childrenLastName,
+ childrenCareer: row.childrenCareer,
+ childrenLive: row.childrenLive,
+ childrenCitizenId: row.childrenCitizenId,
});
- familyData.value.childrens = dataChild;
- } else {
- familyData.value.childrens = [];
- }
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- loaderPage(false);
- });
- }
+ });
+ familyData.value.childrens = dataChild;
+ } else {
+ familyData.value.childrens = [];
+ }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ loaderPage(false);
+ });
};
const editData = async () => {
@@ -1049,14 +1365,20 @@ const editData = async () => {
coupleLastName: familyData.value.lastnameC,
coupleLastNameOld: familyData.value.lastnameCOld,
coupleCareer: familyData.value.occupationC,
+ coupleLive: familyData.value.liveC == "1",
+ coupleCitizenId: familyData.value.citizenIdC,
fatherPrefixId: familyData.value.prefixIdM,
fatherFirstName: familyData.value.firstnameM,
fatherLastName: familyData.value.lastnameM,
fatherCareer: familyData.value.occupationM,
+ fatherLive: familyData.value.liveM == "1",
+ fatherCitizenId: familyData.value.citizenIdM,
motherPrefixId: familyData.value.prefixIdF,
motherFirstName: familyData.value.firstnameF,
motherLastName: familyData.value.lastnameF,
motherCareer: familyData.value.occupationF,
+ motherLive: familyData.value.liveF == "1",
+ motherCitizenId: familyData.value.citizenIdF,
childrens: familyData.value.childrens,
createdFullName: "-",
createdAt: new Date(),
@@ -1076,32 +1398,10 @@ const editData = async () => {
});
};
-const addData = async () => {
- // loaderPage(true);
- // await http
- // .put(config.API.profileInforId(route.params.id.toString()), body)
- // .then((res) => {
- // success($q, "บันทึกข้อมูลสำเร็จ");
- // })
- // .catch((e) => {
- // messageError($q, e);
- // })
- // .finally(async () => {
- // edit.value = false;
- // emit("update:statusEdit", false);
- // await fetchData();
- // await changeBirth(informaData.value.birthDate ?? new Date());
- // });
-};
-
const saveData = async () => {
await myform.value?.validate().then(async (success: boolean) => {
if (success) {
- if (props.statusAdd) {
- await addData();
- } else {
- await editData();
- }
+ await editData();
} else {
}
});
@@ -1123,6 +1423,8 @@ const selectRadio = (e: boolean, i: any) => {
familyData.value.lastnameC = "";
familyData.value.lastnameCOld = "";
familyData.value.occupationC = "";
+ familyData.value.liveC = "";
+ familyData.value.citizenIdC = "";
}
};
diff --git a/src/modules/04_registry/components/Information/Government.vue b/src/modules/04_registry/components/Information/Government.vue
index da7a045bd..35d6fca2a 100644
--- a/src/modules/04_registry/components/Information/Government.vue
+++ b/src/modules/04_registry/components/Information/Government.vue
@@ -25,7 +25,7 @@
:label="`${'สังกัด'}`"
/>
-
+
-
+
-
+
@@ -25,7 +24,6 @@
:borderless="!edit"
v-model="informaData.cardid"
@update:model-value="changeCardID"
- maxlength="13"
:rules="[
(val:string) => !!val || `${'กรุณากรอก เลขบัตรประจำตัวประชาชน'}`,
(val:string) =>
@@ -33,6 +31,7 @@
`${'กรุณากรอกเลขบัตรประจำตัวประชาชนให้ครบ'}`,
]"
label="เลขบัตรประจำตัวประชาชน"
+ maxlength="13"
mask="#############"
/>
@@ -43,7 +42,7 @@
:class="getClass(edit)"
:readonly="!edit"
:borderless="!edit"
- :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="edit"
dense
lazy-rules
@@ -53,7 +52,7 @@
option-label="name"
:options="Ops.prefixOps"
option-value="id"
- :label="`${'คำนำหน้า'}`"
+ :label="`${'คำนำหน้าชื่อ'}`"
use-input
input-debounce="0"
@filter="(inputValue:any,
@@ -116,11 +115,7 @@
lazy-rules
:readonly="!edit"
:borderless="!edit"
- :model-value="
- informaData.birthDate == null
- ? ''
- : date2Thai(informaData.birthDate)
- "
+ :model-value="date2Thai(informaData.birthDate)"
:rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
:label="`${'วัน/เดือน/ปี เกิด'}`"
>
@@ -158,7 +153,6 @@
:class="getClass(edit)"
:readonly="!edit"
:borderless="!edit"
- :rules="[(val:string) => !!val || `${'กรุณาเลือก เพศ'}`]"
:outlined="edit"
dense
lazy-rules
@@ -183,7 +177,6 @@
:class="getClass(edit)"
:readonly="!edit"
:borderless="!edit"
- :rules="[(val:string) => !!val || `${'กรุณาเลือก สถานภาพ'}`]"
:outlined="edit"
dense
lazy-rules
@@ -211,7 +204,6 @@
:readonly="!edit"
:borderless="!edit"
v-model="informaData.nationality"
- :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`"
/>
@@ -225,7 +217,6 @@
:readonly="!edit"
:borderless="!edit"
v-model="informaData.ethnicity"
- :rules="[(val:string) => !!val || `${'กรุณากรอก เชื้อชาติ'}`]"
:label="`${'เชื้อชาติ'}`"
/>
@@ -236,7 +227,6 @@
:class="getClass(edit)"
:readonly="!edit"
:borderless="!edit"
- :rules="[(val:string) => !!val || `${'กรุณาเลือก ศาสนา'}`]"
:outlined="edit"
dense
lazy-rules
@@ -368,6 +358,7 @@
unchecked-icon="panorama_fish_eye"
val="0"
label="ไม่มี"
+ color="grey-9"
dense
:disable="!edit"
/>
@@ -377,6 +368,11 @@
v-if="same == '1'"
v-model:statusEdit="edit"
:fetchDataInformation="fetchDataComponent"
+ :perfixId="informaData.prefixId == null ? '' : informaData.prefixId"
+ :firstname="
+ informaData.firstname == null ? '' : informaData.firstname
+ "
+ :lastname="informaData.lastname == null ? '' : informaData.lastname"
/>
@@ -443,10 +439,6 @@ const props = defineProps({
type: Function,
default: () => console.log("not function"),
},
- statusAdd: {
- type: Boolean,
- default: false,
- },
});
const emit = defineEmits(["update:statusEdit"]);
@@ -515,7 +507,7 @@ const columnsHistory = ref
([
{
name: "prefix",
align: "left",
- label: "คำนำหน้า",
+ label: "คำนำหน้าชื่อ",
sortable: true,
field: "prefix",
headerStyle: "font-size: 14px",
@@ -701,36 +693,8 @@ onMounted(async () => {
await fetchPerson();
await fetchData();
emit("update:statusEdit", false);
- defaultAdd();
});
-const statusAdd = () => props.statusAdd;
-
-const defaultAdd = () => {
- if (props.statusAdd) {
- edit.value = props.statusAdd;
- informaData.value = {
- cardid: null,
- age: null,
- prefix: null,
- prefixId: null,
- firstname: null,
- lastname: null,
- birthDate: null,
- genderId: null,
- bloodId: null,
- nationality: null,
- ethnicity: null,
- statusId: null,
- religionId: null,
- tel: null,
- employeeType: null,
- employeeClass: null,
- profileType: null,
- };
- }
-};
-
const onCancel = async () => {
if (myform.value != null) {
myform.value.reset();
@@ -858,52 +822,50 @@ const checkCitizen = async (id: string) => {
* ฟังชั้นดูข้อมูลประวัติแก้ไขข้อมูลที่เลือก
*/
const clickHistory = async () => {
- if (route.params.id) {
- modalHistory.value = true;
- loaderPage(true);
- await http
- .get(config.API.profileInforHisId(route.params.id.toString()))
- .then((res) => {
- let data = res.data.result;
- rowsHistory.value = [];
- data.map((e: RequestItemsHistoryObject) => {
- rowsHistory.value.push({
- citizenId: e.citizenId,
- prefix: e.prefix,
- firstName: e.firstName,
- lastName: e.lastName,
- birthDate: new Date(e.birthDate),
- gender: e.gender,
- relationship: e.relationship,
- bloodGroup: e.bloodGroup,
- nationality: e.nationality,
- race: e.race,
- religion: e.religion,
- telephoneNumber: e.telephoneNumber,
- employeeType:
- e.employeeType == "gov"
- ? "งบประมาณเงินอุดหนุนรัฐบาล"
- : e.employeeType == "bkk"
- ? "งบประมาณกรุงเทพมหานคร"
- : "-",
- employeeClass:
- e.employeeClass == "perm"
- ? "ลูกจ้างประจำ"
- : e.employeeClass == "temp"
- ? "ลูกจ้างชั่วคราว"
- : "-",
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ modalHistory.value = true;
+ loaderPage(true);
+ await http
+ .get(config.API.profileInforHisId(route.params.id.toString()))
+ .then((res) => {
+ let data = res.data.result;
+ rowsHistory.value = [];
+ data.map((e: RequestItemsHistoryObject) => {
+ rowsHistory.value.push({
+ citizenId: e.citizenId,
+ prefix: e.prefix,
+ firstName: e.firstName,
+ lastName: e.lastName,
+ birthDate: new Date(e.birthDate),
+ gender: e.gender,
+ relationship: e.relationship,
+ bloodGroup: e.bloodGroup,
+ nationality: e.nationality,
+ race: e.race,
+ religion: e.religion,
+ telephoneNumber: e.telephoneNumber,
+ employeeType:
+ e.employeeType == "gov"
+ ? "งบประมาณเงินอุดหนุนรัฐบาล"
+ : e.employeeType == "bkk"
+ ? "งบประมาณกรุงเทพมหานคร"
+ : "-",
+ employeeClass:
+ e.employeeClass == "perm"
+ ? "ลูกจ้างประจำ"
+ : e.employeeClass == "temp"
+ ? "ลูกจ้างชั่วคราว"
+ : "-",
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
const filterSelector = (val: any, update: Function, refData: string) => {
@@ -1000,49 +962,44 @@ const calRetire = async (birth: Date) => {
};
const fetchData = async () => {
- if (route.params.id) {
- loaderPage(true);
- await http
- .get(config.API.profileInforId(route.params.id.toString()))
- .then(async (res: any) => {
- const data: ResponseObject = res.data.result;
- defaultCitizenData.value = data.citizenId;
- informaData.value.cardid = data.citizenId;
- informaData.value.prefix = "";
- informaData.value.prefixId = data.prefixId;
- informaData.value.firstname = data.firstName;
- informaData.value.lastname = data.lastName;
- informaData.value.birthDate = new Date(data.birthDate);
- informaData.value.genderId = data.genderId;
- informaData.value.bloodId = data.bloodGroupId;
- informaData.value.nationality = data.nationality;
- informaData.value.ethnicity = data.race;
- informaData.value.statusId = data.relationshipId;
- informaData.value.religionId = data.religionId;
- informaData.value.tel = data.telephoneNumber;
- informaData.value.age = data.age;
- informaData.value.employeeType = data.employeeType;
- informaData.value.employeeClass = data.employeeClass;
- informaData.value.profileType = data.profileType;
- dateBefore.value = new Date(data.birthDate);
- same.value = data.changeName == true ? "1" : "0";
- await calRetire(new Date(dateToISO(new Date(data.birthDate))));
- if (
- data.profileType == "officer" &&
- columnsHistory.value.length >= 15
- ) {
- columnsHistory.value.splice(13, 1);
- columnsHistory.value.splice(12, 1);
- }
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- // loaderPage(false);
- await props.fetchDataProfile();
- });
- }
+ loaderPage(true);
+ await http
+ .get(config.API.profileInforId(route.params.id.toString()))
+ .then(async (res: any) => {
+ const data: ResponseObject = res.data.result;
+ defaultCitizenData.value = data.citizenId;
+ informaData.value.cardid = data.citizenId;
+ informaData.value.prefix = "";
+ informaData.value.prefixId = data.prefixId;
+ informaData.value.firstname = data.firstName;
+ informaData.value.lastname = data.lastName;
+ informaData.value.birthDate = new Date(data.birthDate);
+ informaData.value.genderId = data.genderId;
+ informaData.value.bloodId = data.bloodGroupId;
+ informaData.value.nationality = data.nationality;
+ informaData.value.ethnicity = data.race;
+ informaData.value.statusId = data.relationshipId;
+ informaData.value.religionId = data.religionId;
+ informaData.value.tel = data.telephoneNumber;
+ informaData.value.age = data.age;
+ informaData.value.employeeType = data.employeeType;
+ informaData.value.employeeClass = data.employeeClass;
+ informaData.value.profileType = data.profileType;
+ dateBefore.value = new Date(data.birthDate);
+ same.value = data.changeName == true ? "1" : "0";
+ await calRetire(new Date(dateToISO(new Date(data.birthDate))));
+ if (data.profileType == "officer" && columnsHistory.value.length >= 15) {
+ columnsHistory.value.splice(13, 1);
+ columnsHistory.value.splice(12, 1);
+ }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ // loaderPage(false);
+ await props.fetchDataProfile();
+ });
};
const editData = async () => {
@@ -1055,10 +1012,7 @@ const editData = async () => {
nationality: informaData.value.nationality,
race: informaData.value.ethnicity,
religionId: informaData.value.religionId,
- birthDate:
- informaData.value.birthDate == null
- ? dateToISO(new Date())
- : dateToISO(informaData.value.birthDate),
+ birthDate: dateToISO(informaData.value.birthDate) ?? dateToISO(new Date()),
bloodGroupId: informaData.value.bloodId,
relationshipId: informaData.value.statusId,
telephoneNumber: informaData.value.tel,
@@ -1086,33 +1040,11 @@ const editData = async () => {
});
};
-const addData = async () => {
- // loaderPage(true);
- // await http
- // .put(config.API.profileInforId(route.params.id.toString()), body)
- // .then((res) => {
- // success($q, "บันทึกข้อมูลสำเร็จ");
- // })
- // .catch((e) => {
- // messageError($q, e);
- // })
- // .finally(async () => {
- // edit.value = false;
- // emit("update:statusEdit", false);
- // await fetchData();
- // await changeBirth(informaData.value.birthDate ?? new Date());
- // });
-};
-
const saveData = async () => {
if (myform.value != null) {
await myform.value.validate().then(async (success: boolean) => {
if (success) {
- if (props.statusAdd) {
- await addData();
- } else {
- await editData();
- }
+ await editData();
} else {
}
});
diff --git a/src/modules/04_registry/components/Information/OldName.vue b/src/modules/04_registry/components/Information/OldName.vue
index 62bf2056b..6c6cefadc 100644
--- a/src/modules/04_registry/components/Information/OldName.vue
+++ b/src/modules/04_registry/components/Information/OldName.vue
@@ -100,7 +100,7 @@
:class="getClass(edit)"
:readonly="!edit"
:borderless="!edit"
- :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="edit"
dense
lazy-rules
@@ -110,7 +110,7 @@
option-label="name"
:options="Ops.prefixOps"
option-value="id"
- :label="`${'คำนำหน้า'}`"
+ :label="`${'คำนำหน้าชื่อ'}`"
use-input
input-debounce="0"
@filter="(inputValue:any,
@@ -124,7 +124,7 @@
:outlined="edit"
dense
lazy-rules
- :readonly="!edit"
+ :readonly="!edit || status == 'lastName'"
:borderless="!edit"
v-model="firstName"
:rules="[(val) => !!val || `${'กรุณากรอกชื่อ'}`]"
@@ -139,7 +139,7 @@
:outlined="edit"
dense
lazy-rules
- :readonly="!edit"
+ :readonly="!edit || status == 'firstName'"
:borderless="!edit"
v-model="lastName"
:rules="[(val) => !!val || `${'กรุณากรอกนามสกุล'}`]"
@@ -324,6 +324,18 @@ const props = defineProps({
type: Function,
default: () => console.log("not function"),
},
+ perfixId: {
+ type: String,
+ required: true,
+ },
+ firstname: {
+ type: String,
+ required: true,
+ },
+ lastname: {
+ type: String,
+ required: true,
+ },
});
const $q = useQuasar();
@@ -362,9 +374,7 @@ const tittleHistory = ref("ประวัติแก้ไขประ
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const file = ref(null);
const fileUpload = ref([]);
const rows = ref([]);
@@ -411,7 +421,7 @@ const columns = ref([
{
name: "prefix",
align: "left",
- label: "คำนำหน้า",
+ label: "คำนำหน้าชื่อ",
sortable: true,
field: "prefix",
headerStyle: "font-size: 14px",
@@ -457,7 +467,7 @@ const columnsHistory = ref([
{
name: "prefix",
align: "left",
- label: "คำนำหน้า",
+ label: "คำนำหน้าชื่อ",
sortable: true,
field: "prefix",
headerStyle: "font-size: 14px",
@@ -540,34 +550,32 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileChangeNameId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- prefix: e.prefix,
- prefixId: e.prefixId,
- firstName: e.firstName,
- lastName: e.lastName,
- status: e.status,
- file: e.file,
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileChangeNameId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ prefix: e.prefix,
+ prefixId: e.prefixId,
+ firstName: e.firstName,
+ lastName: e.lastName,
+ status: e.status,
+ file: e.file,
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -669,19 +677,44 @@ const clickSave = async () => {
if (modalEdit.value) {
await editData();
} else {
- await checkSave();
+ await saveData();
}
}
});
};
-const checkSave = async () => {
+/**
+ * บันทึกเพิ่มข้อมูล
+ */
+const saveData = async () => {
if (fileUpload.value.length > 0) {
- if (profileId.value !== "") {
- await saveData();
- } else {
- await saveDataEmployee();
- }
+ const blob = fileUpload.value.slice(0, fileUpload.value[0].size);
+ const newFile = new File(blob, nameFile.value, {
+ type: fileUpload.value[0].type,
+ });
+ const formData = new FormData();
+ formData.append("", newFile);
+ if (prefixId.value != undefined)
+ formData.append("prefixId", prefixId.value);
+ if (firstName.value != undefined)
+ formData.append("firstName", firstName.value);
+ if (lastName.value != undefined)
+ formData.append("lastName", lastName.value);
+ if (status.value != undefined) formData.append("status", status.value);
+ loaderPage(true);
+ await http
+ .post(config.API.profileChangeNameId(profileId.value), formData)
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ await props.fetchDataInformation();
+ });
} else {
dialogMessage(
$q,
@@ -697,41 +730,6 @@ const checkSave = async () => {
}
};
-/**
- * บันทึกเพิ่มข้อมูล
- */
-const saveData = async () => {
- const blob = fileUpload.value.slice(0, fileUpload.value[0].size);
- const newFile = new File(blob, nameFile.value, {
- type: fileUpload.value[0].type,
- });
- const formData = new FormData();
- formData.append("", newFile);
- if (prefixId.value != undefined) formData.append("prefixId", prefixId.value);
- if (firstName.value != undefined)
- formData.append("firstName", firstName.value);
- if (lastName.value != undefined) formData.append("lastName", lastName.value);
- if (status.value != undefined) formData.append("status", status.value);
- loaderPage(true);
- await http
- .post(config.API.profileChangeNameId(profileId.value), formData)
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- await props.fetchDataInformation();
- });
-};
-
-const saveDataEmployee = async () => {
- console.log("saveDataEmployee");
-};
-
/**
* บันทึกแก้ไขข้อมูล
*/
@@ -845,9 +843,9 @@ const addData = () => {
modalEdit.value = false;
modal.value = true;
edit.value = true;
- prefixId.value = "";
- firstName.value = "";
- lastName.value = "";
+ prefixId.value = props.perfixId;
+ firstName.value = props.firstname;
+ lastName.value = props.lastname;
status.value = "";
file.value = "";
};
diff --git a/src/modules/04_registry/components/Information/top.vue b/src/modules/04_registry/components/Information/top.vue
index 157698119..2a8221cf9 100644
--- a/src/modules/04_registry/components/Information/top.vue
+++ b/src/modules/04_registry/components/Information/top.vue
@@ -43,7 +43,7 @@
size="12px"
flat
round
- v-if="edit && !addEmployee"
+ v-if="edit"
:color="!edit ? 'grey-7' : 'red'"
@click="ClickCancel"
icon="mdi-undo"
@@ -125,7 +125,6 @@ const props = defineProps({
type: Boolean,
defualt: false,
},
-
disable: {
type: Boolean,
defualt: false,
@@ -158,10 +157,6 @@ const props = defineProps({
type: Function,
default: () => console.log("not function"),
},
- addEmployee: {
- type: Boolean,
- defualt: false,
- },
});
const emit = defineEmits(["update:edit"]);
diff --git a/src/modules/04_registry/components/Insignia.vue b/src/modules/04_registry/components/Insignia.vue
index a025efc25..b3ebf22ec 100644
--- a/src/modules/04_registry/components/Insignia.vue
+++ b/src/modules/04_registry/components/Insignia.vue
@@ -24,10 +24,14 @@
class="cursor-pointer"
>
- {{ date2Thai(col.value) }}
+ {{ col.value == null ? null : date2Thai(col.value) }}
{{ col.value + 543 }}
@@ -187,7 +191,7 @@
:readonly="true"
:borderless="true"
v-model="insigniaType"
- :label="`${'ประเภท'}`"
+ :label="`${'ลำดับชั้น'}`"
@update:modelValue="clickEditRow"
hide-bottom-space
/>
@@ -328,6 +332,72 @@
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
@@ -364,11 +434,12 @@
v-if="
col.name == 'receiveDate' ||
col.name == 'dateAnnounce' ||
- col.name == 'createdAt'
+ col.name == 'createdAt' ||
+ col.name == 'refCommandDate'
"
class="table_ellipsis"
>
- {{ date2Thai(col.value) }}
+ {{ col.value == null ? null : date2Thai(col.value) }}
{{ col.value + 543 }}
@@ -440,6 +511,8 @@ const section = ref
();
const page = ref();
const receiveDate = ref(new Date());
const dateAnnounce = ref(new Date());
+const refCommandNo = ref();
+const refCommandDate = ref(new Date());
const myForm = ref(); //form data input
const edit = ref(false); //เช็คการกดปุ่มแก้ไขใน dialog
const modal = ref(false); //modal add detail
@@ -454,9 +527,7 @@ const tittleHistory = ref("ประวัติแก้ไขเคร
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
@@ -473,6 +544,8 @@ profileData.insignia.columns.length == 0
"page",
"receiveDate",
"dateAnnounce",
+ "refCommandNo",
+ "refCommandDate",
])
: (visibleColumns.value = profileData.insignia.columns);
const columns = ref([
@@ -512,7 +585,7 @@ const columns = ref([
{
name: "insigniaType",
align: "left",
- label: "ประเภท",
+ label: "ลำดับชั้น",
sortable: true,
field: "insigniaType",
headerStyle: "font-size: 14px",
@@ -597,6 +670,28 @@ const columns = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "refCommandNo",
+ align: "left",
+ label: "เลขที่คำสั่ง",
+ sortable: true,
+ field: "refCommandNo",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "refCommandDate",
+ align: "left",
+ label: "เอกสารอ้างอิง (ลงวันที่)",
+ sortable: true,
+ field: "refCommandDate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
]);
const columnsHistory = ref([
{
@@ -635,7 +730,7 @@ const columnsHistory = ref([
{
name: "insigniaType",
align: "left",
- label: "ประเภท",
+ label: "ลำดับชั้น",
sortable: true,
field: "insigniaType",
headerStyle: "font-size: 14px",
@@ -720,6 +815,28 @@ const columnsHistory = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "refCommandNo",
+ align: "left",
+ label: "เลขที่คำสั่ง",
+ sortable: true,
+ field: "refCommandNo",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "refCommandDate",
+ align: "left",
+ label: "เอกสารอ้างอิง (ลงวันที่)",
+ sortable: true,
+ field: "refCommandDate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
{
name: "createdFullName",
align: "left",
@@ -755,6 +872,8 @@ const visibleColumnsHistory = ref([
"page",
"receiveDate",
"dateAnnounce",
+ "refCommandNo",
+ "refCommandDate",
"createdFullName",
"createdAt",
]);
@@ -818,40 +937,41 @@ const fetchInsignia = async () => {
};
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileInsignId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- insignia: e.insignia,
- insigniaId: e.insigniaId,
- insigniaType: e.insigniaType,
- year: e.year,
- no: e.no,
- issue: e.issue,
- volumeNo: e.volumeNo,
- volume: e.volume,
- section: e.section,
- page: e.page,
- receiveDate: new Date(e.receiveDate),
- dateAnnounce: new Date(e.dateAnnounce),
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileInsignId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ insignia: e.insignia,
+ insigniaId: e.insigniaId,
+ insigniaType: e.insigniaType,
+ year: e.year,
+ no: e.no,
+ issue: e.issue,
+ volumeNo: e.volumeNo,
+ volume: e.volume,
+ section: e.section,
+ page: e.page,
+ receiveDate: new Date(e.receiveDate),
+ dateAnnounce: new Date(e.dateAnnounce),
+ refCommandNo: e.refCommandNo,
+ refCommandDate:
+ e.refCommandDate == null ? null : new Date(e.refCommandDate),
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -890,6 +1010,8 @@ const getData = () => {
page.value = row.page;
receiveDate.value = row.receiveDate;
dateAnnounce.value = row.dateAnnounce;
+ refCommandNo.value = row.refCommandNo;
+ refCommandDate.value = row.refCommandDate;
id.value = row.id;
};
@@ -944,34 +1066,35 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileInsignId(profileId.value), {
- id: id.value,
- insigniaId: insigniaId.value,
- insigniaType: insigniaType.value,
- year: year.value,
- no: no.value,
- issue: issue.value,
- volumeNo: volumeNo.value,
- volume: volume.value,
- section: section.value,
- page: page.value,
- receiveDate: dateToISO(receiveDate.value),
- dateAnnounce: dateToISO(dateAnnounce.value),
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileInsignId(profileId.value), {
+ id: id.value,
+ insigniaId: insigniaId.value,
+ insigniaType: insigniaType.value,
+ year: year.value,
+ no: no.value,
+ issue: issue.value,
+ volumeNo: volumeNo.value,
+ volume: volume.value,
+ section: section.value,
+ page: page.value,
+ receiveDate: dateToISO(receiveDate.value),
+ dateAnnounce: dateToISO(dateAnnounce.value),
+ refCommandNo: refCommandNo.value,
+ refCommandDate:
+ refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
@@ -993,6 +1116,9 @@ const editData = async () => {
page: page.value,
receiveDate: dateToISO(receiveDate.value),
dateAnnounce: dateToISO(dateAnnounce.value),
+ refCommandNo: refCommandNo.value,
+ refCommandDate:
+ refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
})
.then((res) => {
success($q, "บันทึกข้อมูลสำเร็จ");
@@ -1081,6 +1207,8 @@ const selectData = async (props: DataProps) => {
page.value = props.row.page;
receiveDate.value = props.row.receiveDate;
dateAnnounce.value = props.row.dateAnnounce;
+ refCommandNo.value = props.row.refCommandNo;
+ refCommandDate.value = props.row.refCommandDate;
id.value = props.row.id;
await checkRowPage();
};
@@ -1103,6 +1231,8 @@ const addData = () => {
page.value = "";
receiveDate.value = new Date();
dateAnnounce.value = new Date();
+ refCommandNo.value = "";
+ refCommandDate.value = null;
};
/**
@@ -1161,6 +1291,9 @@ const clickHistory = async (row: RequestItemsObject) => {
page: e.page,
receiveDate: new Date(e.receiveDate),
dateAnnounce: new Date(e.dateAnnounce),
+ refCommandNo: e.refCommandNo,
+ refCommandDate:
+ e.refCommandDate == null ? null : new Date(e.refCommandDate),
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
});
@@ -1196,6 +1329,7 @@ const getClass = (val: boolean) => {
"full-width cursor-pointer": !val,
};
};
+const resetFilter = () => {};
diff --git a/src/modules/04_registry/components/TableProfile.vue b/src/modules/04_registry/components/TableProfile.vue
index 5220c7f45..aa56a8a57 100644
--- a/src/modules/04_registry/components/TableProfile.vue
+++ b/src/modules/04_registry/components/TableProfile.vue
@@ -119,7 +119,13 @@
-
+
-
-
+
@@ -308,8 +314,8 @@ const initialPagination = ref({
rowsPerPage: 0,
});
const employeeClassOps = ref([
- { id: "officer", name: "ข้าราชการกทม.สามัญ" },
- { id: "employee", name: "ลูกจ้าง(ทั้งหมด)" },
+ { id: "officer", name: "ข้าราชการ กทม.สามัญ" },
+ // { id: "employee", name: "ลูกจ้าง(ทั้งหมด)" },
{ id: "perm", name: "ลูกจ้างประจำ" },
{ id: "temp", name: "ลูกจ้างชั่วคราว" },
]);
diff --git a/src/modules/04_registry/components/Talent.vue b/src/modules/04_registry/components/Talent.vue
index 2c0ec3f84..4f4b981b0 100644
--- a/src/modules/04_registry/components/Talent.vue
+++ b/src/modules/04_registry/components/Talent.vue
@@ -23,13 +23,7 @@
@click="selectData(props)"
class="cursor-pointer"
>
-
- {{ date2Thai(col.value) }}
-
-
+
{{ col.value }}
@@ -106,92 +100,6 @@
@update:modelValue="clickEditRow"
/>
-
-
- {{ year + 543 }}
- {{
- parseInt(value + 543)
- }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ year + 543 }}
- {{
- parseInt(value + 543)
- }}
-
-
-
-
-
-
-
-
-
-
-
+
{{ date2Thai(col.value) }}
@@ -297,8 +198,6 @@ const id = ref
("");
const field = ref();
const detail = ref();
const remark = ref();
-const dateStart = ref(new Date());
-const dateEnd = ref(new Date());
const reference = ref();
const myForm = ref(); //form data input
const edit = ref(false); //เช็คการกดปุ่มแก้ไขใน dialog
@@ -314,21 +213,12 @@ const tittleHistory = ref("ประวัติแก้ไขควา
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
profileData.talent.columns.length == 0
- ? (visibleColumns.value = [
- "field",
- "detail",
- "remark",
- "dateStart",
- "dateEnd",
- "reference",
- ])
+ ? (visibleColumns.value = ["field", "detail", "remark", "reference"])
: (visibleColumns.value = profileData.talent.columns);
const columns = ref([
{
@@ -364,28 +254,6 @@ const columns = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
- {
- name: "dateStart",
- align: "left",
- label: "วันที่เริ่มต้น",
- sortable: true,
- field: "dateStart",
- headerStyle: "font-size: 14px",
- style: "font-size: 14px",
- sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
- },
- {
- name: "dateEnd",
- align: "left",
- label: "วันที่สิ้นสุด",
- sortable: true,
- field: "dateEnd",
- headerStyle: "font-size: 14px",
- style: "font-size: 14px",
- sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
- },
{
name: "reference",
align: "left",
@@ -432,28 +300,6 @@ const columnsHistory = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
- {
- name: "dateStart",
- align: "left",
- label: "วันที่เริ่มต้น",
- sortable: true,
- field: "dateStart",
- headerStyle: "font-size: 14px",
- style: "font-size: 14px",
- sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
- },
- {
- name: "dateEnd",
- align: "left",
- label: "วันที่สิ้นสุด",
- sortable: true,
- field: "dateEnd",
- headerStyle: "font-size: 14px",
- style: "font-size: 14px",
- sort: (a: string, b: string) =>
- a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
- },
{
name: "reference",
align: "left",
@@ -492,8 +338,6 @@ const visibleColumnsHistory = ref([
"field",
"detail",
"remark",
- "dateStart",
- "dateEnd",
"reference",
"createdFullName",
"createdAt",
@@ -508,34 +352,30 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileAbiliId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- field: e.field,
- detail: e.detail,
- remark: e.remark,
- dateStart: new Date(e.dateStart),
- dateEnd: new Date(e.dateEnd),
- reference: e.reference,
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileAbiliId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ field: e.field,
+ detail: e.detail,
+ remark: e.remark,
+ reference: e.reference,
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -566,8 +406,6 @@ const getData = () => {
field.value = row.field;
detail.value = row.detail;
remark.value = row.remark;
- dateStart.value = row.dateStart;
- dateEnd.value = row.dateEnd;
reference.value = row.reference;
id.value = row.id;
};
@@ -623,29 +461,25 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileAbiliId(profileId.value), {
- id: id.value,
- field: field.value,
- detail: detail.value,
- remark: remark.value,
- dateStart: dateToISO(dateStart.value),
- dateEnd: dateToISO(dateEnd.value),
- reference: reference.value,
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileAbiliId(profileId.value), {
+ id: id.value,
+ field: field.value,
+ detail: detail.value,
+ remark: remark.value,
+ reference: reference.value,
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
@@ -659,8 +493,6 @@ const editData = async () => {
field: field.value,
detail: detail.value,
remark: remark.value,
- dateStart: dateToISO(dateStart.value),
- dateEnd: dateToISO(dateEnd.value),
reference: reference.value,
})
.then((res) => {
@@ -742,8 +574,6 @@ const selectData = async (props: DataProps) => {
field.value = props.row.field;
detail.value = props.row.detail;
remark.value = props.row.remark;
- dateStart.value = props.row.dateStart;
- dateEnd.value = props.row.dateEnd;
reference.value = props.row.reference;
id.value = props.row.id;
await checkRowPage();
@@ -759,8 +589,6 @@ const addData = () => {
field.value = "";
detail.value = "";
remark.value = "";
- dateStart.value = new Date();
- dateEnd.value = new Date();
reference.value = "";
};
@@ -811,8 +639,6 @@ const clickHistory = async (row: RequestItemsObject) => {
field: e.field,
detail: e.detail,
remark: e.remark,
- dateStart: new Date(e.dateStart),
- dateEnd: new Date(e.dateEnd),
reference: e.reference,
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
diff --git a/src/modules/04_registry/components/Train.vue b/src/modules/04_registry/components/Train.vue
index 5b5bceb5c..822494e7b 100644
--- a/src/modules/04_registry/components/Train.vue
+++ b/src/modules/04_registry/components/Train.vue
@@ -459,9 +459,7 @@ const tittleHistory = ref("ประวัติแก้ไขการ
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
@@ -753,38 +751,36 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileTrainId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- name: e.name,
- topic: e.topic,
- yearly: e.yearly,
- place: e.place,
- duration: e.duration,
- department: e.department,
- numberOrder: e.numberOrder,
- dateOrder: e.dateOrder,
- startDate: new Date(e.startDate),
- endDate: new Date(e.endDate),
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileTrainId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ name: e.name,
+ topic: e.topic,
+ yearly: e.yearly,
+ place: e.place,
+ duration: e.duration,
+ department: e.department,
+ numberOrder: e.numberOrder,
+ dateOrder: e.dateOrder,
+ startDate: new Date(e.startDate),
+ endDate: new Date(e.endDate),
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -876,33 +872,31 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileTrainId(profileId.value), {
- id: id.value,
- name: name.value,
- topic: topic.value,
- yearly: yearly.value,
- place: place.value,
- duration: duration.value,
- department: department.value,
- numberOrder: numberOrder.value,
- dateOrder: dateOrder.value,
- startDate: dateToISO(startDate.value),
- endDate: dateToISO(endDate.value),
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileTrainId(profileId.value), {
+ id: id.value,
+ name: name.value,
+ topic: topic.value,
+ yearly: yearly.value,
+ place: place.value,
+ duration: duration.value,
+ department: department.value,
+ numberOrder: numberOrder.value,
+ dateOrder: dateOrder.value,
+ startDate: dateToISO(startDate.value),
+ endDate: dateToISO(endDate.value),
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
diff --git a/src/modules/04_registry/components/Work.vue b/src/modules/04_registry/components/Work.vue
index 9ce98bad0..c474f0597 100644
--- a/src/modules/04_registry/components/Work.vue
+++ b/src/modules/04_registry/components/Work.vue
@@ -24,10 +24,14 @@
class="cursor-pointer"
>
- {{ date2Thai(col.value) }}
+ {{ col.value == null ? null : date2Thai(col.value) }}
{{ col.value }}
@@ -178,6 +182,72 @@
@update:modelValue="clickEditRow"
/>
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
@@ -214,11 +284,12 @@
v-if="
col.name == 'dateStart' ||
col.name == 'dateEnd' ||
- col.name == 'createdAt'
+ col.name == 'createdAt' ||
+ col.name == 'refCommandDate'
"
class="table_ellipsis"
>
- {{ date2Thai(col.value) }}
+ {{ col.value == null ? null : date2Thai(col.value) }}
{{ col.value }}
@@ -269,6 +340,8 @@ const dateEnd = ref
(new Date());
const detail = ref();
const reference = ref();
const minDate = ref();
+const refCommandNo = ref();
+const refCommandDate = ref(new Date());
const myForm = ref(); //form data input
const edit = ref(false); //เช็คการกดปุ่มแก้ไขใน dialog
const modal = ref(false); //modal add detail
@@ -283,14 +356,19 @@ const tittleHistory = ref("ประวัติแก้ไขปฏิ
const filterHistory = ref(""); //search data table history
const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล
const checkValidate = ref(false); //validate data ผ่านหรือไม่
-const profileId = ref(
- route.params.id ? route.params.id.toString() : ""
-);
+const profileId = ref(route.params.id.toString());
const rows = ref([]);
const filter = ref(""); //search data table
const visibleColumns = ref([]);
profileData.work.columns.length == 0
- ? (visibleColumns.value = ["dateStart", "dateEnd", "detail", "reference"])
+ ? (visibleColumns.value = [
+ "dateStart",
+ "dateEnd",
+ "detail",
+ "reference",
+ "refCommandNo",
+ "refCommandDate",
+ ])
: (visibleColumns.value = profileData.work.columns);
const columns = ref([
{
@@ -337,6 +415,28 @@ const columns = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "refCommandNo",
+ align: "left",
+ label: "เลขที่คำสั่ง",
+ sortable: true,
+ field: "refCommandNo",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "refCommandDate",
+ align: "left",
+ label: "เอกสารอ้างอิง (ลงวันที่)",
+ sortable: true,
+ field: "refCommandDate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
]);
const columnsHistory = ref([
{
@@ -383,6 +483,28 @@ const columnsHistory = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "refCommandNo",
+ align: "left",
+ label: "เลขที่คำสั่ง",
+ sortable: true,
+ field: "refCommandNo",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
+ {
+ name: "refCommandDate",
+ align: "left",
+ label: "เอกสารอ้างอิง (ลงวันที่)",
+ sortable: true,
+ field: "refCommandDate",
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
{
name: "createdFullName",
align: "left",
@@ -411,6 +533,8 @@ const visibleColumnsHistory = ref([
"dateEnd",
"detail",
"reference",
+ "refCommandNo",
+ "refCommandDate",
"createdFullName",
"createdAt",
]);
@@ -428,32 +552,33 @@ onMounted(async () => {
});
const fetchData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .get(config.API.profileDutyId(profileId.value))
- .then((res) => {
- let data = res.data.result;
- rows.value = [];
- data.map((e: ResponseObject) => {
- rows.value.push({
- id: e.id,
- dateStart: new Date(e.dateStart),
- dateEnd: new Date(e.dateEnd),
- detail: e.detail,
- reference: e.reference,
- createdFullName: e.createdFullName,
- createdAt: new Date(e.createdAt),
- });
+ loaderPage(true);
+ await http
+ .get(config.API.profileDutyId(profileId.value))
+ .then((res) => {
+ let data = res.data.result;
+ rows.value = [];
+ data.map((e: ResponseObject) => {
+ rows.value.push({
+ id: e.id,
+ dateStart: new Date(e.dateStart),
+ dateEnd: new Date(e.dateEnd),
+ detail: e.detail,
+ reference: e.reference,
+ refCommandNo: e.refCommandNo,
+ refCommandDate:
+ e.refCommandDate == null ? null : new Date(e.refCommandDate),
+ createdFullName: e.createdFullName,
+ createdAt: new Date(e.createdAt),
});
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(() => {
- loaderPage(false);
});
- }
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(() => {
+ loaderPage(false);
+ });
};
/**
@@ -485,6 +610,8 @@ const getData = () => {
dateEnd.value = row.dateEnd;
detail.value = row.detail;
reference.value = row.reference;
+ refCommandNo.value = row.refCommandNo;
+ refCommandDate.value = row.refCommandDate;
id.value = row.id;
};
@@ -539,27 +666,28 @@ const clickSave = async () => {
* บันทึกเพิ่มข้อมูล
*/
const saveData = async () => {
- if (profileId.value !== "") {
- loaderPage(true);
- await http
- .post(config.API.profileDutyId(profileId.value), {
- id: id.value,
- dateStart: dateToISO(dateStart.value),
- dateEnd: dateToISO(dateEnd.value),
- detail: detail.value,
- reference: reference.value,
- })
- .then((res) => {
- success($q, "บันทึกข้อมูลสำเร็จ");
- modal.value = false;
- })
- .catch((e) => {
- messageError($q, e);
- })
- .finally(async () => {
- await fetchData();
- });
- }
+ loaderPage(true);
+ await http
+ .post(config.API.profileDutyId(profileId.value), {
+ id: id.value,
+ dateStart: dateToISO(dateStart.value),
+ dateEnd: dateToISO(dateEnd.value),
+ detail: detail.value,
+ reference: reference.value,
+ refCommandNo: refCommandNo.value,
+ refCommandDate:
+ refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
+ })
+ .then((res) => {
+ success($q, "บันทึกข้อมูลสำเร็จ");
+ modal.value = false;
+ })
+ .catch((e) => {
+ messageError($q, e);
+ })
+ .finally(async () => {
+ await fetchData();
+ });
};
/**
@@ -574,6 +702,9 @@ const editData = async () => {
dateEnd: dateToISO(dateEnd.value),
detail: detail.value,
reference: reference.value,
+ refCommandNo: refCommandNo.value,
+ refCommandDate:
+ refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
})
.then((res) => {
success($q, "บันทึกข้อมูลสำเร็จ");
@@ -655,6 +786,8 @@ const selectData = async (props: DataProps) => {
dateEnd.value = props.row.dateEnd;
detail.value = props.row.detail;
reference.value = props.row.reference;
+ refCommandNo.value = props.row.refCommandNo;
+ refCommandDate.value = props.row.refCommandDate;
id.value = props.row.id;
await checkRowPage();
};
@@ -670,6 +803,8 @@ const addData = () => {
dateEnd.value = new Date();
detail.value = "";
reference.value = "";
+ refCommandNo.value = "";
+ refCommandDate.value = null;
};
/**
@@ -720,6 +855,9 @@ const clickHistory = async (row: RequestItemsObject) => {
dateEnd: new Date(e.dateEnd),
detail: e.detail,
reference: e.reference,
+ refCommandNo: e.refCommandNo,
+ refCommandDate:
+ e.refCommandDate == null ? null : new Date(e.refCommandDate),
createdFullName: e.createdFullName,
createdAt: new Date(e.createdAt),
});
@@ -755,6 +893,7 @@ const getClass = (val: boolean) => {
"full-width cursor-pointer": !val,
};
};
+const resetFilter = () => {};