fix leave position commander
This commit is contained in:
parent
0372eb9726
commit
2ba418651b
4 changed files with 18 additions and 9 deletions
|
|
@ -57,6 +57,7 @@ export default {
|
||||||
addApproverByType: (type: string, profileType: string, id: string) =>
|
addApproverByType: (type: string, profileType: string, id: string) =>
|
||||||
`${leave}/${profileType}/add-approver/${type}/${id}`,
|
`${leave}/${profileType}/add-approver/${type}/${id}`,
|
||||||
sendApprove: (id: string) => `${leave}/admin/approve/officer/${id}`,
|
sendApprove: (id: string) => `${leave}/admin/approve/officer/${id}`,
|
||||||
|
adminSender: (id: string) => `${leave}/admin/sender/${id}`,
|
||||||
|
|
||||||
leaveReportAPI: (type: string) =>
|
leaveReportAPI: (type: string) =>
|
||||||
`${leave}/report/download/time-records/${type}`,
|
`${leave}/report/download/time-records/${type}`,
|
||||||
|
|
|
||||||
|
|
@ -221,11 +221,11 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "positionName",
|
name: "positionSign",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่ง",
|
label: "ตำแหน่งใต้ลายเซ็น",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "positionName",
|
field: "positionSign",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
|
|
@ -612,6 +612,9 @@ function onSend() {
|
||||||
await http
|
await http
|
||||||
.get(config.API.sendApprove(paramsId))
|
.get(config.API.sendApprove(paramsId))
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
await http.put(config.API.adminSender(paramsId)).catch((e) => {
|
||||||
|
messageError($q, e);
|
||||||
|
});
|
||||||
await fetchDetailLeave(paramsId);
|
await fetchDetailLeave(paramsId);
|
||||||
success($q, "ส่งไปพิจารณา");
|
success($q, "ส่งไปพิจารณา");
|
||||||
})
|
})
|
||||||
|
|
@ -1107,13 +1110,13 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 row items-start">
|
<div class="col-xs-6 row items-start">
|
||||||
<div class="col-12 text-weight-bold text-top">
|
<div class="col-12 text-weight-bold text-top">
|
||||||
ตำแหน่ง
|
ตำแหน่งใต้ลายเซ็น
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 text-detail">
|
<div class="col-12 text-detail">
|
||||||
{{
|
{{
|
||||||
rows && rows.approvers[0]?.positionName
|
rows && rows.approvers[0]?.positionSign
|
||||||
? rows?.approvers[0].positionName
|
? rows?.approvers[0].positionSign
|
||||||
: "-"
|
: "-"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -70,12 +70,15 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "posExecutiveName",
|
name: "positionSign",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งทางการบริหาร",
|
label: "ตำแหน่งใต้ลายเซ็น",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posExecutiveName",
|
field: "positionSign",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
format(val, row) {
|
||||||
|
return val ?? row.posExecutiveName;
|
||||||
|
},
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -147,6 +150,7 @@ function onSubmit() {
|
||||||
firstName: items.firstName,
|
firstName: items.firstName,
|
||||||
lastName: items.lastName,
|
lastName: items.lastName,
|
||||||
positionName: items.position,
|
positionName: items.position,
|
||||||
|
positionSign: items.positionSign ?? items.posExecutiveName,
|
||||||
profileId: items.id,
|
profileId: items.id,
|
||||||
keycloakId: items.keycloakId,
|
keycloakId: items.keycloakId,
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ interface SeqTypeRow {
|
||||||
firstName: string;
|
firstName: string;
|
||||||
lastName: string;
|
lastName: string;
|
||||||
positionName: string;
|
positionName: string;
|
||||||
|
positionSign?: string;
|
||||||
profileId: string;
|
profileId: string;
|
||||||
keycloakId: string;
|
keycloakId: string;
|
||||||
approveStatus: string;
|
approveStatus: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue