process.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. import { ReportTree } from './report';
  2. import { CptModelName, SubModelName, ActionType } from './base';
  3. import { BusinessTypeKey } from './gather';
  4. import { executorMember } from './approvalStatus';
  5. import { IProcessMatter, IStepMatter } from './matter';
  6. // 环节类型
  7. export enum SectorType {
  8. APPROVAL = 'approval', // 审批
  9. CONDITION = 'condition', // 条件
  10. APOSTILLE = 'apostille', // 加签
  11. }
  12. export enum ProcessStatus {
  13. WAITING = 'waiting', // 待审批
  14. APPROVED = 'approved', // 审批通过
  15. APOSTILLE = 'apostille', // 加签
  16. ACTIVATING = 'activating', // 当前流程
  17. FAILED = 'failed', // 审批退回
  18. }
  19. // 审批方式
  20. export enum ApprovalWay {
  21. REPORT = 'report', // 上报审批
  22. ACCOUNT = 'account', // 指定用户
  23. JOINTLYSIGN = 'jointlySign', // 会签
  24. ORSIGN = 'orSign', // 或签
  25. ORDERAPPROVAL = 'orderApproval', // 依次审批
  26. PREACCOUNT = 'prevAccount', // 上一审批人设置
  27. }
  28. // 角色权限
  29. export enum RolePermission {
  30. MY_REPORT = 'report', // 我的项目-项目上报
  31. MY_FREE_REPORT = 'freeReport', // 我的项目-指定审批人
  32. MY_ADD_PROJECT = 'addProject', // 我的项目-新建项目
  33. MY_EDIT_PROJECT = 'editProject', // 我的项目-编辑项目
  34. MY_EXPORT_PROJECT = 'exportProject', // 我的项目-导出项目
  35. MY_DEL_PROJECT = 'delProject', // 我的项目-删除项目
  36. MY_VIEW_PROJECT = 'viewProject', // 我的项目-查看项目
  37. MY_VIEW_APPROVAL = 'viewApproval', // 我的项目-审批进度
  38. MY_SAVE_INDEX = 'viewZbkProject', // 我的项目-指标入库
  39. JOIN_VIEW_PARTICIPATING_PROJECT = 'viewParticipatingProject', // 我参与的项目-查看项目
  40. JOIN_SAVE_INDEX = 'saveIndex', // 我参与的项目-指标入库
  41. JOIN_EXPORT_PARTICIPATING_PROJECT = 'exportParticipatingProject', // 我参与的项目-导出项目
  42. ALL_SET_PROJECT = 'setProjects', // 全部项目-项目设置
  43. ALL_VIEW_ALL_PROJECTS = 'viewAllProjects', // 全部项目-查看项目
  44. ALL_SAVE_INDEX = 'saveIndexAll', // 全部项目-指标入库
  45. ALL_EXPORT_PROJECTS = 'exportProjects', // 全部项目-导出项目
  46. ZBK_ENABLE = 'zbkEnable', // 指标库启用
  47. ZBK_EDIT = 'zbkEdit', // 指标库-编辑
  48. SAVE_INDEX = 'saveIndex', // 我参与的项目-指标入库
  49. CJK_ENABLE = 'cjkEnable', // 材价库-启用
  50. CJK_EDIT = 'cjkEdit', // 材价库-编辑
  51. BACK_STAGE_ENABLE = 'backstageEnable', // 小后台权限
  52. ENABLE_NOTICE = 'enableNotice', // 管理员发布通知
  53. ENABLE_LOGO = 'enableLogo',
  54. // TODO 指标库 区间对数
  55. }
  56. // 系统角色
  57. export enum RoleType {
  58. SYSTEM = 'system',
  59. SYSTEM_NORMAL = 'systemNormal',
  60. NORMAL = 'normal',
  61. }
  62. // 角色
  63. export interface IRole {
  64. ID: string;
  65. name: string;
  66. roleType: RoleType;
  67. frontPermission: RolePermission[];
  68. }
  69. // 参与者模式
  70. export enum ParticipantMode {
  71. ACCOUNT = 'account', // 用户模式
  72. ROLE = 'role', // 角色模式(未来)
  73. }
  74. export enum AccountConfigure {
  75. SKIP = 'skip', // 允许跳过
  76. RETURN = 'return', // 允许退回
  77. REVOKE = 'revoke', // 允许撤回
  78. ASSISTAUDIT = 'assistAudit', // 协审
  79. ADDSIGN = 'addSign', // 加签
  80. NEXTSECTOR = 'nextSector', // 是否可添加环节
  81. }
  82. export interface ICoreView {
  83. ID: string; // 用户ID
  84. projectIDs: string[]; // 充许协审的单位工程ID,为空数组时表示可以协审当前环节的所有项目
  85. }
  86. export interface IProcessAccount {
  87. // ID 账号ID name 名称institutionID 企事业ID
  88. ID: string;
  89. name: string; // 曾用名,不会变动
  90. institutionID?: string; // 单位ID(可能不会用到)
  91. institutionName?: string; // 单位名称(不要保存到数据库,而是在使用的时候通过ID去查)
  92. status: ProcessStatus; // 审批状态
  93. alreadyAddProcess?: boolean; // 是否已经添加了新环节(暂时用的,用于标记是否添加了环节,以后可能删除)
  94. configure: AccountConfigure[]; // 权限配置
  95. remark: string; // 审批意见(肯定有,会有默认值)
  96. coreViews: ICoreView[]; // 协审人信息
  97. projectIDs: string[]; // 允许审批的单位工程ID,为空数组时表示可以审批当前环节的所有项目
  98. }
  99. // 参与者信息
  100. export interface IParticipantInfo {
  101. approvalWay: ApprovalWay;
  102. participantMode: ParticipantMode;
  103. accounts: IProcessAccount[];
  104. }
  105. // 后台的
  106. // 流程中的一个环节
  107. export interface IProcess {
  108. ID: string;
  109. name: string;
  110. sectorType: SectorType;
  111. seq?: number;
  112. createdByProcess?: string; // 上环节ID, 表示哪个环节创建的(上环节添加的)
  113. time?: number; // 当前环节完成时间(仅当审批通过或审批退回时会有时间)
  114. participantInfo: IParticipantInfo;
  115. afterAuditMoney?: number; // 审后的金额
  116. }
  117. export interface Members {
  118. ID: string;
  119. approvalStatus: string;
  120. approvalTime: number | string;
  121. approvalComment: string;
  122. name?: string;
  123. institutionID?: string;
  124. institutionName?: string;
  125. }
  126. // 3合1执行者
  127. export interface IProcessExecutor {
  128. ID: string;
  129. permission: string[];
  130. configure: string[];
  131. businessType: BusinessTypeKey;
  132. gatherID: string;
  133. setType: string;
  134. participantMode: string;
  135. name: string;
  136. dataID: string;
  137. reportTime?: string; // 三合一审批流程第一位的上报时间
  138. scope?: string;
  139. members?: Members[];
  140. // 事项中组件及其权限
  141. inProcessMatters?: IProcessMatter[];
  142. // 事项后组件及其权限
  143. afterProcessMatters?: IProcessMatter[];
  144. }
  145. export interface SimpleDynamicStep {
  146. stepID: string;
  147. stepName: string;
  148. executorID?: string;
  149. executorName?: string;
  150. }
  151. // export interface ICollaboratorPermission {
  152. // matterID: string;
  153. // form: string[];
  154. // cost: string[];
  155. // profile: string[];
  156. // }
  157. // 3合1协审人信息
  158. export interface ICollaborator {
  159. ID: string; // 用户ID
  160. executorInfo?: {
  161. executorID: string;
  162. executorName: string;
  163. }; // 执行者
  164. fixCollaborator?: boolean;
  165. institutionID?: string; // 机构ID,只在协审角色为审批单位的时候存在
  166. name?: string; // 用户姓名
  167. deadline: string | number; // 截至时间
  168. // 事项中组件及其权限
  169. inProcessMatters?: IProcessMatter[];
  170. // 事项后组件及其权限
  171. afterProcessMatters?: IProcessMatter[];
  172. }
  173. // 3合1添加协审下拉选项
  174. export interface ICollaboratorItem {
  175. institutionID?: string;
  176. institutionName?: string;
  177. approvalMembers: string[];
  178. approverName?: string;
  179. }
  180. // 三合一协审人范围
  181. export interface ICollaboratorScope {
  182. type: string;
  183. accounts: string[];
  184. institutionRoles: string[];
  185. }
  186. // 组件权限配置(主审、固定协审通用)
  187. export interface IComponentPermissionConfig {
  188. matterID: string;
  189. formPermission?: string[];
  190. costPermission?: string[];
  191. profilePermission?: string[];
  192. auditCommentsPermission?: string[];
  193. settlementPermission?: string[];
  194. budgetComparePermission?: string[];
  195. }
  196. // 固定协审配置
  197. export interface IFixedCollaboratorConfig {
  198. executors: string[]; // 固定协审
  199. permissions: IComponentPermissionConfig[];
  200. }
  201. // 参与者配置项
  202. export interface IParticipantConfig {
  203. type: string;
  204. accounts?: string[];
  205. institutionRoles?: string[];
  206. fixedCollaborators?: IFixedCollaboratorConfig[];
  207. }
  208. export interface IProcedureParticipantExecutor {
  209. ID: string;
  210. members?: Members[];
  211. reportTime?: string;
  212. approvaledPermission?: string[]; // 事项后原始数据
  213. inProcessMatters?: IProcessMatter[];
  214. afterProcessMatters?: IProcessMatter[];
  215. }
  216. // 3合1参与者信息
  217. export interface IProcedureParticipantInfo {
  218. approvalWay: string;
  219. configure?: IParticipantConfig[];
  220. executor: IProcedureParticipantExecutor;
  221. collaborators: ICollaborator[];
  222. dynamicSteps: SimpleDynamicStep[];
  223. stepMatters?: IStepMatter[];
  224. }
  225. // 3合1分支判断信息
  226. export interface IConditionItem {
  227. ID: string;
  228. field: string;
  229. type: string;
  230. symbol: string;
  231. value: string;
  232. }
  233. // 3合1分支条件信息
  234. // eslint-disable-next-line prettier/prettier, no-use-before-define
  235. export interface IConditionInfoItem<T = IProcedureProcess> {
  236. ID: string;
  237. conditions: IConditionItem[];
  238. // eslint-disable-next-line prettier/prettier, no-use-before-define
  239. process: T[];
  240. }
  241. export interface IApostilleInfo {
  242. parentProcessID: string;
  243. parentProcessReferenceID: string;
  244. nextProcessID?: string;
  245. afterApostille?: string;
  246. }
  247. // 3合1步骤中的一个环节
  248. export interface IProcedureProcess {
  249. ID: string;
  250. referenceID: string;
  251. name: string;
  252. sectorType: SectorType;
  253. isReportProcess?: boolean; // 是否上报环节(因为上报环节是特殊的,所以加个字段方便处理)
  254. participantInfo?: IProcedureParticipantInfo;
  255. conditionInfo?: IConditionInfoItem[];
  256. apostilleInfo?: IApostilleInfo;
  257. condition?: {
  258. ID: string;
  259. processID: string;
  260. field: string;
  261. fieldValue: string;
  262. };
  263. // 步骤事项中的造价是否可编辑
  264. costEditable?: boolean;
  265. }
  266. export interface IProcedureItem {
  267. ID: string;
  268. approvalStatus: string;
  269. content: string;
  270. approvalTime: string;
  271. executor?: IProcessExecutor;
  272. executorProcessMatter?: {
  273. inProcessMatters: IProcessMatter[];
  274. afterProcessMatters: IProcessMatter[];
  275. };
  276. collaborators?: ICollaborator[];
  277. isReportProcess?: boolean;
  278. // members?: executorMember[];
  279. processID?: string;
  280. approvalWay?: string;
  281. dynamicSteps?: SimpleDynamicStep[];
  282. stepMatters?: IStepMatter[];
  283. nextProcessSectorType?: SectorType;
  284. conclusion?: string;
  285. addition?: string;
  286. reduction?: string;
  287. configure?: IParticipantConfig[];
  288. sectorType?: 'apostille' | 'condition' | 'approval';
  289. apostilleInfo?: IApostilleInfo;
  290. apostilleProcess?: IProcedureItem;
  291. }
  292. export interface IApproval {
  293. ID: string;
  294. name: string;
  295. createdID: string;
  296. createdTime: number;
  297. process: IProcess[];
  298. templateProcess?: IProcedureProcess[]; // 三合一需要用的流程模板
  299. subjectID?: string;
  300. businessType?: BusinessTypeKey;
  301. }
  302. export enum ApprovalStatus {
  303. CREATED = 'created', // 创建完成
  304. PROCESSING = 'processing', // 正在审批
  305. APPROVED = 'approved', // 审批通过
  306. }
  307. // 审核费用类型
  308. export enum AuditMoneyType {
  309. // 建设项目相关费用
  310. CONSTRUCTION = 'construction',
  311. // 费用项
  312. FEE_ITEM = 'feeItem',
  313. }
  314. export interface IProcessAuditMoney {
  315. ID: string;
  316. type: AuditMoneyType;
  317. // 来源ID,有的数据是基于某条数据拷贝而来的,sourceID为被拷贝数据的ID,方便查找源数据
  318. sourceID?: string;
  319. processID: string;
  320. data: any[];
  321. }
  322. // 复制到项目里的流程
  323. export interface IProjectApproval extends IApproval {
  324. financialProjectID: string; // 财审项目ID
  325. constructionID: string; // 建设项目ID
  326. projectIDs: string[]; // 包含在流程里的项目(单位工程)
  327. status: ApprovalStatus; // 状态
  328. approvalTime?: number; // 审批通过时间
  329. currentProcessID?: string; // 当前正处于哪个环节ID
  330. businessID?: string; // 业务ID
  331. gatherID?: string;
  332. }
  333. // 三合一项目里的流程
  334. export interface IProcedureApproval {
  335. ID: string;
  336. name?: string;
  337. gatherID: string;
  338. businessType: BusinessTypeKey;
  339. businessID: string;
  340. templateProcess: IProcedureProcess[];
  341. process: IProcedureProcess[];
  342. }
  343. // 流程过程中存储的数据
  344. export interface IProcessData {
  345. ID: string;
  346. module: CptModelName | SubModelName; // 编辑的模块
  347. action: ActionType; // 动作,增删改等
  348. oDoc: any; // 存放删除时或者修改时的数据
  349. createTime: number; // 创建时间
  350. }
  351. // 备份数据集合
  352. export interface IProcessDataDoc {
  353. projectID: string;
  354. processID: string;
  355. index: number;
  356. processData: IProcessData[];
  357. }
  358. // 环节状态(精简)
  359. export enum SimpleProcessStatus {
  360. APPROVED = 'approved', // 审批通过
  361. FAILED = 'failed', // 失败
  362. REPORTED = 'reported', // 上报
  363. // APOSTILLE = 'apostille', // 加签
  364. }
  365. // 审批待办类型
  366. export enum ApprovalType {
  367. APPROVER = 'approver', // 审批
  368. COREVIEW = 'coreview', // 协审
  369. REPORT = 'report', // 上报
  370. }
  371. export enum FinancialProjectStatus {
  372. UNREPORTED = 'unreported',
  373. APPROVING = 'approving',
  374. COMPLETION = 'completion',
  375. }
  376. // 流程环节待办列表项
  377. export interface IApprovalTodoData {
  378. approvalID: string; // 流程 id
  379. processID: string; // 环节 id
  380. financialProjectID: string; // 项目 ID
  381. constructionID?: string; // 建设项目 ID
  382. projectName?: string; // 项目名称
  383. reporterID?: string; // 发起人ID
  384. reporterName?: string; // 发起人名称
  385. lastID?: string; // 上环节ID(暂定为上环节用户ID,之后可能为上环节ID)
  386. lastName?: string; // 上环节名称(暂定为上环节用户名称,之后可能为上环节名称) 三合一是上环节名称
  387. nextID?: string; // 下一个步骤ID(三合一)
  388. nextName?: string; // 下一个步骤名称(三合一)
  389. reportTime?: number; // 上报时间
  390. lastStatus?: SimpleProcessStatus; // 上一环节的状态
  391. approveTime?: number; // 当前环节审批时间
  392. approveType?: SimpleProcessStatus; // 审批办结状态
  393. moveUserID?: string; // 环节流转(用户ID)
  394. moveUserName?: string; // 环节流转(用户名)
  395. approvalStatus?: ApprovalStatus; // 审批流程的状态
  396. type: ApprovalType; // 审批待办类型
  397. gatherID?: string;
  398. }
  399. export interface IApprovalTodoData2 {
  400. approvalID: string; // 流程 id
  401. processID: string; // 环节 id
  402. financialProjectID: string; // 项目 ID
  403. constructionID: string; // 建设项目 ID
  404. projectName?: string; // 项目名称
  405. // reporterID: string; // 发起人ID (删)
  406. // reporterName: string; // 发起人名称(删)
  407. lastID?: string; // 为上环节用户ID
  408. lastName?: string; // 上环节用户名称
  409. // reportTime: number; // 上报时间(删)
  410. lastStatus?: SimpleProcessStatus; // 上环节办结状态
  411. // approveTime: number; // 审批办结时间(删)
  412. approveType?: SimpleProcessStatus; // 审批办结状态
  413. // approvalStatus: ApprovalStatus; // 审批流程的状态(删)
  414. moveUserID?: string; // 环节流转(用户ID)
  415. moveUserName?: string; // 环节流转(用户名)
  416. type: ApprovalType; // 审批待办类型
  417. }
  418. export enum TodoType {
  419. APPROVAL = 'approval',
  420. }
  421. export enum TodoStatus {
  422. REMAIN = 'remain',
  423. COMPLETED = 'completed',
  424. }
  425. export interface ITodo {
  426. ID: string; // 待办 ID
  427. userID: string; // 用户 ID
  428. createdTime: number; // 创建时间(相当于环节流转时间)
  429. completedTime: number; // 完成时间(相当于审批办结时间)
  430. todoType: TodoType;
  431. data: any;
  432. status: TodoStatus;
  433. }
  434. export interface IApprovalTodo extends ITodo {
  435. data: IApprovalTodoData;
  436. }
  437. export enum ChangeRecord {
  438. CURRENT = 'current', // 当前清单
  439. ALLBILLS = 'all-bills', // 全部清单
  440. ALLGLJS = 'all-gljs', // 全部材价
  441. }
  442. export enum BusinessType {
  443. /** 预算 */
  444. BUDGET = 'undo',
  445. /** 结算 */
  446. SETTLEMENT = 'doing',
  447. /** 决算 */
  448. FINAL = 'done',
  449. }
  450. export enum BusinessStatus {
  451. /** 未上报 */
  452. UNREPORTED = 'unreported',
  453. /** 审批中 */
  454. APPROVING = 'approving',
  455. /** 审批完成 */
  456. COMPLETION = 'completion',
  457. }
  458. export interface IBusinessApprovalItem {
  459. ID?: string;
  460. name?: string;
  461. code?: string;
  462. gatherID?: string;
  463. businessType?: BusinessType;
  464. status?: BusinessStatus;
  465. /** 送审时间 */
  466. sendReviewTime?: string;
  467. /** 审结时间 */
  468. completionTime?: string;
  469. /** 送审金额 */
  470. reportMoney?: string;
  471. /** 审结金额 */
  472. conclusion?: string;
  473. /** 审增金额 */
  474. addition?: string;
  475. /** 审减金额 */
  476. reduction?: string;
  477. created?: string;
  478. createdID?: string;
  479. createTime?: string;
  480. }
  481. export interface IConditionSetting {
  482. ID: string;
  483. gatherID: string;
  484. schema?: string;
  485. }
  486. // 审核金额 核减、增金额数据
  487. export interface IAuditSummaryDiff {
  488. // 核减金额
  489. decFee: string;
  490. // 核增金额
  491. incFee: string;
  492. // 核减率
  493. decRate: string;
  494. // 核减率提示
  495. decRateTips?: string;
  496. // 核增率
  497. incRate: string;
  498. // 核增率提示
  499. incRateTips?: string;
  500. }
  501. // 审批金额汇总表数据
  502. export interface IAuditSummaryItem {
  503. // 阶段
  504. stage: string;
  505. // 执行者名称
  506. executor: string;
  507. // 执行者单位
  508. institution: string;
  509. // 审核步骤名称
  510. process: string;
  511. // 审结时间
  512. approvalTime: string;
  513. // 金额
  514. fee: string;
  515. // 大写金额
  516. feeInWords: string;
  517. // 与上一阶段对比
  518. compareToPrev: IAuditSummaryDiff;
  519. // 与上送审对比
  520. compareToReport: IAuditSummaryDiff;
  521. }
  522. // 审核明细数据
  523. export interface IAuditDetailItem {
  524. // 唯一标识,table渲染需要
  525. ID: string;
  526. // 步骤名
  527. process: string;
  528. // 单位
  529. institution: string;
  530. // 姓名
  531. userName: string;
  532. // 角色:负责人、协审
  533. role: string;
  534. // 起始金额
  535. beginFee: string;
  536. // 结束金额
  537. endFee: string;
  538. // 审增
  539. incFee: string;
  540. // 审减
  541. decFee: string;
  542. // 增减比例
  543. rate: string;
  544. // 状态文本
  545. status: string;
  546. // 审核状态
  547. approvalStatus: string;
  548. // 协审为子项
  549. children: IAuditDetailItem[];
  550. }
  551. // 审核意见表(入库数据)
  552. export interface IAuditComment {
  553. ID: string;
  554. // 业务ID
  555. businessID: string;
  556. // 关联模板步骤ID(一个步骤只有一份意见,所以得用模板ID,不能用全环节中的步骤)
  557. refProcessID: string;
  558. // 富文本
  559. richText: string;
  560. // 创建时间
  561. createTime: number;
  562. // 更新时间
  563. updateTime: number;
  564. // 富文本模板(只有第一版才有内容,方便还原模板)
  565. template?: string;
  566. }
  567. // 审核意见历史
  568. export interface IAuditCommentHistory {
  569. // 意见ID
  570. commentID: string;
  571. // 步骤
  572. process: string;
  573. // 版本(第几版)
  574. version: string;
  575. // 执行者
  576. executor: string;
  577. // 单位
  578. institution: string;
  579. // 审批通过时间
  580. approvalTime?: string;
  581. // 审批状态
  582. status: ProcessStatus;
  583. }
  584. // 传统结算未上报数据
  585. export interface ISettlementItem {
  586. // 建设项目ID
  587. constructionID: string;
  588. // 名称
  589. name: string;
  590. // 项目原报金额
  591. orgFee: string;
  592. // 当前步骤审核金额
  593. curFee: string;
  594. // 清单检测合格率
  595. billCheckRate: string;
  596. // 费用项ID
  597. feeID?: string;
  598. // 费用类型
  599. type?: AuditMoneyType;
  600. // 备注
  601. remark?: string;
  602. }
  603. // 传统结算已上报审核数据
  604. export interface ISettlementAuditItem {
  605. // 唯一标识,table渲染需要
  606. ID: string;
  607. // 建设项目ID
  608. constructionID?: string;
  609. // 名称
  610. name: string;
  611. // 起始金额
  612. beginFee?: string;
  613. // 结束金额
  614. endFee?: string;
  615. // 增减金额
  616. incFee?: string;
  617. decFee?: string;
  618. // 增减率
  619. incRate?: string;
  620. decRate?: string;
  621. // 审核通过时间
  622. approvalTime?: string;
  623. // 用户信息
  624. user?: {
  625. name: string;
  626. institution: string;
  627. executor: string;
  628. };
  629. // 审核状态
  630. approvalStatus?: string;
  631. children: ISettlementAuditItem[];
  632. // 数据是否是原始数据(有的费用项是从上一步拷贝而来的,不给删除)
  633. isOriginal?: boolean;
  634. // 费用项ID
  635. feeID?: string;
  636. // 费用类型
  637. type?: AuditMoneyType;
  638. // 备注
  639. remark?: string;
  640. }
  641. // 概算预算阶段造价对比 审核明细表格数据
  642. export interface IBudgetEstimateTableItem {
  643. name: string;
  644. // 原报金额
  645. reportFee: string;
  646. // 审核金额
  647. auditFee: string;
  648. // 增减金额
  649. incFee?: string;
  650. decFee?: string;
  651. // 增减率
  652. incRate?: string;
  653. decRate?: string;
  654. // 审核状态
  655. approvalStatus?: string;
  656. // 审核状态文本
  657. approvalStatusText?: string;
  658. }
  659. export interface IApostilleParamUser {
  660. ID?: string;
  661. type?: string;
  662. }
  663. export enum AddSignType {
  664. MYDEPARTMENT = 'myDepartment', // 本部门
  665. ALLDEPARTMENT = 'allDepartment', // 本部门及下属部门
  666. MYINSTITUTION = 'myInstitution', // 本单位
  667. ACCOUNT = 'account', // 用户
  668. INSTITUTION = 'institution', // 单位
  669. DEPARTMENT = 'department', // 部门
  670. CONSTRUCTION = 'construction', // 建设单位
  671. CONSULTING = 'consulting', // 咨询单位
  672. AUDIT = 'audit', // 审核单位
  673. ALLEXECUTOR = 'allExecutor', // 执行者目录
  674. EXECUTOR = 'executor', // 执行者
  675. ALLINSTITUTIONROLE = 'allInstitutionRole', // 单位接收人目录
  676. INSTITUTIONROLE = 'institutionRole', // 单位接收人
  677. }
  678. export enum RangeSelectType {
  679. USER = 'user',
  680. ROLE = 'role',
  681. }
  682. export interface IRangeSelectTree<T extends RangeSelectType = any> {
  683. ID: string | number;
  684. label: string;
  685. rangeType: T;
  686. children?: IRangeSelectTree<T>[];
  687. icon?: string;
  688. [key: string]: any;
  689. }
  690. export interface IApostilleParam {
  691. permissions: Record<string, string[]>;
  692. user: IApostilleParamUser;
  693. afterApostille: 'next' | 'me';
  694. canCollaborate: boolean;
  695. collaborators: IRangeSelectTree[];
  696. }