@ningboyz/types 1.2.15 → 1.2.16

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.16",
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;
@@ -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
  }