fix ถึงแก่กรรม
This commit is contained in:
parent
9312af4556
commit
a9234dac82
2 changed files with 36 additions and 4 deletions
|
|
@ -586,6 +586,11 @@ function clickSaveDeceased() {
|
||||||
formData.append("Location", placeDeathCertificate.value);
|
formData.append("Location", placeDeathCertificate.value);
|
||||||
formData.append("Reason", reasonDeath.value);
|
formData.append("Reason", reasonDeath.value);
|
||||||
formData.append("ProfileId", profileId.value);
|
formData.append("ProfileId", profileId.value);
|
||||||
|
formData.append(
|
||||||
|
"ProfileType",
|
||||||
|
empType.value === "-employee" ? "EMPLOYEE" : "OFFICER"
|
||||||
|
);
|
||||||
|
|
||||||
await http
|
await http
|
||||||
.post(config.API.listDeceased(), formData)
|
.post(config.API.listDeceased(), formData)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|
@ -594,8 +599,6 @@ function clickSaveDeceased() {
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,14 @@ import { checkPermission } from "@/utils/permissions";
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { showLoader, hideLoader, messageError, date2Thai, findOrgName ,onSearchDataTable} = mixin;
|
const {
|
||||||
|
showLoader,
|
||||||
|
hideLoader,
|
||||||
|
messageError,
|
||||||
|
date2Thai,
|
||||||
|
findOrgName,
|
||||||
|
onSearchDataTable,
|
||||||
|
} = mixin;
|
||||||
|
|
||||||
/** คอลัมน์ */
|
/** คอลัมน์ */
|
||||||
const rows = ref<any[]>([]);
|
const rows = ref<any[]>([]);
|
||||||
|
|
@ -43,7 +50,28 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
format(val, row) {
|
format(val, row) {
|
||||||
return `${row.prefix ?? ""}${row.firstName} ${row.lastName}`;
|
return row.firstName
|
||||||
|
? ` ${row.prefix ?? ""}${row.firstName} ${row.lastName}`
|
||||||
|
: "-";
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: "profileType",
|
||||||
|
align: "left",
|
||||||
|
label: "สถานภาพ",
|
||||||
|
sortable: true,
|
||||||
|
field: "profileType",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
format(val, row) {
|
||||||
|
return `${
|
||||||
|
row.profileType === "OFFICER"
|
||||||
|
? "ข้าราชการ กทม. สามัญ"
|
||||||
|
: row.profileType === "EMPLOYEE"
|
||||||
|
? "ลูกจ้างประจำ กทม."
|
||||||
|
: "-"
|
||||||
|
} `;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -109,6 +137,7 @@ const visibleColumns = ref<string[]>([
|
||||||
"positionExecutive",
|
"positionExecutive",
|
||||||
"org",
|
"org",
|
||||||
"createdAt",
|
"createdAt",
|
||||||
|
"profileType",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**เรียกข้อมูลจาก APi */
|
/**เรียกข้อมูลจาก APi */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue