From 8fd5fe08f00de92c19815fe9750b22f178205bf3 Mon Sep 17 00:00:00 2001 From: xiangheng <11675084@qq.com> Date: Wed, 3 Jul 2024 23:52:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=B5=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flow/flow_apply/components/ViewForm.vue | 6 +- .../flow_apply/components/apply_submit.vue | 2 +- admin/src/views/flow/flow_apply/index.vue | 4 +- .../flow/flow_history/components/Back.vue | 3 + .../flow/flow_history/components/ViewForm.vue | 3 +- .../flow_history/components/apply_submit.vue | 151 ++++++++++++++++++ admin/src/views/flow/flow_history/todo.vue | 11 +- 7 files changed, 172 insertions(+), 8 deletions(-) create mode 100644 admin/src/views/flow/flow_history/components/apply_submit.vue diff --git a/admin/src/views/flow/flow_apply/components/ViewForm.vue b/admin/src/views/flow/flow_apply/components/ViewForm.vue index 1535453..b3b1061 100644 --- a/admin/src/views/flow/flow_apply/components/ViewForm.vue +++ b/admin/src/views/flow/flow_apply/components/ViewForm.vue @@ -25,7 +25,11 @@ diff --git a/admin/src/views/flow/flow_apply/components/apply_submit.vue b/admin/src/views/flow/flow_apply/components/apply_submit.vue index 43958a9..98c5e1e 100644 --- a/admin/src/views/flow/flow_apply/components/apply_submit.vue +++ b/admin/src/views/flow/flow_apply/components/apply_submit.vue @@ -48,7 +48,7 @@ diff --git a/admin/src/views/flow/flow_apply/index.vue b/admin/src/views/flow/flow_apply/index.vue index 887130a..5a22a8b 100644 --- a/admin/src/views/flow/flow_apply/index.vue +++ b/admin/src/views/flow/flow_apply/index.vue @@ -84,10 +84,10 @@ link @click="OpenViewForm(row)" > - {{ row.status == 1 ? '编辑' : '预览' }} + {{ row.status == 1 || row.status == 4 ? '编辑' : '预览' }} { diff --git a/admin/src/views/flow/flow_history/components/ViewForm.vue b/admin/src/views/flow/flow_history/components/ViewForm.vue index 1b3a323..86e95d2 100644 --- a/admin/src/views/flow/flow_history/components/ViewForm.vue +++ b/admin/src/views/flow/flow_history/components/ViewForm.vue @@ -99,7 +99,8 @@ function onSubmit() { defineExpose({ open, disableWidgets, - hideWidgets + hideWidgets, + closeFn }) diff --git a/admin/src/views/flow/flow_history/components/apply_submit.vue b/admin/src/views/flow/flow_history/components/apply_submit.vue new file mode 100644 index 0000000..43958a9 --- /dev/null +++ b/admin/src/views/flow/flow_history/components/apply_submit.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/admin/src/views/flow/flow_history/todo.vue b/admin/src/views/flow/flow_history/todo.vue index d09d4a3..ad15cd9 100644 --- a/admin/src/views/flow/flow_history/todo.vue +++ b/admin/src/views/flow/flow_history/todo.vue @@ -63,7 +63,7 @@ - + @@ -75,7 +75,7 @@ import { useDictData } from '@/hooks/useDictOptions' import { usePaging } from '@/hooks/usePaging' import feedback from '@/utils/feedback' import useUserStore from '@/stores/modules/user' -import ApplySubmit from '@/views/flow/flow_apply/components/apply_submit.vue' +import ApplySubmit from './components/apply_submit.vue' import ViewForm from './components/ViewForm.vue' import Back from './components/Back.vue' const userStore = useUserStore() @@ -134,7 +134,7 @@ const SaveViewForm = (historyId, form_data) => { feedback.msgSuccess('保存成功') await getLists() - const row = pager.lists.find((item) => item.id === historyId) + const row = pager.lists.find((item: any) => item.id === historyId) OpenApplySubmit(row) resolve(true) @@ -155,6 +155,11 @@ const OpenBack = async (row: any) => { backRef.value?.open(row.applyId) } +const closeBack = () => { + console.log('closeBack') + + viewFormRef.value?.closeFn() +} getLists()