feat(credit): 新增客户导入与数据导出功能
- 在信用客户模块中添加了导入客户的功能,支持通过文件上传方式导入客户数据 - 实现了多个信用相关模块的数据导出功能,包括企业、司法案件、风险关系、供应商及用户模块 - 更新了搜索组件以支持导出事件,并在各模块中实现了具体的导出逻辑 - 简化了部分表单项的标签显示并移除了冗余字段,优化了用户体验 - 修复了一些潜在的代码格式问题和不必要的注释块
This commit is contained in:
@@ -8,7 +8,20 @@ export async function stopReplace(data: any) {
|
|||||||
data
|
data
|
||||||
);
|
);
|
||||||
if (res.data.code === 0) {
|
if (res.data.code === 0) {
|
||||||
return res.data.message;
|
const data = res.data.data;
|
||||||
|
return data || [];
|
||||||
|
}
|
||||||
|
return Promise.reject(new Error(res.data.message));
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function numberReplace(data: any) {
|
||||||
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
|
MODULES_API_URL + '/led/bme/number-sources',
|
||||||
|
data
|
||||||
|
);
|
||||||
|
if (res.data.code === 0) {
|
||||||
|
const data = res.data.data;
|
||||||
|
return data || [];
|
||||||
}
|
}
|
||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ele-body">
|
<div class="ele-body">
|
||||||
<div class="flex flex-col justify-center items-center mt-10">
|
<div class="flex flex-col justify-center items-center mt-10">
|
||||||
<div class="text-4xl">广西医科大学第一附属医院</div>
|
<div class="text-4xl font-bold">广西医科大学第一附属医院</div>
|
||||||
<div class="text-2xl my-5">门诊医生一周内停替诊公布</div>
|
<div class="text-2xl my-5">门诊医生一周内停替诊公布</div>
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns2"
|
||||||
:datasource="datasource"
|
:datasource="datasource2"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
import type { CmsAd, CmsAdParam } from '@/api/cms/cmsAd/model';
|
import type { CmsAd, CmsAdParam } from '@/api/cms/cmsAd/model';
|
||||||
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
|
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
|
||||||
import { listCmsNavigation } from '@/api/cms/cmsNavigation';
|
import { listCmsNavigation } from '@/api/cms/cmsNavigation';
|
||||||
import { stopReplace } from '@/api/led';
|
import { numberReplace, stopReplace } from '@/api/led';
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
@@ -61,14 +61,9 @@
|
|||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
|
|
||||||
// 表格数据源
|
// 表格数据源
|
||||||
const datasource: DatasourceFunction = ({
|
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
|
||||||
page,
|
where.startDate = '2025-12-23';
|
||||||
limit,
|
where.endDate = '2025-12-23';
|
||||||
where,
|
|
||||||
orders
|
|
||||||
}) => {
|
|
||||||
where.startDate = '2025-01-01';
|
|
||||||
where.endDate = '2025-06-30';
|
|
||||||
return stopReplace({
|
return stopReplace({
|
||||||
...where,
|
...where,
|
||||||
...orders,
|
...orders,
|
||||||
@@ -79,6 +74,60 @@
|
|||||||
|
|
||||||
// 表格列配置
|
// 表格列配置
|
||||||
const columns = ref<ColumnItem[]>([
|
const columns = ref<ColumnItem[]>([
|
||||||
|
{
|
||||||
|
title: '出诊时间',
|
||||||
|
width: 180,
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'aSDate',
|
||||||
|
key: 'aSDate'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '科室',
|
||||||
|
dataIndex: 'aSLOCDesc',
|
||||||
|
key: 'aSLOCDesc',
|
||||||
|
align: 'center',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '时段',
|
||||||
|
dataIndex: 'aSTimeRange',
|
||||||
|
key: 'aSTimeRange',
|
||||||
|
align: 'center',
|
||||||
|
width: 120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '医生',
|
||||||
|
dataIndex: 'aSDoctor',
|
||||||
|
key: 'aSDoctor',
|
||||||
|
width: 120,
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '职称',
|
||||||
|
dataIndex: 'aSmedicalTitle',
|
||||||
|
key: 'aSmedicalTitle',
|
||||||
|
align: 'center',
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '替诊医生',
|
||||||
|
dataIndex: 'aSsubDoctor',
|
||||||
|
key: 'aSsubDoctor',
|
||||||
|
align: 'center',
|
||||||
|
width: 120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '替诊职称',
|
||||||
|
key: 'aSDoctorTitle',
|
||||||
|
dataIndex: 'aSDoctorTitle',
|
||||||
|
width: 120,
|
||||||
|
align: 'center'
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 表格列配置
|
||||||
|
const columns2 = ref<ColumnItem[]>([
|
||||||
{
|
{
|
||||||
title: '出诊时间',
|
title: '出诊时间',
|
||||||
width: 180,
|
width: 180,
|
||||||
@@ -128,6 +177,17 @@
|
|||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const datasource2: DatasourceFunction = ({ page, limit, where, orders }) => {
|
||||||
|
where.startDate = '2025-12-23';
|
||||||
|
where.endDate = '2025-12-23';
|
||||||
|
return numberReplace({
|
||||||
|
...where,
|
||||||
|
...orders,
|
||||||
|
page,
|
||||||
|
limit
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/* 搜索 */
|
/* 搜索 */
|
||||||
const reload = (where?: CmsAdParam) => {
|
const reload = (where?: CmsAdParam) => {
|
||||||
selection.value = [];
|
selection.value = [];
|
||||||
@@ -218,7 +278,7 @@
|
|||||||
},
|
},
|
||||||
// 行双击事件
|
// 行双击事件
|
||||||
onDblclick: () => {
|
onDblclick: () => {
|
||||||
openEdit(record);
|
// openEdit(record);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user