billGuide.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import { ITreeScm } from './base';
  2. // 指引库类型
  3. export enum BillGuideLibType {
  4. // 清单指引
  5. GUIDE = 1,
  6. // 清单精灵
  7. ELF,
  8. }
  9. // 标准指引库
  10. export interface IBillGuideLibResult {
  11. type: BillGuideLibType;
  12. ID: string;
  13. compilationId: string;
  14. compilationName: string;
  15. billsLibId: number;
  16. billsLibName: string;
  17. name: string;
  18. creator: string;
  19. createDate: string;
  20. deleted?: boolean;
  21. }
  22. // 标准指引库(更正命名)
  23. export interface IBillGuideLib {
  24. type: BillGuideLibType;
  25. ID: string;
  26. compilationID: string;
  27. compilationName: string;
  28. billsLibID: number;
  29. billLibName: string;
  30. name: string;
  31. creator: string;
  32. createDate: string;
  33. }
  34. // 指引项类型
  35. export enum BillGuideItemType {
  36. // 工作内容
  37. CONTENT = 0,
  38. // 定额
  39. RATION,
  40. }
  41. // 指引原数据
  42. export interface IBillGuideItemResult {
  43. libID: string;
  44. ID: string;
  45. ParentID: string;
  46. NextSiblingID: string;
  47. billsID: string;
  48. name: string;
  49. type: BillGuideItemType;
  50. rationID?: number;
  51. deleted?: boolean;
  52. }
  53. // 指引数据
  54. export interface IBillGuideItem extends ITreeScm {
  55. libID: string;
  56. ID: string;
  57. billID: string;
  58. name: string;
  59. type: BillGuideItemType;
  60. rationID?: number;
  61. select?: boolean;
  62. }