ปรับ รายการบันทึกเวียนแจ้งการถึงแก่กรรม
This commit is contained in:
parent
911bed1148
commit
7e26314cb6
4 changed files with 11 additions and 88 deletions
|
|
@ -416,55 +416,30 @@ const openModalCalendar = (rows: any) => {
|
||||||
<q-td
|
<q-td
|
||||||
key="realReason"
|
key="realReason"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ props.row.realReason }}
|
{{ props.row.realReason }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td
|
||||||
key="notExitFactor"
|
key="notExitFactor"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ props.row.notExitFactor }}
|
{{ props.row.notExitFactor }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td
|
||||||
key="futureWork"
|
key="futureWork"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ props.row.futureWork ? "ใช่" : "ไม่" }}
|
{{ props.row.futureWork ? "ใช่" : "ไม่" }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td
|
||||||
key="futureWorkReason"
|
key="futureWorkReason"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ props.row.futureWorkReason }}
|
{{ props.row.futureWorkReason }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td
|
||||||
key="havejob"
|
key="havejob"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ props.row.havejob ? "ใช่" : "ไม่" }}
|
{{ props.row.havejob ? "ใช่" : "ไม่" }}
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
@ -472,11 +447,6 @@ const openModalCalendar = (rows: any) => {
|
||||||
<q-td
|
<q-td
|
||||||
key="havejobReason"
|
key="havejobReason"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<div class="table_ellipsis">
|
<div class="table_ellipsis">
|
||||||
{{ props.row.havejobReason }}
|
{{ props.row.havejobReason }}
|
||||||
|
|
@ -485,11 +455,6 @@ const openModalCalendar = (rows: any) => {
|
||||||
<q-td
|
<q-td
|
||||||
key="appointDate"
|
key="appointDate"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
props.row.appointDate == null ? "-" : props.row.appointDate
|
props.row.appointDate == null ? "-" : props.row.appointDate
|
||||||
|
|
@ -498,11 +463,6 @@ const openModalCalendar = (rows: any) => {
|
||||||
<q-td
|
<q-td
|
||||||
key="datetext"
|
key="datetext"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="
|
|
||||||
router.push(
|
|
||||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
{{ props.row.datetext }}
|
{{ props.row.datetext }}
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
|
||||||
|
|
@ -241,25 +241,9 @@ const pagination = ref({
|
||||||
round
|
round
|
||||||
color="info"
|
color="info"
|
||||||
icon="mdi-eye"
|
icon="mdi-eye"
|
||||||
@click="
|
|
||||||
router.push(`/retirement/deceased-detail/${props.row.id}`)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<q-tooltip>รายละเอียด</q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
checkPermission($route)?.attrIsGet &&
|
|
||||||
checkPermission($route)?.attrIsUpdate
|
|
||||||
"
|
|
||||||
flat
|
|
||||||
dense
|
|
||||||
round
|
|
||||||
color="edit"
|
|
||||||
icon="edit"
|
|
||||||
@click.stop.prevent="nextPage(props.row.id)"
|
@click.stop.prevent="nextPage(props.row.id)"
|
||||||
>
|
>
|
||||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
<q-tooltip>รายละเอียด</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td v-for="col in props.cols" :key="col.id">
|
<q-td v-for="col in props.cols" :key="col.id">
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,14 @@ import CardProfile from "@/components/CardProfile.vue";
|
||||||
|
|
||||||
/** importStore*/
|
/** importStore*/
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
import { checkPermission } from "@/utils/permissions";
|
||||||
|
|
||||||
|
import genReport from "@/plugins/genreport";
|
||||||
|
|
||||||
/**use*/
|
/**use*/
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const checkRoutePermisson = ref<boolean>(route.name == "deceased-detailOnly");
|
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||||
const fullName = ref<string>("");
|
const fullName = ref<string>("");
|
||||||
|
|
@ -64,17 +66,6 @@ const nextPage = (page: string) => {
|
||||||
window.open(page, "_blank");
|
window.open(page, "_blank");
|
||||||
};
|
};
|
||||||
|
|
||||||
//downloadFile
|
|
||||||
const downloadFile = (response: any, filename: string) => {
|
|
||||||
const link = document.createElement("a");
|
|
||||||
var fileName = filename;
|
|
||||||
link.href = window.URL.createObjectURL(new Blob([response.data]));
|
|
||||||
link.setAttribute("download", fileName);
|
|
||||||
document.body.appendChild(link);
|
|
||||||
link.click();
|
|
||||||
document.body.removeChild(link);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ฟังก์ชั่น ดาว์โหลด
|
* ฟังก์ชั่น ดาว์โหลด
|
||||||
* @param type typeของรายละเอียด
|
* @param type typeของรายละเอียด
|
||||||
|
|
@ -82,13 +73,13 @@ const downloadFile = (response: any, filename: string) => {
|
||||||
const fileDownload = async (type: string) => {
|
const fileDownload = async (type: string) => {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.DeceasedReport(type, profileId.value), {
|
.get(config.API.DeceasedReport(type, profileId.value))
|
||||||
responseType: "blob",
|
|
||||||
})
|
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
downloadFile(
|
const data = res.data.result;
|
||||||
res,
|
genReport(
|
||||||
`รายละเอียดบันทึกเวียนแจ้งการถึงแก่กรรม-${fullName.value}.${type}`
|
data,
|
||||||
|
`รายละเอียดบันทึกเวียนแจ้งการถึงแก่กรรม-${fullName.value}`,
|
||||||
|
type
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.catch(async (e) => {
|
.catch(async (e) => {
|
||||||
|
|
@ -191,7 +182,7 @@ const fileDownload = async (type: string) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12" v-if="!checkRoutePermisson">
|
<div class="col-12" v-if="checkPermission($route)?.attrIsUpdate">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@ const deceased = () =>
|
||||||
import("@/modules/06_retirement/components/resign/Deceased.vue");
|
import("@/modules/06_retirement/components/resign/Deceased.vue");
|
||||||
const detaildeceased = () =>
|
const detaildeceased = () =>
|
||||||
import("@/modules/06_retirement/components/resign/DetailDeceased.vue");
|
import("@/modules/06_retirement/components/resign/DetailDeceased.vue");
|
||||||
const detaildeceasedOnly = () =>
|
|
||||||
import("@/modules/06_retirement/components/resign/DetailDeceased.vue");
|
|
||||||
const dismissOrder = () =>
|
const dismissOrder = () =>
|
||||||
import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue");
|
import("@/modules/06_retirement/components/DismissOrder/DismissOrder.vue");
|
||||||
const outDetail = () =>
|
const outDetail = () =>
|
||||||
|
|
@ -190,16 +188,6 @@ export default [
|
||||||
Role: "STAFF",
|
Role: "STAFF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "/retirement/deceased-detail/:id",
|
|
||||||
name: "deceased-detailOnly",
|
|
||||||
component: detaildeceasedOnly,
|
|
||||||
meta: {
|
|
||||||
Auth: true,
|
|
||||||
Key: "SYS_PASSAWAY",
|
|
||||||
Role: "STAFF",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "/retirement/deceased/detail/:id",
|
path: "/retirement/deceased/detail/:id",
|
||||||
name: "deceased-detailByid",
|
name: "deceased-detailByid",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue