From 8832c1f157c81b2c96f7df0f0cca8e88cfa492da Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Fri, 23 May 2025 11:04:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A4=96=E6=9D=A5=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E3=80=81=E8=B7=A8=E5=8D=95=E4=B8=BA=E4=BF=AE=E6=94=B9=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wallet/wallet-foreign/index.vue | 36 +++++++++++---- src/views/wallet/wallet-stride/index.vue | 54 ++++++++++++++++------- 2 files changed, 65 insertions(+), 25 deletions(-) diff --git a/src/views/wallet/wallet-foreign/index.vue b/src/views/wallet/wallet-foreign/index.vue index c298913..0bb46ec 100644 --- a/src/views/wallet/wallet-foreign/index.vue +++ b/src/views/wallet/wallet-foreign/index.vue @@ -50,7 +50,7 @@ - + @@ -93,6 +99,8 @@ import { fetchList, pageJoin, delObjs } from "/@/api/wallet/wallet-foreign" import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" +import ProcessDrawer from "/@/components/processDrawer/index.vue" + // 引入组件 const FormDialog = defineAsyncComponent(() => import("./form.vue")) const CodeUseTable = defineAsyncComponent(() => import("../components/code-use-table.vue")) @@ -101,6 +109,7 @@ const { check_status } = useDict("check_status") // 定义变量内容 const formDialogRef = ref() const codeUseTableRef = ref() +const processDrawerRef = ref() // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -142,6 +151,17 @@ const selectionChangHandle = (objs: { id: string }[]) => { multiple.value = !objs.length } +// 审批提交事件 +const taskSubmitEvent = () => { + getDataList() +} + +// 点击开始处理 +const deal = (row: any) => { + if (!row.processId) return useMessage().warning("流程id不存在") + processDrawerRef.value.openProcessDrawer(row) +} + // 删除操作 const handleDelete = async (ids: string[]) => { try { diff --git a/src/views/wallet/wallet-stride/index.vue b/src/views/wallet/wallet-stride/index.vue index 6c5e1df..6d407bf 100644 --- a/src/views/wallet/wallet-stride/index.vue +++ b/src/views/wallet/wallet-stride/index.vue @@ -61,31 +61,37 @@ - + + @@ -95,6 +101,8 @@ import { fetchList, delObjs, pageJoin } from "/@/api/wallet/wallet-stride" import { useMessage, useMessageBox } from "/@/hooks/message" import { useDict } from "/@/hooks/dict" +import ProcessDrawer from "/@/components/processDrawer/index.vue" + const { push } = useRouter() // 引入组件 @@ -105,6 +113,7 @@ const { check_status, yes_no_type } = useDict("check_status", "yes_no_type") // 定义变量内容 const formDialogRef = ref() const codeUseTableRef = ref() +const processDrawerRef = ref() // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -144,6 +153,17 @@ const selectionChangHandle = (objs: { id: string }[]) => { multiple.value = !objs.length } +// 审批提交事件 +const taskSubmitEvent = () => { + getDataList() +} + +// 点击开始处理 +const deal = (row: any) => { + if (!row.processId) return useMessage().warning("流程id不存在") + processDrawerRef.value.openProcessDrawer(row) +} + // 删除操作 const handleDelete = async (ids: string[]) => { try {