diff --git a/src/components/Dialogs/DialogOrgSelectOneStep.vue b/src/components/Dialogs/DialogOrgSelectOneStep.vue index 12e44f743..6fbf932c1 100644 --- a/src/components/Dialogs/DialogOrgSelectOneStep.vue +++ b/src/components/Dialogs/DialogOrgSelectOneStep.vue @@ -234,7 +234,6 @@ async function getActive() { .get(config.API.activeOrganization) .then(async (res) => { const data = res.data.result; - formActive.activeId = data.activeId; formActive.activeName = data.activeName; formActive.draftId = data.draftId; diff --git a/src/modules/10_order/components/step/step03.vue b/src/modules/10_order/components/step/step03.vue index 58ffe69a2..d9996cef3 100644 --- a/src/modules/10_order/components/step/step03.vue +++ b/src/modules/10_order/components/step/step03.vue @@ -47,7 +47,9 @@ const mixin = useCounterMixin(); //เรียกฟังก์ชันกล const { dialogRemove, messageError, showLoader, hideLoader, success } = mixin; const route = useRoute(); -const checkRoutePermisson = ref(route.name == "disciplineOrderDatailOnly"); +const checkRoutePermisson = ref( + route.name == "disciplineOrderDatailOnly" +); const myForm = ref(null); const filterRef = ref(); const filter = ref(""); @@ -256,7 +258,6 @@ const clickClose = async () => { }; // เปิด popup เพิ่มข้อมูล const clickAdd = async () => { - await nodeTree(); selected.value = ""; rowsModal.value = []; selectedModal.value = []; @@ -269,29 +270,7 @@ const clickAdd = async () => { const clickDelete = (id: string) => { dialogRemove($q, () => deleteData(id)); }; -// โหลดโครงสร้าง tree -const nodeTree = async () => { - showLoader(); - await http - .get(config.API.profileOrganizRoot) - .then((res) => { - const data = res.data.result; - nodesTree.value = data; - if (data.length > 0) { - expanded.value = [data[0].id]; - } - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); -}; -// เลือกหน่วยงาน -const onSelected = async (id: string) => { - await listModal(id); -}; + // ลบข้อมูลรายชื่อ const deleteData = async (id: string) => { await http @@ -365,7 +344,14 @@ const fetchOrder = async (id: string) => {
- + เพิ่มข้อมูล @@ -429,7 +415,7 @@ const fetchOrder = async (id: string) => { { - +