Przeglądaj źródła

fix(report): 新增新的枚举值和类型

lishihao 4 lat temu
rodzic
commit
28ab12ed0f
2 zmienionych plików z 47 dodań i 3 usunięć
  1. 0 2
      report/src/core/jpc_rte.ts
  2. 47 1
      report/src/interface/basic.ts

+ 0 - 2
report/src/core/jpc_rte.ts

@@ -123,7 +123,6 @@ const JE = {
         return rst;
     },
     getFieldValueArray: function (field: Fields, dataObj: IDataObj) {
-        console.log('===================getFieldValueArray')
         let rst = null;
         if (field.DataNodeName === 'NA') {
             if (!field.data_field) {
@@ -143,7 +142,6 @@ const JE = {
         return rst;
     },
     setFieldValueArray: function (field: Fields, dataObj: IDataObj, newArr: number[]) {
-        console.log('===================setFieldValueArray')
         if (newArr instanceof Array) {
             if (field.DataNodeName === 'NA') {
                 field.data_field = newArr;

+ 47 - 1
report/src/interface/basic.ts

@@ -351,7 +351,6 @@ export interface ICurrent_DATA {
     master_data: any[];
     master_data_ex: any[];
 }
-
 export interface ICustomizeCfg {
     fillZero: boolean;
     fonts: {
@@ -607,4 +606,51 @@ export interface IPretreatment {
 }
 export interface ISubFilters {
     [key: string]: any;
+}
+
+
+
+//报表用户信息的内容
+// 报表显示设置参数
+export interface IRptConfig{
+    fillZero: boolean;
+    fonts: {
+        CfgDispName: string;
+        FontBold: string;
+        FontHeight: string;
+        FontItalic: string;
+        FontUnderline: string;
+        ID: string;
+        Name: string;
+    }[];
+    isNarrow: boolean;
+    margins: IPosition;
+    showVerticalLine: boolean;
+}
+export interface RptTreeNode {
+    ID: string;
+    name: string;
+    icon: string;
+    children?: RptTreeNode[];
+    userId?: string;
+    flags?: {
+      constructSumType?: string | null;
+      taxType?: string | null;
+      auditType?: string | null;
+    };
+  }
+export interface IRptSchemeList{
+    ID:string;
+    name:string;
+    typeID:string;
+    typeName:string;
+    data:RptTreeNode[];
+
+}
+//报表设置参数
+export interface IRptCustomizeCfg {
+    userID?: string;
+    rptConfig:IRptConfig,
+    schemeData:IRptSchemeList[]
+   
 }