@ningboyz/types 1.2.6 → 1.2.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -0,0 +1,36 @@
1
+ import _ from "lodash";
2
+ import { DConfigProperty, DFormType, IConfigProperty } from "../decorators";
3
+ import { DConfigManager } from "../decorators/DConfigManager";
4
+
5
+ export interface IDictResponseConf {
6
+ usesManualMode: number;
7
+ }
8
+
9
+ const coreDictResponseConf_id = "coreDictResponseConf_id_d372a7b9f01c423da68a2133888e335a";
10
+
11
+ export class TDictResponseConf implements IDictResponseConf {
12
+ public static id: string = coreDictResponseConf_id;
13
+ listCnfg: IConfigProperty[] = [];
14
+ constructor(typePara?: string) {
15
+ if (!_.isNil(typePara) && !_.isEmpty(typePara)) {
16
+ try {
17
+ const obj = JSON.parse(typePara) as TDictResponseConf;
18
+ Object.assign(this, obj);
19
+ } catch (e) {}
20
+ }
21
+ const listCnfg = DConfigManager.get(TDictResponseConf.id);
22
+ this.listCnfg = listCnfg;
23
+ }
24
+
25
+ @DConfigProperty({
26
+ cnfgId: coreDictResponseConf_id,
27
+ cnfgName: "开启手动模式",
28
+ cnfgField: "usesManualMode",
29
+ formType: DFormType.select,
30
+ dataSource: [
31
+ { id: 0, label: "关闭" },
32
+ { id: 1, label: "开启" }
33
+ ]
34
+ })
35
+ usesManualMode: number = 0;
36
+ }
@@ -1,6 +1,8 @@
1
1
  export enum DFormType {
2
2
  select = "select",
3
- input = "input"
3
+ input = "input",
4
+ //附件分类选择
5
+ modalPathType = "modalPathType"
4
6
  }
5
7
 
6
8
  export interface IConfigDataSource {
@@ -20,6 +22,10 @@ export interface IConfigProperty {
20
22
  formType: DFormType;
21
23
  //是否多选, 默认单选
22
24
  multiple?: boolean;
25
+ //配置字段类型为modal选择时,传入的id
26
+ formTypeIndex?: number;
27
+ //是否使用远程数据源
28
+ remote?: boolean;
23
29
  //本地数据源
24
30
  dataSource: IConfigDataSource[];
25
31
  }
@@ -19,6 +19,8 @@ export interface IGzjgMainResponseGzjgPara {
19
19
  typeName: string;
20
20
  compare: ICompare;
21
21
  uploadMode: string; //导入模式excel/txt
22
+
23
+ iswy: number | undefined;
22
24
  }
23
25
 
24
26
  export class TGzjgMainResponseGzjgPara implements IGzjgMainResponseGzjgPara {
@@ -31,6 +33,8 @@ export class TGzjgMainResponseGzjgPara implements IGzjgMainResponseGzjgPara {
31
33
  typeName: string = "";
32
34
  compare: ICompare = {};
33
35
  uploadMode: string = "";
36
+
37
+ iswy: number | undefined = undefined;
34
38
  }
35
39
 
36
40
  // #工资结构
@@ -259,7 +263,7 @@ export class TGzjgMainResponse implements IGzjgMainResponse {
259
263
  try {
260
264
  const obj = JSON.parse(gzjgPara) as IGzjgMainResponseGzjgPara;
261
265
  return _.merge(defaultGzjgPara, obj);
262
- } catch (e) {}
266
+ } catch (e) { }
263
267
  return defaultGzjgPara;
264
268
  }
265
269
  }
package/src/load/index.ts CHANGED
@@ -1,24 +1,28 @@
1
+ import { ILoadDataResponse, TLoadDataResponse } from "../load/ILoadDataResponse";
2
+ import { ILoadLineResponse, TLoadLineResponse } from "../load/ILoadLineResponse";
3
+ import { ILoadMainResponse, TLoadMainResponse } from "../load/ILoadMainResponse";
4
+ import { ILoadCellResponse, TLoadCellResponse } from "./ILoadCellResponse";
5
+ import { ILoadZydwResponse, TLoadZydwResponse } from "./ILoadZydwResponse";
1
6
  import { IYqdwResponse, TYqdwResponse } from "./IYqdwResponse";
2
7
  import { IYqkbResponse, TYqkbResponse } from "./IYqkbResponse";
3
8
  import { IYqkmResponse, TYqkmResponse } from "./IYqkmResponse";
4
- import { ILoadZydwResponse, TLoadZydwResponse } from "./ILoadZydwResponse";
5
- import { ILoadMainResponse, TLoadMainResponse } from "../load/ILoadMainResponse";
6
- import { ILoadDataResponse, TLoadDataResponse } from "../load/ILoadDataResponse";
7
- import { ILoadLineResponse, TLoadLineResponse } from "../load/ILoadLineResponse";
8
9
 
9
10
  export {
10
- type IYqdwResponse,
11
- type IYqkbResponse,
12
- type IYqkmResponse,
13
- type ILoadZydwResponse,
14
- type ILoadMainResponse,
15
- type ILoadDataResponse,
16
- type ILoadLineResponse,
11
+ TLoadCellResponse,
12
+ TLoadDataResponse,
13
+ TLoadLineResponse,
14
+ TLoadMainResponse,
15
+ TLoadZydwResponse,
17
16
  TYqdwResponse,
18
17
  TYqkbResponse,
19
18
  TYqkmResponse,
20
- TLoadZydwResponse,
21
- TLoadMainResponse,
22
- TLoadDataResponse,
23
- TLoadLineResponse
19
+ type ILoadCellResponse,
20
+ type ILoadDataResponse,
21
+ type ILoadLineResponse,
22
+ type ILoadMainResponse,
23
+ type ILoadZydwResponse,
24
+ type IYqdwResponse,
25
+ type IYqkbResponse,
26
+ type IYqkmResponse
24
27
  };
28
+