@ningboyz/types 1.5.129 → 1.5.131
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
|
@@ -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
|
|
|
@@ -73,6 +75,8 @@ export interface ITablMainResponse {
|
|
|
73
75
|
ERORMEMO: string;
|
|
74
76
|
usesAuto?: number;
|
|
75
77
|
listData: Array<ITablDataResponse>;
|
|
78
|
+
listPath: TCore.IPathResponse[];
|
|
79
|
+
listWZK8: IWzpzK8kmResponse[];
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
export class TTablMainResponse implements ITablMainResponse {
|
|
@@ -146,10 +150,12 @@ export class TTablMainResponse implements ITablMainResponse {
|
|
|
146
150
|
unitTypeText: string = "";
|
|
147
151
|
taskMain: number = 0;
|
|
148
152
|
listData: Array<ITablDataResponse> = [];
|
|
153
|
+
listPath: TCore.IPathResponse[] = [];
|
|
154
|
+
listWZK8: IWzpzK8kmResponse[] = [];
|
|
149
155
|
|
|
150
|
-
constructor(
|
|
151
|
-
if (
|
|
152
|
-
_.merge(this, _.pick(
|
|
156
|
+
constructor(data: keyof ITablMainResponse | object) {
|
|
157
|
+
if (data) {
|
|
158
|
+
_.merge(this, _.pick(data, Object.keys(this)));
|
|
153
159
|
}
|
|
154
160
|
}
|
|
155
161
|
|
|
@@ -157,8 +163,10 @@ export class TTablMainResponse implements ITablMainResponse {
|
|
|
157
163
|
_.merge(slef, _.pick(tabl, Object.keys(slef)));
|
|
158
164
|
};
|
|
159
165
|
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
static toFlowDatas(list: ITablMainResponse[]): TFlowDataResponse[] {
|
|
169
|
+
return list.map((u) => this.toFlowData(u));
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
//#进入流程
|