kuaifan 97bd58312e refactor(approve): 移除主仓库内置审批功能,收敛到插件/微应用
删除 ApproveController、ApproveProcInstHistory/ApproveProcMsg 模型、approve
前端页面与导出组件,移除 approve 路由与 flow_url 配置;审批消息模板改为对接
插件侧能力。版本号 1.7.90 → 1.7.91。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 11:35:49 +00:00

40 lines
1.6 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="open-approve-details" :data-id="msg.data.id">
<b>{{ $L(title) }}</b>
<div class="cause">
<p>{{$L("状态")}}<b>{{ $L(statusText) }}</b></p>
<p>{{$L("申请人")}}<span class="mark-color">@{{ msg.data.start_nickname }}</span> {{ msg.data.department }}</p>
<b>{{$L("详情")}}</b>
<p v-if="msg.data.type">{{$L("类型")}}{{ $L(msg.data.type) }}</p>
<p v-if="msg.data.start_time">{{$L("开始时间")}}{{ msg.data.start_time }}<template v-if="msg.data.start_day_of_week"> ({{ $L(msg.data.start_day_of_week) }})</template></p>
<p v-if="msg.data.end_time">{{$L("结束时间")}}{{ msg.data.end_time }}<template v-if="msg.data.end_day_of_week"> ({{ $L(msg.data.end_day_of_week) }})</template></p>
<p v-if="msg.data.description">{{$L("事由")}}{{ msg.data.description }}</p>
</div>
</div>
</template>
<script>
export default {
props: {
msg: Object,
},
data() {
return {};
},
computed: {
title({msg}) {
return msg.action === 'pass' ? `您发起的「${msg.data.proc_def_name}」已通过` : `您发起的「${msg.data.proc_def_name}」被 ${msg.data.nickname} 拒绝`
},
statusText({msg}) {
switch (msg.action) {
case 'pass': return '已通过';
case 'refuse': return '已拒绝';
case 'withdraw': return '已撤销';
default: return '处理中';
}
},
},
methods: {},
}
</script>