diff --git a/src/modules/06_retirement/components/02_resign/DialogSendToCommand.vue b/src/modules/06_retirement/components/02_resign/DialogSendToCommand.vue index 8d736d6aa..31a612835 100644 --- a/src/modules/06_retirement/components/02_resign/DialogSendToCommand.vue +++ b/src/modules/06_retirement/components/02_resign/DialogSendToCommand.vue @@ -25,7 +25,7 @@ const dataMapToSend = computed(() => { firstName: i.firstName, lastName: i.lastName, citizenId: i.citizenId, - remarkVertical: i.reason, + remarkVertical: i.reasonResign, remarkHorizontal: i.remarkHorizontal, })); }); @@ -158,6 +158,8 @@ const modalCommand = ref(false); /** popup ยืนยันส่งัว */ function saveOrder() { + console.log(selected.value); + dialogConfirm( $q, () => { diff --git a/src/modules/06_retirement/components/02_resign/ResignByid.vue b/src/modules/06_retirement/components/02_resign/ResignByid.vue index 1e3e31f0d..b3cda9a01 100644 --- a/src/modules/06_retirement/components/02_resign/ResignByid.vue +++ b/src/modules/06_retirement/components/02_resign/ResignByid.vue @@ -73,6 +73,7 @@ const dataDetail = ref({ statusMain: "", cancelReason: "", remark: "", + reasonResign: "", }); const workflowRef = ref(null); @@ -201,7 +202,7 @@ async function fetchData(id: string) { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; @@ -306,7 +307,7 @@ async function clickCancel() { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; diff --git a/src/modules/06_retirement/components/03_resignEmp/DialogSendToCommand.vue b/src/modules/06_retirement/components/03_resignEmp/DialogSendToCommand.vue index e04ed5ea8..dc73d8fcc 100644 --- a/src/modules/06_retirement/components/03_resignEmp/DialogSendToCommand.vue +++ b/src/modules/06_retirement/components/03_resignEmp/DialogSendToCommand.vue @@ -25,7 +25,7 @@ const dataMapToSend = computed(() => { firstName: i.firstName, lastName: i.lastName, citizenId: i.citizenId, - remarkVertical: i.reason, + remarkVertical: i.reasonResign, remarkHorizontal: i.remarkHorizontal, })); }); diff --git a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue index b50a01b24..2af2f43b3 100644 --- a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue +++ b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue @@ -72,6 +72,7 @@ const dataDetail = ref({ statusMain: "", cancelReason: "", remark: "", + reasonResign: "", }); const workflowRef = ref(null); @@ -200,7 +201,7 @@ async function fetchData(id: string) { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; @@ -305,7 +306,7 @@ async function clickCancel() { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; diff --git a/src/modules/06_retirement/interface/response/Main.ts b/src/modules/06_retirement/interface/response/Main.ts index d1eb43a8e..e0252e9e8 100644 --- a/src/modules/06_retirement/interface/response/Main.ts +++ b/src/modules/06_retirement/interface/response/Main.ts @@ -29,6 +29,7 @@ interface ResponseItems { fullname: string; datetext: string | null; citizenId: string; + reasonResign: string; } interface TypeFile { diff --git a/src/modules/13_salary/views/04_salaryLists.vue b/src/modules/13_salary/views/04_salaryLists.vue index 54a5e1275..e3c706989 100644 --- a/src/modules/13_salary/views/04_salaryLists.vue +++ b/src/modules/13_salary/views/04_salaryLists.vue @@ -404,7 +404,12 @@ onMounted(async () => {
-
+
{
-
+
{ - const listCommandCode = [ - "C-PM-01", - "C-PM-02", - "C-PM-03", - "C-PM-04", - "C-PM-05", - "C-PM-07", - "C-PM-08", - "C-PM-09", - "C-PM-21", - "C-PM-22", - "C-PM-24", - "C-PM-29", - "C-PM-38", - "C-PM-39", - ]; - if (listCommandCode.includes(props.commandCode)) { - return true; - } else { - return false; - } -}); +// const chechCommandCode = computed(() => { +// const listCommandCode = [ +// "C-PM-01", +// "C-PM-02", +// "C-PM-03", +// "C-PM-04", +// "C-PM-05", +// "C-PM-07", +// "C-PM-08", +// "C-PM-09", +// "C-PM-21", +// "C-PM-22", +// "C-PM-24", +// "C-PM-29", +// "C-PM-38", +// "C-PM-39", +// ]; +// if (listCommandCode.includes(props.commandCode)) { +// return true; +// } else { +// return false; +// } +// }); function onSubmit() { dialogConfirm($q, () => { @@ -159,7 +159,7 @@ watch(