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 @@ - + {{ row.applyStartTime }} - @@ -68,13 +68,17 @@ - 查看审批 - - 使用情况 - - - 删除 - + + + 开始处理 + + + 使用情况 + + + 删除 + + @@ -84,6 +88,8 @@ + + @@ -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 {