@ningboyz/types 1.0.20 → 1.0.21
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.
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/flow/IFlowDataResponse.ts +159 -0
- package/src/flow/index.ts +4 -0
- package/src/hzcb/IHzcbRypqResponse.ts +22 -0
package/index.ts
CHANGED
|
@@ -26,7 +26,7 @@ import * as TYzcb from "./src/yzcb";
|
|
|
26
26
|
import * as TGzzd from "./src/gzzd";
|
|
27
27
|
import * as TZfsq from "./src/zfsq";
|
|
28
28
|
import * as TZfht from "./src/zfht";
|
|
29
|
-
import * as THzcb from "./src/
|
|
29
|
+
import * as THzcb from "./src/hzcb";
|
|
30
30
|
import * as TTake from "./src/take";
|
|
31
31
|
import * as TExpd from "./src/expd";
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export interface IFlowDataResponse {
|
|
2
|
+
whoBuild: number; //#硬件实例
|
|
3
|
+
userIndx: number; //#租户实例
|
|
4
|
+
|
|
5
|
+
flowMain: number; //#审核流程
|
|
6
|
+
flowNode: number; //#审核节点
|
|
7
|
+
partText: string; //#角色名称
|
|
8
|
+
nodeName: string; //#节点名称
|
|
9
|
+
|
|
10
|
+
nextNode: number; //#指定节点:/flow/tflow/nextnode
|
|
11
|
+
undoFlow: number; //#退出流程{1:退回制单}
|
|
12
|
+
undoNode: number; //#退回节点:/flow/tflow/undonode
|
|
13
|
+
|
|
14
|
+
menuUUID: string; //#单据类型
|
|
15
|
+
entityID: string; //#单据实例
|
|
16
|
+
billMain: number; //#单据实例
|
|
17
|
+
billCode: string; //#单据编号
|
|
18
|
+
billMemo: string; //#单据备注
|
|
19
|
+
billUses: string; //#申请用途
|
|
20
|
+
billStat: number; //#单据状态
|
|
21
|
+
ysxmText: string; //#预算项目
|
|
22
|
+
outMoney: number; //#申请金额
|
|
23
|
+
createAt: number; //#创建时间
|
|
24
|
+
mastName: string; //#制单用户(名称)
|
|
25
|
+
mobileID: string; //审核用户手机号码
|
|
26
|
+
createBy: string; //#制单用户(UUID)
|
|
27
|
+
|
|
28
|
+
coverURL: string;
|
|
29
|
+
dataStat: number;
|
|
30
|
+
didFirst: number;
|
|
31
|
+
flowStat: number;
|
|
32
|
+
lastDate: number;
|
|
33
|
+
lastTime: number;
|
|
34
|
+
tablFrom: string;
|
|
35
|
+
travelID: number;
|
|
36
|
+
|
|
37
|
+
unitFrom: string; //#单位编码(CODE)
|
|
38
|
+
unitMain: number; //#单位序号
|
|
39
|
+
|
|
40
|
+
deptFrom: string; //#部门编码(CODE)
|
|
41
|
+
deptMain: number; //#部门序号
|
|
42
|
+
|
|
43
|
+
userFrom: string; //#用户标识(UUID)
|
|
44
|
+
userMain: number; //#用户序号
|
|
45
|
+
|
|
46
|
+
nextNoti: string; //#通过消息
|
|
47
|
+
undoNoti: string; //#退回消息
|
|
48
|
+
userNoti: string; //#抄吿消息
|
|
49
|
+
notified: string; //#自定义消息类别(合采基);
|
|
50
|
+
|
|
51
|
+
didDoubt: number; //#是否存疑
|
|
52
|
+
doubtTxt: string; //#存疑理由
|
|
53
|
+
statusMC: string; //#附属信息&编制状态
|
|
54
|
+
touchURL: string; //#审核签名
|
|
55
|
+
|
|
56
|
+
todo4URL: string; //待办路径
|
|
57
|
+
todoLock: number;
|
|
58
|
+
doneWlzf: number; //网络支付
|
|
59
|
+
|
|
60
|
+
userName: string; //#受理用户(REAL)
|
|
61
|
+
userGUID: string; //#受理用户(REAL)
|
|
62
|
+
handleBy: string; //#受理用户(PREV)
|
|
63
|
+
dataDate: number; //#送审时间
|
|
64
|
+
dataTime: number; //#送审时间
|
|
65
|
+
lastMemo: string; //#最后信息
|
|
66
|
+
errorMsg: string; //#错误信息
|
|
67
|
+
breakOff: number; //1主动撤回 0退回
|
|
68
|
+
flowNodeName: string; //当前岗
|
|
69
|
+
fromNodeName: string; //从哪里来
|
|
70
|
+
statusBy: string; //
|
|
71
|
+
path4Web: string;
|
|
72
|
+
|
|
73
|
+
sourceND: number;
|
|
74
|
+
flowType: number;
|
|
75
|
+
flowWill: number;
|
|
76
|
+
dataFrom: number; //1手机端,0电脑端
|
|
77
|
+
flowTypeText: string;
|
|
78
|
+
nodePara: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class TFlowDataResponse implements IFlowDataResponse {
|
|
82
|
+
whoBuild: number = 0;
|
|
83
|
+
userIndx: number = 0;
|
|
84
|
+
|
|
85
|
+
flowMain: number = 0;
|
|
86
|
+
flowNode: number = 0;
|
|
87
|
+
partText: string = "";
|
|
88
|
+
nodeName: string = "";
|
|
89
|
+
|
|
90
|
+
nextNode: number = 0;
|
|
91
|
+
undoFlow: number = 0;
|
|
92
|
+
undoNode: number = 0;
|
|
93
|
+
|
|
94
|
+
menuUUID: string = "";
|
|
95
|
+
entityID: string = "";
|
|
96
|
+
billMain: number = 0;
|
|
97
|
+
billCode: string = "";
|
|
98
|
+
billMemo: string = "";
|
|
99
|
+
billUses: string = "";
|
|
100
|
+
billStat: number = 0;
|
|
101
|
+
ysxmText: string = "";
|
|
102
|
+
outMoney: number = 0;
|
|
103
|
+
createAt: number = 0;
|
|
104
|
+
mastName: string = "";
|
|
105
|
+
createBy: string = "";
|
|
106
|
+
mobileID: string = "";
|
|
107
|
+
coverURL: string = "";
|
|
108
|
+
dataStat: number = 0;
|
|
109
|
+
didFirst: number = 0;
|
|
110
|
+
flowStat: number = 0;
|
|
111
|
+
lastDate: number = 0;
|
|
112
|
+
lastTime: number = 0;
|
|
113
|
+
tablFrom: string = "";
|
|
114
|
+
travelID: number = 0;
|
|
115
|
+
|
|
116
|
+
unitFrom: string = "";
|
|
117
|
+
unitMain: number = 0;
|
|
118
|
+
|
|
119
|
+
deptFrom: string = "";
|
|
120
|
+
deptMain: number = 0;
|
|
121
|
+
|
|
122
|
+
userFrom: string = "";
|
|
123
|
+
userMain: number = 0;
|
|
124
|
+
|
|
125
|
+
nextNoti: string = "";
|
|
126
|
+
undoNoti: string = "";
|
|
127
|
+
userNoti: string = "";
|
|
128
|
+
notified: string = "";
|
|
129
|
+
|
|
130
|
+
didDoubt: number = 0;
|
|
131
|
+
doubtTxt: string = "";
|
|
132
|
+
statusMC: string = "";
|
|
133
|
+
touchURL: string = "";
|
|
134
|
+
|
|
135
|
+
todo4URL: string = "";
|
|
136
|
+
todoLock: number = 0;
|
|
137
|
+
doneWlzf: number = 0;
|
|
138
|
+
|
|
139
|
+
userName: string = "";
|
|
140
|
+
userGUID: string = "";
|
|
141
|
+
handleBy: string = "";
|
|
142
|
+
dataDate: number = 0;
|
|
143
|
+
dataTime: number = 0;
|
|
144
|
+
lastMemo: string = "";
|
|
145
|
+
errorMsg: string = "";
|
|
146
|
+
breakOff: number = 0;
|
|
147
|
+
flowNodeName: string = "";
|
|
148
|
+
fromNodeName: string = ""; //从哪里来
|
|
149
|
+
statusBy: string = "";
|
|
150
|
+
sourceND: number = 0;
|
|
151
|
+
path4Web: string = "";
|
|
152
|
+
|
|
153
|
+
flowType: number = 0;
|
|
154
|
+
flowWill: number = 0;
|
|
155
|
+
dataFrom: number = 0; //1手机端,0电脑端
|
|
156
|
+
flowTypeText: string = "";
|
|
157
|
+
|
|
158
|
+
nodePara: string = "";
|
|
159
|
+
}
|
package/src/flow/index.ts
CHANGED
|
@@ -4,15 +4,19 @@ import { IFlowNodeResponse, TFlowNodeResponse } from "./IFlowNodeResponse";
|
|
|
4
4
|
import { IFlowVoidResponse, TFlowVoidResponse } from "./IFlowVoidResponse";
|
|
5
5
|
import { IFlowTypeResponse, TFlowTypeResponse } from "./IFlowTypeResponse";
|
|
6
6
|
import { IFlowCnfgResponse, TFlowCnfgResponse } from "./IFlowCnfgResponse";
|
|
7
|
+
import { IFlowDataResponse, TFlowDataResponse } from "./IFlowDataResponse";
|
|
7
8
|
|
|
8
9
|
export {
|
|
9
10
|
type IFlowCnfgResponse,
|
|
11
|
+
type IFlowDataResponse,
|
|
10
12
|
type IFlowDutyResponse,
|
|
11
13
|
type IFlowMainResponse,
|
|
12
14
|
type IFlowNodeResponse,
|
|
13
15
|
type IFlowTypeResponse,
|
|
14
16
|
type IFlowVoidResponse,
|
|
17
|
+
|
|
15
18
|
TFlowCnfgResponse,
|
|
19
|
+
TFlowDataResponse,
|
|
16
20
|
TFlowDutyResponse,
|
|
17
21
|
TFlowMainResponse,
|
|
18
22
|
TFlowNodeResponse,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Const } from "../..";
|
|
1
2
|
import { IDictResponse } from "../core/IDictResponse";
|
|
2
3
|
import { IPathResponse } from "../core/IPathResponse";
|
|
4
|
+
import { TFlowDataResponse } from "../flow";
|
|
3
5
|
|
|
4
6
|
export interface IHzcbRypqResponse {
|
|
5
7
|
whoBuild: number;
|
|
@@ -177,4 +179,24 @@ export class THzcbRypqResponse implements IHzcbRypqResponse {
|
|
|
177
179
|
|
|
178
180
|
listPath: IPathResponse[] = [];
|
|
179
181
|
listArea: IDictResponse[] = [];
|
|
182
|
+
|
|
183
|
+
static toFlowData(hzcb: THzcbRypqResponse): TFlowDataResponse {
|
|
184
|
+
const flowData = new TFlowDataResponse();
|
|
185
|
+
flowData.whoBuild = hzcb.whoBuild;
|
|
186
|
+
flowData.userIndx = hzcb.userIndx;
|
|
187
|
+
flowData.flowMain = hzcb.flowMain;
|
|
188
|
+
flowData.flowNode = hzcb.flowNode;
|
|
189
|
+
flowData.flowStat = hzcb.rypqStat;
|
|
190
|
+
flowData.notified = Const.Todo.CONST_STR_TODO_TYPE_TO_HZCB_WAIT;
|
|
191
|
+
flowData.entityID = hzcb.entityID;
|
|
192
|
+
flowData.billMain = hzcb.rypqIndx;
|
|
193
|
+
flowData.billCode = hzcb.rypqCode;
|
|
194
|
+
flowData.billMemo = hzcb.rypqMemo;
|
|
195
|
+
flowData.createAt = hzcb.createAt;
|
|
196
|
+
flowData.mastName = hzcb.mastName;
|
|
197
|
+
flowData.createBy = hzcb.createBy;
|
|
198
|
+
flowData.unitMain = hzcb.unitMain;
|
|
199
|
+
flowData.deptMain = hzcb.deptMain;
|
|
200
|
+
return flowData;
|
|
201
|
+
}
|
|
180
202
|
}
|