对齐结果总览涉疑交易明细样式
This commit is contained in:
@@ -0,0 +1,69 @@
|
|||||||
|
# 结果总览涉疑交易明细与流水明细查询对齐设计
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
- 结果总览页的“风险明细 > 涉疑交易明细”已接通真实接口,但当前列表列结构、详情弹窗内容和分页交互均与“流水明细查询”页面不一致。
|
||||||
|
- 用户要求以“流水明细查询”页为基准对齐交互与视觉,仅保留涉疑交易特有的“关联员工”字段,其余定制列移除。
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
- 列表对齐“流水明细查询”页面的主表结构与样式。
|
||||||
|
- 详情弹窗对齐“流水明细查询”页面的字段布局、原始文件区域与命中异常标签区域。
|
||||||
|
- 分页固定每页 5 条,筛选切换后回到第一页。
|
||||||
|
- 保留“关联员工”列,作为涉疑交易明细相对流水明细查询的唯一额外业务列。
|
||||||
|
|
||||||
|
## 方案
|
||||||
|
|
||||||
|
### 列表
|
||||||
|
|
||||||
|
- `RiskDetailSection.vue` 保留“涉疑交易明细”区块与筛选下拉。
|
||||||
|
- 表格列改为:
|
||||||
|
- 交易时间
|
||||||
|
- 本方账户
|
||||||
|
- 对方账户
|
||||||
|
- 关联员工
|
||||||
|
- 摘要 / 交易类型
|
||||||
|
- 异常标签
|
||||||
|
- 交易金额
|
||||||
|
- 详情
|
||||||
|
- 保持与 `DetailQuery.vue` 相同的多行单元格结构、金额颜色和异常标签样式。
|
||||||
|
|
||||||
|
### 分页
|
||||||
|
|
||||||
|
- 组件内部新增独立分页状态:
|
||||||
|
- `suspiciousPageNum`
|
||||||
|
- `suspiciousPageSize` 固定为 `5`
|
||||||
|
- `suspiciousTotal`
|
||||||
|
- 初次加载、筛选切换和翻页都通过 `getOverviewSuspiciousTransactions` 重新请求。
|
||||||
|
- 分页组件沿用仓库现有 `Pagination`,但限制 `pageSizes` 为 `[5]`,并移除 `sizes` 布局项。
|
||||||
|
|
||||||
|
### 详情弹窗
|
||||||
|
|
||||||
|
- 详情弹窗结构对齐 `DetailQuery.vue`:
|
||||||
|
- 基础字段宫格
|
||||||
|
- 原始文件信息
|
||||||
|
- 命中异常标签
|
||||||
|
- 详情数据继续复用 `getBankStatementDetail(bankStatementId)`,避免新增后端接口。
|
||||||
|
|
||||||
|
### 异常标签
|
||||||
|
|
||||||
|
- 结果总览涉疑交易列表接口当前不直接返回 `hitTags`。
|
||||||
|
- 前端在列表加载完成后,按当前页流水 `bankStatementId` 逐条调用详情接口补齐 `hitTags`,仅处理当前页 5 条数据,保证逻辑闭环且不扩大后端改造范围。
|
||||||
|
|
||||||
|
## 影响范围
|
||||||
|
|
||||||
|
- 前端:
|
||||||
|
- `ruoyi-ui/src/views/ccdiProject/components/detail/RiskDetailSection.vue`
|
||||||
|
- `ruoyi-ui/tests/unit/`
|
||||||
|
- 文档:
|
||||||
|
- 当前设计文档
|
||||||
|
- 本轮实施记录
|
||||||
|
|
||||||
|
## 验证
|
||||||
|
|
||||||
|
- 单测验证列表列名、分页配置、详情弹窗字段与异常标签区域。
|
||||||
|
- 浏览器联调验证:
|
||||||
|
- 初始加载为 5 条
|
||||||
|
- 筛选切换可翻页
|
||||||
|
- 详情弹窗样式与字段对齐
|
||||||
|
- 导出仍可用
|
||||||
@@ -6,6 +6,16 @@
|
|||||||
- `docs/plans/backend/2026-03-27-development-risk-suspicious-transaction-detail-backend-implementation.md`
|
- `docs/plans/backend/2026-03-27-development-risk-suspicious-transaction-detail-backend-implementation.md`
|
||||||
- 新增前端实施计划:
|
- 新增前端实施计划:
|
||||||
- `docs/plans/frontend/2026-03-27-development-risk-suspicious-transaction-detail-frontend-implementation.md`
|
- `docs/plans/frontend/2026-03-27-development-risk-suspicious-transaction-detail-frontend-implementation.md`
|
||||||
|
- 实际落地后端改动:
|
||||||
|
- 新增 `sql/migration/2026-03-27-ccdi-bank-statement-counterparty-identity-columns.sql`
|
||||||
|
- 补齐 `ccdi_bank_statement` 对手方证件号、统一社会信用代码入库映射
|
||||||
|
- 新增结果总览涉疑交易 DTO / VO / Excel / Controller / Service / Mapper 能力
|
||||||
|
- 新增“模型规则命中 + 名单库命中”聚合 SQL,并支持列表与导出
|
||||||
|
- 实际落地前端改动:
|
||||||
|
- `ruoyi-ui/src/api/ccdi/projectOverview.js` 新增涉疑交易列表接口
|
||||||
|
- `PreliminaryCheck.vue` 接入结果总览涉疑交易初始加载
|
||||||
|
- `preliminaryCheck.mock.js` 新增涉疑交易归一化与 `riskDetails` 数据结构
|
||||||
|
- `RiskDetailSection.vue` 改造成涉疑交易表格,接通筛选、导出、流水详情弹窗
|
||||||
|
|
||||||
## 计划拆分结果
|
## 计划拆分结果
|
||||||
|
|
||||||
@@ -28,4 +38,45 @@
|
|||||||
## 说明
|
## 说明
|
||||||
|
|
||||||
- 依据仓库 `AGENTS.md` 约束,本轮未启用 subagent 审核流程
|
- 依据仓库 `AGENTS.md` 约束,本轮未启用 subagent 审核流程
|
||||||
- 下一步可直接按计划在当前会话使用执行型流程落地
|
- 本轮直接在当前 `dev` 分支执行,未创建 git worktree
|
||||||
|
|
||||||
|
## 2026-03-27 二次调整记录
|
||||||
|
|
||||||
|
- 新增设计文档:
|
||||||
|
- `docs/design/2026-03-27-results-overview-suspicious-transaction-alignment-design.md`
|
||||||
|
- 调整目标:
|
||||||
|
- 将结果总览“涉疑交易明细”的列表样式、详情弹窗和分页交互对齐到“流水明细查询”页面
|
||||||
|
- 保留“关联员工”列,其余“可疑人员 / 关联人 / 关系”等涉疑交易专属列移除
|
||||||
|
- 分页固定每页 5 条
|
||||||
|
- 预计改动:
|
||||||
|
- 重写 `RiskDetailSection.vue` 的列表列结构、详情弹窗结构与分页状态
|
||||||
|
- 补充当前页异常标签加载逻辑
|
||||||
|
- 同步更新前端单测断言
|
||||||
|
|
||||||
|
## 实施结果
|
||||||
|
|
||||||
|
- 后端已完成:
|
||||||
|
- 交易对手方身份证、统一社会信用代码已沿 LSFX 响应、实体、MyBatis XML、Mock 服务全链路补齐
|
||||||
|
- 结果总览新增 `/ccdi/project/overview/suspicious-transactions` 与 `/ccdi/project/overview/suspicious-transactions/export`
|
||||||
|
- 涉疑交易明细按 `ALL / NAME_LIST / MODEL_RULE` 支持筛选
|
||||||
|
- SQL 以流水为粒度去重,同一流水同时命中两类来源时仅返回一条
|
||||||
|
- 前端已完成:
|
||||||
|
- 结果总览页默认加载涉疑交易明细
|
||||||
|
- 风险明细区块已从“涉险交易明细”切换为“涉疑交易明细”
|
||||||
|
- 表格列已对齐交易时间、可疑人员、关联人、关联员工、关系、摘要/交易类型、交易金额
|
||||||
|
- 详情按钮复用现有流水详情接口,导出按钮指向新的结果总览导出接口
|
||||||
|
|
||||||
|
## 验证记录
|
||||||
|
|
||||||
|
- 后端验证通过:
|
||||||
|
- `python3 -m pytest lsfx-mock-server/tests/test_statement_service.py -v`
|
||||||
|
- `mvn -pl ccdi-project,ccdi-lsfx -am -Dtest=CcdiBankStatementTest,CcdiBankStatementMapperXmlTest,CcdiProjectOverviewServiceStructureTest,CcdiProjectOverviewControllerContractTest,CcdiProjectOverviewControllerTest,CcdiProjectOverviewMapperSqlTest,CcdiProjectOverviewServiceImplTest,CcdiProjectOverviewServiceSuspiciousTransactionTest -Dsurefire.failIfNoSpecifiedTests=false test`
|
||||||
|
- 前端验证通过:
|
||||||
|
- `node ruoyi-ui/tests/unit/project-overview-api.test.js`
|
||||||
|
- `node ruoyi-ui/tests/unit/preliminary-check-model-and-detail.test.js`
|
||||||
|
- `node ruoyi-ui/tests/unit/preliminary-check-suspicious-transaction-load.test.js`
|
||||||
|
- `node ruoyi-ui/tests/unit/risk-detail-suspicious-transaction-layout.test.js`
|
||||||
|
- `node ruoyi-ui/tests/unit/risk-detail-suspicious-transaction-detail-dialog.test.js`
|
||||||
|
- `cd ruoyi-ui && npm run build:prod`
|
||||||
|
- 构建说明:
|
||||||
|
- 前端生产构建成功,但保留仓库原有 bundle 体积告警,不属于本轮新增问题
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ import {
|
|||||||
getOverviewDashboard,
|
getOverviewDashboard,
|
||||||
getOverviewRiskPeople,
|
getOverviewRiskPeople,
|
||||||
getOverviewRiskModelCards,
|
getOverviewRiskModelCards,
|
||||||
|
getOverviewSuspiciousTransactions,
|
||||||
} from "@/api/ccdi/projectOverview";
|
} from "@/api/ccdi/projectOverview";
|
||||||
import OverviewStats from "./OverviewStats";
|
import OverviewStats from "./OverviewStats";
|
||||||
import RiskPeopleSection from "./RiskPeopleSection";
|
import RiskPeopleSection from "./RiskPeopleSection";
|
||||||
@@ -197,20 +198,28 @@ export default {
|
|||||||
this.selectedModelCodes = [];
|
this.selectedModelCodes = [];
|
||||||
this.resetProjectAnalysisDialog();
|
this.resetProjectAnalysisDialog();
|
||||||
try {
|
try {
|
||||||
const [dashboardRes, riskPeopleRes, riskModelCardsRes] = await Promise.all([
|
const [dashboardRes, riskPeopleRes, riskModelCardsRes, suspiciousRes] = await Promise.all([
|
||||||
getOverviewDashboard(this.projectId),
|
getOverviewDashboard(this.projectId),
|
||||||
getOverviewRiskPeople(this.projectId),
|
getOverviewRiskPeople(this.projectId),
|
||||||
getOverviewRiskModelCards(this.projectId),
|
getOverviewRiskModelCards(this.projectId),
|
||||||
|
getOverviewSuspiciousTransactions({
|
||||||
|
projectId: this.projectId,
|
||||||
|
suspiciousType: "ALL",
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 5,
|
||||||
|
}),
|
||||||
]);
|
]);
|
||||||
const dashboardData = (dashboardRes && dashboardRes.data) || {};
|
const dashboardData = (dashboardRes && dashboardRes.data) || {};
|
||||||
const riskPeopleData = (riskPeopleRes && riskPeopleRes.data) || {};
|
const riskPeopleData = (riskPeopleRes && riskPeopleRes.data) || {};
|
||||||
const riskModelCardsData = (riskModelCardsRes && riskModelCardsRes.data) || {};
|
const riskModelCardsData = (riskModelCardsRes && riskModelCardsRes.data) || {};
|
||||||
|
const suspiciousData = (suspiciousRes && suspiciousRes.data) || {};
|
||||||
|
|
||||||
this.realData = createOverviewLoadedData({
|
this.realData = createOverviewLoadedData({
|
||||||
projectId: this.projectId,
|
projectId: this.projectId,
|
||||||
dashboardData,
|
dashboardData,
|
||||||
riskPeopleData,
|
riskPeopleData,
|
||||||
riskModelCardsData,
|
riskModelCardsData,
|
||||||
|
suspiciousData,
|
||||||
});
|
});
|
||||||
|
|
||||||
const hasOverviewData = Boolean(
|
const hasOverviewData = Boolean(
|
||||||
|
|||||||
@@ -4,39 +4,131 @@
|
|||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div>
|
<div>
|
||||||
<div class="section-title">风险明细</div>
|
<div class="section-title">风险明细</div>
|
||||||
<div class="section-subtitle">展示涉险交易与异常账户关联人员信息</div>
|
<div class="section-subtitle">展示涉疑交易与异常账户关联人员信息</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="block-header">
|
<div class="block-header">
|
||||||
<div>
|
<div>
|
||||||
<div class="block-title">涉险交易明细</div>
|
<div class="block-title">涉疑交易明细</div>
|
||||||
<div class="block-subtitle">展示涉险交易的关键字段与风险金额</div>
|
<div class="block-subtitle">展示涉疑交易的关键字段与风险金额</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-actions">
|
||||||
|
<el-dropdown size="mini" @command="handleSuspiciousTypeChange">
|
||||||
|
<span class="el-dropdown-link">
|
||||||
|
{{ currentSuspiciousTypeLabel }}
|
||||||
|
<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
|
</span>
|
||||||
|
<el-dropdown-menu slot="dropdown">
|
||||||
|
<el-dropdown-item
|
||||||
|
v-for="item in suspiciousTypeOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:command="item.value"
|
||||||
|
>
|
||||||
|
{{ item.label }}
|
||||||
|
</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
:disabled="!projectId || suspiciousTotal === 0"
|
||||||
|
@click="handleExport"
|
||||||
|
>
|
||||||
|
导出
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-button size="mini" type="text">导出</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table :data="sectionData.transactionList || []" class="detail-table">
|
<el-table
|
||||||
<el-table-column type="index" label="序号" width="60" />
|
v-loading="suspiciousLoading"
|
||||||
<el-table-column prop="tradeDate" label="交易日期" min-width="120" />
|
:data="suspiciousTransactionList"
|
||||||
<el-table-column prop="counterparty" label="对手方" min-width="120" />
|
class="result-table"
|
||||||
<el-table-column prop="direction" label="方向" min-width="100" />
|
>
|
||||||
<el-table-column prop="accountNo" label="账号" min-width="180" />
|
<template slot="empty">
|
||||||
<el-table-column prop="summary" label="摘要" min-width="180" />
|
<el-empty :image-size="96" description="当前筛选条件下暂无涉疑交易明细" />
|
||||||
<el-table-column prop="amount" label="金额" min-width="120" align="right">
|
</template>
|
||||||
|
<el-table-column prop="trxDate" label="交易时间" min-width="180" />
|
||||||
|
<el-table-column label="本方账户" min-width="220">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span :class="scope.row.amount >= 0 ? 'amount-in' : 'amount-out'">
|
<div class="multi-line-cell">
|
||||||
{{ formatAmount(scope.row.amount) }}
|
<div class="primary-text">{{ formatField(scope.row.leAccountNo) }}</div>
|
||||||
|
<div class="secondary-text">{{ formatField(scope.row.leAccountName) }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="对方账户" min-width="220">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div class="multi-line-cell">
|
||||||
|
<div class="primary-text">
|
||||||
|
{{ formatCounterpartyName(scope.row) }}
|
||||||
|
</div>
|
||||||
|
<div class="secondary-text">
|
||||||
|
{{ formatField(scope.row.customerAccountNo) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="关联员工" min-width="160">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div class="multi-line-cell">
|
||||||
|
<div class="primary-text">{{ formatRelatedStaff(scope.row) }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="摘要 / 交易类型" min-width="240">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div class="multi-line-cell">
|
||||||
|
<div class="primary-text">{{ formatField(scope.row.userMemo) }}</div>
|
||||||
|
<div class="secondary-text">{{ formatField(scope.row.cashType) }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="异常标签" min-width="220">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-if="scope.row.hitTags && scope.row.hitTags.length" class="hit-tag-list">
|
||||||
|
<el-tag
|
||||||
|
v-for="(tag, index) in scope.row.hitTags"
|
||||||
|
:key="`${scope.row.bankStatementId}-tag-${index}`"
|
||||||
|
size="mini"
|
||||||
|
:type="mapRiskLevelToTagType(tag.riskLevel)"
|
||||||
|
effect="plain"
|
||||||
|
>
|
||||||
|
{{ tag.ruleName }}
|
||||||
|
</el-tag>
|
||||||
|
</div>
|
||||||
|
<span v-else class="empty-text">-</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="displayAmount" label="交易金额" min-width="140" align="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span
|
||||||
|
class="amount-text"
|
||||||
|
:class="scope.row.displayAmount >= 0 ? 'amount-in' : 'amount-out'"
|
||||||
|
>
|
||||||
|
{{ formatAmount(scope.row.displayAmount) }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="100" align="right">
|
<el-table-column label="详情" width="100" fixed="right" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" size="mini">{{ scope.row.actionLabel || "查看详情" }}</el-button>
|
<el-button type="text" size="mini" @click="handleViewDetail(scope.row)">
|
||||||
|
详情
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="suspiciousTotal > 0"
|
||||||
|
:total="suspiciousTotal"
|
||||||
|
:page.sync="suspiciousPageNum"
|
||||||
|
:limit.sync="suspiciousPageSize"
|
||||||
|
:page-sizes="[5]"
|
||||||
|
layout="total, prev, pager, next, jumper"
|
||||||
|
@pagination="handlePageChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
@@ -62,10 +154,168 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
:visible.sync="detailVisible"
|
||||||
|
append-to-body
|
||||||
|
custom-class="detail-dialog"
|
||||||
|
title="流水详情"
|
||||||
|
width="980px"
|
||||||
|
@close="closeDetailDialog"
|
||||||
|
>
|
||||||
|
<div v-loading="detailLoading" class="detail-dialog-body">
|
||||||
|
<div class="detail-overview-grid">
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">交易时间</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.trxDate) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">交易金额</div>
|
||||||
|
<div class="detail-value amount-text" :class="getAmountClass(detailData.displayAmount)">
|
||||||
|
{{ formatSignedAmount(detailData.displayAmount) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">交易后余额</div>
|
||||||
|
<div class="detail-value">{{ formatAmount(detailData.amountBalance) }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">本方主体</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.leAccountName) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">本方账号</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.leAccountNo) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">本方银行</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.bank) }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">对方名称</div>
|
||||||
|
<div class="detail-value">{{ formatCounterpartyName(detailData) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">对方账户</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.customerAccountNo) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">对方银行</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.customerBank) }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">摘要</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.userMemo) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">交易类型</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.cashType) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-field">
|
||||||
|
<div class="detail-label">银行摘要</div>
|
||||||
|
<div class="detail-value">{{ formatField(detailData.bankComments) }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="detail-field detail-field--full">
|
||||||
|
<div class="detail-label">原始文件</div>
|
||||||
|
<div class="detail-file-block">
|
||||||
|
<i class="el-icon-document detail-file-icon"></i>
|
||||||
|
<div class="detail-file-meta">
|
||||||
|
<div class="detail-file-name">{{ formatOriginalFileName(detailData) }}</div>
|
||||||
|
<div class="detail-file-time">
|
||||||
|
上传时间:{{ formatOriginalFileUploadTime(detailData) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="detail-hit-tag-section">
|
||||||
|
<div class="detail-section-title">命中异常标签</div>
|
||||||
|
<div
|
||||||
|
v-if="detailData.hitTags && detailData.hitTags.length"
|
||||||
|
class="detail-hit-tag-items"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
v-for="(tag, index) in detailData.hitTags"
|
||||||
|
:key="`detail-tag-${index}`"
|
||||||
|
class="detail-hit-tag-item"
|
||||||
|
>
|
||||||
|
<div class="detail-hit-tag-header">
|
||||||
|
<span class="detail-hit-tag-name">{{ formatField(tag.ruleName) }}</span>
|
||||||
|
<el-tag size="mini" :type="mapRiskLevelToTagType(tag.riskLevel)" effect="plain">
|
||||||
|
{{ formatRiskLevel(tag.riskLevel) }}
|
||||||
|
</el-tag>
|
||||||
|
</div>
|
||||||
|
<div class="detail-hit-tag-reason">{{ formatField(tag.reasonDetail) }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else class="detail-hit-tag-empty">当前流水未命中异常标签</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="detail-dialog-footer">
|
||||||
|
<el-button @click="closeDetailDialog">取消</el-button>
|
||||||
|
<el-button type="primary" @click="closeDetailDialog">确定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { getOverviewSuspiciousTransactions } from "@/api/ccdi/projectOverview";
|
||||||
|
import { getBankStatementDetail } from "@/api/ccdiProjectBankStatement";
|
||||||
|
|
||||||
|
const SUSPICIOUS_TYPE_OPTIONS = [
|
||||||
|
{ value: "ALL", label: "全部可疑人员类型" },
|
||||||
|
{ value: "NAME_LIST", label: "名单库命中" },
|
||||||
|
{ value: "MODEL_RULE", label: "模型规则命中" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const normalizeHitTags = (hitTags) => (Array.isArray(hitTags) ? hitTags : []);
|
||||||
|
|
||||||
|
const createEmptyDetailData = () => ({
|
||||||
|
bankStatementId: "",
|
||||||
|
projectId: "",
|
||||||
|
currency: "",
|
||||||
|
trxDate: "",
|
||||||
|
leAccountNo: "",
|
||||||
|
leAccountName: "",
|
||||||
|
customerAccountName: "",
|
||||||
|
customerAccountNo: "",
|
||||||
|
customerBank: "",
|
||||||
|
customerReference: "",
|
||||||
|
userMemo: "",
|
||||||
|
bankComments: "",
|
||||||
|
bankTrxNumber: "",
|
||||||
|
bank: "",
|
||||||
|
cashType: "",
|
||||||
|
amountDr: "",
|
||||||
|
amountCr: "",
|
||||||
|
amountBalance: "",
|
||||||
|
displayAmount: "",
|
||||||
|
trxFlag: "",
|
||||||
|
trxType: "",
|
||||||
|
exceptionType: "",
|
||||||
|
internalFlag: "",
|
||||||
|
paymentMethod: "",
|
||||||
|
cretNo: "",
|
||||||
|
createDate: "",
|
||||||
|
originalFileName: "",
|
||||||
|
uploadTime: "",
|
||||||
|
sourceFileName: "",
|
||||||
|
fileName: "",
|
||||||
|
hitTags: [],
|
||||||
|
});
|
||||||
|
|
||||||
|
const normalizeDetailData = (detail) => ({
|
||||||
|
...createEmptyDetailData(),
|
||||||
|
...(detail || {}),
|
||||||
|
hitTags: normalizeHitTags(detail && detail.hitTags),
|
||||||
|
});
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "RiskDetailSection",
|
name: "RiskDetailSection",
|
||||||
props: {
|
props: {
|
||||||
@@ -74,14 +324,277 @@ export default {
|
|||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
suspiciousLoading: false,
|
||||||
|
detailLoading: false,
|
||||||
|
detailVisible: false,
|
||||||
|
detailData: createEmptyDetailData(),
|
||||||
|
currentSuspiciousType: "ALL",
|
||||||
|
suspiciousPageNum: 1,
|
||||||
|
suspiciousPageSize: 5,
|
||||||
|
suspiciousTotal: 0,
|
||||||
|
suspiciousTransactionList: [],
|
||||||
|
projectId: null,
|
||||||
|
statementDetailCache: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
suspiciousTypeOptions() {
|
||||||
|
return SUSPICIOUS_TYPE_OPTIONS;
|
||||||
|
},
|
||||||
|
currentSuspiciousTypeLabel() {
|
||||||
|
const matched = this.suspiciousTypeOptions.find((item) => item.value === this.currentSuspiciousType);
|
||||||
|
return matched ? matched.label : "全部可疑人员类型";
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
sectionData: {
|
||||||
|
immediate: true,
|
||||||
|
deep: true,
|
||||||
|
handler(value) {
|
||||||
|
this.projectId = value && value.projectId ? value.projectId : null;
|
||||||
|
this.currentSuspiciousType = value && value.suspiciousType ? value.suspiciousType : "ALL";
|
||||||
|
this.suspiciousPageNum = 1;
|
||||||
|
this.suspiciousPageSize = 5;
|
||||||
|
this.suspiciousTotal = Number(value && value.total) || 0;
|
||||||
|
const rows = Array.isArray(value && value.suspiciousTransactionList)
|
||||||
|
? value.suspiciousTransactionList
|
||||||
|
: [];
|
||||||
|
this.hydrateSuspiciousRows(rows);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async handleSuspiciousTypeChange(command) {
|
||||||
|
this.currentSuspiciousType = command;
|
||||||
|
this.suspiciousPageNum = 1;
|
||||||
|
await this.loadSuspiciousTransactions();
|
||||||
|
},
|
||||||
|
async handlePageChange(pageInfo) {
|
||||||
|
if (typeof pageInfo === "number") {
|
||||||
|
this.suspiciousPageNum = pageInfo;
|
||||||
|
} else {
|
||||||
|
this.suspiciousPageNum = pageInfo.page;
|
||||||
|
this.suspiciousPageSize = 5;
|
||||||
|
}
|
||||||
|
await this.loadSuspiciousTransactions();
|
||||||
|
},
|
||||||
|
async loadSuspiciousTransactions() {
|
||||||
|
if (!this.projectId) {
|
||||||
|
this.suspiciousTransactionList = [];
|
||||||
|
this.suspiciousTotal = 0;
|
||||||
|
this.suspiciousLoading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.suspiciousLoading = true;
|
||||||
|
try {
|
||||||
|
const response = await getOverviewSuspiciousTransactions({
|
||||||
|
projectId: this.projectId,
|
||||||
|
suspiciousType: this.currentSuspiciousType,
|
||||||
|
pageNum: this.suspiciousPageNum,
|
||||||
|
pageSize: 5,
|
||||||
|
});
|
||||||
|
const data = (response && response.data) || {};
|
||||||
|
this.suspiciousTotal = Number(data.total) || 0;
|
||||||
|
await this.hydrateSuspiciousRows(Array.isArray(data.rows) ? data.rows : []);
|
||||||
|
} catch (error) {
|
||||||
|
this.suspiciousTransactionList = [];
|
||||||
|
this.suspiciousTotal = 0;
|
||||||
|
this.$message.error("加载涉疑交易明细失败");
|
||||||
|
console.error("加载涉疑交易明细失败", error);
|
||||||
|
this.suspiciousLoading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async hydrateSuspiciousRows(rows) {
|
||||||
|
const safeRows = Array.isArray(rows) ? rows : [];
|
||||||
|
if (!safeRows.length) {
|
||||||
|
this.suspiciousTransactionList = [];
|
||||||
|
this.suspiciousLoading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.suspiciousLoading = true;
|
||||||
|
try {
|
||||||
|
const enrichedRows = await Promise.all(
|
||||||
|
safeRows.map(async (row) => {
|
||||||
|
if (!row || !row.bankStatementId) {
|
||||||
|
return {
|
||||||
|
...row,
|
||||||
|
hitTags: [],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const detail = await this.fetchStatementDetail(row.bankStatementId, true);
|
||||||
|
return {
|
||||||
|
...detail,
|
||||||
|
...row,
|
||||||
|
hitTags: normalizeHitTags(detail.hitTags),
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
return {
|
||||||
|
...row,
|
||||||
|
hitTags: [],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
|
this.suspiciousTransactionList = enrichedRows;
|
||||||
|
} finally {
|
||||||
|
this.suspiciousLoading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async fetchStatementDetail(bankStatementId, silent) {
|
||||||
|
if (!bankStatementId) {
|
||||||
|
return createEmptyDetailData();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.statementDetailCache[bankStatementId]) {
|
||||||
|
return this.statementDetailCache[bankStatementId];
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const response = await getBankStatementDetail(bankStatementId);
|
||||||
|
const detail = normalizeDetailData(response && response.data);
|
||||||
|
this.$set(this.statementDetailCache, bankStatementId, detail);
|
||||||
|
return detail;
|
||||||
|
} catch (error) {
|
||||||
|
if (!silent) {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
return createEmptyDetailData();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async handleViewDetail(row) {
|
||||||
|
if (!row || !row.bankStatementId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.detailVisible = true;
|
||||||
|
this.detailLoading = true;
|
||||||
|
try {
|
||||||
|
this.detailData = await this.fetchStatementDetail(row.bankStatementId, false);
|
||||||
|
} catch (error) {
|
||||||
|
this.detailData = createEmptyDetailData();
|
||||||
|
this.$message.error("加载流水详情失败");
|
||||||
|
console.error("加载流水详情失败", error);
|
||||||
|
} finally {
|
||||||
|
this.detailLoading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
closeDetailDialog() {
|
||||||
|
this.detailVisible = false;
|
||||||
|
this.detailLoading = false;
|
||||||
|
this.detailData = createEmptyDetailData();
|
||||||
|
},
|
||||||
|
handleExport() {
|
||||||
|
if (!this.projectId || this.suspiciousTotal === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.download(
|
||||||
|
"ccdi/project/overview/suspicious-transactions/export",
|
||||||
|
{
|
||||||
|
projectId: this.projectId,
|
||||||
|
suspiciousType: this.currentSuspiciousType,
|
||||||
|
},
|
||||||
|
`涉疑交易明细_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
formatRelatedStaff(row) {
|
||||||
|
if (!row || !row.relatedStaffName) {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
return row.relatedStaffCode
|
||||||
|
? `${row.relatedStaffName}(${row.relatedStaffCode})`
|
||||||
|
: row.relatedStaffName;
|
||||||
|
},
|
||||||
|
formatSummaryAndCashType(row) {
|
||||||
|
const summary = row && row.userMemo ? row.userMemo : "";
|
||||||
|
const cashType = row && row.cashType ? row.cashType : "";
|
||||||
|
return `${summary}/${cashType}`;
|
||||||
|
},
|
||||||
|
formatCounterpartyName(detail) {
|
||||||
|
if (!detail) {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
return this.formatField(detail.customerAccountName);
|
||||||
|
},
|
||||||
|
formatField(value) {
|
||||||
|
if (value === null || value === undefined || value === "") {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
return String(value);
|
||||||
|
},
|
||||||
formatAmount(value) {
|
formatAmount(value) {
|
||||||
const amount = Number(value || 0);
|
if (value === null || value === undefined || value === "") {
|
||||||
const absValue = Math.abs(amount).toLocaleString("zh-CN", {
|
return "-";
|
||||||
|
}
|
||||||
|
const amount = Number(value);
|
||||||
|
if (Number.isNaN(amount)) {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
return amount.toLocaleString("zh-CN", {
|
||||||
minimumFractionDigits: 2,
|
minimumFractionDigits: 2,
|
||||||
maximumFractionDigits: 2,
|
maximumFractionDigits: 2,
|
||||||
});
|
});
|
||||||
return `${amount >= 0 ? "+" : "-"}${absValue}`;
|
},
|
||||||
|
formatSignedAmount(value) {
|
||||||
|
if (value === null || value === undefined || value === "") {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
const amount = Number(value);
|
||||||
|
if (Number.isNaN(amount)) {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
const text = this.formatAmount(amount);
|
||||||
|
return amount >= 0 ? `+${text}` : `-${this.formatAmount(Math.abs(amount))}`;
|
||||||
|
},
|
||||||
|
getAmountClass(value) {
|
||||||
|
if (value === null || value === undefined || value === "") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
return Number(value) >= 0 ? "amount-in" : "amount-out";
|
||||||
|
},
|
||||||
|
formatOriginalFileName(detail) {
|
||||||
|
if (!detail) {
|
||||||
|
return "暂无原始文件";
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
detail.originalFileName ||
|
||||||
|
detail.sourceFileName ||
|
||||||
|
detail.fileName ||
|
||||||
|
"暂无原始文件"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
formatOriginalFileUploadTime(detail) {
|
||||||
|
if (!detail || !detail.uploadTime) {
|
||||||
|
return "-";
|
||||||
|
}
|
||||||
|
return String(detail.uploadTime);
|
||||||
|
},
|
||||||
|
formatRiskLevel(value) {
|
||||||
|
const level = String(value || "").toUpperCase();
|
||||||
|
if (level === "HIGH") {
|
||||||
|
return "高风险";
|
||||||
|
}
|
||||||
|
if (level === "MEDIUM") {
|
||||||
|
return "中风险";
|
||||||
|
}
|
||||||
|
if (level === "LOW") {
|
||||||
|
return "低风险";
|
||||||
|
}
|
||||||
|
return "未标注";
|
||||||
|
},
|
||||||
|
mapRiskLevelToTagType(riskLevel) {
|
||||||
|
const level = String(riskLevel || "").toUpperCase();
|
||||||
|
if (level === "HIGH") {
|
||||||
|
return "danger";
|
||||||
|
}
|
||||||
|
if (level === "MEDIUM") {
|
||||||
|
return "warning";
|
||||||
|
}
|
||||||
|
return "info";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -129,6 +642,18 @@ export default {
|
|||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dropdown-link {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #2563eb;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.block-title {
|
.block-title {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
@@ -156,23 +681,243 @@ export default {
|
|||||||
color: #94a3b8;
|
color: #94a3b8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-table {
|
.result-table {
|
||||||
border-radius: 12px;
|
width: 100%;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.detail-table th) {
|
.multi-line-cell {
|
||||||
background: #f8fafc;
|
display: flex;
|
||||||
color: #64748b;
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-text {
|
||||||
|
color: #303133;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.secondary-text {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hit-tag-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-text {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount-text {
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.amount-in {
|
.amount-in {
|
||||||
color: #16a34a;
|
color: #67c23a;
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.amount-out {
|
.amount-out {
|
||||||
color: #ef4444;
|
color: #f56c6c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-dialog-body {
|
||||||
|
min-height: 280px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-overview-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
gap: 24px 32px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-field {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-field--full {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-label {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-value {
|
||||||
|
color: #303133;
|
||||||
|
line-height: 22px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-file-block {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-file-icon {
|
||||||
|
margin-top: 2px;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #f59a23;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-file-meta {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-file-name {
|
||||||
|
color: #303133;
|
||||||
|
line-height: 22px;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-file-time {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-section {
|
||||||
|
border-top: 1px solid #ebeef5;
|
||||||
|
padding-top: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-section-title {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-items {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-item {
|
||||||
|
padding: 12px 16px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: #fafafa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-name {
|
||||||
|
color: #303133;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 22px;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-reason {
|
||||||
|
margin-top: 8px;
|
||||||
|
color: #606266;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-empty {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-dialog-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.detail-dialog) {
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
.el-dialog__header {
|
||||||
|
padding: 20px 24px;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__body {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__footer {
|
||||||
|
padding: 8px 24px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
min-width: 180px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 992px) {
|
||||||
|
.detail-overview-grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
gap: 20px 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.detail-overview-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-dialog-footer {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-hit-tag-header {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.detail-dialog) {
|
||||||
|
width: calc(100vw - 24px) !important;
|
||||||
|
margin-top: 8vh !important;
|
||||||
|
|
||||||
|
.el-dialog__header,
|
||||||
|
.el-dialog__body,
|
||||||
|
.el-dialog__footer {
|
||||||
|
padding-left: 16px;
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
const assert = require("assert");
|
||||||
|
const fs = require("fs");
|
||||||
|
const path = require("path");
|
||||||
|
|
||||||
|
const preliminaryCheckSource = fs.readFileSync(
|
||||||
|
path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../../src/views/ccdiProject/components/detail/PreliminaryCheck.vue"
|
||||||
|
),
|
||||||
|
"utf8"
|
||||||
|
);
|
||||||
|
|
||||||
|
const mockSource = fs.readFileSync(
|
||||||
|
path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../../src/views/ccdiProject/components/detail/preliminaryCheck.mock.js"
|
||||||
|
),
|
||||||
|
"utf8"
|
||||||
|
);
|
||||||
|
|
||||||
|
assert(
|
||||||
|
preliminaryCheckSource.includes("getOverviewSuspiciousTransactions"),
|
||||||
|
"结果总览应加载涉疑交易接口"
|
||||||
|
);
|
||||||
|
assert(
|
||||||
|
preliminaryCheckSource.includes("riskDetails"),
|
||||||
|
"结果总览应继续向 RiskDetailSection 注入 riskDetails"
|
||||||
|
);
|
||||||
|
assert(
|
||||||
|
preliminaryCheckSource.includes("pageSize: 5"),
|
||||||
|
"结果总览首屏涉疑交易应按5条加载"
|
||||||
|
);
|
||||||
|
assert(
|
||||||
|
mockSource.includes("suspiciousTransactionList"),
|
||||||
|
"mock 归一化应保留涉疑交易列表"
|
||||||
|
);
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
const assert = require("assert");
|
||||||
|
const fs = require("fs");
|
||||||
|
const path = require("path");
|
||||||
|
|
||||||
|
const source = fs.readFileSync(
|
||||||
|
path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../../src/views/ccdiProject/components/detail/RiskDetailSection.vue"
|
||||||
|
),
|
||||||
|
"utf8"
|
||||||
|
);
|
||||||
|
|
||||||
|
[
|
||||||
|
"getBankStatementDetail",
|
||||||
|
"detailVisible",
|
||||||
|
"handleViewDetail",
|
||||||
|
"this.download(",
|
||||||
|
"ccdi/project/overview/suspicious-transactions/export",
|
||||||
|
"原始文件",
|
||||||
|
"命中异常标签",
|
||||||
|
"formatOriginalFileName",
|
||||||
|
"formatOriginalFileUploadTime",
|
||||||
|
"mapRiskLevelToTagType",
|
||||||
|
"hitTags",
|
||||||
|
].forEach((token) => assert(source.includes(token), token));
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
const assert = require("assert");
|
||||||
|
const fs = require("fs");
|
||||||
|
const path = require("path");
|
||||||
|
|
||||||
|
const source = fs.readFileSync(
|
||||||
|
path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../../src/views/ccdiProject/components/detail/RiskDetailSection.vue"
|
||||||
|
),
|
||||||
|
"utf8"
|
||||||
|
);
|
||||||
|
|
||||||
|
[
|
||||||
|
"涉疑交易明细",
|
||||||
|
"全部可疑人员类型",
|
||||||
|
"名单库命中",
|
||||||
|
"模型规则命中",
|
||||||
|
"本方账户",
|
||||||
|
"对方账户",
|
||||||
|
"关联员工",
|
||||||
|
"摘要 / 交易类型",
|
||||||
|
"异常标签",
|
||||||
|
"<pagination",
|
||||||
|
"pageSize: 5",
|
||||||
|
":page-sizes=\"[5]\"",
|
||||||
|
"layout=\"total, prev, pager, next, jumper\"",
|
||||||
|
].forEach((token) => assert(source.includes(token), token));
|
||||||
|
|
||||||
|
[
|
||||||
|
"label=\"可疑人员\"",
|
||||||
|
"prop=\"suspiciousPersonName\"",
|
||||||
|
"label=\"关联人\"",
|
||||||
|
"prop=\"relatedPersonName\"",
|
||||||
|
"label=\"关系\"",
|
||||||
|
"prop=\"relationType\"",
|
||||||
|
].forEach((token) => assert(!source.includes(token), token));
|
||||||
Reference in New Issue
Block a user