@ningboyz/types 1.3.65 → 1.3.66

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.3.65",
4
+ "version": "1.3.66",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,5 +1,4 @@
1
1
  import _ from "lodash";
2
- import {IHznjZblrItemResponse} from "./IHznjZblrItemResponse.ts";
3
2
 
4
3
  export interface IHznjZblyItemResponse {
5
4
  whoBuild: number;
@@ -92,7 +91,7 @@ export class THznjZblyItemResponse implements IHznjZblyItemResponse {
92
91
  /**样品编号 */
93
92
  xmsyCode: string = "";
94
93
 
95
- constructor(data: Partial<IHznjZblrItemResponse> = {}) {
94
+ constructor(data: Partial<IHznjZblyItemResponse> = {}) {
96
95
  if (data) {
97
96
  _.merge(this, _.pick(data, Object.keys(this)));
98
97
  }
@@ -40,6 +40,8 @@ export interface IHznjZbthResponse {
40
40
  flowUndo: number;
41
41
  flowUser: string;
42
42
  flowText: string;
43
+ wContact: string;
44
+ dContact: string;
43
45
  /**申请日期 */
44
46
  zbthDate: number;
45
47
  /**流程状态:(0:制单;1:送审;2:终审) */
@@ -54,6 +56,10 @@ export interface IHznjZbthResponse {
54
56
  zbthUses: string;
55
57
  /**备注说明 */
56
58
  zbthMemo: string;
59
+ /**样品类型 */
60
+ yplxMain: number;
61
+ /**样品类型 */
62
+ yplxText: string;
57
63
 
58
64
  coverURL: string;
59
65
  touchURL: string;
@@ -99,6 +105,8 @@ export class THznjZbthResponse implements IHznjZbthResponse {
99
105
  mastName: string = "";
100
106
  mastGUID: string = "";
101
107
  createBy: string = "";
108
+ wContact: string = "";
109
+ dContact: string = "";
102
110
  createAt: number = 0;
103
111
  updateBy: string = "";
104
112
  updateAt: number = 0;
@@ -123,6 +131,8 @@ export class THznjZbthResponse implements IHznjZbthResponse {
123
131
  zbthName: string = "";
124
132
  zbthUses: string = "";
125
133
  zbthMemo: string = "";
134
+ yplxMain: number = 0;
135
+ yplxText: string = "";
126
136
 
127
137
  coverURL: string = "";
128
138
  touchURL: string = "";
@@ -1,10 +1,21 @@
1
1
  import { IWtuiColWidthResponse, TWtuiColWidthResponse } from "./IWtuiColWidthResponse";
2
+ import _ from "lodash";
2
3
 
3
- interface ICnfgPara {
4
+ export interface ICnfgPara {
4
5
  pzptListBGColor: string; //凭证平台列表.表头背景色
5
6
  pzptp1BGColor: string; //凭证平台列表.分录模式凭证所在行背景色
6
7
  pzptBGColor: string; //凭证平台.录入界面.表头背景色
7
8
  pzptEachBGColor: string; //凭证平台.录入界面.辅助核算.表头背景色
9
+ /** 警告提示框等待时间 秒 */
10
+ warningWaitTime: number;
11
+ /** 警告提示框是否可关闭 */
12
+ warningCanClose: boolean;
13
+ /** 错误提示框等待时间 秒 */
14
+ errorWaitTime: number;
15
+ /** 错误提示框是否可关闭 */
16
+ errorCanClose: boolean;
17
+ /** 主题颜色 */
18
+ themeColor: string;
8
19
  }
9
20
 
10
21
  export class TCnfgPara implements ICnfgPara {
@@ -12,6 +23,11 @@ export class TCnfgPara implements ICnfgPara {
12
23
  pzptp1BGColor: string = "";
13
24
  pzptBGColor: string = "";
14
25
  pzptEachBGColor: string = "";
26
+ warningWaitTime: number = 10000;
27
+ warningCanClose: boolean = false;
28
+ errorWaitTime: number = 10000;
29
+ errorCanClose: boolean = false;
30
+ themeColor: string = "#2969e4";
15
31
  }
16
32
 
17
33
  export interface IWtuiUserCnfgResponse {
@@ -97,4 +113,18 @@ export class TWtuiUserCnfgResponse implements IWtuiUserCnfgResponse {
97
113
  billMain: number = 0;
98
114
  colWidth: TWtuiColWidthResponse[] = [];
99
115
  cnfg: TCnfgPara | undefined = undefined;
116
+
117
+ public static parseJson(dictPara: string) {
118
+ const defaultDictPara = new TCnfgPara();
119
+ if (_.isEmpty(dictPara)) {
120
+ return defaultDictPara;
121
+ }
122
+ try {
123
+ const obj = JSON.parse(dictPara) as TCnfgPara;
124
+ return _.merge(defaultDictPara, obj);
125
+ } catch (e) {}
126
+ return defaultDictPara;
127
+ }
100
128
  }
129
+
130
+