@ningboyz/types 1.5.130 → 1.5.132

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.5.130",
4
+ "version": "1.5.132",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -4,8 +4,10 @@ export const CONST_ITEM_TYPE_TO_文本域 = 2; // #备注
4
4
  export const CONST_ITEM_TYPE_TO_日期 = 3; // #日期
5
5
  export const CONST_ITEM_TYPE_TO_字典 = 4; // #字典
6
6
  export const CONST_ITEM_TYPE_TO_单选 = 5; // #单选
7
- export const CONST_ITEM_TYPE_TO_部门 = 6; // #单选
8
- export const CONST_ITEM_TYPE_TO_弹窗 = 7; // #单选
7
+ export const CONST_ITEM_TYPE_TO_部门 = 6; // #部门
8
+ export const CONST_ITEM_TYPE_TO_弹窗 = 7; // #弹窗
9
+ export const CONST_ITEM_TYPE_TO_单据状态 = 8; // #单据状态
10
+
9
11
  export const CONST_VALIDATE_TO_弹窗 = 1001; //弹窗
10
12
  export const CONST_MODAL_DOUBLE_TABLE_弹窗 = 1002; //表格弹窗
11
13
  export const CONST_IMAGE_UPLOAD_图片 = 1003; //图片上传
@@ -53,6 +53,8 @@ export interface IDictResponseDictPara {
53
53
  processingResult: boolean;
54
54
  /** 是否将pdf附件页面大小转换成A4 */
55
55
  usesResizePdf: boolean;
56
+ /** 是否锁数据,(可以用来判断不允许删除数据) */
57
+ locked: boolean;
56
58
  }
57
59
 
58
60
  export class TDictResponseDictPara implements IDictResponseDictPara {
@@ -97,6 +99,8 @@ export class TDictResponseDictPara implements IDictResponseDictPara {
97
99
  processingResult: boolean = false;
98
100
  /** 是否将pdf附件页面大小转换成A4 */
99
101
  usesResizePdf: boolean = false;
102
+ /** 是否锁数据,(可以用来判断不允许删除数据) */
103
+ locked: boolean = false;
100
104
  }
101
105
 
102
106
  export interface IFormFieldObj {
@@ -1,4 +1,6 @@
1
+ import { TCore } from "..";
1
2
  import { TFlowDataResponse } from "../flow";
3
+ import { IWzpzK8kmResponse } from "../wzpz";
2
4
  import type { ITablDataResponse } from "./ITablDataResponse";
3
5
  import _ from "lodash";
4
6
 
@@ -71,8 +73,11 @@ export interface ITablMainResponse {
71
73
  taskMain: number;
72
74
  unitTypeText: string;
73
75
  ERORMEMO: string;
76
+ userMain: number;
74
77
  usesAuto?: number;
75
78
  listData: Array<ITablDataResponse>;
79
+ listPath: TCore.IPathResponse[];
80
+ listWZK8: IWzpzK8kmResponse[];
76
81
  }
77
82
 
78
83
  export class TTablMainResponse implements ITablMainResponse {
@@ -114,7 +119,7 @@ export class TTablMainResponse implements ITablMainResponse {
114
119
  flowUndo: number = 0;
115
120
  handleBy: string = "";
116
121
  handleAt: number = 0;
117
-
122
+
118
123
  sourceDW: string = "";
119
124
  unitMain: number = 0;
120
125
  unitNamf: string = "";
@@ -145,11 +150,14 @@ export class TTablMainResponse implements ITablMainResponse {
145
150
  unitType: number = 0;
146
151
  unitTypeText: string = "";
147
152
  taskMain: number = 0;
153
+ userMain: number = 0;
148
154
  listData: Array<ITablDataResponse> = [];
155
+ listPath: TCore.IPathResponse[] = [];
156
+ listWZK8: IWzpzK8kmResponse[] = [];
149
157
 
150
- constructor(card: keyof ITablMainResponse | object) {
151
- if (card) {
152
- _.merge(this, _.pick(card, Object.keys(this)));
158
+ constructor(data: keyof ITablMainResponse | object) {
159
+ if (data) {
160
+ _.merge(this, _.pick(data, Object.keys(this)));
153
161
  }
154
162
  }
155
163
 
@@ -157,8 +165,10 @@ export class TTablMainResponse implements ITablMainResponse {
157
165
  _.merge(slef, _.pick(tabl, Object.keys(slef)));
158
166
  };
159
167
 
160
- static toFlowDatas(card: ITablMainResponse[]): TFlowDataResponse[] {
161
- return card.map((u) => this.toFlowData(u));
168
+
169
+
170
+ static toFlowDatas(list: ITablMainResponse[]): TFlowDataResponse[] {
171
+ return list.map((u) => this.toFlowData(u));
162
172
  }
163
173
 
164
174
  //#进入流程