From ea921b39b02b33aa7c20be21df5af4643489d2b8 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Wed, 18 Sep 2024 15:18:57 +0700 Subject: [PATCH] Refactoring code module 06_retirement --- .../06_retirement/components/DialogFooter.vue | 19 +-- .../Discharged/DialogSendToCommand.vue | 28 ++-- .../components/Discharged/dischargedMain.vue | 61 ++++---- .../Discharged/dischargedRegistry.vue | 51 +++--- .../DismissOrder/DialogSendToCommand.vue | 25 +-- .../components/DismissOrder/DismissOrder.vue | 48 +++--- .../components/DismissOrder/outRegistry.vue | 19 +-- .../components/ExitInterview/EditQuestion.vue | 78 ++-------- .../components/ExitInterview/exitMain.vue | 53 ++++--- .../components/ExitInterview/exitRegistry.vue | 93 +++++------ .../Expulsion/DialogSendToCommand.vue | 29 ++-- .../components/Expulsion/expulsionMain.vue | 50 +++--- .../Expulsion/expulsionRegistry.vue | 66 ++++---- .../components/ListRetirement/AddList.vue | 65 ++++---- .../components/ListRetirement/TableList.vue | 69 ++++---- .../components/ListRetirement/popupAdd.vue | 20 ++- .../components/resign/Deceased.vue | 56 +++---- .../components/resign/DetailByidDeceased.vue | 123 +++------------ .../components/resign/DetailDeceased.vue | 47 +++--- .../components/resign/DialogSendToCommand.vue | 75 +++++---- .../components/resign/Resign.vue | 48 +++--- .../components/resign/ResignByid.vue | 147 ++++++++---------- .../components/resign/ResignOrder.vue | 69 ++++---- .../06_retirement/interface/index/Main.ts | 46 +++++- .../06_retirement/interface/request/Main.ts | 15 +- .../06_retirement/interface/response/Main.ts | 1 + .../interface/response/expulsion.ts | 19 ++- src/modules/06_retirement/router.ts | 13 -- src/modules/06_retirement/views/Main.vue | 120 +++++++------- 29 files changed, 730 insertions(+), 823 deletions(-) diff --git a/src/modules/06_retirement/components/DialogFooter.vue b/src/modules/06_retirement/components/DialogFooter.vue index e7e10e928..a9f8a4eee 100644 --- a/src/modules/06_retirement/components/DialogFooter.vue +++ b/src/modules/06_retirement/components/DialogFooter.vue @@ -26,19 +26,19 @@ const emit = defineEmits([ "update:previous", ]); -const updateEdit = (value: Boolean) => { +function updateEdit(value: Boolean) { emit("update:editvisible", value); -}; -const edit = async () => { +} +async function edit() { updateEdit(!props.editvisible); props.edit(); -}; +} /* บันทึกข้อมูล**/ -const checkSave = () => { +function checkSave() { props.validate(); props.save(); -}; +} diff --git a/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue b/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue index 04c0c5d74..26b77412b 100644 --- a/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue +++ b/src/modules/06_retirement/components/Discharged/DialogSendToCommand.vue @@ -1,12 +1,15 @@