refactor(aireport): 重构报告任务模块数据结构和界面组件
- 扩展 ReportTaskGenerateState 类型定义,增加状态值 3 和 4 - 移除 ReportTaskRecord 中的 clientUnitId、clientUnitName、createUnit、contractNumber、standard、phonenumber 字段 - 新增 multiId、templateDirName、templateDirPath、sortNo 等字段到 ReportTaskRecord - 更新 ReportTaskAddParam 接口,移除 clientUnitId、createUnit、contractNumber、standard、phonenumber 参数 - 在 PointGroupItem 和 GroupReportRecord 中增加 reportNo、clientUnitId、createUnit、contractNumber、standard、phonenumber 字段 - 移除委托单位和检测公司等字段的显示列和表单验证规则 - 更新基础信息步骤组件,简化表单字段配置 - 调整详情对话框布局,增加分组报告表格中的委托单位、检测公司等列 - 优化分组数据显示逻辑,支持从快照数据获取分组数量 - 更新多报告界面组件,同步调整相关属性传递和数据加载逻辑
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export namespace ReportTask {
|
||||
export type ReportTaskState = '01' | '02' | '03' | '04' | '05'
|
||||
export type ReportTaskGenerateState = 0 | 1 | 2
|
||||
export type ReportTaskGenerateState = 0 | 1 | 2 | 3 | 4
|
||||
export type ReportTaskGroupReportGenerateState = 0 | 1 | 2 | 3
|
||||
export type ReportTaskLedgerImportStage =
|
||||
| '选择文件'
|
||||
@@ -12,16 +12,14 @@ export namespace ReportTask {
|
||||
|
||||
export interface ReportTaskRecord {
|
||||
id?: string
|
||||
multiId?: string | null
|
||||
no?: string | null
|
||||
clientUnitId?: string | null
|
||||
clientUnitName?: string | null
|
||||
reportModelId?: string | null
|
||||
reportModelName?: string | null
|
||||
createUnit?: string | null
|
||||
contractNumber?: string | null
|
||||
standard?: string[] | string | null
|
||||
data?: string | null
|
||||
phonenumber?: string | null
|
||||
templateDirName?: string | null
|
||||
templateDirPath?: string | null
|
||||
sortNo?: number | null
|
||||
data?: Record<string, unknown> | unknown[] | string | null
|
||||
checkId?: string | null
|
||||
checkerName?: string | null
|
||||
checkTime?: string | null
|
||||
@@ -53,14 +51,9 @@ export namespace ReportTask {
|
||||
export interface ReportTaskAddParam {
|
||||
id?: string
|
||||
no: string
|
||||
clientUnitId: string
|
||||
reportModelId: string
|
||||
createUnit: string
|
||||
contractNumber: string
|
||||
standard: string[]
|
||||
data: Record<string, unknown> | unknown[]
|
||||
batchId?: string
|
||||
phonenumber?: string
|
||||
}
|
||||
|
||||
export interface ReportTaskSaveRequest extends ReportTaskAddParam {}
|
||||
@@ -181,11 +174,18 @@ export namespace ReportTask {
|
||||
protocolCapacity?: string | null
|
||||
powerSupplyCapacity?: string | null
|
||||
excelAttachmentName?: string | null
|
||||
wordAttachmentName?: string | null
|
||||
}
|
||||
|
||||
export interface ReportTaskPointGroupItem {
|
||||
groupNo: number
|
||||
pointIds: string[]
|
||||
reportNo?: string
|
||||
clientUnitId?: string
|
||||
createUnit?: string
|
||||
contractNumber?: string
|
||||
standard?: string[]
|
||||
phonenumber?: string
|
||||
}
|
||||
|
||||
export interface ReportTaskGroupSaveRequest {
|
||||
@@ -195,6 +195,12 @@ export namespace ReportTask {
|
||||
export interface ReportTaskGroupReportRecord {
|
||||
id?: string
|
||||
groupNo?: number | null
|
||||
reportNo?: string | null
|
||||
clientUnitId?: string | null
|
||||
createUnit?: string | null
|
||||
contractNumber?: string | null
|
||||
standard?: string[] | string | null
|
||||
phonenumber?: string | null
|
||||
reportName?: string | null
|
||||
reportFileName?: string | null
|
||||
reportStoragePath?: string | null
|
||||
|
||||
@@ -56,12 +56,7 @@ export namespace ReportTaskMulti {
|
||||
templateDirName: string
|
||||
templateDirPath: string
|
||||
no: string
|
||||
clientUnitId: string
|
||||
reportModelId: string
|
||||
createUnit: string
|
||||
contractNumber: string
|
||||
standard: string[]
|
||||
phonenumber?: string
|
||||
}
|
||||
|
||||
export interface ReportTaskMultiCreateParam {
|
||||
|
||||
Reference in New Issue
Block a user