From aa987f839c37035463f1a73d858b125c545f2d42 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 21 Oct 2024 14:23:22 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=20=E0=B9=80?= =?UTF-8?q?=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/13_salary/views/04_salaryLists.vue | 11 ++++++++--- .../13_salary/views/05_salaryListsEmployee.vue | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/modules/13_salary/views/04_salaryLists.vue b/src/modules/13_salary/views/04_salaryLists.vue index 913121dcc..9438814bd 100644 --- a/src/modules/13_salary/views/04_salaryLists.vue +++ b/src/modules/13_salary/views/04_salaryLists.vue @@ -371,10 +371,15 @@ onMounted(() => {
+ > + ส่งไปออกคำสั่ง +
{
+ > + ส่งไปออกคำสั่ง +
Date: Mon, 21 Oct 2024 15:37:18 +0700 Subject: [PATCH 2/2] fix workflow --- .../Workflow/DialogSelectPerson.vue | 3 +- src/components/Workflow/Main.vue | 47 ++++++++++++++----- .../components/requestEdit/Page01_Detail.vue | 9 +++- .../components/Transfer/TransferDetail.vue | 35 ++++++++------ .../components/resign/ResignByid.vue | 22 ++++++++- 5 files changed, 86 insertions(+), 30 deletions(-) diff --git a/src/components/Workflow/DialogSelectPerson.vue b/src/components/Workflow/DialogSelectPerson.vue index 192e5da25..5fbfa7362 100644 --- a/src/components/Workflow/DialogSelectPerson.vue +++ b/src/components/Workflow/DialogSelectPerson.vue @@ -18,6 +18,7 @@ const modal = defineModel("modal", { required: true }); const props = defineProps({ stateId: { type: String, require: true }, fetchData: { type: Function, require: true }, + type: { type: String, require: true }, }); /** table*/ @@ -72,7 +73,7 @@ const isReasonSetting = ref(false); async function fetchLists() { showLoader(); await http - .get(config.API.workflow + `commander`) + .get(config.API.workflow + `commander/${props.type}`) .then(async (res) => { rows.value = res.data.result; }) diff --git a/src/components/Workflow/Main.vue b/src/components/Workflow/Main.vue index bc166e9b4..a9b3d173b 100644 --- a/src/components/Workflow/Main.vue +++ b/src/components/Workflow/Main.vue @@ -16,7 +16,10 @@ const $q = useQuasar(); const { dialogConfirm, showLoader, hideLoader, messageError } = useCounterMixin(); -const { id, sysName } = defineProps({ +const isCheckData = defineModel("isCheckData", { + default: true, +}); +const props = defineProps({ id: { type: String, require: true }, sysName: { type: String, require: true }, }); @@ -38,12 +41,13 @@ const itemState = ref([]); const modalSelectPerson = ref(false); const modalApprove = ref(false); +const typeSelectPerson = ref(""); async function fetchCheckState() { await http .post(config.API.workflow + `check-user-now`, { - refId: id, - system: sysName, + refId: props.id, + system: props.sysName, }) .then(async (res) => { await fetchData(); @@ -71,8 +75,8 @@ async function fetchCheckState() { async function fetchData() { await http .post(config.API.workflow + `check-state-all`, { - refId: id, - system: sysName, + refId: props.id, + system: props.sysName, }) .then(async (res) => { const data = await res.data.result; @@ -88,8 +92,8 @@ function onChangeState() { showLoader(); await http .post(config.API.workflow + `state-next`, { - refId: id, - system: sysName, + refId: props.id, + system: props.sysName, }) .then(async () => { await fetchCheckState(); @@ -115,7 +119,7 @@ defineExpose({