|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="auxiliary-notice-detail-container layout-pd">
|
|
|
<el-card shadow="never" v-loading="loading">
|
|
|
- <el-form :model="state.ruleForm" label-width="110px" ref="ruleFormRef">
|
|
|
+ <el-form :model="state.ruleForm" label-width="110px" ref="ruleFormRef" class="show-info-form">
|
|
|
<template v-if="noticeType === '通知详情'">
|
|
|
- <el-row :gutter="10">
|
|
|
+ <el-row :gutter="0">
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
|
|
<el-form-item label="通知类型">
|
|
|
{{ state.ruleForm.circularTypeName }}
|
|
@@ -94,15 +94,20 @@
|
|
|
</el-row>
|
|
|
</template>
|
|
|
</el-form>
|
|
|
+<!-- v-if="state.ruleForm.isCanHandle" -->
|
|
|
+ <el-button type="primary" @click="onAudit" title="审批通知公告" v-if="state.ruleForm.circularState == 1"> 审批 </el-button>
|
|
|
</el-card>
|
|
|
+ <!-- 流程审批 -->
|
|
|
+ <process-audit ref="processAuditRef" @orderProcessSuccess="closePage" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts" name="auxiliaryNoticeDetail">
|
|
|
-import { reactive, onMounted, ref } from 'vue';
|
|
|
-import { useRoute } from 'vue-router';
|
|
|
+import { reactive, onMounted, ref ,defineAsyncComponent} from 'vue';
|
|
|
+import {useRoute, useRouter} from 'vue-router';
|
|
|
import { formatDate } from '/@/utils/formatTime';
|
|
|
import { bulletinDetail, circularDetail, circularRead } from '/@/api/auxiliary/notice';
|
|
|
-
|
|
|
+import mittBus from '/@/utils/mitt';
|
|
|
+const ProcessAudit = defineAsyncComponent(() => import('/@/components/ProcessAudit/index.vue')); // 流程审批
|
|
|
// 定义变量内容
|
|
|
const state = reactive<any>({
|
|
|
dialogVisible: false,
|
|
@@ -145,4 +150,30 @@ onMounted(() => {
|
|
|
isRead.value = route.params?.isRead ?? '0';
|
|
|
getDetail(route.params.id);
|
|
|
});
|
|
|
+const processAuditRef = ref<RefType>(); // 处理流程
|
|
|
+const onAudit = ()=>{
|
|
|
+ const processType = noticeType.value;
|
|
|
+ const annexName = noticeType.value === '通知详情' ? '通知附件' : '公告附件';
|
|
|
+ const params = {
|
|
|
+ id: state.ruleForm.workflowId,
|
|
|
+ processType,
|
|
|
+ orderDetail: {},
|
|
|
+ extra: {
|
|
|
+ dialogTitle: processType,
|
|
|
+ inputPlaceholder: '办理意见',
|
|
|
+ annexName,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ processAuditRef.value.openDialog(params);
|
|
|
+}
|
|
|
+// 关闭当前页
|
|
|
+const router = useRouter();
|
|
|
+const closePage = ()=>{
|
|
|
+ // 关闭当前 tagsView
|
|
|
+ mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
+ mittBus.emit('clearCache', "knowledgeManage");
|
|
|
+ router.push({
|
|
|
+ path: '/knowledge/index',
|
|
|
+ });
|
|
|
+}
|
|
|
</script>
|