@ningboyz/types 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/index.ts +8 -0
  2. package/package.json +1 -1
  3. package/src/antv/IAntvCnfgResponse.ts +69 -0
  4. package/src/antv/IAntvMainResponse.ts +67 -0
  5. package/src/antv/IAntvParaResponse.ts +48 -0
  6. package/src/antv/index.ts +5 -0
  7. package/src/card/ICardMainResponse.ts +256 -130
  8. package/src/card/IGblbResponse.ts +64 -5
  9. package/src/card/IP4pzResponse.ts +68 -0
  10. package/src/card/IZcbdResponse.ts +103 -9
  11. package/src/card/IZccfResponse.ts +141 -3
  12. package/src/card/IZcczResponse.ts +134 -0
  13. package/src/card/IZcdbResponse.ts +149 -0
  14. package/src/card/IZclbResponse.ts +138 -0
  15. package/src/card/IZczjPropResponse.ts +94 -0
  16. package/src/card/IZczjResponse.ts +121 -0
  17. package/src/card/index.ts +18 -6
  18. package/src/conf/IConfig.ts +1 -0
  19. package/src/conf/index.ts +1 -1
  20. package/src/const/const_bizCode.ts +3 -0
  21. package/src/const/const_module.ts +72 -0
  22. package/src/const/const_p4pt.ts +8 -0
  23. package/src/const/const_stat.ts +11 -2
  24. package/src/const/const_todo.ts +5 -0
  25. package/src/const/const_type_name.ts +10 -0
  26. package/src/const/const_wldy_item_type.ts +4 -0
  27. package/src/const/const_wtui_item_type.ts +20 -0
  28. package/src/const/index.ts +7 -1
  29. package/src/core/ICoreValidResponse.ts +21 -0
  30. package/src/core/IDeptLiteResponse.ts +0 -1
  31. package/src/core/IDeptResponse.ts +60 -0
  32. package/src/core/IDictResponse.ts +45 -2
  33. package/src/core/IDictResponseDictPara.ts +2 -0
  34. package/src/core/ILaidResponse.ts +34 -1
  35. package/src/core/IPartResponse.ts +29 -0
  36. package/src/core/ISysMenuWithCoreResponse.ts +3 -2
  37. package/src/core/ISysTravelResponse.ts +135 -0
  38. package/src/core/ITypeResponse.ts +27 -0
  39. package/src/core/IUnitResponse.ts +99 -5
  40. package/src/core/IUserLiteResponse.ts +2 -0
  41. package/src/core/IUserResponse.ts +29 -0
  42. package/src/core/index.ts +8 -0
  43. package/src/enums/btnMode.ts +82 -3
  44. package/src/enums/emitterType.ts +5 -0
  45. package/src/enums/index.ts +2 -2
  46. package/src/enums/storeId.ts +4 -1
  47. package/src/enums/usesStat.ts +13 -0
  48. package/src/enums/whatDone.ts +29 -0
  49. package/src/flow/IFlowCnfgResponse.ts +0 -2
  50. package/src/flow/IFlowDataResponse.ts +34 -0
  51. package/src/flow/IFlowDutyResponse.ts +3 -2
  52. package/src/flow/IFlowNodeResponse.ts +15 -1
  53. package/src/flow/IFlowUservoidResponse.ts +35 -0
  54. package/src/flow/index.ts +3 -1
  55. package/src/gzjg/IGzjgGzlmResponse.ts +3 -2
  56. package/src/gzjg/IGzjgGzlmResponseGzlmPara.ts +2 -0
  57. package/src/gzjg/IGzjgMainResponse.ts +5 -2
  58. package/src/gztb/IGztbMainResponse.ts +103 -0
  59. package/src/gztb/index.ts +3 -0
  60. package/src/load/index.ts +2 -2
  61. package/src/micro/appName.ts +2 -1
  62. package/src/noti/INotiMainResponse.ts +278 -0
  63. package/src/noti/index.ts +3 -0
  64. package/src/pzpt/IPzptItemResponse.ts +0 -2
  65. package/src/response/IResponse.ts +31 -0
  66. package/src/store/dateState.ts +48 -0
  67. package/src/store/index.ts +4 -2
  68. package/src/store/menuState.ts +9 -0
  69. package/src/store/userState.ts +3 -0
  70. package/src/tabl/ITablDataResponse.ts +2 -0
  71. package/src/tabl/ITablMainResponse.ts +2 -0
  72. package/src/task/ITaskMainResponse.ts +121 -0
  73. package/src/task/index.ts +3 -0
  74. package/src/wldy/IWldyPageResponse.ts +4 -3
  75. package/src/wldy/index.ts +5 -5
  76. package/src/wtui/ITodoResponse.ts +15 -0
  77. package/src/wtui/IViewCtrlResponse.ts +15 -7
  78. package/src/wtui/IWtuiColWidthResponse.ts +53 -0
  79. package/src/wtui/IWtuiFormParaResponse.ts +17 -0
  80. package/src/wtui/IWtuiFormResponse.ts +95 -0
  81. package/src/wtui/IWtuiItemCalc.ts +36 -0
  82. package/src/wtui/IWtuiItemEffect.ts +43 -0
  83. package/src/wtui/IWtuiItemParaResponse.ts +59 -0
  84. package/src/wtui/IWtuiItemResponse.ts +119 -0
  85. package/src/wtui/IWtuiMainResponse.ts +3 -0
  86. package/src/wtui/IWtuiNodeResponse.ts +71 -0
  87. package/src/wtui/IWtuiTodoResponse.ts +36 -0
  88. package/src/wtui/IWtuiTodoResponseTodoPara.ts +7 -0
  89. package/src/wtui/IWtuiTodoResponseWithPara.ts +32 -0
  90. package/src/wtui/IWtuiUserCnfgResponse.ts +100 -0
  91. package/src/wtui/IWtuiZoneResponse.ts +61 -0
  92. package/src/wtui/index.ts +46 -1
  93. package/src/enums/wldyItemType.ts +0 -5
