Merge branch 'develop' into devTee
This commit is contained in:
commit
86c6cc5236
8 changed files with 47 additions and 32 deletions
|
|
@ -25,7 +25,7 @@ const dataMapToSend = computed(() => {
|
||||||
firstName: i.firstName,
|
firstName: i.firstName,
|
||||||
lastName: i.lastName,
|
lastName: i.lastName,
|
||||||
citizenId: i.citizenId,
|
citizenId: i.citizenId,
|
||||||
remarkVertical: i.reason,
|
remarkVertical: i.reasonResign,
|
||||||
remarkHorizontal: i.remarkHorizontal,
|
remarkHorizontal: i.remarkHorizontal,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
@ -158,6 +158,8 @@ const modalCommand = ref<boolean>(false);
|
||||||
|
|
||||||
/** popup ยืนยันส่งัว */
|
/** popup ยืนยันส่งัว */
|
||||||
function saveOrder() {
|
function saveOrder() {
|
||||||
|
console.log(selected.value);
|
||||||
|
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
() => {
|
() => {
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ const dataDetail = ref<any>({
|
||||||
statusMain: "",
|
statusMain: "",
|
||||||
cancelReason: "",
|
cancelReason: "",
|
||||||
remark: "",
|
remark: "",
|
||||||
|
reasonResign: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const workflowRef = ref<any>(null);
|
const workflowRef = ref<any>(null);
|
||||||
|
|
@ -201,7 +202,7 @@ async function fetchData(id: string) {
|
||||||
salary.value = data.salary ? data.salary : 0;
|
salary.value = data.salary ? data.salary : 0;
|
||||||
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
||||||
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
||||||
reason.value = data.reason ?? "";
|
reason.value = data.reasonResign ?? "";
|
||||||
location.value = data.location ?? "";
|
location.value = data.location ?? "";
|
||||||
status.value = data.status ?? "";
|
status.value = data.status ?? "";
|
||||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||||
|
|
@ -306,7 +307,7 @@ async function clickCancel() {
|
||||||
salary.value = data.salary ? data.salary : 0;
|
salary.value = data.salary ? data.salary : 0;
|
||||||
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
||||||
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
||||||
reason.value = data.reason ?? "";
|
reason.value = data.reasonResign ?? "";
|
||||||
location.value = data.location ?? "";
|
location.value = data.location ?? "";
|
||||||
status.value = data.status ?? "";
|
status.value = data.status ?? "";
|
||||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const dataMapToSend = computed(() => {
|
||||||
firstName: i.firstName,
|
firstName: i.firstName,
|
||||||
lastName: i.lastName,
|
lastName: i.lastName,
|
||||||
citizenId: i.citizenId,
|
citizenId: i.citizenId,
|
||||||
remarkVertical: i.reason,
|
remarkVertical: i.reasonResign,
|
||||||
remarkHorizontal: i.remarkHorizontal,
|
remarkHorizontal: i.remarkHorizontal,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ const dataDetail = ref<any>({
|
||||||
statusMain: "",
|
statusMain: "",
|
||||||
cancelReason: "",
|
cancelReason: "",
|
||||||
remark: "",
|
remark: "",
|
||||||
|
reasonResign: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const workflowRef = ref<any>(null);
|
const workflowRef = ref<any>(null);
|
||||||
|
|
@ -200,7 +201,7 @@ async function fetchData(id: string) {
|
||||||
salary.value = data.salary ? data.salary : 0;
|
salary.value = data.salary ? data.salary : 0;
|
||||||
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
||||||
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
||||||
reason.value = data.reason ?? "";
|
reason.value = data.reasonResign ?? "";
|
||||||
location.value = data.location ?? "";
|
location.value = data.location ?? "";
|
||||||
status.value = data.status ?? "";
|
status.value = data.status ?? "";
|
||||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||||
|
|
@ -305,7 +306,7 @@ async function clickCancel() {
|
||||||
salary.value = data.salary ? data.salary : 0;
|
salary.value = data.salary ? data.salary : 0;
|
||||||
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
date.value = data.sendDate ? new Date(data.sendDate) : null;
|
||||||
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
|
||||||
reason.value = data.reason ?? "";
|
reason.value = data.reasonResign ?? "";
|
||||||
location.value = data.location ?? "";
|
location.value = data.location ?? "";
|
||||||
status.value = data.status ?? "";
|
status.value = data.status ?? "";
|
||||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ interface ResponseItems {
|
||||||
fullname: string;
|
fullname: string;
|
||||||
datetext: string | null;
|
datetext: string | null;
|
||||||
citizenId: string;
|
citizenId: string;
|
||||||
|
reasonResign: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TypeFile {
|
interface TypeFile {
|
||||||
|
|
|
||||||
|
|
@ -404,7 +404,12 @@ onMounted(async () => {
|
||||||
<div class="row items-center">
|
<div class="row items-center">
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="row q-col-gutter-sm items-center q-py-xs">
|
<div class="row q-col-gutter-sm items-center q-py-xs">
|
||||||
<div v-if="isOfficer || isStaff">
|
<div
|
||||||
|
v-if="
|
||||||
|
((isOfficer || isStaff) && snapFilter === 'SNAP2') ||
|
||||||
|
roundFilter?.shortCode === 'SPECIAL'
|
||||||
|
"
|
||||||
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
|
||||||
|
|
@ -395,7 +395,12 @@ onMounted(async () => {
|
||||||
<div class="row items-center">
|
<div class="row items-center">
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="row q-col-gutter-sm items-center q-py-xs">
|
<div class="row q-col-gutter-sm items-center q-py-xs">
|
||||||
<div v-if="isOfficer || isStaff">
|
<div
|
||||||
|
v-if="
|
||||||
|
((isOfficer || isStaff) && snapFilter === 'SNAP2') ||
|
||||||
|
roundFilter?.shortCode === 'SPECIAL'
|
||||||
|
"
|
||||||
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
|
||||||
|
|
@ -48,29 +48,29 @@ function checkCommandSysId() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const chechCommandCode = computed(() => {
|
// const chechCommandCode = computed(() => {
|
||||||
const listCommandCode = [
|
// const listCommandCode = [
|
||||||
"C-PM-01",
|
// "C-PM-01",
|
||||||
"C-PM-02",
|
// "C-PM-02",
|
||||||
"C-PM-03",
|
// "C-PM-03",
|
||||||
"C-PM-04",
|
// "C-PM-04",
|
||||||
"C-PM-05",
|
// "C-PM-05",
|
||||||
"C-PM-07",
|
// "C-PM-07",
|
||||||
"C-PM-08",
|
// "C-PM-08",
|
||||||
"C-PM-09",
|
// "C-PM-09",
|
||||||
"C-PM-21",
|
// "C-PM-21",
|
||||||
"C-PM-22",
|
// "C-PM-22",
|
||||||
"C-PM-24",
|
// "C-PM-24",
|
||||||
"C-PM-29",
|
// "C-PM-29",
|
||||||
"C-PM-38",
|
// "C-PM-38",
|
||||||
"C-PM-39",
|
// "C-PM-39",
|
||||||
];
|
// ];
|
||||||
if (listCommandCode.includes(props.commandCode)) {
|
// if (listCommandCode.includes(props.commandCode)) {
|
||||||
return true;
|
// return true;
|
||||||
} else {
|
// } else {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
|
|
@ -159,7 +159,7 @@ watch(
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div
|
<div
|
||||||
class="row col-12 q-col-gutter-sm"
|
class="row col-12 q-col-gutter-sm"
|
||||||
v-if="chechCommandCode || readonly"
|
v-if="storeDetail.isSalary || readonly"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="store.isShowSalary(type)"
|
v-if="store.isShowSalary(type)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue