@ningboyz/types 1.2.15 → 1.2.17

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.15",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -0,0 +1,2 @@
1
+ export const CONST_GLPZ_MODE_手动对账 = 1;
2
+ export const CONST_GLPZ_MODE_自动对账 = 2;
@@ -24,9 +24,36 @@ import * as WldyItemType from "./const_wldy_item_type";
24
24
  import * as ConstModuleType from "./const_module";
25
25
  import * as Module from "./const_module";
26
26
  import * as Hznt from "./const_hznt";
27
+ import * as GlpzMode from "./const_glpz_mode";
27
28
 
28
- export { Align, Audit, Card, Clas, Cnfg, DataFrom, Elem, Flow, GamsMode, Gzlm, Module, Myoa, Part, Stat, TakeType, Todo, Travel, Type, TypeName, User, WldyItemType, WtuiItemType, Yiha, Zbzd };
29
+ export {
30
+ Align,
31
+ Audit,
32
+ Card,
33
+ Clas,
34
+ Cnfg,
35
+ DataFrom,
36
+ Elem,
37
+ Flow,
38
+ GamsMode,
39
+ Gzlm,
40
+ Module,
41
+ Myoa,
42
+ Part,
43
+ Stat,
44
+ TakeType,
45
+ Todo,
46
+ Travel,
47
+ Type,
48
+ TypeName,
49
+ User,
50
+ WldyItemType,
51
+ WtuiItemType,
52
+ Yiha,
53
+ Zbzd,
54
+ GlpzMode
55
+ };
29
56
 
30
57
  export type ModuleType = (typeof ConstModuleType)[keyof typeof ConstModuleType];
31
58
  export type HzntModuleType = (typeof Hznt)[keyof typeof Hznt];
32
- export type MyoaModuleType = (typeof Myoa)[keyof typeof Myoa];
59
+ export type MyoaModuleType = (typeof Myoa)[keyof typeof Myoa];
@@ -13,7 +13,7 @@ export interface IGzjgMainResponseGzjgPara {
13
13
  compare: ICompare;
14
14
  uploadMode: string; //导入模式excel/txt
15
15
 
16
- iswy: number | undefined;
16
+ iswy: number[] | undefined;
17
17
  }
18
18
 
19
19
  export class TGzjgMainResponseGzjgPara implements IGzjgMainResponseGzjgPara {
@@ -27,5 +27,5 @@ export class TGzjgMainResponseGzjgPara implements IGzjgMainResponseGzjgPara {
27
27
  compare: ICompare = {};
28
28
  uploadMode: string = "";
29
29
 
30
- iswy: number | undefined = undefined;
30
+ iswy: number[] | undefined = undefined;
31
31
  }
@@ -1,3 +1,5 @@
1
+ import { TYzht } from "../..";
2
+
1
3
  export interface IYzhtGlzdResponse {
2
4
  whoBuild: number;
3
5
  userIndx: number;
@@ -31,13 +33,24 @@ export class TYzhtGlzdResponse implements IYzhtGlzdResponse {
31
33
  dataFrom: number = 0;
32
34
  dataDate: number = 0;
33
35
  dataTime: number = 0;
34
- createBy: string = '';
36
+ createBy: string = "";
35
37
  createAt: number = 0;
36
- updateBy: string = '';
38
+ updateBy: string = "";
37
39
  updateAt: number = 0;
38
- deleteBy: string = '';
40
+ deleteBy: string = "";
39
41
  deleteAt: number = 0;
40
42
  queuesBy: number = 0;
41
43
  yzhtBill: number = 0;
42
44
  yzhtMain: number = 0;
45
+
46
+ public static toGlzd = (bill: TYzht.IYzhtBillResponse) => {
47
+ const glzd = new TYzht.TYzhtGlzdResponse();
48
+ glzd.yzhtMain = bill.yzhtMain;
49
+ glzd.yzhtBill = bill.billIndx;
50
+ return glzd;
51
+ };
52
+
53
+ public static toListGlzd = (listBill: TYzht.IYzhtBillResponse[]) => {
54
+ return listBill.map((bill) => this.toGlzd(bill));
55
+ };
43
56
  }