Forráskód Böngészése

新增G4B_1表样

zhang_qk 3 hónapja
szülő
commit
185e9bcbe5

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

@@ -102,7 +102,7 @@ export default defineConfig({
 
    { path: '/product_list' , component: './rwa_calc_config_dataparam/product_list' },
    { path: '/info_list' , component: './rwa_calc_config_002offbalanceprotype/info_list' },
-
+   
 
    { path: '/CustomerTable' , component: './project/dataquality/CustomerTable'},
    { path: '/CollateralTable' , component: './project/dataquality/CollateralTable'},
@@ -115,11 +115,12 @@ 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: '/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' },
@@ -178,13 +179,11 @@ export default defineConfig({
     { path: '/supplementtaskmanagement' , component: './product/datasupplementary/supplementtaskmanagement'},
     { path: '/datasupplementation' , component: './product/datasupplementary/datasupplementation'},
 
-    // 内管报表
-    { path: '/capitaloccupymonitor' , component: './product/internal/capitaloccupymonitor'},
   ],
 
 
 
-
+  
   /**
   proxy: {
     '/api/': {

+ 614 - 0
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/G4B-1.tsx

@@ -0,0 +1,614 @@
+import React, { useEffect, useRef, useState } from 'react';
+import { Button, Form, FormInstance, Input, Space, Table, Tooltip, Tree, Upload } from 'antd';
+import { ActionType, ProColumns, ProFormInstance, ProFormText, ProTable } from '@ant-design/pro-components';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun, SDButton, SDAccordionProps, TableData, SDLayout } from '@sundata/ui-frame';
+import { exportExcelModel, G4B1 } from '@/services/rwa/G4B_1';
+import { SortOrder } from 'antd/es/table/interface';
+import { render } from '@/app';
+import { select } from '@/services/rwa/product_list';
+import Title from 'antd/es/typography/Title';
+type aaa = {
+    onChangeVisible(visible: boolean, type: string): unknown;
+    onChangeVisdible:(visible:boolean,type ?: 'none' | 'raload' )=>void;
+    }
+    
+
+const g4b_1: 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_1;

+ 11 - 0
Procedure/frontend/projectb/src/services/rwa/G4B_1.ts

@@ -0,0 +1,11 @@
+import { baseFun, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
+export type G4B1 ={
+
+a:string
+    
+}
+
+ /** 全部导出 */
+ export async function exportExcelModel(fileName:string,body:any) {
+    baseFun.download('/api/product/rwa/parameter/FcOffSheetAction/exportExcelModel.do?fileName='+fileName,body);
+ }