feat: 优化AI助手及报告对比界面,完成金额精度专项验证
- 调整环境配置切换至测试服 - 实现AI助手上下文折叠展开功能,优化界面布局 - 新增报告对比首屏短参数展示,简化信息呈现 - 调整报告页布局,优化导出组件为紧凑模式 - 完成原型08金额精度三轮真实专项验证,新增金额守卫逻辑 - 更新文档记录部署、数据库切换及验收进展
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
<template>
|
||||
<view class="export-area">
|
||||
<view class="export-row"><text class="export-label">报告已保存至融资档案</text><button class="export-button" :disabled="busy" @click="download">{{ busy ? '正在生成…' : '下载PDF' }}</button></view>
|
||||
<view :class="compact ? 'export-area export-compact' : 'export-area'">
|
||||
<view class="export-row"><text class="export-label">{{ compact ? '评估 #' + assessmentId + ' · 已保存' : '报告已保存至融资档案' }}</text><button class="export-button" :disabled="busy" @click="download">{{ busy ? '正在生成…' : '下载PDF' }}</button></view>
|
||||
<text v-if="message.length > 0" :class="failed ? 'export-message export-error' : 'export-message'">{{ message }}</text>
|
||||
<text v-if="message.length == 0" class="export-message">导出不含身份信息,请妥善保管下载文件。</text>
|
||||
<text v-if="message.length == 0 && !compact" class="export-message">导出不含身份信息,请妥善保管下载文件。</text>
|
||||
</view>
|
||||
</template>
|
||||
<script setup lang="uts">
|
||||
import { getSession } from '@/services/api.uts'
|
||||
import { ReportDownload, downloadReportPdf } from '@/packages/finance/services/report-export.uts'
|
||||
const props = defineProps({ assessmentId: { type: String, required: true } })
|
||||
// 报告页使用紧凑入口,下载进度和错误始终展示;其他页面保留原布局。
|
||||
const props = defineProps({ assessmentId: { type: String, required: true }, compact: { type: Boolean, default: false } })
|
||||
const emit = defineEmits(['authrequired', 'sessionchanged'])
|
||||
const busy = ref(false); const message = ref(''); const failed = ref(false)
|
||||
let operation: ReportDownload | null = null; let generation = 0
|
||||
@@ -39,4 +40,5 @@
|
||||
.export-button { font-size: 24rpx; color: #0868f7; background-color: #eaf3ff; border-radius: 10rpx; margin-left: 18rpx; padding-left: 24rpx; padding-right: 24rpx; }
|
||||
.export-message { color: #8393a6; font-size: 22rpx; line-height: 36rpx; margin-top: 12rpx; }
|
||||
.export-error { color: #a05d37; }
|
||||
.export-compact { margin-top: 0; margin-bottom: 0; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user