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()