Merge branch 'develop' into nice
This commit is contained in:
commit
e422ef250c
38 changed files with 349 additions and 203 deletions
|
|
@ -19,6 +19,7 @@ const {
|
|||
messageError,
|
||||
success,
|
||||
date2Thai,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const historyDialog = ref<boolean>(false);
|
||||
|
|
@ -26,9 +27,7 @@ const mode = ref<string>("table");
|
|||
const dialog = ref<boolean>(false);
|
||||
const route = useRoute();
|
||||
const id = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
const dialogStatus = ref<string>("create");
|
||||
const editId = ref<string>("");
|
||||
const keyword = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ const {
|
|||
messageError,
|
||||
success,
|
||||
date2Thai,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const route = useRoute();
|
||||
const id = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const dialog = ref<boolean>(false);
|
||||
const mode = ref<string>("table");
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
|
|||
|
|
@ -30,13 +30,12 @@ const {
|
|||
hideLoader,
|
||||
messageError,
|
||||
dialogConfirm,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const id = ref<string>("");
|
||||
const insigniaType = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -22,13 +22,12 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
dialogConfirm,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const id = ref<string>("");
|
||||
const issueDateYear = ref<number>(0);
|
||||
|
|
|
|||
|
|
@ -26,13 +26,12 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
dialogConfirm,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const id = ref<string>("");
|
||||
const resPerformForm = reactive<RequestItemsObject>({
|
||||
|
|
|
|||
|
|
@ -27,12 +27,11 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
success,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const profileId = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
/** ตัวแปรข้อมูลหลัก */
|
||||
const formMain = reactive<FormMain>({
|
||||
ocId: "", //สังกัด
|
||||
|
|
|
|||
|
|
@ -17,12 +17,7 @@ import DialogHistory from "@/modules/04_registryPerson/components/detail/Governm
|
|||
import { useRoute } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -32,9 +27,15 @@ const {
|
|||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
|
||||
pathRegistryEmp,
|
||||
dialogRemove,
|
||||
} = mixin;
|
||||
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const disciplineData = reactive<RequestItemsObject>({
|
||||
date: null,
|
||||
level: "",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,10 @@ const id = defineModel<string>("id", { required: true });
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||
const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
|
||||
mixin;
|
||||
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const currentPage = ref<number>(1);
|
||||
const maxPage = ref<number>(1);
|
||||
|
|
@ -147,9 +150,6 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
function getHistory() {
|
||||
showLoader();
|
||||
http
|
||||
|
|
|
|||
|
|
@ -23,12 +23,7 @@ import config from "@/app.config";
|
|||
const rowsTotal = ref<ResponseTotalObject[]>([]);
|
||||
const id = ref<string>("");
|
||||
const route = useRoute();
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -39,8 +34,14 @@ const {
|
|||
success,
|
||||
date2Thai,
|
||||
dateToISO,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const pagination = ref({
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
|
|
@ -618,7 +619,6 @@ onMounted(() => {
|
|||
<q-space />
|
||||
<div>
|
||||
<q-btn
|
||||
|
||||
color="deep-purple"
|
||||
icon="mdi-history"
|
||||
flat
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@ const id = defineModel<string>("id", { required: true });
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||
const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
|
||||
mixin;
|
||||
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const filterKeyword = ref<string>("");
|
||||
const rows = ref<DetailData[]>([]); //select data history
|
||||
const formFilter = reactive<FormFilter>({
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ const route = useRoute();
|
|||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -33,8 +31,11 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
success,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const modal = ref<boolean>(false);
|
||||
const edit = ref<boolean>(false);
|
||||
const modalHistory = ref<boolean>(false);
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@ const id = defineModel<string>("id", { required: true });
|
|||
const route = useRoute();
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||
const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
|
||||
mixin;
|
||||
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const currentPage = ref<number>(1);
|
||||
const maxPage = ref<number>(1);
|
||||
const filterKeyword = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ const {
|
|||
messageError,
|
||||
dialogRemove,
|
||||
dialogConfirm,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const id = ref<string>("");
|
||||
|
|
@ -36,9 +37,8 @@ const pagination = ref({
|
|||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const mode = ref<string>("table");
|
||||
const filterKeyword = ref<string>("");
|
||||
const rows = ref<RowList[]>([]);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ const id = defineModel<string>("id", { required: true });
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||
const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
|
||||
mixin;
|
||||
const historyPagination = ref({
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
|
|
@ -42,9 +43,7 @@ const formFilter = reactive<FormFilter>({
|
|||
isShowRetire: false,
|
||||
isProbation: false,
|
||||
});
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const visibleColumns = ref<String[]>([
|
||||
"date",
|
||||
|
|
|
|||
|
|
@ -52,7 +52,11 @@ const profileId = ref<string>(
|
|||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
route.name === "registryNewByid"
|
||||
? ""
|
||||
: route.name === "registry-employeeId"
|
||||
? "-temp"
|
||||
: "-employee"
|
||||
);
|
||||
|
||||
const modal = ref<boolean>(false);
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ const {
|
|||
messageError,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
pathRegistryEmp,
|
||||
} = useCounterMixin();
|
||||
|
||||
/**
|
||||
|
|
@ -50,9 +51,8 @@ const props = defineProps({
|
|||
|
||||
const submitDisable = ref<boolean>(true);
|
||||
const profileId = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const editId = ref<string>("");
|
||||
const dialog = ref<boolean>(false);
|
||||
const dialogStatus = ref<string>("create");
|
||||
|
|
|
|||
|
|
@ -33,13 +33,12 @@ const {
|
|||
showLoader,
|
||||
hideLoader,
|
||||
dialogConfirm,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const currentPage = ref<number>(1);
|
||||
const maxPage = ref<number>(1);
|
||||
|
|
|
|||
|
|
@ -23,16 +23,20 @@ const $q = useQuasar();
|
|||
const route = useRoute();
|
||||
|
||||
const store = useProfileDataStore();
|
||||
const { fetchPerson, filterSelector } = store;
|
||||
const { dialogConfirm, showLoader, hideLoader, messageError, success } =
|
||||
useCounterMixin();
|
||||
const { filterSelector } = store;
|
||||
const {
|
||||
dialogConfirm,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
pathRegistryEmp,
|
||||
} = useCounterMixin();
|
||||
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
/** TableHisoty*/
|
||||
const visibleColumns = ref<String[]>([
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ const {
|
|||
messageError,
|
||||
success,
|
||||
date2Thai,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
|
||||
const dialog = ref<boolean>(false);
|
||||
|
|
@ -402,9 +403,8 @@ const historyRows = ref<ResponseObject[]>([]);
|
|||
const editId = ref<string>("");
|
||||
const route = useRoute();
|
||||
const id = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const isDate = ref<string>("false");
|
||||
const educationOption = ref([
|
||||
{ label: "ใช่", value: true },
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ const {
|
|||
messageError,
|
||||
success,
|
||||
date2Thai,
|
||||
pathRegistryEmp,
|
||||
} = mixin;
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
|
|
@ -147,9 +148,8 @@ const rows = ref<ResponseObject[]>([]);
|
|||
const historyRows = ref<ResponseObject[]>([]);
|
||||
const route = useRoute();
|
||||
const id = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const editId = ref<string>("");
|
||||
const keyword = ref<string>("");
|
||||
const historyKeyword = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ const route = useRoute();
|
|||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
|
||||
const store = useSalaryDataStore();
|
||||
const {
|
||||
date2Thai,
|
||||
|
|
@ -37,8 +35,11 @@ const {
|
|||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
pathRegistryEmp,
|
||||
} = useCounterMixin();
|
||||
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const baseColumns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "date",
|
||||
|
|
@ -609,9 +610,8 @@ const classInput = (val: boolean) => {
|
|||
>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
<q-th auto-width v-if="checkPermission($route)?.attrIsUpdate" />
|
||||
<q-th auto-width v-if="checkPermission($route)?.attrIsUpdate" />
|
||||
<q-th auto-width />
|
||||
<q-th v-if="checkPermission($route)?.attrIsUpdate" auto-width />
|
||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<span class="text-weight-medium">{{ col.label }}</span>
|
||||
</q-th>
|
||||
|
|
@ -619,31 +619,7 @@ const classInput = (val: boolean) => {
|
|||
</template>
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props">
|
||||
<q-td auto-width v-if="checkPermission($route)?.attrIsUpdate">
|
||||
<q-btn
|
||||
dense
|
||||
flat
|
||||
round
|
||||
:color="props.rowIndex + 1 == 1 ? 'grey' : 'green'"
|
||||
:disable="props.rowIndex + 1 == 1"
|
||||
icon="mdi-arrow-up-bold"
|
||||
@click="onSwapUp(props.row.id)"
|
||||
>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td auto-width v-if="checkPermission($route)?.attrIsUpdate">
|
||||
<q-btn
|
||||
dense
|
||||
flat
|
||||
round
|
||||
:color="rows.length == props.rowIndex + 1 ? 'grey' : 'red'"
|
||||
:disable="rows.length == props.rowIndex + 1"
|
||||
icon="mdi-arrow-down-bold"
|
||||
@click="onSwapDown(props.row.id)"
|
||||
>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td auto-width>
|
||||
<q-td>
|
||||
<q-btn
|
||||
flat
|
||||
dense
|
||||
|
|
@ -668,6 +644,29 @@ const classInput = (val: boolean) => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-if="checkPermission($route)?.attrIsUpdate">
|
||||
<q-btn
|
||||
dense
|
||||
flat
|
||||
round
|
||||
:color="props.rowIndex + 1 == 1 ? 'grey' : 'green'"
|
||||
:disable="props.rowIndex + 1 == 1"
|
||||
icon="mdi-arrow-up-bold"
|
||||
@click="onSwapUp(props.row.id)"
|
||||
>
|
||||
</q-btn>
|
||||
|
||||
<q-btn
|
||||
dense
|
||||
flat
|
||||
round
|
||||
:color="rows.length == props.rowIndex + 1 ? 'grey' : 'red'"
|
||||
:disable="rows.length == props.rowIndex + 1"
|
||||
icon="mdi-arrow-down-bold"
|
||||
@click="onSwapDown(props.row.id)"
|
||||
>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<div class="table_ellipsis">
|
||||
{{ col.value ? col.value : "-" }}
|
||||
|
|
|
|||
|
|
@ -20,11 +20,10 @@ const {
|
|||
hideLoader,
|
||||
messageError,
|
||||
success,
|
||||
pathRegistryEmp,
|
||||
} = useCounterMixin();
|
||||
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const salaryId = defineModel<string>("salaryId", { required: true });
|
||||
|
|
|
|||
|
|
@ -24,14 +24,13 @@ const {
|
|||
messageError,
|
||||
success,
|
||||
dialogRemove,
|
||||
pathRegistryEmp,
|
||||
} = useCounterMixin();
|
||||
const id = ref<string>("");
|
||||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const modelView = ref<string>("table");
|
||||
const modalDialog = ref<boolean>(false);
|
||||
|
|
|
|||
|
|
@ -14,11 +14,10 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
|||
const route = useRoute();
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||
const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
|
||||
mixin;
|
||||
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const id = defineModel<string>("id", { required: true });
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ const {
|
|||
date2Thai,
|
||||
dateToISO,
|
||||
dialogMessageNotify,
|
||||
pathRegistryEmp,
|
||||
} = useCounterMixin();
|
||||
|
||||
/** ถึงเเก่กรรม */
|
||||
|
|
@ -53,9 +54,7 @@ const reasonDeath = ref("");
|
|||
const dialogImage = ref<boolean>(false);
|
||||
|
||||
const profileId = ref<string>(route.params.id.toString());
|
||||
const empType = ref<string>(
|
||||
route.name === "registryNewByid" ? "" : "-employee"
|
||||
);
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
||||
const formDetail = ref<ResponseObject>();
|
||||
const itemsMenu = ref<DataOption[]>([
|
||||
|
|
|
|||
|
|
@ -710,14 +710,7 @@ function onSave(data: any) {
|
|||
</q-menu>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
:props="props"
|
||||
@click="
|
||||
checkPermission($route)?.attrIsGet && nextPage(props.row.id)
|
||||
"
|
||||
>
|
||||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<div v-if="col.name == 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ const putData = () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
router.push(`/exit-Interview`);
|
||||
router.push(`/retirement/exit-interview`);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ import type { ResponseItems } from "@/modules/06_retirement/interface/response/e
|
|||
import DialogFooter from "@/modules/05_placement/components/PersonalList/DialogFooter.vue";
|
||||
import DialogHeader from "@/components/DialogHeader.vue";
|
||||
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
|
||||
/** use */
|
||||
const $q = useQuasar(); //ใช้ noti quasar
|
||||
const router = useRouter();
|
||||
|
|
@ -293,10 +295,14 @@ const openModalCalendar = (rows: any) => {
|
|||
<div class="row col-12 q-col-gutter-sm">
|
||||
<div>
|
||||
<q-btn
|
||||
v-if="
|
||||
checkPermission($route)?.attrIsGet &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
"
|
||||
color="blue-9"
|
||||
icon="mdi-square-edit-outline"
|
||||
outline
|
||||
@click="$router.push('/retirement/exit-Interview/edit-question')"
|
||||
@click="$router.push('/retirement/exit-interview/edit-question')"
|
||||
><span class="q-pl-sm">แก้ไขคำถาม</span></q-btn
|
||||
>
|
||||
</div>
|
||||
|
|
@ -354,12 +360,41 @@ const openModalCalendar = (rows: any) => {
|
|||
</q-tr>
|
||||
</template>
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-tr :props="props">
|
||||
<q-td auto-width>
|
||||
<q-btn
|
||||
v-if="!props.row.appointDate"
|
||||
flat
|
||||
dense
|
||||
round
|
||||
v-if="checkPermission($route)?.attrIsGet"
|
||||
color="info"
|
||||
icon="mdi-eye"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-interview/questionnair-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="
|
||||
router.push(
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
v-if="!props.row.appointDate && checkPermission($route)?.attrIsGet && checkPermission($route)?.attrIsUpdate"
|
||||
icon="mdi-calendar"
|
||||
size="12px"
|
||||
color="blue-7"
|
||||
flat
|
||||
round
|
||||
|
|
@ -369,25 +404,12 @@ const openModalCalendar = (rows: any) => {
|
|||
<q-tooltip>วันนัดหมายเพื่อทําการสัมภาษณ์การลาออก</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td
|
||||
key="no"
|
||||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-td key="no" :props="props">
|
||||
{{ props.rowIndex + 1 }}
|
||||
</q-td>
|
||||
<q-td
|
||||
key="fullname"
|
||||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
{{ props.row.fullname }}
|
||||
</q-td>
|
||||
|
|
@ -396,7 +418,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -407,7 +429,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -418,7 +440,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -429,7 +451,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -440,7 +462,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -452,7 +474,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -465,7 +487,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
@ -478,7 +500,7 @@ const openModalCalendar = (rows: any) => {
|
|||
:props="props"
|
||||
@click="
|
||||
router.push(
|
||||
`/retirement/exit-Interview/questionnair/${props.row.id}`
|
||||
`/retirement/exit-interview/questionnair/${props.row.id}`
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import CardProfile from "@/components/CardProfile.vue";
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const checkRoutePermisson = ref<boolean>(route.name == "exit-Interview-detailsOnly");
|
||||
const mixin = useCounterMixin();
|
||||
const dataId = route.params.id.toString();
|
||||
const {
|
||||
|
|
@ -278,7 +279,7 @@ const putData = () => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
router.push(`/exit-Interview`);
|
||||
router.push(`/retirement/exit-interview`);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
|
@ -326,6 +327,7 @@ const putData = () => {
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
v-model="score[0].score"
|
||||
label="คะแนนข้อ 1"
|
||||
type="number"
|
||||
|
|
@ -345,6 +347,7 @@ const putData = () => {
|
|||
v-if="reasonWork.includes(question1Answer.length - 1)"
|
||||
v-model="reasonWorkOther"
|
||||
disable
|
||||
:readonly="checkRoutePermisson"
|
||||
label="กรอกข้อความ"
|
||||
dense
|
||||
lazy-rules
|
||||
|
|
@ -368,6 +371,7 @@ const putData = () => {
|
|||
<div class="col-2">
|
||||
<q-input
|
||||
dense
|
||||
:readonly="checkRoutePermisson"
|
||||
outlined
|
||||
v-model="score[1].score"
|
||||
label="คะแนนข้อ 2"
|
||||
|
|
@ -394,6 +398,7 @@ const putData = () => {
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
v-model="score[2].score"
|
||||
label="คะแนนข้อ 3"
|
||||
type="number"
|
||||
|
|
@ -416,6 +421,7 @@ const putData = () => {
|
|||
dense
|
||||
disable
|
||||
lazy-rules
|
||||
:readonly="checkRoutePermisson"
|
||||
type="text"
|
||||
autogrow
|
||||
hide-bottom-space
|
||||
|
|
@ -436,6 +442,7 @@ const putData = () => {
|
|||
<div class="col-2">
|
||||
<q-input
|
||||
dense
|
||||
:readonly="checkRoutePermisson"
|
||||
outlined
|
||||
v-model="score[3].score"
|
||||
label="คะแนนข้อ 4"
|
||||
|
|
@ -459,6 +466,7 @@ const putData = () => {
|
|||
dense
|
||||
disable
|
||||
lazy-rules
|
||||
:readonly="checkRoutePermisson"
|
||||
type="text"
|
||||
autogrow
|
||||
hide-bottom-space
|
||||
|
|
@ -480,6 +488,7 @@ const putData = () => {
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
v-model="score[4].score"
|
||||
label="คะแนนข้อ 5"
|
||||
type="number"
|
||||
|
|
@ -508,6 +517,7 @@ const putData = () => {
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
v-model="score[5].score"
|
||||
label="คะแนนข้อ 6"
|
||||
type="number"
|
||||
|
|
@ -536,6 +546,7 @@ const putData = () => {
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
v-model="score[6].score"
|
||||
label="คะแนนข้อ 7"
|
||||
type="number"
|
||||
|
|
@ -558,6 +569,7 @@ const putData = () => {
|
|||
label="กรอกอื่นๆ"
|
||||
dense
|
||||
disable
|
||||
:readonly="checkRoutePermisson"
|
||||
lazy-rules
|
||||
type="text"
|
||||
autogrow
|
||||
|
|
@ -580,6 +592,7 @@ const putData = () => {
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
v-model="score[7].score"
|
||||
label="คะแนนข้อ 8"
|
||||
type="number"
|
||||
|
|
@ -603,6 +616,7 @@ const putData = () => {
|
|||
dense
|
||||
lazy-rules
|
||||
disable
|
||||
:readonly="checkRoutePermisson"
|
||||
type="text"
|
||||
autogrow
|
||||
hide-bottom-space
|
||||
|
|
@ -625,6 +639,7 @@ const putData = () => {
|
|||
dense
|
||||
outlined
|
||||
v-model="score[8].score"
|
||||
:readonly="checkRoutePermisson"
|
||||
label="คะแนนข้อ 9"
|
||||
type="number"
|
||||
lazy-rules
|
||||
|
|
@ -645,6 +660,7 @@ const putData = () => {
|
|||
label="กรอกข้อความ"
|
||||
dense
|
||||
lazy-rules
|
||||
:readonly="checkRoutePermisson"
|
||||
type="text"
|
||||
autogrow
|
||||
hide-bottom-space
|
||||
|
|
@ -668,6 +684,7 @@ const putData = () => {
|
|||
dense
|
||||
outlined
|
||||
v-model="score[9].score"
|
||||
:readonly="checkRoutePermisson"
|
||||
label="คะแนนข้อ 10"
|
||||
type="number"
|
||||
lazy-rules
|
||||
|
|
@ -1050,6 +1067,8 @@ const putData = () => {
|
|||
dense
|
||||
lazy-rules
|
||||
outlined
|
||||
:readonly="checkRoutePermisson"
|
||||
hide-bottom-space
|
||||
v-model="comment"
|
||||
label="กรอกความคิดเห็น"
|
||||
type="textarea"
|
||||
|
|
@ -1068,9 +1087,9 @@ const putData = () => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12"><q-separator /></div>
|
||||
<div class="col-12" v-if="!checkRoutePermisson"><q-separator /></div>
|
||||
|
||||
<q-card-actions class="col-12 text-primary q-pa-md">
|
||||
<q-card-actions class="col-12 text-primary q-pa-md" v-if="!checkRoutePermisson">
|
||||
<q-space />
|
||||
<q-btn
|
||||
unelevated
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { ResponseItems } from "@/modules/06_retirement/interface/response/Main";
|
||||
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
/** use */
|
||||
const RetirementData = useRetirementDataStore();
|
||||
const { statusText } = RetirementData;
|
||||
|
|
@ -240,8 +240,11 @@ const pagination = ref({
|
|||
<div class="row col-12 q-col-gutter-sm">
|
||||
<div>
|
||||
<q-btn
|
||||
v-if="
|
||||
checkPermission($route)?.attrIsGet &&
|
||||
checkPermission($route)?.attrIsUpdate
|
||||
"
|
||||
@click="openModalOrder"
|
||||
size="14px"
|
||||
flat
|
||||
round
|
||||
color="add"
|
||||
|
|
@ -301,18 +304,44 @@ const pagination = ref({
|
|||
>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
<q-th auto-width></q-th>
|
||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<span class="text-weight-medium">{{ col.label }}</span>
|
||||
</q-th>
|
||||
</q-tr>
|
||||
</template>
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
@click="router.push(`/retirement/resign/${props.row.id}`)"
|
||||
>
|
||||
<q-tr :props="props">
|
||||
<q-td auto-width>
|
||||
<q-btn
|
||||
v-if="checkPermission($route)?.attrIsGet"
|
||||
flat
|
||||
dense
|
||||
round
|
||||
color="info"
|
||||
icon="mdi-eye"
|
||||
@click="
|
||||
router.push(`/retirement/resign-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="router.push(`/retirement/resign/${props.row.id}`)"
|
||||
>
|
||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<div v-if="col.name === 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ const personId = ref<string>("");
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const checkRoutePermisson = ref<boolean>(route.name == "resignDetailbyid");
|
||||
const mixin = useCounterMixin();
|
||||
const RetirementData = useRetirementDataStore();
|
||||
const {
|
||||
|
|
@ -748,7 +749,11 @@ function removeFile(fileName: string) {
|
|||
<q-space />
|
||||
|
||||
<div
|
||||
v-if="dataDetail.status == 'WAITTING' && roleUser === 'officer'"
|
||||
v-if="
|
||||
dataDetail.status == 'WAITTING' &&
|
||||
roleUser === 'officer' &&
|
||||
!checkRoutePermisson
|
||||
"
|
||||
>
|
||||
<div v-if="!conditions">
|
||||
<q-btn
|
||||
|
|
@ -828,7 +833,11 @@ function removeFile(fileName: string) {
|
|||
<div class="row col-12 q-col-gutter-y-sm q-pa-sm">
|
||||
<div class="col-12 row">
|
||||
<q-file
|
||||
v-if="dataDetail.status == 'WAITTING' && roleUser === 'officer'"
|
||||
v-if="
|
||||
dataDetail.status == 'WAITTING' &&
|
||||
roleUser === 'officer' &&
|
||||
!checkRoutePermisson
|
||||
"
|
||||
class="col-12"
|
||||
for="#evidenceFiles"
|
||||
outlined
|
||||
|
|
@ -884,7 +893,8 @@ function removeFile(fileName: string) {
|
|||
<q-btn
|
||||
v-if="
|
||||
dataDetail.status == 'WAITTING' &&
|
||||
roleUser === 'officer'
|
||||
roleUser === 'officer' &&
|
||||
!checkRoutePermisson
|
||||
"
|
||||
dense
|
||||
flat
|
||||
|
|
@ -1054,7 +1064,7 @@ function removeFile(fileName: string) {
|
|||
</div>
|
||||
<q-space />
|
||||
|
||||
<div v-if="roleUser === 'officer'">
|
||||
<div v-if="roleUser === 'officer' && !checkRoutePermisson">
|
||||
<div class="q-gutter-sm" v-if="!edit">
|
||||
<q-btn
|
||||
outline
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ const resign = () =>
|
|||
import("@/modules/06_retirement/components/resign/Resign.vue");
|
||||
const resignByid = () =>
|
||||
import("@/modules/06_retirement/components/resign/ResignByid.vue");
|
||||
const resignDetailbyid = () =>
|
||||
import("@/modules/06_retirement/components/resign/ResignByid.vue");
|
||||
const deceased = () =>
|
||||
import("@/modules/06_retirement/components/resign/Deceased.vue");
|
||||
const detaildeceased = () =>
|
||||
|
|
@ -36,6 +38,8 @@ const exitInterviewMain = () =>
|
|||
import("@/modules/06_retirement/components/ExitInterview/exitMain.vue");
|
||||
const exitInterviewDetails = () =>
|
||||
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
|
||||
const exitInterviewDetailsOnly = () =>
|
||||
import("@/modules/06_retirement/components/ExitInterview/exitRegistry.vue");
|
||||
const exitInterviewEditQuestion = () =>
|
||||
import("@/modules/06_retirement/components/ExitInterview/EditQuestion.vue");
|
||||
const detaildeceasedByid = () =>
|
||||
|
|
@ -83,7 +87,7 @@ export default [
|
|||
},
|
||||
},
|
||||
{
|
||||
path: "/retirement/exit-Interview",
|
||||
path: "/retirement/exit-interview",
|
||||
name: "exit-Interview",
|
||||
component: exitInterviewMain,
|
||||
meta: {
|
||||
|
|
@ -93,7 +97,7 @@ export default [
|
|||
},
|
||||
},
|
||||
{
|
||||
path: "/retirement/exit-Interview/questionnair/:id",
|
||||
path: "/retirement/exit-interview/questionnair/:id",
|
||||
name: "exit-Interview-details",
|
||||
component: exitInterviewDetails,
|
||||
meta: {
|
||||
|
|
@ -103,7 +107,17 @@ export default [
|
|||
},
|
||||
},
|
||||
{
|
||||
path: "/retirement/exit-Interview/edit-question",
|
||||
path: "/retirement/exit-interview/questionnair-detail/:id",
|
||||
name: "exit-Interview-detailsOnly",
|
||||
component: exitInterviewDetailsOnly,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: "SYS_RESIGN_INTERVIEW",
|
||||
Role: "STAFF",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/retirement/exit-interview/edit-question",
|
||||
name: "ExitInterviewEditQuestion",
|
||||
component: exitInterviewEditQuestion,
|
||||
meta: {
|
||||
|
|
@ -132,6 +146,16 @@ export default [
|
|||
Role: "STAFF",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/retirement/resign-detail/:id",
|
||||
name: "resignDetailbyid",
|
||||
component: resignDetailbyid,
|
||||
meta: {
|
||||
Auth: true,
|
||||
Key: "SYS_RESIGN",
|
||||
Role: "STAFF",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// path: "/retirement/resign-order",
|
||||
// name: "resign-order",
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ const {
|
|||
messageError,
|
||||
hideLoader,
|
||||
showLoader,
|
||||
downloadRenameFileByLink
|
||||
} = mixin;
|
||||
const { filterSelector } = complainstStore; // function จาก store complainstStore
|
||||
|
||||
|
|
@ -140,13 +141,6 @@ function onSubmit() {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* เปิดลิงค์ไฟล์
|
||||
* @param link รับมาเป็น https ลิงค์
|
||||
*/
|
||||
function downloadFile(link: string) {
|
||||
window.open(link, "_blank");
|
||||
}
|
||||
|
||||
/**
|
||||
* ลบไฟล์
|
||||
|
|
@ -434,7 +428,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
ref="respondentTypeRef"
|
||||
dense
|
||||
outlined
|
||||
:readonly="isReadonly ||checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
label="ผู้ถูกร้องเรียน"
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
|
|
@ -674,7 +668,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
ref="descriptionRef"
|
||||
dense
|
||||
outlined
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
hide-bottom-space
|
||||
v-model="formData.description"
|
||||
label="รายละเอียดเรื่องร้องเรียน"
|
||||
|
|
@ -691,7 +685,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
:locale="'th'"
|
||||
autoApply
|
||||
borderless
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
@update:model-value="changeFormData()"
|
||||
|
|
@ -709,7 +703,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
outlined
|
||||
dense
|
||||
:class="inputEdit(isReadonly)"
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
hide-bottom-space
|
||||
:model-value="
|
||||
formData.dateReceived != null
|
||||
|
|
@ -741,7 +735,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
ref="levelConsiderationRef"
|
||||
dense
|
||||
outlined
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
v-model="formData.levelConsideration"
|
||||
:options="complainstStore.levelConsiderationtOptions"
|
||||
label="ระดับการพิจารณา"
|
||||
|
|
@ -764,7 +758,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
v-model="formData.dateConsideration"
|
||||
@update:model-value="changeFormData()"
|
||||
:locale="'th'"
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
autoApply
|
||||
borderless
|
||||
:enableTimePicker="false"
|
||||
|
|
@ -788,7 +782,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
? date2Thai(formData.dateConsideration)
|
||||
: null
|
||||
"
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
label="วันที่กำหนดพิจารณา"
|
||||
hide-bottom-space
|
||||
>
|
||||
|
|
@ -801,7 +795,11 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
</q-icon>
|
||||
</template>
|
||||
<template
|
||||
v-if="formData.dateConsideration && !isReadonly && !checkRoutePermisson"
|
||||
v-if="
|
||||
formData.dateConsideration &&
|
||||
!isReadonly &&
|
||||
!checkRoutePermisson
|
||||
"
|
||||
v-slot:append
|
||||
>
|
||||
<q-icon
|
||||
|
|
@ -824,7 +822,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
ref="offenseDetailsRef"
|
||||
dense
|
||||
outlined
|
||||
:readonly="isReadonly|| checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
v-model="formData.offenseDetails"
|
||||
:options="mainStore.offenseDetailstOptions"
|
||||
label="ลักษณะความผิด"
|
||||
|
|
@ -844,7 +842,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
v-model="formData.dateNotification"
|
||||
:locale="'th'"
|
||||
autoApply
|
||||
:readonly="isReadonly||checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
borderless
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
|
|
@ -863,7 +861,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
outlined
|
||||
:class="inputEdit(isReadonly)"
|
||||
dense
|
||||
:readonly="isReadonly||checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
hide-bottom-space
|
||||
:model-value="
|
||||
formData.dateNotification != null
|
||||
|
|
@ -881,7 +879,11 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
</q-icon>
|
||||
</template>
|
||||
<template
|
||||
v-if="formData.dateNotification && !isReadonly && !checkRoutePermisson"
|
||||
v-if="
|
||||
formData.dateNotification &&
|
||||
!isReadonly &&
|
||||
!checkRoutePermisson
|
||||
"
|
||||
v-slot:append
|
||||
>
|
||||
<q-icon
|
||||
|
|
@ -924,7 +926,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
dense
|
||||
outlined
|
||||
v-model="formData.appellant"
|
||||
:readonly="isReadonly ||checkRoutePermisson"
|
||||
:readonly="isReadonly || checkRoutePermisson"
|
||||
label="ผู้ร้องเรียน"
|
||||
hide-bottom-space
|
||||
type="textarea"
|
||||
|
|
@ -975,7 +977,11 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
<div class="col-12"><q-separator /></div>
|
||||
<div class="row col-12 q-col-gutter-y-sm q-pa-sm">
|
||||
<div
|
||||
v-if="!checkRoutePermisson && !isReadonly && formData.id !== ''"
|
||||
v-if="
|
||||
!checkRoutePermisson &&
|
||||
!isReadonly &&
|
||||
formData.id !== ''
|
||||
"
|
||||
class="col-12 row"
|
||||
>
|
||||
<q-file
|
||||
|
|
@ -1034,7 +1040,9 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
dense
|
||||
color="blue"
|
||||
icon="mdi-download"
|
||||
@click="downloadFile(data.pathName)"
|
||||
@click="
|
||||
downloadRenameFileByLink(data.pathName, data.fileName)
|
||||
"
|
||||
><q-tooltip>ดาวน์โหลดไฟล์</q-tooltip></q-btn
|
||||
>
|
||||
<q-btn
|
||||
|
|
@ -1067,7 +1075,10 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
</div>
|
||||
|
||||
<div class="col-12" v-if="!checkRoutePermisson"><q-separator /></div>
|
||||
<div class="row col-12 q-pa-sm" v-if="!isReadonly && !checkRoutePermisson">
|
||||
<div
|
||||
class="row col-12 q-pa-sm"
|
||||
v-if="!isReadonly && !checkRoutePermisson"
|
||||
>
|
||||
<q-space />
|
||||
<q-btn
|
||||
for="ButtonOnSubmit"
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ const {
|
|||
success,
|
||||
messageError,
|
||||
dialogRemove,
|
||||
downloadRenameFileByLink
|
||||
} = mixin;
|
||||
const investigateDis = useInvestigateDisStore();
|
||||
const countNum = ref<number>(1);
|
||||
|
|
@ -1553,7 +1554,7 @@ onMounted(async () => {
|
|||
round
|
||||
color="blue"
|
||||
icon="mdi-download-outline"
|
||||
@click="downloadFileRelevant(file.pathName)"
|
||||
@click="downloadRenameFileByLink(file.pathName, file.fileName)"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดไฟล์</q-tooltip>
|
||||
</q-btn>
|
||||
|
|
@ -1657,7 +1658,7 @@ onMounted(async () => {
|
|||
round
|
||||
color="blue"
|
||||
icon="mdi-download-outline"
|
||||
@click="downloadFile(file.pathName)"
|
||||
@click="downloadRenameFileByLink(file.pathName, file.fileName)"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดไฟล์</q-tooltip>
|
||||
</q-btn>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ const {
|
|||
messageError,
|
||||
showLoader,
|
||||
dialogRemove,
|
||||
downloadRenameFileByLink
|
||||
} = mixin;
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
|
@ -600,7 +601,7 @@ function updatemodalPersonal(modal: boolean) {
|
|||
dense
|
||||
color="blue"
|
||||
icon="mdi-download"
|
||||
@click="downloadFile(data.pathName)"
|
||||
@click="downloadRenameFileByLink(data.pathName,data.fileName)"
|
||||
><q-tooltip>ดาวน์โหลดไฟล์</q-tooltip></q-btn
|
||||
>
|
||||
<q-btn
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
const $q = useQuasar();
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, success, messageError, dialogRemove } = mixin;
|
||||
const { showLoader, hideLoader, success, messageError, dialogRemove ,downloadRenameFileByLink} = mixin;
|
||||
|
||||
const fileRef = ref<Object | null>(null);
|
||||
const file = ref<any>();
|
||||
|
|
@ -186,7 +186,7 @@ function downloadFile(link: string) {
|
|||
round
|
||||
color="blue"
|
||||
icon="mdi-download-outline"
|
||||
@click="downloadFile(f.pathName)"
|
||||
@click="downloadRenameFileByLink(f.pathName,f.fileName)"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดเอกสาร</q-tooltip>
|
||||
</q-btn>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue