详情修改

This commit is contained in:
2026-10-10 14:08:16 +08:00
parent 9af3fe952d
commit 21abd142c4
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -518,7 +518,7 @@ onMounted(async () => {
<!-- 已关闭 -->
<NButton v-if="r.status==='CLOSED'" size="small" ghost type="success" class="text-xs" @click="downloadFiles(r,'closed')">下载归档包</NButton>
<!-- 催办(超期) -->
<NButton v-if="r.overdue_days && r.status!=='CLOSED' && r.status!=='WITHDRAWN' && r.status!=='REJECTED'" size="small" ghost type="error" :disabled="loading" class="text-xs" @click="urge(r)">催办</NButton>
<NButton v-if="r.overdue_days && r.status!=='CLOSED' && r.status!=='WITHDRAWN' && r.status!=='REJECTED'" size="small" ghost type="warning" :disabled="loading" class="text-xs" @click="urge(r)">催办</NButton>
<NButton size="small" type="primary" class="text-xs" @click="jumpTo(r)">详情</NButton>
<NButton size="small" type="default" class="text-xs" @click="openProgress(r)">进度</NButton>
</div>
-1
View File
@@ -726,7 +726,6 @@ onMounted(() => {
</template>
</div>
</div>
</div>
<div class="flex items-center py-3 px-3 border rounded-md mt-3 gap-3">
<NButton v-if="isAiOn" class="text-xs hover:underline" text type="primary" @click="aiDrawer = !aiDrawer">AI辅助</NButton>
+2
View File
@@ -230,6 +230,7 @@ const getDetail = async () => {
trainFiles.value = data?.train?.attachments || [];
pssrFiles.value = data?.pssr?.attachments || [];
acceptFiles.value = data?.accept_form?.attachments || [];
// 如果详情有审批流程相关数据,直接使用,否则取默认模板
if(data?.close_approval_flow && data?.close_approval_flow?.steps?.length){
flowList.value = data?.close_approval_flow?.steps;
}else{
@@ -372,6 +373,7 @@ const getTemplateList = async () => {
// 过滤出资料关闭模板
const result = data.filter((item:any) => item.type === 3);
// ******审批模板********
// 取默认模板(资料关闭模板只有一个)
currentTemplate.value = result[0]?.steps || [];
}
loading.value = false;
+1
View File
@@ -371,6 +371,7 @@ const getDetail = async () => {
if(!error){
currentInfo.value = data;
// ******审批流程********
// 如果详情有审批流程相关数据,直接使用,否则根据等级、类型、时间类型匹配模板
if(data?.disposal_approval_flow && data?.disposal_approval_flow?.steps?.length){
flowList.value = data?.disposal_approval_flow?.steps || [];
steps.value = data?.disposal_approval_flow?.steps || [];