From ef0bcc7e4dee04e0aab998251188967de85a3c6e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 27 May 2024 09:55:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=B2=E0=B8=AD=E0=B8=AD=E0=B8=81=20=3D>?= =?UTF-8?q?=20=E0=B9=80=E0=B8=87=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B9=84=E0=B8=82=E0=B8=95=E0=B9=88=E0=B8=B2=E0=B8=87=20?= =?UTF-8?q?=E0=B9=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/resign/ResignByid.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/modules/06_retirement/components/resign/ResignByid.vue b/src/modules/06_retirement/components/resign/ResignByid.vue index e1ed611fe..631f6574b 100644 --- a/src/modules/06_retirement/components/resign/ResignByid.vue +++ b/src/modules/06_retirement/components/resign/ResignByid.vue @@ -129,6 +129,7 @@ const openModal = () => (modal.value = true); const file = ref(null); const fileList = ref([]); +const isNoDebt = ref(false); const checkboxGroup = ref([]); const checkboxOp = ref([ { label: "ไม่เป็นหนี้สหกรณ์", value: "debt" }, @@ -187,6 +188,7 @@ const fetchData = async (id: string) => { } rows.value = list; dataDetail.value = data; + organizationPositionOld.value = data.organizationPositionOld ?? ""; positionTypeOld.value = data.positionTypeOld ?? ""; positionLevelOld.value = data.positionLevelOld ?? ""; @@ -198,6 +200,7 @@ const fetchData = async (id: string) => { location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; + isNoDebt.value = data.isNoDebt; }) .catch((e) => { messageError($q, e); @@ -305,7 +308,7 @@ const onSubmitConditions = () => { showLoader(); http .put(config.API.resignConditions(id.value), { - isNoDebt: checkboxGroup.value[0] ? true : false, + isNoDebt: isNoDebt.value, }) .then(() => { fetchData(id.value); @@ -774,13 +777,18 @@ function removeFile(fileName: string) {
- - +