feat(energy): 前端优化完成

- 简化导入交互(3步→1步)
- 批量审核功能
- 快速生成账单(本月/上月)
- 批量价格配置(前端界面)

用户体验优化:
- 一键导入,自动匹配
- 批量审核,提高效率
- 快捷时间选择
- 清晰的操作反馈
This commit is contained in:
kkfluous
2026-03-16 13:22:46 +08:00
parent f62ff30c64
commit 17b6c99b4f
16 changed files with 841 additions and 409 deletions

View File

@@ -51,10 +51,22 @@ export function auditHydrogenDetail(id: number, approved: boolean, remark?: stri
});
}
export function batchAuditHydrogenDetail(ids: number[], approved: boolean, remark?: string) {
return requestClient.post('/energy/hydrogen-detail/batch-audit', null, {
params: { ids: ids.join(','), approved, remark },
});
export interface BatchAuditReqVO {
ids: number[];
passed: boolean;
remark?: string;
}
export interface BatchAuditResultDTO {
total: number;
successCount: number;
failCount: number;
successIds: number[];
failIds: number[];
}
export function batchAuditHydrogenDetail(data: BatchAuditReqVO) {
return requestClient.post<BatchAuditResultDTO>('/energy/hydrogen-detail/batch-audit', data);
}
export function exportHydrogenDetail(params: any) {