feat(对账): 新增批量对账功能并优化对账流程

- 添加批量对账模式,支持按金额批量选择账单
- 优化rowKey处理逻辑
- 调整对账表单验证规则,增加金额校验
- 修改时间单位从月到天,提高精确度
- 优化选中账单展示,增加标记和计数功能
- 修复SelectDropdownRender组件选项更新问题
This commit is contained in:
2026-01-16 14:21:14 +08:00
parent 32afef3e4e
commit 8971243f23
17 changed files with 219 additions and 79 deletions

View File

@@ -15,6 +15,7 @@ interface RecommendedUser {
const props = withDefaults(
defineProps<{
errorItem: CreateOrderType[];
isBatchMode: boolean;
}>(),
{},
);
@@ -73,7 +74,7 @@ const gridOptions = computed(() => ({
paymentId: row.paymentId,
come: row.come,
orderType: row.orderType,
courseId: row.courseId,
courseId: row.courseId ?? '',
vipType: row.vipType ?? '',
})
.then(
@@ -88,6 +89,7 @@ const gridOptions = computed(() => ({
field: 'tel',
title: '用户手机号',
colSpan: 2,
show: () => !props.isBatchMode,
},
{ editRender: { name: 'Input' }, field: 'orderMoney', title: '订单金额' },
{ editRender: { name: 'Input' }, field: 'realMoney', title: '实际金额' },
@@ -99,7 +101,8 @@ const gridOptions = computed(() => ({
},
},
// 仅VIP 和课程订单 显示
show: (row: CreateOrderType) => row.orderType === '1' || row.orderType === '2',
show: (row: CreateOrderType) =>
!props.isBatchMode && (row.orderType === '1' || row.orderType === '2'),
field: 'startTime',
title: '开始时间',
},
@@ -108,13 +111,13 @@ const gridOptions = computed(() => ({
name: 'Select',
props: {
options: [
{ label: '1个月', value: '1' },
{ label: '3个月', value: '3' },
{ label: '半年', value: '6' },
{ label: '一年', value: '12' },
{ label: '两年', value: '24' },
{ label: '三年', value: '36' },
{ label: '四年', value: '48' },
{ label: '1个月', value: '30' },
{ label: '3个月', value: '90' },
{ label: '半年', value: '180' },
{ label: '一年', value: '365' },
{ label: '两年', value: '730' },
{ label: '三年', value: '1095' },
{ label: '四年', value: '1460' },
],
},
},
@@ -124,6 +127,9 @@ const gridOptions = computed(() => ({
title: '到期时间',
},
],
cardConfig: {
keyField: 'id',
},
showTitle: true,
titleField: 'productName',
gridColumns: 3,