Przeglądaj źródła

调整路由以及处理过程。注意 reportno 是需要实际的报表编号的。

CodeLife Leno 2 miesięcy temu
rodzic
commit
0633061500

+ 2 - 2
Procedure/frontend/projectb/config/config.ts

@@ -117,8 +117,8 @@ export default defineConfig({
    { path: '/NonStandardInvestment' , component: './project/dataquality/NonStandardInvestment'},
 
    { 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: '/G4B_2' , component: './product/rwa/reportResult/G4B_2' },
+    { path: '/G4B_5' , component: './product/rwa/reportResult/G4B_5' },
    { path: '/GuaranteeTable' , component: './project/dataquality/GuaranteeTable' },
 
 

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

@@ -1,68 +0,0 @@
-import ReportFileShow from '@/pages/product/report_form_config_reportcreater/reportFileShow';
-import { SDPage } from '@sundata/ui-frame';
-import { Button, DatePicker, Form, Layout } from 'antd';
-import React, { useRef, useState } from 'react';
-
-const { Header, Content, Footer } = Layout;
-
-const g4b_1: React.FC<any> = () => {
-  const [visible, setVisible] = useState<boolean>(false); //弹窗是否显示
-  const [monthStr, setMonthStr] = useState<any>();
-  const monthRef = useRef();
-  // const monthRef02 = new Ref;
-
-  const downloadReportExcel = () => {};
-
-  const showHtml = () => {
-    console.log(monthRef.current);
-    // monthRef.current.value;
-  };
-
-  const [form] = Form.useForm();
-
-  // 自定义的提交方法
-  const handleSubmit = (values: any) => {
-    console.log('Received values of form: ', values.month.format('YYYYMM'));
-    setMonthStr(values.month.format('YYYYMM'));
-    // 在这里调用你自己的方法
-  };
-
-  return (
-    <SDPage>
-      <Layout>
-        {/*<Header >*/}
-        <Form
-          layout={'inline'}
-          form={form}
-          name="basic"
-          initialValues={{ remember: true }}
-          // ref={monthRef}
-          onFinish={handleSubmit} // 使用自定义的提交方法
-          style={{ maxWidth: 'inline' }}
-        >
-          <Form.Item
-            label="期次"
-            name="month"
-            // labelCol={{ span: 8 }}
-            // wrapperCol={{ span: 16 }}
-            rules={[{ required: true, message: '请选择月份' }]}
-          >
-            {/*<Input />*/}
-            <DatePicker format="YYYY-MM" type={'month'} />
-          </Form.Item>
-          <Form.Item>
-            <Button type="primary" htmlType="submit">
-              查询
-            </Button>
-          </Form.Item>
-        </Form>
-
-        {/*</Header>*/}
-        <Content>
-          <ReportFileShow term={monthStr} reportNo="G4B_1" />
-        </Content>
-      </Layout>
-    </SDPage>
-  );
-};
-export default g4b_1;

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

@@ -1,594 +0,0 @@
-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;

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

@@ -1,594 +0,0 @@
-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;

+ 63 - 586
Procedure/frontend/projectb/src/pages/product/rwa/reportResult/G4B_2.tsx

@@ -1,594 +1,71 @@
-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';
+import ReportFileShow from '@/pages/product/report_form_config_reportcreater/reportFileShow';
+import { downloadReportFile } from '@/services/rwa/product/report_form_config_reportcreater/reportFile';
+import { ProFormDatePicker, QueryFilter } from '@ant-design/pro-components';
+import { SDButton, SDLayout, SDPage } from '@sundata/ui-frame';
+import { Button } from 'antd';
+import { 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;
+const G4B_2: React.FC<any> = () => {
+  const [term, setTerm] = useState<string | undefined>();
+  const downloadFile = () => {
+    if (term) {
+      downloadReportFile({ term: term, reportNo: 'G4B_1' });
+    }
   };
 
   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: [] };
+    <SDPage
+      footer={[
+        <SDButton onClick={downloadFile} successMessage={''}>
+          导出文件
+        </SDButton>,
+      ]}
+    >
+      <SDLayout>
+        <QueryFilter
+          defaultCollapsed
+          split
+          submitter={{
+            render: (props) => {
+              return [
+                <Button
+                  key="submit"
+                  type="primary"
+                  onClick={() => {
+                    props.form?.validateFields?.().then((values) => {
+                      const month = values.month.format('YYYYMM');
+                      setTerm(month);
+                    });
+                  }}
+                >
+                  查询
+                </Button>,
+              ];
+            },
           }}
-          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>
-      )}
+        >
+          <ProFormDatePicker
+            name="month"
+            label="期次"
+            rules={[{ required: true, message: '请选择月份' }]}
+            fieldProps={{ format: 'YYYYMM', type: 'month' }}
+          />
+        </QueryFilter>
+      </SDLayout>
+      <SDLayout
+        fixHeight={true}
+        bodyStyle={{
+          width: '100%',
+          overflowX: 'auto', // 横向滚动
+          minHeight: '200px', // 保证纵向有固定高度
+          overflowY: 'auto',
+        }}
+      >
+        {term && <ReportFileShow term={term} reportNo="G4B_2" />}
+      </SDLayout>
+      <SDLayout></SDLayout>
     </SDPage>
   );
 };
-export default g4b_2;
+
+export default G4B_2;

+ 63 - 586
Procedure/frontend/projectb/src/pages/product/rwa/reportResult/G4B_5.tsx

@@ -1,594 +1,71 @@
-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';
+import ReportFileShow from '@/pages/product/report_form_config_reportcreater/reportFileShow';
+import { downloadReportFile } from '@/services/rwa/product/report_form_config_reportcreater/reportFile';
+import { ProFormDatePicker, QueryFilter } from '@ant-design/pro-components';
+import { SDButton, SDLayout, SDPage } from '@sundata/ui-frame';
+import { Button } from 'antd';
+import { 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;
+const G4B_5: React.FC<any> = () => {
+  const [term, setTerm] = useState<string | undefined>();
+  const downloadFile = () => {
+    if (term) {
+      downloadReportFile({ term: term, reportNo: 'G4B_1' });
+    }
   };
 
   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: [] };
+    <SDPage
+      footer={[
+        <SDButton onClick={downloadFile} successMessage={''}>
+          导出文件
+        </SDButton>,
+      ]}
+    >
+      <SDLayout>
+        <QueryFilter
+          defaultCollapsed
+          split
+          submitter={{
+            render: (props) => {
+              return [
+                <Button
+                  key="submit"
+                  type="primary"
+                  onClick={() => {
+                    props.form?.validateFields?.().then((values) => {
+                      const month = values.month.format('YYYYMM');
+                      setTerm(month);
+                    });
+                  }}
+                >
+                  查询
+                </Button>,
+              ];
+            },
           }}
-          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>
-      )}
+        >
+          <ProFormDatePicker
+            name="month"
+            label="期次"
+            rules={[{ required: true, message: '请选择月份' }]}
+            fieldProps={{ format: 'YYYYMM', type: 'month' }}
+          />
+        </QueryFilter>
+      </SDLayout>
+      <SDLayout
+        fixHeight={true}
+        bodyStyle={{
+          width: '100%',
+          overflowX: 'auto', // 横向滚动
+          minHeight: '200px', // 保证纵向有固定高度
+          overflowY: 'auto',
+        }}
+      >
+        {term && <ReportFileShow term={term} reportNo="G4B_5" />}
+      </SDLayout>
+      <SDLayout></SDLayout>
     </SDPage>
   );
 };
-export default g4b_5;
+
+export default G4B_5;