@ningboyz/types 1.4.26 → 1.4.28

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.4.26",
4
+ "version": "1.4.28",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,6 +1,7 @@
1
1
  import { TCore } from "../index.ts";
2
2
  import _ from "lodash";
3
3
  import { TWithEXPDS, TWithMYOA, WithEXPDS, WithMYOA } from "./IUserResponse.ts";
4
+ import { IPathResponsePathPara, TPathResponsePathPara } from "./IPathResponsePartPara.ts";
4
5
 
5
6
  export interface IPartResponse {
6
7
  whoBuild: number;
@@ -30,6 +31,7 @@ export interface IPartResponse {
30
31
  entityID: string;
31
32
  partMemo: string;
32
33
  withPara: string;
34
+ withParaConv: IPathResponsePathPara;
33
35
  usesBbhz: number;
34
36
  usesSxhx: number;
35
37
  queuesBy: number;
@@ -77,6 +79,7 @@ export class TPartResponse implements IPartResponse {
77
79
  entityID: string = "";
78
80
  partMemo: string = "";
79
81
  withPara: string = "";
82
+ withParaConv: IPathResponsePathPara = new TPathResponsePathPara();
80
83
  usesBbhz: number = 0;
81
84
  usesSxhx: number = 0;
82
85
  queuesBy: number = 0;
@@ -91,6 +94,18 @@ export class TPartResponse implements IPartResponse {
91
94
  listUserWhenExpd: number = 0;
92
95
  asLeaderWhenMYOA: number = 0;
93
96
 
97
+ static parseJson(partPara: string) {
98
+ const defaultPathPara = new TPathResponsePathPara();
99
+ if (_.isEmpty(partPara)) {
100
+ return defaultPathPara;
101
+ }
102
+ try {
103
+ const obj = JSON.parse(partPara) as TPathResponsePathPara;
104
+ return _.merge(defaultPathPara, obj);
105
+ } catch (e) {}
106
+ return defaultPathPara;
107
+ }
108
+
94
109
  static toTravel(part: IPartResponse, buttonType: string): TCore.ISysTravelResponse {
95
110
  const travel = new TCore.TSysTravelResponse();
96
111
  travel.whoBuild = part.whoBuild;
@@ -0,0 +1,17 @@
1
+ export interface IPathResponsePathPara {
2
+ //会议室预定-统计查询,增加管理员权限,可以看到全部会议室统计情况。
3
+ asLeaderWhenMeetRoom: number;
4
+ //用车管理-用车统计配置增加管理员权限,可以查看全部用车情况。
5
+ asLeaderWhenUseCar: number;
6
+ //用印统计,配置增加管理员权限,可以看到全部用印情况。
7
+ asLeaderWhenSeal: number;
8
+ }
9
+
10
+ export class TPathResponsePathPara {
11
+ //会议室预定-统计查询,增加管理员权限,可以看到全部会议室统计情况。
12
+ asLeaderWhenMeetRoom: number = 0;
13
+ //用车管理-用车统计配置增加管理员权限,可以查看全部用车情况。
14
+ asLeaderWhenUseCar: number = 0;
15
+ //用印统计,配置增加管理员权限,可以看到全部用印情况。
16
+ asLeaderWhenSeal: number = 0;
17
+ }
@@ -63,6 +63,10 @@ export interface IHznkXmysResponse {
63
63
  ysxqDate: number;
64
64
  /**验收结果 */
65
65
  typeText: string;
66
+ /**项目层级ID */
67
+ baseLevl: number;
68
+ /**验收结果ID */
69
+ ysxqType: number;
66
70
 
67
71
  coverURL: string;
68
72
  touchURL: string;
@@ -149,6 +153,10 @@ export class THznkXmysResponse implements IHznkXmysResponse {
149
153
  ysxqDate: number = 0;
150
154
  /**验收结果 */
151
155
  typeText: string = "";
156
+ /**项目层级ID */
157
+ baseLevl: number = 0;
158
+ /**验收结果ID */
159
+ ysxqType: number = 0;
152
160
 
153
161
  lastDate: number = 0;
154
162
  lastTime: number = 0;
@@ -59,6 +59,8 @@ export interface IHznkYssqResponse {
59
59
  zzdwText: string;
60
60
  /**申请验收时间 */
61
61
  ysxqDate: number;
62
+ /**项目层级ID */
63
+ baseLevl: number;
62
64
 
63
65
  coverURL: string;
64
66
  touchURL: string;
@@ -135,6 +137,8 @@ export class THznkYssqResponse implements IHznkYssqResponse {
135
137
  zzdwText: string = "";
136
138
  /**申请验收时间 */
137
139
  ysxqDate: number = 0;
140
+ /**项目层级ID */
141
+ baseLevl: number = 0;
138
142
 
139
143
  coverURL: string = "";
140
144
  touchURL: string = "";