@@ -1,4 +1,8 @@
1
+ import { Const, TCore } from "../..";
1
2
  import { IPathResponse } from "../core";
3
+ import { TFlowDataResponse } from "../flow";
4
+ import { ICardMainResponse } from "./ICardMainResponse";
5
+ import _ from "lodash";
2
6
 
3
7
  export interface IZcbdResponse {
4
8
  whoBuild: number;
@@ -37,21 +41,44 @@ export interface IZcbdResponse {
37
41
  flowUndo: number;
38
42
  flowText: string;
39
43
  flowUser: string;
40
- cardMain: number;
41
- cardExid: number;
42
- valueNew: number;
44
+ /** 变动时间 */
43
45
  zcbdDate: number;
46
+ /** 流程状态:(0:制单;1:送审;2:终审) */
44
47
  zcbdStat: number;
48
+ /** 变动方式(字典) */
45
49
  zcbdType: number;
46
- /** 变动编码 */
50
+ /** 变动方式(字典)文字信息 */
51
+ zcbdTypeText: string;
52
+ /** 单据编号 */
47
53
  zcbdCode: string;
48
- /** 变动名称 */
54
+ /** 资产变动关联的资产名称 */
49
55
  zcbdName: string;
56
+ /** 变动原因 */
50
57
  zcbdUses: string;
51
- /** 变动备注 */
58
+ /** 备注说明 */
52
59
  zcbdMemo: string;
53
60
 
61
+ /** 单位名称 */
62
+ unitText: string;
63
+
64
+ lastDate: number;
65
+ lastTime: number;
66
+ flowMain: number;
67
+ flowNode: number;
68
+ flowStat: number;
69
+ didFirst: number;
70
+ lastMemo: string;
71
+ userName: string;
72
+ userGUID: string;
73
+
74
+ /** 变动前卡片 */
75
+ listBeforeBill: ICardMainResponse[];
76
+ /** 变动后卡片 */
77
+ listAfterBill: ICardMainResponse[];
54
78
  listPath: IPathResponse[];
79
+
80
+ /** 虚拟字段 */
81
+ cardIndx: ICardMainResponse[] | undefined; // 用以选择资产名称时获取cardList,就前段使用
55
82
  }
56
83
 
57
84
  export class TZcbdResponse implements IZcbdResponse {
@@ -91,16 +118,83 @@ export class TZcbdResponse implements IZcbdResponse {
91
118
  flowUndo: number = 0;
92
119
  flowText: string = "";
93
120
  flowUser: string = "";
94
- cardMain: number = 0;
95
- cardExid: number = 0;
96
- valueNew: number = 0;
97
121
  zcbdDate: number = 0;
98
122
  zcbdStat: number = 0;
99
123
  zcbdType: number = 0;
124
+ zcbdTypeText: string = "";
125
+
100
126
  zcbdCode: string = "";
101
127
  zcbdName: string = "";
102
128
  zcbdUses: string = "";
103
129
  zcbdMemo: string = "";
104
130
 
131
+ unitText: string = "";
132
+
133
+ lastDate: number = 0;
134
+ lastTime: number = 0;
135
+ flowMain: number = 0;
136
+ flowNode: number = 0;
137
+ flowStat: number = 0;
138
+ didFirst: number = 0;
139
+ lastMemo: string = "";
140
+ userName: string = "";
141
+ userGUID: string = "";
142
+
143
+ listBeforeBill: ICardMainResponse[] = [];
144
+ listAfterBill: ICardMainResponse[] = [];
105
145
  listPath: IPathResponse[] = [];
146
+ /** 虚拟字段 */
147
+ cardIndx: ICardMainResponse[] | undefined = undefined;
148
+
149
+ static toFlowData(zcbd: TZcbdResponse): TFlowDataResponse {
150
+ const result = new TFlowDataResponse();
151
+ result.whoBuild = zcbd.whoBuild;
152
+ result.userIndx = zcbd.userIndx;
153
+ result.flowMain = zcbd.flowMain;
154
+ result.flowNode = zcbd.flowNode;
155
+ result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_ZCBD_WAIT;
156
+ result.entityID = zcbd.entityID;
157
+ result.billMain = zcbd.zcbdIndx;
158
+ result.billCode = zcbd.zcbdCode;
159
+ result.billMemo = zcbd.zcbdMemo;
160
+ result.createAt = zcbd.createAt;
161
+ result.mastName = zcbd.mastName;
162
+ result.createBy = zcbd.createBy;
163
+ result.unitMain = zcbd.unitMain;
164
+ result.deptMain = zcbd.deptMain;
165
+ result.menuUUID = zcbd.menuUUID;
166
+ result.flowStat = zcbd.zcbdStat;
167
+ return result;
168
+ }
169
+
170
+ static toFlowDatas(zcbds: TZcbdResponse[]): TFlowDataResponse[] {
171
+ return zcbds.map((u) => this.toFlowData(u));
172
+ }
173
+
174
+ static toTravel(card: TZcbdResponse): TCore.ISysTravelResponse {
175
+ const travel = new TCore.TSysTravelResponse();
176
+ travel.whoBuild = card.whoBuild;
177
+ travel.flowMain = card.flowMain;
178
+ travel.flowNode = card.flowNode;
179
+ travel.billUUID = card.entityID;
180
+ travel.billMain = card.zcbdIndx;
181
+ travel.billCode = card.zcbdCode;
182
+ travel.mastName = card.mastName;
183
+ travel.createBy = card.createBy;
184
+ travel.menuUUID = card.menuUUID;
185
+ return travel;
186
+ }
187
+
188
+ /** 转换成记录日志需要的数据(第一层,不包含菜单) */
189
+ static toTravelData(card?: TZcbdResponse | TZcbdResponse[]): TCore.ISysTravelResponse[] {
190
+ if (_.isNil(card)) {
191
+ return [];
192
+ }
193
+ if (_.isArray(card)) {
194
+ return card.map((u) => {
195
+ return this.toTravel(u);
196
+ });
197
+ }
198
+ return [this.toTravel(card)];
199
+ }
106
200
  }
@@ -1,8 +1,9 @@
1
+ import { Const, TCore } from "../..";
1
2
  import { IPathResponse } from "../core";
3
+ import { TFlowDataResponse } from "../flow";
4
+ import { ICardMainResponse } from "./ICardMainResponse";
5
+ import _ from "lodash";
2
6
 
3
- /**
4
- * 资产拆分类型
5
- */
6
7
  export interface IZccfResponse {
7
8
  whoBuild: number;
8
9
  userIndx: number;
@@ -40,9 +41,60 @@ export interface IZccfResponse {
40
41
  flowUndo: number;
41
42
  flowText: string;
42
43
  flowUser: string;
44
+ /** 拆分前的card_indx(母卡) */
43
45
  cardMain: number;
46
+ /** 拆分前的card_exid(母卡) */
44
47
  cardExid: number;
48
+ /** 拆分后的card_exid(母卡) */
49
+ valueNew: number;
50
+ /** 申请日期 */
51
+ zccfDate: number;
52
+ /** 流程状态:(0:制单;1:送审;2:终审) */
53
+ zccfStat: number;
54
+ /** 单据类型 */
55
+ zccfType: number;
56
+ /** 单据编号 */
57
+ zccfCode: string;
58
+ /** 待定 */
59
+ zccfName: string;
60
+ /** 申请用途 */
61
+ zccfUses: string;
62
+ /** 备注说明 */
63
+ zccfMemo: string;
64
+ /** 拆分数量 */
65
+ zccfSize: number;
66
+ /** 拆分原值 */
67
+ zccfZcyz: number;
68
+ /** 单位名称 */
69
+ unitText: string;
70
+ /** 资产编码 */
71
+ cardCode: string;
72
+ /** 资产名称 */
73
+ cardName: string;
74
+ /** 资产数量 */
75
+ cardSize: number;
76
+ /** 资产原值 */
77
+ cardZcyz: number;
78
+ /** 资产净值 */
79
+ zccfZcjz: number;
80
+ /** 累计折旧 */
81
+ zccfLjzj: number;
45
82
 
83
+ lastDate: number;
84
+ lastTime: number;
85
+ flowMain: number;
86
+ flowNode: number;
87
+ flowStat: number;
88
+ didFirst: number;
89
+ lastMemo: string;
90
+ userName: string;
91
+ userGUID: string;
92
+
93
+ /**
94
+ * 资产卡片,拆分明细中新增了几条明细,就复制几条原资产卡片进来,然后修改这里面的几条的资产数量和资产原值
95
+ */
96
+ listParentBill: ICardMainResponse[];
97
+ listChildBill: ICardMainResponse[];
46
98
  listPath: IPathResponse[];
47
99
  }
48
100
 
@@ -85,6 +137,92 @@ export class TZccfResponse implements IZccfResponse {
85
137
  flowUser: string = "";
86
138
  cardMain: number = 0;
87
139
  cardExid: number = 0;
140
+ valueNew: number = 0;
141
+ zccfDate: number = 0;
142
+ zccfStat: number = 0;
143
+ zccfType: number = 0;
144
+ zccfCode: string = "";
145
+ zccfName: string = "";
146
+ zccfUses: string = "";
147
+ zccfMemo: string = "";
148
+ /** 拆分数量 */
149
+ zccfSize: number = 0;
150
+ /** 拆分原值 */
151
+ zccfZcyz: number = 0;
152
+
153
+ unitText: string = "";
154
+ cardCode: string = "";
155
+ cardName: string = "";
156
+ cardSize: number = 0;
157
+ cardZcyz: number = 0;
158
+ /** 资产净值 */
159
+ zccfZcjz: number = 0;
160
+ /** 累计折旧 */
161
+ zccfLjzj: number = 0;
88
162
 
163
+ lastDate: number = 0;
164
+ lastTime: number = 0;
165
+ flowMain: number = 0;
166
+ flowNode: number = 0;
167
+ flowStat: number = 0;
168
+ didFirst: number = 0;
169
+ lastMemo: string = "";
170
+ userName: string = "";
171
+ userGUID: string = "";
172
+
173
+ listParentBill: ICardMainResponse[] = [];
174
+ listChildBill: ICardMainResponse[] = [];
89
175
  listPath: IPathResponse[] = [];
176
+
177
+ static toFlowData(zccf: TZccfResponse): TFlowDataResponse {
178
+ const result = new TFlowDataResponse();
179
+ result.whoBuild = zccf.whoBuild;
180
+ result.userIndx = zccf.userIndx;
181
+ result.flowMain = zccf.flowMain;
182
+ result.flowNode = zccf.flowNode;
183
+ result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_ZCCF_WAIT;
184
+ result.entityID = zccf.entityID;
185
+ result.billMain = zccf.zccfIndx;
186
+ result.billCode = zccf.zccfCode;
187
+ result.billMemo = zccf.zccfMemo;
188
+ result.createAt = zccf.createAt;
189
+ result.mastName = zccf.mastName;
190
+ result.createBy = zccf.createBy;
191
+ result.unitMain = zccf.unitMain;
192
+ result.deptMain = zccf.deptMain;
193
+ result.menuUUID = zccf.menuUUID;
194
+ result.flowStat = zccf.zccfStat;
195
+ return result;
196
+ }
197
+
198
+ static toFlowDatas(zccfs: TZccfResponse[]): TFlowDataResponse[] {
199
+ return zccfs.map((u) => this.toFlowData(u));
200
+ }
201
+
202
+ static toTravel(card: TZccfResponse): TCore.ISysTravelResponse {
203
+ const travel = new TCore.TSysTravelResponse();
204
+ travel.whoBuild = card.whoBuild;
205
+ travel.flowMain = card.flowMain;
206
+ travel.flowNode = card.flowNode;
207
+ travel.billUUID = card.entityID;
208
+ travel.billMain = card.zccfIndx;
209
+ travel.billCode = card.zccfCode;
210
+ travel.mastName = card.mastName;
211
+ travel.createBy = card.createBy;
212
+ travel.menuUUID = card.menuUUID;
213
+ return travel;
214
+ }
215
+
216
+ /** 转换成记录日志需要的数据(第一层,不包含菜单) */
217
+ static toTravelData(card?: TZccfResponse | TZccfResponse[]): TCore.ISysTravelResponse[] {
218
+ if (_.isNil(card)) {
219
+ return [];
220
+ }
221
+ if (_.isArray(card)) {
222
+ return card.map((u) => {
223
+ return this.toTravel(u);
224
+ });
225
+ }
226
+ return [this.toTravel(card)];
227
+ }
90
228
  }
@@ -1,4 +1,8 @@
1
+ import _ from "lodash";
2
+ import { Const, TCore } from "../..";
1
3
  import { IPathResponse } from "../core";
4
+ import { TFlowDataResponse } from "../flow";
5
+ import { ICardMainResponse } from "./ICardMainResponse";
2
6
 
3
7
  export interface IZcczResponse {
4
8
  whoBuild: number;
@@ -37,8 +41,50 @@ export interface IZcczResponse {
37
41
  flowUndo: number;
38
42
  flowText: string;
39
43
  flowUser: string;
44
+ /** 申请日期 */
45
+ zcczDate: number;
46
+ /** 流程状态:(0:制单;1:送审;2:终审) */
47
+ zcczStat: number;
48
+ /** 单据类型 */
49
+ zcczType: number;
50
+ /** 单据编号 */
51
+ zcczCode: string;
52
+ /** 待定 */
53
+ zcczName: string;
54
+ /** 申请用途 */
55
+ zcczUses: string;
56
+ /** 备注说明 */
57
+ zcczMemo: string;
40
58
 
59
+ /** 资产数量 */
60
+ zcczSize: number;
61
+ /** 资产原值 */
62
+ zcczZcyz: number;
63
+ /** 累计折旧 */
64
+ zcczLjzj: number;
65
+ /** 资产净值 */
66
+ zcczZcjz: number;
67
+
68
+ /** 单位名称 */
69
+ unitText: string;
70
+
71
+ lastDate: number;
72
+ lastTime: number;
73
+ flowMain: number;
74
+ flowNode: number;
75
+ flowStat: number;
76
+ didFirst: number;
77
+ lastMemo: string;
78
+ userName: string;
79
+ userGUID: string;
80
+
81
+ listCard: ICardMainResponse[];
41
82
  listPath: IPathResponse[];
83
+
84
+ /** 虚拟字段 */
85
+ cardIndx: ICardMainResponse[] | undefined;
86
+ validVal: boolean;
87
+ validMsg: string;
42
88
  }
43
89
 
44
90
  export class TZcczResponse implements IZcczResponse {
@@ -78,6 +124,94 @@ export class TZcczResponse implements IZcczResponse {
78
124
  flowUndo: number = 0;
79
125
  flowText: string = "";
80
126
  flowUser: string = "";
127
+ zcczDate: number = 0;
128
+ zcczStat: number = 0;
129
+ zcczType: number = 0;
130
+ zcczCode: string = "";
131
+ zcczName: string = "";
132
+ zcczUses: string = "";
133
+ zcczMemo: string = "";
134
+
135
+ zcczSize: number = 0;
136
+ zcczZcyz: number = 0;
137
+ zcczLjzj: number = 0;
138
+ zcczZcjz: number = 0;
139
+
140
+ unitText: string = "";
81
141
 
142
+ lastDate: number = 0;
143
+ lastTime: number = 0;
144
+ flowMain: number = 0;
145
+ flowNode: number = 0;
146
+ flowStat: number = 0;
147
+ didFirst: number = 0;
148
+ lastMemo: string = "";
149
+ userName: string = "";
150
+ userGUID: string = "";
151
+
152
+ /** 处置卡片 */
153
+ listCard: ICardMainResponse[] = [];
82
154
  listPath: IPathResponse[] = [];
155
+ /** 虚拟字段 */
156
+ cardIndx: ICardMainResponse[] | undefined = undefined;
157
+ validVal: boolean = false;
158
+ validMsg: string = "";
159
+
160
+ static toFlowData(zccz: TZcczResponse): TFlowDataResponse {
161
+ const result = new TFlowDataResponse();
162
+ result.whoBuild = zccz.whoBuild;
163
+ result.userIndx = zccz.userIndx;
164
+ result.flowMain = zccz.flowMain;
165
+ result.flowNode = zccz.flowNode;
166
+ result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_ZCCZ_WAIT;
167
+ result.entityID = zccz.entityID;
168
+ result.billMain = zccz.zcczIndx;
169
+ result.billCode = zccz.zcczCode;
170
+ result.billMemo = zccz.zcczMemo;
171
+ result.createAt = zccz.createAt;
172
+ result.mastName = zccz.mastName;
173
+ result.createBy = zccz.createBy;
174
+ result.unitMain = zccz.unitMain;
175
+ result.deptMain = zccz.deptMain;
176
+ result.menuUUID = zccz.menuUUID;
177
+ result.flowStat = zccz.zcczStat;
178
+ return result;
179
+ }
180
+
181
+ constructor(card: any = {}) {
182
+ if (card) {
183
+ _.merge(this, _.pick(card, Object.keys(this)));
184
+ }
185
+ }
186
+
187
+ static toFlowDatas(zcczs: TZcczResponse[]): TFlowDataResponse[] {
188
+ return zcczs.map((u) => this.toFlowData(u));
189
+ }
190
+
191
+ static toTravel(card: TZcczResponse): TCore.ISysTravelResponse {
192
+ const travel = new TCore.TSysTravelResponse();
193
+ travel.whoBuild = card.whoBuild;
194
+ travel.flowMain = card.flowMain;
195
+ travel.flowNode = card.flowNode;
196
+ travel.billUUID = card.entityID;
197
+ travel.billMain = card.zcczIndx;
198
+ travel.billCode = card.zcczCode;
199
+ travel.mastName = card.mastName;
200
+ travel.createBy = card.createBy;
201
+ travel.menuUUID = card.menuUUID;
202
+ return travel;
203
+ }
204
+
205
+ /** 转换成记录日志需要的数据(第一层,不包含菜单) */
206
+ static toTravelData(card?: TZcczResponse | TZcczResponse[]): TCore.ISysTravelResponse[] {
207
+ if (_.isNil(card)) {
208
+ return [];
209
+ }
210
+ if (_.isArray(card)) {
211
+ return card.map((u) => {
212
+ return this.toTravel(u);
213
+ });
214
+ }
215
+ return [this.toTravel(card)];
216
+ }
83
217
  }
@@ -1,4 +1,8 @@
1
+ import { Const, TCore } from "../..";
1
2
  import { IPathResponse } from "../core";
3
+ import { TFlowDataResponse } from "../flow";
4
+ import { ICardMainResponse } from "./ICardMainResponse";
5
+ import _ from "lodash";
2
6
 
3
7
  export interface IZcdbResponse {
4
8
  whoBuild: number;
@@ -34,10 +38,62 @@ export interface IZcdbResponse {
34
38
  deptMain: number;
35
39
  sqyhText: string;
36
40
  sqbmText: string;
41
+ /** 调入单位.标识 */
42
+ unitFrom: number;
43
+ /** 调入单位使用部门.标识(待定) */
44
+ deptFrom: number;
45
+ /** 调入单位存放地点.标识(待定) */
46
+ laidFrom: number;
47
+ /** 调入单位.名称 系统内;根据unitFrom获取;系统外:自行填写 */
48
+ unitFromText: string;
49
+ /** 调入单位使用部门.名称(待定) */
50
+ deptFromText: string;
51
+ /** 调入单位存放地点.名称(待定) */
52
+ laidFromText: string;
37
53
  flowUndo: number;
38
54
  flowText: string;
39
55
  flowUser: string;
56
+ /** 申请日期 */
57
+ zcdbDate: number;
58
+ /** 流程状态:(0:制单;1:送审;2:终审) */
59
+ zcdbStat: number;
60
+ /** 单据类型:0:系统内;1:系统外 */
61
+ zcdbType: number;
62
+ /** 单据编号 */
63
+ zcdbCode: string;
64
+ /** 待定 */
65
+ zcdbName: string;
66
+ /** 申请用途 */
67
+ zcdbUses: string;
68
+ /** 备注说明 */
69
+ zcdbMemo: string;
70
+ /** 资产数量 */
71
+ zcdbSize: number;
72
+ /** 资产原值 */
73
+ zcdbZcyz: number;
74
+ /** 累计折旧 */
75
+ zcdbLjzj: number;
76
+ /** 资产净值 */
77
+ zcdbZcjz: number;
40
78
 
79
+ /** 1:已确认;0:未确认*/
80
+ mrokStat: number;
81
+
82
+ /** 单位名称 */
83
+ unitText: string;
84
+
85
+ lastDate: number;
86
+ lastTime: number;
87
+ flowMain: number;
88
+ flowNode: number;
89
+ flowStat: number;
90
+ didFirst: number;
91
+ lastMemo: string;
92
+ userName: string;
93
+ userGUID: string;
94
+
95
+ listBeforeBill: ICardMainResponse[];
96
+ listAfterBill: ICardMainResponse[];
41
97
  listPath: IPathResponse[];
42
98
  }
43
99
 
@@ -75,9 +131,102 @@ export class TZcdbResponse implements IZcdbResponse {
75
131
  deptMain: number = 0;
76
132
  sqyhText: string = "";
77
133
  sqbmText: string = "";
134
+ unitFrom: number = 0;
135
+ deptFrom: number = 0;
136
+ laidFrom: number = 0;
137
+ unitFromText: string = "";
138
+ deptFromText: string = "";
139
+ laidFromText: string = "";
78
140
  flowUndo: number = 0;
79
141
  flowText: string = "";
80
142
  flowUser: string = "";
143
+ zcdbDate: number = 0;
144
+ zcdbStat: number = 0;
145
+ zcdbType: number = 0;
146
+ zcdbCode: string = "";
147
+ zcdbName: string = "";
148
+ zcdbUses: string = "";
149
+ zcdbMemo: string = "";
150
+
151
+ zcdbSize: number = 0;
152
+ zcdbZcyz: number = 0;
153
+ zcdbLjzj: number = 0;
154
+ zcdbZcjz: number = 0;
155
+
156
+ unitText: string = "";
157
+
158
+ lastDate: number = 0;
159
+ lastTime: number = 0;
160
+ flowMain: number = 0;
161
+ flowNode: number = 0;
162
+ flowStat: number = 0;
163
+ didFirst: number = 0;
164
+ mrokStat: number = 0;
165
+ lastMemo: string = "";
166
+ userName: string = "";
167
+ userGUID: string = "";
81
168
 
169
+ /** 调出卡片 */
170
+ listBeforeBill: ICardMainResponse[] = [];
171
+ /** 调入卡片 */
172
+ listAfterBill: ICardMainResponse[] = [];
82
173
  listPath: IPathResponse[] = [];
174
+
175
+ static toFlowData(zcdb: TZcdbResponse): TFlowDataResponse {
176
+ const result = new TFlowDataResponse();
177
+ result.whoBuild = zcdb.whoBuild;
178
+ result.userIndx = zcdb.userIndx;
179
+ result.flowMain = zcdb.flowMain;
180
+ result.flowNode = zcdb.flowNode;
181
+ result.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_ZCDB_WAIT;
182
+ result.entityID = zcdb.entityID;
183
+ result.billMain = zcdb.zcdbIndx;
184
+ result.billCode = zcdb.zcdbCode;
185
+ result.billMemo = zcdb.zcdbMemo;
186
+ result.createAt = zcdb.createAt;
187
+ result.mastName = zcdb.mastName;
188
+ result.createBy = zcdb.createBy;
189
+ result.unitMain = zcdb.unitMain;
190
+ result.deptMain = zcdb.deptMain;
191
+ result.menuUUID = zcdb.menuUUID;
192
+ result.flowStat = zcdb.zcdbStat;
193
+ return result;
194
+ }
195
+
196
+ constructor(card: Partial<IZcdbResponse> = {}) {
197
+ if (card) {
198
+ _.merge(this, _.pick(card, Object.keys(this)));
199
+ }
200
+ }
201
+
202
+ static toFlowDatas(zcdbs: TZcdbResponse[]): TFlowDataResponse[] {
203
+ return zcdbs.map((u) => this.toFlowData(u));
204
+ }
205
+
206
+ static toTravel(card: TZcdbResponse): TCore.ISysTravelResponse {
207
+ const travel = new TCore.TSysTravelResponse();
208
+ travel.whoBuild = card.whoBuild;
209
+ travel.flowMain = card.flowMain;
210
+ travel.flowNode = card.flowNode;
211
+ travel.billUUID = card.entityID;
212
+ travel.billMain = card.zcdbIndx;
213
+ travel.billCode = card.zcdbCode;
214
+ travel.mastName = card.mastName;
215
+ travel.createBy = card.createBy;
216
+ travel.menuUUID = card.menuUUID;
217
+ return travel;
218
+ }
219
+
220
+ /** 转换成记录日志需要的数据(第一层,不包含菜单) */
221
+ static toTravelData(card?: TZcdbResponse | TZcdbResponse[]): TCore.ISysTravelResponse[] {
222
+ if (_.isNil(card)) {
223
+ return [];
224
+ }
225
+ if (_.isArray(card)) {
226
+ return card.map((u) => {
227
+ return this.toTravel(u);
228
+ });
229
+ }
230
+ return [this.toTravel(card)];
231
+ }
83
232
  }