Browse Source

完成合并单元格的处理,更新前端页面的处理。

CodeLife Leno 4 months ago
parent
commit
90ad65bf4d

+ 1 - 1
Procedure/backend/project/src/main/java/com/sundata/product/rwa/util/html/ToHtml.java

@@ -480,7 +480,7 @@ public final class ToHtml {
                         attrs, content);
                 }else{
                     CellRangeAddress addresses = thisCellRange.get(0);
-                    out.format("    <td colspan=\"%d\" rowspan=\"%d\" class=%s %s>%s</td>%n",(addresses.getLastColumn()-addresses.getFirstColumn()),(addresses.getLastRow()-addresses.getFirstRow()), styleName(style),
+                    out.format("    <td colspan=\"%d\" rowspan=\"%d\" class=%s %s>%s</td>%n",(addresses.getLastColumn()-addresses.getFirstColumn()+1),(addresses.getLastRow()-addresses.getFirstRow()+1), styleName(style),
                         attrs, content);
                 }
 

+ 7 - 5
Procedure/frontend/projectb/config/config.ts

@@ -102,7 +102,7 @@ export default defineConfig({
 
    { path: '/product_list' , component: './rwa_calc_config_dataparam/product_list' },
    { path: '/1info_list' , component: './rwa_calc_config_002offbalanceprotype/info_list' },
-   
+
 
    { path: '/CustomerTable' , component: './project/dataquality/CustomerTable'},
    { path: '/CollateralTable' , component: './project/dataquality/CollateralTable'},
@@ -115,12 +115,14 @@ export default defineConfig({
    { path: '/InterbankDepositOrLendingTable' , component: './project/dataquality/InterbankDepositOrLendingTable'},
    { path: '/BondInvestment' , component: './project/dataquality/BondInvestment'},
    { path: '/NonStandardInvestment' , component: './project/dataquality/NonStandardInvestment'},
-   
-   { path: '/G4B_1' , component: './rdpMng/Template/Coding/components/G4B-1' },
+
+   { path: '/G4B_1' , component: './product/rwa/reportResult/G4B-1' },
+    { path: '/G4B_2' , component: './product/rwa/reportResult/G4B-2' },
+    { path: '/G4B_5' , component: './product/rwa/reportResult/G4B-5' },
    { path: '/GuaranteeTable' , component: './project/dataquality/GuaranteeTable' },
 
 
-   
+
   // 解析
   { path: '/rdp/rdpAnalysis/analTemplate/query/:prodCode', component: './rdpMng/Template/QueryList/queryList' },
   { path: '/rdp/rdpAnalysis/analTemplate/maintain/:prodCode', component: './rdpMng/Template/InfoMaintain/infoMaintain' },
@@ -191,7 +193,7 @@ export default defineConfig({
 
 
 
-  
+
   /**
   proxy: {
     '/api/': {

+ 18 - 0
Procedure/frontend/projectb/src/pages/product/report_form_config_reportcreater/reportFileShow.tsx

@@ -0,0 +1,18 @@
+import {
+  downloadReportFile,
+  ReportFileExportModel,
+} from '@/services/rwa/product/report_form_config_reportcreater/reportFile';
+import { SDButton, SDPage } from '@sundata/ui-frame';
+import { useState } from 'react';
+
+const reportFileShow = (model: ReportFileExportModel) => {
+  const dowloadFile = () => {
+    downloadReportFile(model);
+  };
+
+  const [htmlStr, setHtmlStr] = useState();
+
+  return <SDPage footer={[<SDButton onClick={dowloadFile}>导出文件</SDButton>]}>{htmlStr}</SDPage>;
+};
+
+export default reportFileShow;

+ 34 - 0
Procedure/frontend/projectb/src/pages/product/rwa/reportResult/G4B-1.tsx

@@ -0,0 +1,34 @@
+import { ProFormDatePicker, QueryFilter } from '@ant-design/pro-components';
+import { SDPage } from '@sundata/ui-frame';
+import React, { useRef, useState } from 'react';
+import {Button} from "antd";
+
+const g4b_1: React.FC<any> = () => {
+  const [visible, setVisible] = useState<boolean>(false); //弹窗是否显示
+  const [dataSource, setDataSource] = useState<any>();
+  const monthRef = useRef();
+
+  const downloadReportExcel = () => {};
+
+  const showHtml = () =>{
+    console.log(monthRef.current)
+  }
+
+
+  return (
+    <SDPage>
+      <QueryFilter
+        defaultCollapsed
+        split
+        optionRender={(searchConfig) => [
+          <Button key="submit" onClick={() => showHtml} type="primary">
+            查询
+          </Button>,
+        ]}
+      >
+        <ProFormDatePicker.Month dataFormat={'YYYYMM'} fieldRef={monthRef} label={'期次'} />
+      </QueryFilter>
+    </SDPage>
+  );
+};
+export default g4b_1;

+ 594 - 0
Procedure/frontend/projectb/src/pages/product/rwa/reportResult/G4B-2.tsx

@@ -0,0 +1,594 @@
+import { exportExcelModel, G4B1 } from '@/services/rwa/G4B_1';
+import { ProColumns, ProTable } from '@ant-design/pro-components';
+import { SDButton, SDLayout, SDModal, SDPage } from '@sundata/ui-frame';
+import Title from 'antd/es/typography/Title';
+import React, { useState } from 'react';
+
+type aaa = {
+  onChangeVisible(visible: boolean, type: string): unknown;
+  onChangeVisdible: (visible: boolean, type?: 'none' | 'raload') => void;
+};
+
+const g4b_2: React.FC<aaa> = (props: aaa) => {
+  const [visible, setVisible] = useState<boolean>(false); //弹窗是否显示
+  const [dataSource, setDataSource] = useState<any>();
+  var getColumnStyle = (record: any) => {
+    return <div style={{ background: 'yellow' }}>{record}</div>;
+  };
+
+  var formDataList = new Array<G4B1>();
+  const columns: ProColumns<G4B1>[] = [
+    {
+      title: <div style={{ width: 300 }}>项目/权重</div>,
+      dataIndex: [1, 2],
+      // align:'center',
+      search: false,
+      width: 300,
+      //  ellipsis: true,
+    },
+    {
+      title: '本期余额',
+      dataIndex: '',
+      // align:'center',
+      search: false,
+      width: 150,
+      ellipsis: true,
+      render: () => {
+        onclick = () => {
+          setVisible(true);
+        };
+        return true;
+      },
+    },
+    {
+      title: '各项减值准备',
+      dataIndex: '',
+      search: false,
+      width: 100,
+      // align:'center',
+    },
+    {
+      title: '风险暴露',
+      dataIndex: '',
+      search: false,
+      width: 100,
+      // align:'center'
+    },
+    {
+      title: '其中,资产管理产品风险暴露',
+      dataIndex: '',
+      search: false,
+      width: 100,
+      // align:'center'
+    },
+    {
+      title: '现金类资产',
+      dataIndex: 'aaa',
+      search: false,
+      // align:'center',
+      width: 300,
+
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '我国中央政府',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '中国人民银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '我国开发性金融机构和政策性银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '省级(自治区、直辖市)及计划单列市人民政府-一般债券',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '省级(自治区、直辖市)及计划单列市人民政府-专项债券',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '其他收入主要源于中央财政的公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '经金融监管总局认定的我国一般公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '金融资产管理公司为收购国有银行不良贷款而定向发行的债券',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '评级AA-以上(含)的国家和地区的中央政府和中央银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '评级AA-以下,A-(含)以上的国家和地区的中央政府和中央银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级A-以下,BBB-(含)以上的国家和地区的中央政府和中央银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级AA-(含)及以上国家和地区注册的公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级AA-以下,A-(含)以上国家和地区注册的公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境内外商业银行(短期)',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境内商业银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '40%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境内商业银行(仅用于并表填报)',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '30%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境外商业银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 200,
+      children: [
+        {
+          title: '40%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '合格多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '评级AA-(含)以上的其他多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '对评级AA-以下,A-(含)以上的其他多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '30%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级A-以下,BBB-(含)以上的其他多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '国际清算银行、国际货币基金组织、欧洲中央银行、欧盟、欧洲稳定机制和欧洲金融稳定机制',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '未缓释风险暴露',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+    {
+      title: '权重',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+    {
+      title: '风险加权资产余额',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+    {
+      title: '风险加权资产比例(%)',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+  ];
+
+  const select = async (bpdy: any) => {
+    return null;
+  };
+
+  return (
+    <SDPage>
+      <div style={{ width: '100%', overflow: 'auto' }}>
+        <ProTable
+          rowKey={''}
+          scroll={{ x: 'max-content' }}
+          title={() => (
+            <div>
+              <Title style={{ textAlign: 'center', fontSize: '600px' }}>
+                G4B-1表内信用风险加权资产计算表(权重法)
+              </Title>
+              <br></br>
+              <div style={{ overflow: 'hidden', width: '100%' }}>
+                <div style={{ float: 'left' }}>填报机构:</div>
+                <div style={{ float: 'right' }}>单位:万元</div>
+                <div style={{ float: 'right', marginRight: '40px' }}>报表日期</div>
+              </div>
+            </div>
+          )}
+          columns={columns}
+          request={async () => {
+            return { data: [] };
+          }}
+          toolBarRender={(_, { selectedRows }) => [
+            <SDButton
+              key="export"
+              //  successMessage='导出成功'
+              onClick={async () => {
+                exportExcelModel('fcOffSheet', formDataList);
+                //baseFun.info('处理完成');
+              }}
+            >
+              全部导出
+            </SDButton>,
+          ]}
+        />
+      </div>
+
+      {visible && (
+        <SDModal title={undefined} visible={false}>
+          <SDLayout>
+            <ProTable
+              search={false}
+              //   columns={columns}
+            />
+          </SDLayout>
+        </SDModal>
+      )}
+    </SDPage>
+  );
+};
+export default g4b_2;

+ 594 - 0
Procedure/frontend/projectb/src/pages/product/rwa/reportResult/G4B-5.tsx

@@ -0,0 +1,594 @@
+import { exportExcelModel, G4B1 } from '@/services/rwa/G4B_1';
+import { ProColumns, ProTable } from '@ant-design/pro-components';
+import { SDButton, SDLayout, SDModal, SDPage } from '@sundata/ui-frame';
+import Title from 'antd/es/typography/Title';
+import React, { useState } from 'react';
+
+type aaa = {
+  onChangeVisible(visible: boolean, type: string): unknown;
+  onChangeVisdible: (visible: boolean, type?: 'none' | 'raload') => void;
+};
+
+const g4b_5: React.FC<aaa> = (props: aaa) => {
+  const [visible, setVisible] = useState<boolean>(false); //弹窗是否显示
+  const [dataSource, setDataSource] = useState<any>();
+  var getColumnStyle = (record: any) => {
+    return <div style={{ background: 'yellow' }}>{record}</div>;
+  };
+
+  var formDataList = new Array<G4B1>();
+  const columns: ProColumns<G4B1>[] = [
+    {
+      title: <div style={{ width: 300 }}>项目/权重</div>,
+      dataIndex: [1, 2],
+      // align:'center',
+      search: false,
+      width: 300,
+      //  ellipsis: true,
+    },
+    {
+      title: '本期余额',
+      dataIndex: '',
+      // align:'center',
+      search: false,
+      width: 150,
+      ellipsis: true,
+      render: () => {
+        onclick = () => {
+          setVisible(true);
+        };
+        return true;
+      },
+    },
+    {
+      title: '各项减值准备',
+      dataIndex: '',
+      search: false,
+      width: 100,
+      // align:'center',
+    },
+    {
+      title: '风险暴露',
+      dataIndex: '',
+      search: false,
+      width: 100,
+      // align:'center'
+    },
+    {
+      title: '其中,资产管理产品风险暴露',
+      dataIndex: '',
+      search: false,
+      width: 100,
+      // align:'center'
+    },
+    {
+      title: '现金类资产',
+      dataIndex: 'aaa',
+      search: false,
+      // align:'center',
+      width: 300,
+
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '我国中央政府',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '中国人民银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '我国开发性金融机构和政策性银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '省级(自治区、直辖市)及计划单列市人民政府-一般债券',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '省级(自治区、直辖市)及计划单列市人民政府-专项债券',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '其他收入主要源于中央财政的公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '经金融监管总局认定的我国一般公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '金融资产管理公司为收购国有银行不良贷款而定向发行的债券',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '评级AA-以上(含)的国家和地区的中央政府和中央银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '评级AA-以下,A-(含)以上的国家和地区的中央政府和中央银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级A-以下,BBB-(含)以上的国家和地区的中央政府和中央银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级AA-(含)及以上国家和地区注册的公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级AA-以下,A-(含)以上国家和地区注册的公共部门实体',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境内外商业银行(短期)',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境内商业银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '40%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境内商业银行(仅用于并表填报)',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '30%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '境外商业银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 200,
+      children: [
+        {
+          title: '40%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '合格多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '评级AA-(含)以上的其他多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '对评级AA-以下,A-(含)以上的其他多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '30%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '评级A-以下,BBB-(含)以上的其他多边开发银行',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 150,
+      children: [
+        {
+          title: '50%',
+          dataIndex: '',
+          // align:'center',
+          width: 150,
+        },
+      ],
+    },
+    {
+      title: '国际清算银行、国际货币基金组织、欧洲中央银行、欧盟、欧洲稳定机制和欧洲金融稳定机制',
+      dataIndex: '',
+      search: false,
+      // align:'center',
+      width: 300,
+      children: [
+        {
+          title: '0%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '10%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+        {
+          title: '20%',
+          dataIndex: '',
+          // align:'center',
+          width: 100,
+        },
+      ],
+    },
+    {
+      title: '未缓释风险暴露',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+    {
+      title: '权重',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+    {
+      title: '风险加权资产余额',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+    {
+      title: '风险加权资产比例(%)',
+      dataIndex: '',
+      search: false,
+      width: 150,
+      // align:'center'
+    },
+  ];
+
+  const select = async (bpdy: any) => {
+    return null;
+  };
+
+  return (
+    <SDPage>
+      <div style={{ width: '100%', overflow: 'auto' }}>
+        <ProTable
+          rowKey={''}
+          scroll={{ x: 'max-content' }}
+          title={() => (
+            <div>
+              <Title style={{ textAlign: 'center', fontSize: '600px' }}>
+                G4B-1表内信用风险加权资产计算表(权重法)
+              </Title>
+              <br></br>
+              <div style={{ overflow: 'hidden', width: '100%' }}>
+                <div style={{ float: 'left' }}>填报机构:</div>
+                <div style={{ float: 'right' }}>单位:万元</div>
+                <div style={{ float: 'right', marginRight: '40px' }}>报表日期</div>
+              </div>
+            </div>
+          )}
+          columns={columns}
+          request={async () => {
+            return { data: [] };
+          }}
+          toolBarRender={(_, { selectedRows }) => [
+            <SDButton
+              key="export"
+              //  successMessage='导出成功'
+              onClick={async () => {
+                exportExcelModel('fcOffSheet', formDataList);
+                //baseFun.info('处理完成');
+              }}
+            >
+              全部导出
+            </SDButton>,
+          ]}
+        />
+      </div>
+
+      {visible && (
+        <SDModal title={undefined} visible={false}>
+          <SDLayout>
+            <ProTable
+              search={false}
+              //   columns={columns}
+            />
+          </SDLayout>
+        </SDModal>
+      )}
+    </SDPage>
+  );
+};
+export default g4b_5;

+ 28 - 0
Procedure/frontend/projectb/src/services/rwa/product/report_form_config_reportcreater/reportFile.ts

@@ -0,0 +1,28 @@
+import type { BasePageModel, TableData } from '@sundata/ui-frame';
+import { baseFun } from '@sundata/ui-frame';
+
+// 报表定义基本信息表
+export type ReportFileExportModel = {
+  // 计算实例号
+  reportNo?: string;
+  // 起始数据日期
+  term?: string;
+};
+
+
+
+
+/** 处理 html 的 POST */
+export async function getReportFileHtml(body: ReportFileExportModel) {
+  return baseFun.request<any>('/api/report/file/getReportHtml.do', {
+    data: body,
+  });
+}
+
+
+/** 下载文件 */
+export async function downloadReportFile(body: ReportFileExportModel) {
+  return baseFun.download('/api/product/rwa/reportformconfigreportcreater/ReportFillingConfigAction/selectCalcProcessType.do', {
+    data: body,
+  });
+}