From 11b264ce52968607d6e0d6b435b1dd21277e7190 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sun, 10 Nov 2024 15:59:47 +0800 Subject: [PATCH] 1 --- src/views/order/beforehand_order/add.vue | 4 +- src/views/order/beforehand_order/edit.vue | 115 +++++++++++++++++++++ src/views/order/beforehand_order/index.vue | 18 +++- 3 files changed, 132 insertions(+), 5 deletions(-) create mode 100644 src/views/order/beforehand_order/edit.vue diff --git a/src/views/order/beforehand_order/add.vue b/src/views/order/beforehand_order/add.vue index 9d31bfa6..e56b4787 100644 --- a/src/views/order/beforehand_order/add.vue +++ b/src/views/order/beforehand_order/add.vue @@ -97,7 +97,7 @@ - + - + diff --git a/src/views/order/beforehand_order/edit.vue b/src/views/order/beforehand_order/edit.vue new file mode 100644 index 00000000..46e125d0 --- /dev/null +++ b/src/views/order/beforehand_order/edit.vue @@ -0,0 +1,115 @@ + + + diff --git a/src/views/order/beforehand_order/index.vue b/src/views/order/beforehand_order/index.vue index 06c006c4..f5516ef3 100644 --- a/src/views/order/beforehand_order/index.vue +++ b/src/views/order/beforehand_order/index.vue @@ -111,7 +111,7 @@ - + @@ -172,6 +174,11 @@ import moment from 'moment' import { apiBeforehandOrderLists, apiBeforehandOrderDelete } from '@/api/beforehand_order' import { apiSystemStoreLists } from '@/api/system_store' import DrawerPop from './component/drawer.vue' +import EditPopup from './edit.vue' + +// 是否显示编辑框 +const showEdit = ref(false) +const editRef = shallowRef>() const showDrawer = ref(false) const drawerRef = ref(null) @@ -202,8 +209,13 @@ const handleSelectionChange = (val: any[]) => { selectData.value = val.map(({ id }) => id) } -// 获取字典数据 -const { dictData } = useDictData('') +// 详情 +const handleEdit = async (data: any) => { + showEdit.value = true + await nextTick() + editRef.value?.open('edit') + editRef.value?.setFormData(data) +} // 分页相关 const { pager, getLists, resetParams, resetPage } = usePaging({