feat(credit): 添加历史被执行人功能模块

- 创建被执行人历史记录的数据模型和接口定义
- 实现被执行人历史记录的CRUD操作API方法
- 在被执行人页面添加导入历史被执行人的功能按钮
- 开发被执行人历史记录的管理页面和编辑弹窗组件
- 集成被执行人历史记录的搜索、分页、新增、修改、删除功能
- 添加导入历史被执行人数据的功能入口
This commit is contained in:
2026-01-12 09:14:44 +08:00
parent 4d9809197e
commit 7aa74c59a7
6 changed files with 209 additions and 146 deletions

View File

@@ -33,6 +33,14 @@
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
<template v-if="column.key === 'caseNumber'">
<template v-if="record.historyId">
<span class="text-red-500 font-bold">{{ record.caseNumber }}</span>
</template>
<template v-else>
{{ record.caseNumber }}
</template>
</template>
<template v-if="column.key === 'name'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a>
@@ -41,6 +49,9 @@
{{ record.name }}
</template>
</template>
<template v-if="column.key === 'dataStatus'">
<div v-if="record.historyId" class="text-red-500 font-bold">有效</div>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
@@ -69,6 +80,17 @@
/>
<!-- 导入弹窗 -->
<CreditJudgmentDebtorImport v-model:visible="showImport" @done="reload" />
<!-- 历史被执行人导入弹窗 -->
<CreditJudgmentDebtorHistoryImport
v-model:visible="showImport2"
@done="reload"
/>
<!-- 编辑弹窗 -->
<CreditJudgmentDebtorHistoryEdit
v-model:visible="showEdit2"
:data="current"
@done="reload"
/>
</a-page-header>
</template>
@@ -87,7 +109,9 @@
import { exportCreditData } from '../utils/export';
import { getPageTitle } from '@/utils/common';
import CreditJudgmentDebtorEdit from './components/creditJudgmentDebtorEdit.vue';
import CreditJudgmentDebtorHistoryEdit from '@/views/credit/creditJudgmentDebtorHistory/components/creditJudgmentDebtorHistoryEdit.vue';
import CreditJudgmentDebtorImport from './components/credit-judgment-debtor-import.vue';
import CreditJudgmentDebtorHistoryImport from './components/credit-judgment-debtor-history-import.vue';
import {
pageCreditJudgmentDebtor,
listCreditJudgmentDebtor,
@@ -108,8 +132,12 @@
const current = ref<CreditJudgmentDebtor | null>(null);
// 是否显示编辑弹窗
const showEdit = ref(false);
// 是否显示编辑弹窗2
const showEdit2 = ref(false);
// 是否显示导入弹窗
const showImport = ref(false);
// 是否显示历史被执行人导入弹窗
const showImport2 = ref(false);
// 是否显示批量移动弹窗
const showMove = ref(false);
// 加载状态
@@ -184,12 +212,14 @@
key: 'courtName',
ellipsis: true
},
// {
// title: '数据状态',
// dataIndex: 'dataStatus',
// key: 'dataStatus',
// ellipsis: true
// },
{
title: '状态',
dataIndex: 'dataStatus',
key: 'dataStatus',
ellipsis: true,
align: 'center',
width: 90
},
{
title: '创建时间',
dataIndex: 'createTime',
@@ -235,6 +265,17 @@
showImport.value = true;
};
/* 打开历史被执行人导入弹窗 */
const openImport2 = () => {
showImport2.value = true;
};
/* 打开编辑弹窗 */
const openEdit2 = (row?: CreditJudgmentDebtor) => {
current.value = row ?? null;
showEdit2.value = true;
};
/* 导出 */
const exportData = () => {
exportCreditData<CreditJudgmentDebtor>({
@@ -320,7 +361,12 @@
},
// 行双击事件
onDblclick: () => {
openEdit(record);
if(!record.historyId){
openEdit(record);
}else {
openEdit2(record);
}
}
};
};