瀏覽代碼

配置表相关调整

zhang_qk 7 月之前
父節點
當前提交
fb595dd911
共有 17 個文件被更改,包括 2440 次插入437 次删除
  1. 6 0
      Procedure/frontend/projectb/config/config.ts
  2. 1 1
      Procedure/frontend/projectb/src/pages/pubMng/ReportMng/reportTemplate.tsx
  3. 243 0
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/fcCommitment.tsx
  4. 376 0
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/fcLoan.tsx
  5. 332 0
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/fcOffSheet.tsx
  6. 293 0
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/ffRepo.tsx
  7. 233 0
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/govFinancialAssetComp.tsx
  8. 146 125
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/norepurchasePledgeInfo.tsx
  9. 76 63
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/policybank.tsx
  10. 116 99
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/repurchasePledgeInfo.tsx
  11. 192 139
      Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/sovereign.tsx
  12. 66 0
      Procedure/frontend/projectb/src/services/rwa/fcCommitment.ts
  13. 104 0
      Procedure/frontend/projectb/src/services/rwa/fcLoan.ts
  14. 90 0
      Procedure/frontend/projectb/src/services/rwa/fcOffSheet.ts
  15. 81 0
      Procedure/frontend/projectb/src/services/rwa/ffRepo.ts
  16. 58 0
      Procedure/frontend/projectb/src/services/rwa/govFinancialAssetComp.ts
  17. 27 10
      Procedure/frontend/projectb/src/services/rwa/sovereign.ts

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

@@ -89,6 +89,12 @@ export default defineConfig({
    { path: '/policybank' , component: './rdpMng/Template/Coding/components/policybank' },
    { path: '/repurchasePledgeInfo' , component: './rdpMng/Template/Coding/components/repurchasePledgeInfo' },
    { path: '/norepurchasePledgeInfo' , component: './rdpMng/Template/Coding/components/norepurchasePledgeInfo' },
+   { path: '/fcCommitment' , component: './rdpMng/Template/Coding/components/fcCommitment' },
+   { path: '/ffRepo' , component: './rdpMng/Template/Coding/components/ffRepo' },
+   { path: '/fcLoan' , component: './rdpMng/Template/Coding/components/fcLoan' },
+   { path: '/fcOffSheet' , component: './rdpMng/Template/Coding/components/fcOffSheet' },
+   { path: '/govFinancialAssetComp' , component: './rdpMng/Template/Coding/components/govFinancialAssetComp' },
+   
    
   // 解析
   { path: '/rdp/rdpAnalysis/analTemplate/query/:prodCode', component: './rdpMng/Template/QueryList/queryList' },

+ 1 - 1
Procedure/frontend/projectb/src/pages/pubMng/ReportMng/reportTemplate.tsx

@@ -84,7 +84,7 @@ const ReportTemplate: React.FC = () => {
       },
     },
   ];
-
+  sovereignRating
   const getDataListFun = async (data: RptDefineModel) => {
     const resultData = await getDataList(data);
     let i = 0;

+ 243 - 0
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/fcCommitment.tsx

@@ -0,0 +1,243 @@
+import React, { useEffect, useRef, useState } from 'react';
+import { Button, Form, FormInstance, Input, Space, Tooltip } from 'antd';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun } from '@sundata/ui-frame';
+import { ActionType, ProColumns } from '@ant-design/pro-table';
+import { WomanOutlined } from '@ant-design/icons';
+import { deletedata } from '@/services/idataMng/impandauditp';
+import { FcCommitmentModel, getFcCommitment } from '@/services/rwa/fcCommitment';
+
+type aaa = {
+    
+}
+
+const fcOffSheetts: React.FC<aaa>= (prop : aaa) => {
+    const [editType, setEditType] = useState<EditType>('update');
+    const formRef = useRef<FormInstance<any>>();
+      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
+    const [currentRow, setCurrentRow] = useState<FcCommitmentModel>();
+    const [dataSource, setDataSource] = useState<any>() ;
+    const [detailVisible, setDetailVisible] = useState<boolean>(false);
+
+    const [visible,setVisible] = useState<boolean>(false);//弹窗是否显示
+
+    const actionRef = useRef<ActionType>();
+    const tableActionRef = useRef<ActionType>();
+    const columns: ProColumns<FcCommitmentModel>[] = [
+      {
+        title  : '本金科目号',
+        dataIndex : 'balAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '资产余额',
+        dataIndex : 'balance',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '账簿类型',
+        dataIndex : 'bookTypeCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '核心客户号',
+        dataIndex : 'bpCustNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '所属条线',
+        dataIndex : 'busLine',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '业务类型',
+        dataIndex : 'busType',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '计算实例号',
+        dataIndex : 'calcindex',
+          hideInTable: true,
+       // search: false,
+        ellipsis: true,
+        width:150,  
+      },
+        {
+        title  : '币种代码',
+        dataIndex : 'ccyCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '承诺类型',
+        dataIndex : 'commType',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '合同金额',
+        dataIndex : 'ctrAmount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '客户名称',
+        dataIndex : 'custName',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '客户编号',
+        dataIndex : 'custNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '数据日期',
+        dataIndex : 'dataDate',
+          hideInTable: true,
+       // search: false,
+        width:150,  
+      },
+        {
+        title  : '截止数据日期',
+        dataIndex : 'edate',
+        hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        {
+        title  : '财务机构编号',
+        dataIndex : 'finBranchNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '债项编号',
+        dataIndex : 'loanReferenceNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '到期日',
+        dataIndex : 'matDt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '经营机构编号',
+        dataIndex : 'mgmtBranchNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '表内外标识',
+        dataIndex : 'onOffFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '产品名称',
+        dataIndex : 'productName',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '产品编号',
+        dataIndex : 'productNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '计提准备金',
+        dataIndex : 'reserve',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '准备金科目号',
+        dataIndex : 'reserveAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '循环标识',
+        dataIndex : 'revolvingFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '起始数据日期',
+        dataIndex : 'sdate',
+          hideInTable: true,
+      //  search: false,
+        width:150,  
+      },
+        {
+        title  : '生效日',
+        dataIndex : 'startDt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        {
+        title  : '年月',
+        dataIndex : 'term',
+          hideInTable: true,
+       // search: false,
+        width:150,  
+      },
+
+    ]
+    return(
+        <SDPage >
+        <SDTable
+      title="查询表格"
+      rowKey="custName"
+      request={async(formData : FcCommitmentModel)=>{
+        const sd = await getFcCommitment(formData);
+        return {data :sd };
+      }}
+      columns={columns}
+     //  singleSelect={false}
+     //operations={["create"]}
+      //displayColumn="custName"
+     actionRef={actionRef}
+     formRef={formRef}
+     //handleRemove={deletedata}
+      setCurrentRow={setCurrentRow}
+      setEditType={setEditType}
+      setDetailVisible={setVisible}           
+       >
+        </SDTable>
+        </SDPage>
+    )
+
+
+  };export default fcOffSheetts;

+ 376 - 0
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/fcLoan.tsx

@@ -0,0 +1,376 @@
+import React, { useEffect, useRef, useState } from 'react';
+import { Button, Form, FormInstance, Input, Space, Tooltip } from 'antd';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun } from '@sundata/ui-frame';
+import { ActionType, ProColumns } from '@ant-design/pro-table';
+import { WomanOutlined } from '@ant-design/icons';
+import { deletedata } from '@/services/idataMng/impandauditp';
+import { FcLoanModel, getFcLoan } from '@/services/rwa/fcLoan';
+
+type aaa = {
+    
+}
+
+const fcOffSheetts: React.FC<aaa>= (prop : aaa) => {
+    const [editType, setEditType] = useState<EditType>('update');
+    const formRef = useRef<FormInstance<any>>();
+      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
+    const [currentRow, setCurrentRow] = useState<FcLoanModel>();
+    const [dataSource, setDataSource] = useState<any>() ;
+    const [detailVisible, setDetailVisible] = useState<boolean>(false);
+
+    const [visible,setVisible] = useState<boolean>(false);//弹窗是否显示
+
+    const actionRef = useRef<ActionType>();
+    const tableActionRef = useRef<ActionType>();
+    const columns: ProColumns<FcLoanModel>[] = [
+      { 
+        title  : '应计利息',
+        dataIndex : 'accrInt',
+        //  hideInTable: true,
+        search: false,
+        ellipsis: true,
+        width:150,  
+      },
+        { 
+        title  : '应计利息科目号',
+        dataIndex : 'accrIntAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '发放金额',
+        dataIndex : 'amount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '资产余额',
+        dataIndex : 'balance',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '账簿类型',
+        dataIndex : 'bookTypeCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '核心客户号',
+        dataIndex : 'bpCustNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '所属条线',
+        dataIndex : 'busLine',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '计算实例号',
+        dataIndex : 'calcindex',
+          hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        { 
+        title  : '币种代码',
+        dataIndex : 'ccyCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '借款合同编号',
+        dataIndex : 'contNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '客户名称',
+        dataIndex : 'custName',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '客户编号',
+        dataIndex : 'custNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '客户类型',
+        dataIndex : 'custType',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '数据日期',
+        dataIndex : 'dataDate',
+          hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        { 
+        title  : '跨境货物贸易标志',
+        dataIndex : 'domDocFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '截止数据日期',
+        dataIndex : 'edate',
+          hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        { 
+        title  : '公允价值变动科目号',
+        dataIndex : 'fairValAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '公允价值变动',
+        dataIndex : 'fairValueChange',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '账务机构编号',
+        dataIndex : 'finBranchNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '五级分类',
+        dataIndex : 'fiveClassCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '本金科目号',
+        dataIndex : 'glAccountId',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '利息调整',
+        dataIndex : 'intAdj',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '利息调整科目号',
+        dataIndex : 'intAdjAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '行业投向门类',
+        dataIndex : 'investIndustryCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '行业投向大类',
+        dataIndex : 'investIndustryCd1',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '行业投向中类',
+        dataIndex : 'investIndustryCd2',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '行业投向子类',
+        dataIndex : 'investIndustryCd3',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '债项编号',
+        dataIndex : 'loanReferenceNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '到期日',
+        dataIndex : 'matDt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '经营机构编号',
+        dataIndex : 'mgmtBranchNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '表内外标识',
+        dataIndex : 'onOffFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '开证行名称',
+        dataIndex : 'openingBank',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '开证行行号',
+        dataIndex : 'openingBankno',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '逾期天数',
+        dataIndex : 'overdueDays',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '产品名称',
+        dataIndex : 'productName',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '产品编号',
+        dataIndex : 'productNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '房地产开发项目类型',
+        dataIndex : 'propDevelProjTypeCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '是否满足审慎贷款审批标准标志',
+        dataIndex : 'qualifiedApprovalProcedure',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '应收利息',
+        dataIndex : 'recInt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '应收利息科目号',
+        dataIndex : 'recIntAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '债务重组标识',
+        dataIndex : 'reconstructionFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '计提准备金',
+        dataIndex : 'reserve',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '准备金科目号',
+        dataIndex : 'reserveAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '起始数据日期',
+        dataIndex : 'sdate',
+          hideInTable: true,
+       // search: false,
+        width:150,  
+      },
+        { 
+        title  : '生效日',
+        dataIndex : 'startDt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '年月',
+        dataIndex : 'term',
+          hideInTable: true,
+       // search: false,
+        width:150,  
+      },
+
+    ]
+    return(
+        <SDPage >
+        <SDTable
+      title="查询表格"
+      rowKey="custName"
+      request={async(formData : FcLoanModel)=>{
+        const sd = await getFcLoan(formData);
+        return {data :sd };
+      }}
+      columns={columns}
+     //  singleSelect={false}
+   //  operations={["create"]}
+      //displayColumn="custName"
+     actionRef={actionRef}
+     formRef={formRef}
+     //handleRemove={deletedata}
+      setCurrentRow={setCurrentRow}
+      setEditType={setEditType}
+      setDetailVisible={setVisible}           
+       >
+        </SDTable>
+        </SDPage>
+    )
+
+
+  };export default fcOffSheetts;

+ 332 - 0
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/fcOffSheet.tsx

@@ -0,0 +1,332 @@
+import React, { useEffect, useRef, useState } from 'react';
+import { Button, Form, FormInstance, Input, Space, Tooltip } from 'antd';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun } from '@sundata/ui-frame';
+import { ActionType, ProColumns } from '@ant-design/pro-table';
+import { WomanOutlined } from '@ant-design/icons';
+import { deletedata } from '@/services/idataMng/impandauditp';
+import { FcOffSheetModel, getFcOffSheet } from '@/services/rwa/fcOffSheet';
+
+type aaa = {
+
+  }
+
+  const fcOffSheetts: React.FC<aaa>= (prop : aaa) => {
+    const [editType, setEditType] = useState<EditType>('update');
+    const formRef = useRef<FormInstance<any>>();
+      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
+    const [currentRow, setCurrentRow] = useState<FcOffSheetModel>();
+    const [dataSource, setDataSource] = useState<any>() ;
+    const [detailVisible, setDetailVisible] = useState<boolean>(false);
+
+    const [visible,setVisible] = useState<boolean>(false);//弹窗是否显示
+
+    const tableActionRef = useRef<ActionType>();
+
+    const actionRef = useRef<ActionType>();
+    const columns: ProColumns<FcOffSheetModel>[] = [
+      {
+        title  : '应计利息',
+        dataIndex : 'accrInt',
+         hideInTable: false,
+        // width: 'auto'
+        ellipsis: true,
+       width:150,  
+      },
+       {
+        title  : '应计利息科目号',
+        dataIndex : 'accrIntAccount',
+       //  hideInTable: true,
+        search: false,
+       // width:'auto'
+       width:150,  
+      },
+       {
+        title  : '本金科目号',
+        dataIndex : 'balAccount',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '资产余额',
+        dataIndex : 'balance',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '票号',
+        dataIndex : 'billNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '账簿类型',
+        dataIndex : 'bookType',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '核心客户号',
+        dataIndex : 'bpCustNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '计算实例号',
+        dataIndex : 'calcindex',
+         hideInTable: true,
+        search: false,
+       
+       width:150,  
+      },
+       {
+        title  : '币种代码',
+        dataIndex : 'ccyCd',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '合同编号',
+        dataIndex : 'contractNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '客户名称',
+        dataIndex : 'custName',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '客户编号',
+        dataIndex : 'custNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '数据日期',
+        dataIndex : 'dataDate',
+         hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '跨境货物贸易标志',
+        dataIndex : 'domDocFlag',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '国内/国际证标签',
+        dataIndex : 'domInteFlag',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '截止数据日期',
+        dataIndex : 'edate',
+         hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '公允价值变动科目号',
+        dataIndex : 'fairValAccount',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '公允价值变动',
+        dataIndex : 'fairValueChange',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '账务机构编号',
+        dataIndex : 'finBranchNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '五级分类代码',
+        dataIndex : 'fiveClassCd',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '利息调整',
+        dataIndex : 'intAdj',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '利息调整科目号',
+        dataIndex : 'intAdjAccount',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '信用证有效期',
+        dataIndex : 'lcExpiDt',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '融资性/非融资性标签',
+        dataIndex : 'lgType',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '债项编号',
+        dataIndex : 'loanReferenceNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '到期日',
+        dataIndex : 'matDt',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '经营机构编号',
+        dataIndex : 'mgmtBranchNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '表内外标识',
+        dataIndex : 'onOffFlag',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '开证日',
+        dataIndex : 'openingDt',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '产品名称',
+        dataIndex : 'productName',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '产品编号',
+        dataIndex : 'productNo',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '应收利息',
+        dataIndex : 'recInt',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '应收利息科目号',
+        dataIndex : 'recIntAccount',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '计提准备金',
+        dataIndex : 'reserve',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '准备金科目号',
+        dataIndex : 'reserveAccount',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '起始数据日期',
+        dataIndex : 'sdate',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '生效日',
+        dataIndex : 'startDt',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '年月',
+        dataIndex : 'term',
+         hideInTable: true,
+        search: false,
+       width:150,  
+      },
+       {
+        title  : '贸易类型代码',
+        dataIndex : 'tradeTypeCd',
+       //  hideInTable: true,
+        search: false,
+       width:150,  
+      },
+
+
+    ]
+    return(
+        <SDPage >
+        <SDTable
+      title="查询表格"
+      rowKey="custName"
+      request={async(formData : FcOffSheetModel)=>{
+        const sd = await getFcOffSheet(formData);
+        return {data :sd };
+      }}
+      columns={columns}
+     //  singleSelect={false}
+    // operations={["create"]}
+      //displayColumn="custName"
+     actionRef={actionRef}
+     formRef={formRef}
+     //handleRemove={deletedata}
+      setCurrentRow={setCurrentRow}
+      setEditType={setEditType}
+      setDetailVisible={setVisible}           
+       >
+        </SDTable>
+        
+        </SDPage>
+    )
+
+
+  };export default fcOffSheetts;

+ 293 - 0
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/ffRepo.tsx

@@ -0,0 +1,293 @@
+import React, { useEffect, useRef, useState } from 'react';
+import { Button, Form, FormInstance, Input, Space, Tooltip } from 'antd';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun } from '@sundata/ui-frame';
+import { ActionType, ProColumns } from '@ant-design/pro-table';
+import { WomanOutlined } from '@ant-design/icons';
+import { deletedata } from '@/services/idataMng/impandauditp';
+import { FfRepoModel, getFfRepo } from '@/services/rwa/ffRepo';
+
+
+type aaa = {
+    
+}
+
+  const fcOffSheetts: React.FC<aaa>= (prop : aaa) => {
+    const [editType, setEditType] = useState<EditType>('update');
+    const formRef = useRef<FormInstance<any>>();
+      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
+    const [currentRow, setCurrentRow] = useState<FfRepoModel>();
+    const [dataSource, setDataSource] = useState<any>() ;
+    const [detailVisible, setDetailVisible] = useState<boolean>(false);
+
+    const [visible,setVisible] = useState<boolean>(false);//弹窗是否显示
+
+    const actionRef = useRef<ActionType>();
+    const tableActionRef = useRef<ActionType>();
+    const columns: ProColumns<FfRepoModel>[] = [
+      { 
+        title  : '应计利息',
+        dataIndex : 'accrInt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+        ellipsis: true,
+      },
+        { 
+        title  : '应计利息科目号',
+        dataIndex : 'accrIntAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '资产余额',
+        dataIndex : 'balance',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '债券代码',
+        dataIndex : 'billNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '账簿类型',
+        dataIndex : 'bookTypeCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '计算实例号',
+        dataIndex : 'calcindex',
+       hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        { 
+        title  : '币种代码',
+        dataIndex : 'ccyCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '核心市场参与者标识',
+        dataIndex : 'coreMarketPartFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '客户名称',
+        dataIndex : 'custName',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '客户编号',
+        dataIndex : 'custNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '数据日期',
+        dataIndex : 'dataDate',
+         hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        { 
+        title  : '截止数据日期',
+        dataIndex : 'edate',
+          hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '公允价值变动科目号',
+        dataIndex : 'fairValAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '公允价值变动',
+        dataIndex : 'fairValueChange',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '账务机构编号',
+        dataIndex : 'finBranchNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '本金科目号',
+        dataIndex : 'glAccountId',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '利息调整',
+        dataIndex : 'intAdj',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '利息调整科目号',
+        dataIndex : 'intAdjAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '债项编号',
+        dataIndex : 'loanReferenceNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '到期日',
+        dataIndex : 'matDt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '经营机构编号',
+        dataIndex : 'mgmtBranchNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '表内外标识',
+        dataIndex : 'onOffFlag',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '产品名称',
+        dataIndex : 'productName',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '产品编号',
+        dataIndex : 'productNo',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '应收利息',
+        dataIndex : 'recInt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '应收利息科目号',
+        dataIndex : 'recIntAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '回购期限',
+        dataIndex : 'repoDays',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '回购类型',
+        dataIndex : 'repoTypeCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '计提准备金',
+        dataIndex : 'reserve',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '准备金科目号',
+        dataIndex : 'reserveAccount',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '起始数据日期',
+        dataIndex : 'sdate',
+         hideInTable: true,
+       // search: false,
+        width:150,  
+      },
+        { 
+        title  : '生效日',
+        dataIndex : 'startDt',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+        { 
+        title  : '年月',
+        dataIndex : 'term',
+         hideInTable: true,
+        //search: false,
+        width:150,  
+      },
+        { 
+        title  : '质押买断类型',
+        dataIndex : 'zhiyaMaiduanCd',
+        //  hideInTable: true,
+        search: false,
+        width:150,  
+      },
+
+    ]
+    return(
+        <SDPage >
+        <SDTable
+      title="查询表格"
+      rowKey="custName"
+      request={async(formData : FfRepoModel)=>{
+        const sd = await getFfRepo(formData);
+        return {data :sd };
+      }}
+      columns={columns}
+     //  singleSelect={false}
+    // operations={["create"]}
+      //displayColumn="custName"
+     actionRef={actionRef}
+     formRef={formRef}
+     //handleRemove={deletedata}
+      setCurrentRow={setCurrentRow}
+      setEditType={setEditType}
+      setDetailVisible={setVisible}           
+       >
+        </SDTable>
+        </SDPage>
+    )
+
+
+  };export default fcOffSheetts;

+ 233 - 0
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/govFinancialAssetComp.tsx

@@ -0,0 +1,233 @@
+import React, { useEffect, useRef, useState } from 'react';
+import { Button, Form, FormInstance, Input, Space, Table, Tooltip } from 'antd';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun } from '@sundata/ui-frame';
+import { ActionType, ProColumns } from '@ant-design/pro-table';
+import { WomanOutlined } from '@ant-design/icons';
+import { result } from 'lodash';
+import { deleteGovFinancialAssetComp, getGovFinancialAssetComp, GovFinancialAssetCompModel, inserteGovFinancialAssetComp, selectGovFinancialAssetComp } from '@/services/rwa/govFinancialAssetComp';
+
+type bbb ={
+
+}
+
+const govFinancialAssetCompts: React.FC<bbb>= (prop : bbb) => {
+
+    const [editType, setEditType] = useState<EditType>('update');
+    const formRef = useRef<FormInstance<any>>();
+      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
+    const [currentRow,setCurrentRow] = useState<GovFinancialAssetCompModel>();
+    const [dataSource, setDataSource] = useState<any>() ;
+    const [detailVisible, setDetailVisible] = useState<boolean>(false);
+
+    const [visible,setVisible] = useState<boolean>(false);//弹窗是否显示
+    const [deadline,setdeadline] = useState<boolean>(false);//弹窗是否显示
+    const [secName,setSecName] = useState<boolean>(false);//弹窗是否显示
+    const tableActionRef = useRef<ActionType>();
+    const actionRef = useRef<ActionType>();
+
+    const closeAndRefresh = ()=>{
+        setVisible(false);
+        actionRef.current?.reloadAndRest?.();
+      }
+      const selectdata = async (record:any)=>{
+        const sd =await selectGovFinancialAssetComp(record.name);
+        // if (sd.deadline ==='' || sd.deadline ===null){
+        //   setSecName(true);
+        //   setdeadline(false);
+        //   console.log('1');
+        // }else {
+        //   console.log('3');
+        //   setdeadline(true);
+        //   setSecName(false)
+        // }
+        console.log(sd);
+        formRef.current?.setFieldsValue(sd);
+     }  
+     const inst =  async(formData : GovFinancialAssetCompModel) => {
+        setEditType('create')
+        console.log(formData);
+        formRef.current?.getFieldValue(formData);
+       const insSovere =await inserteGovFinancialAssetComp(formData)  
+       closeAndRefresh();
+       console.log(insSovere);
+      
+      }
+      
+       const del = async(record:any)=>{
+        const delSovere =await deleteGovFinancialAssetComp(record.name)  
+        closeAndRefresh();
+        baseFun.info("删除成功");
+        console.log(delSovere);
+        }
+        const disdata = async (record:any)=>{
+            const sd =await selectGovFinancialAssetComp(record.name);
+            (record.qualfiedCreditToolType,record.secClassificationCd);
+          formRef.current?.setFieldsValue(sd);
+         // return {data :sd};   
+       }
+       const columns: ProColumns<GovFinancialAssetCompModel>[] = [
+        {
+            title : '计算实例号',
+           dataIndex : 'calcindex',
+           width:150,
+           hideInTable:true,
+            },
+           
+           {
+            title : '缓释分类',
+           dataIndex : 'crmClass',
+           width:150
+            },
+           
+           {
+            title : '数据日期',
+           dataIndex : 'dataDate',
+           width:150,
+           hideInTable:true,
+            },
+           
+           {
+            title : '截止数据日期',
+           dataIndex : 'edate',
+           width:150,
+           hideInTable:true,
+            },
+           
+           {
+            title : '名称',
+           dataIndex : 'name',
+           width:150
+            },
+           
+           
+           {
+            title : '合格信用风险缓释工具类型',
+           dataIndex : 'qualfiedCreditToolTypeName',
+           width:150
+            },
+           
+           {
+            title : '起始数据日期',
+           dataIndex : 'sdate',
+           width:150,
+           hideInTable:true,
+            },
+           
+           {
+            title : '年月',
+           dataIndex : 'term',
+           width:150,
+           hideInTable:true,
+            },
+           
+           {
+            title : '缓释权重',
+           dataIndex : 'weight',
+           width:150
+            },    
+            
+           {
+            title : '备注',
+           dataIndex : 'notes',
+           width:150
+            },
+            {
+                title: '操作',
+                dataIndex: 'operate',
+                valueType: 'option',
+                render: (_, record) => [
+                  <SDOperate
+                    key="roleCfg"
+                    icon={<WomanOutlined />}
+                    successMessage=""
+                    
+                    onClick={()=>{ 
+                      selectdata(record);
+                      
+                    setVisible(true);
+                    setEditType('update')
+                     } }
+                  >
+                    修改
+                  </SDOperate>,
+                  <SDOperate
+                  key="roleCfg"
+                  icon={<WomanOutlined />}
+                  successMessage=""
+                  
+                  onClick={()=>{ 
+                    del(record);
+                    
+                   } }
+                >
+                  删除
+                </SDOperate>,
+                 <SDOperate
+                 key="roleCfg"
+                 icon={<WomanOutlined />}
+                 successMessage=""
+                 
+                 onClick={()=>{ 
+                  disdata(record);
+                  closeAndRefresh();
+                 setVisible(true);
+                 setEditType('display')
+                  } }
+               >
+                 查看
+               </SDOperate>,
+                ],
+              },       
+
+       ]
+return(
+<SDPage>
+    <SDTable
+    title="查询表格"
+    rowKey="secClassificationCd"
+    request={async(formData : GovFinancialAssetCompModel)=>{
+        const sd = await getGovFinancialAssetComp(formData);
+        return {data :sd };
+      }}
+      columns={columns}
+      actionRef={actionRef}
+      formRef={formRef}
+      operations={["create"]}
+      //handleRemove={deletedata}
+       setCurrentRow={setCurrentRow}
+       setEditType={setEditType}
+       setDetailVisible={setVisible}    
+    ></SDTable>
+{ visible &&( 
+<SDModalForm  
+   visible={visible}
+   //rowKey="cust_NAME" 
+   editType={editType} 
+   request={selectdata}
+   //params={setDataSource}
+   onVisibleChange={() => { setVisible(false) }}
+   footer={[<SDSubmitButton  editType={editType}   formRef={formRef} doSubmit={inst} >保存</SDSubmitButton>]}
+   formRef={formRef}
+ >
+
+<SDFormText name="crmClass"   label="缓释分类"  />
+<SDFormText name="name"   label="名称"  />
+<SDFormText name="qualfiedCreditToolTypeName"   label="合格信用风险缓释工具类型"  />
+<SDFormText name="weight"   label="缓释权重"  />
+<div style={{display:"none"}}> 
+<SDFormText name="notes"   label="备注"  />
+<SDFormText name="calcindex"   label="计算实例号"  />
+<SDFormText name="dataDate"   label="数据日期"  />
+<SDFormText name="edate"   label="截止数据日期"  />
+<SDFormText name="sdate"   label="起始数据日期"  />
+<SDFormText name="term"   label="年月"  />
+</div>
+</SDModalForm>
+)
+}   
+
+</SDPage>
+
+)
+
+};export default govFinancialAssetCompts

+ 146 - 125
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/norepurchasePledgeInfo.tsx

@@ -74,130 +74,151 @@ const repurchasePledgeInfots: React.FC<bbb>= (prop : bbb) => {
    }
 
     const columns: ProColumns<norepurchasePledgeInfoModel>[] = [
-        { 
-           title: '计算实例号',
-           dataIndex: 'calcindex', // 查询结果中的隐藏列overeignrating
-           search: false,
-           hideInTable: true
-        },
-        {
-            title: '起始数据日期',
-            dataIndex: 'sdate', // 查询结果中的隐藏列
-            valueType: 'date',
-          //  search: false,  //注调查询条件显示
-          //  hideInTable: true //注调字段列显示
-        },
-        { 
-          title: '截止数据日期',
-          dataIndex: 'edate', // 查询结果中的隐藏列
+      { 
+         title: '计算实例号',
+         dataIndex: 'calcindex', // 查询结果中的隐藏列overeignrating
+         search: false,
+         hideInTable: true,
+         width:150, 
+         ellipsis: true,
+      },
+      {
+          title: '起始数据日期',
+          dataIndex: 'sdate', // 查询结果中的隐藏列
           valueType: 'date',
-       //   search: false,
+        //  search: false,  //注调查询条件显示
+          hideInTable: true, //注调字段列显示
+         width:150, 
+      },
+      { 
+        title: '截止数据日期',
+        dataIndex: 'edate', // 查询结果中的隐藏列
+        valueType: 'date',
+     //   search: false,
+        hideInTable: true,
+         width:150, 
+      },
+      { 
+        title: '年月',
+        dataIndex: 'term', // 查询结果中的隐藏列
+        search: false,
+        hideInTable: true,
+         width:150, 
+      },
+      { 
+          title: '数据日期',
+          dataIndex: 'dataDate', // 查询结果中的隐藏列
+          valueType: 'date',
+          search: false,
+          hideInTable: true,
+         width:150, 
+      },
+      { 
+          title: '二级缓释品类型编码',
+          dataIndex: 'crmTypeCd2', // 查询结果中的隐藏列
+      //    search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '三级缓释品类型编码',
+          dataIndex: 'crmTypeCd3', // 查询结果中的隐藏列
+      //    search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '四级缓释品类型编码',
+          dataIndex: 'crmTypeCd4', // 查询结果中的隐藏列
+      //    search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '五级缓释品类型编码',
+          dataIndex: 'crmTypeCd5', // 查询结果中的隐藏列
+      //    search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '二级缓释品类型名称',
+          dataIndex: 'crmName2', // 查询结果中的隐藏列
+      //    search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '三级缓释品类型名称',
+          dataIndex: 'crmName3', // 查询结果中的隐藏列
+      //    search: false,
        //   hideInTable: true
-        },
-        { 
-          title: '年月',
-          dataIndex: 'term', // 查询结果中的隐藏列
+         width:150, 
+      },
+      { 
+          title: '四级缓释品类型名称',
+          dataIndex: 'crmName4', // 查询结果中的隐藏列
+     //     search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '五级缓释品类型名称',
+          dataIndex: 'crmName5', // 查询结果中的隐藏列
+      //    search: false,
+       //   hideInTable: true
+         width:150, 
+      },
+      
+       { 
+          title: '是否合格信用风险缓释工具',
+          dataIndex: 'isqualfied', // 查询结果中的隐藏列
+         // search: true,
+         // hideInTable: false
+          width:150, 
+      },
+      { 
+         title: '缓释一级分类',
+         dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
+         search: false,
+        // hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '合格信用风险缓释工具类型',
+          dataIndex: 'qualfiedCreditToolType', // 查询结果中的隐藏列
           search: false,
-          hideInTable: true
-        },
-        { 
-            title: '数据日期',
-            dataIndex: 'dataDate', // 查询结果中的隐藏列
-            valueType: 'date',
-            search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '二级缓释品类型编码',
-            dataIndex: 'crmTypeCd2', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '三级缓释品类型编码',
-            dataIndex: 'crmTypeCd3', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '四级缓释品类型编码',
-            dataIndex: 'crmTypeCd4', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '五级缓释品类型编码',
-            dataIndex: 'crmTypeCd5', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '二级缓释品类型名称',
-            dataIndex: 'crmName2', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '三级缓释品类型名称',
-            dataIndex: 'crmName3', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '四级缓释品类型名称',
-            dataIndex: 'crmName4', // 查询结果中的隐藏列
-       //     search: false,
-         //   hideInTable: true
-        },
-        { 
-            title: '五级缓释品类型名称',
-            dataIndex: 'crmName5', // 查询结果中的隐藏列
-        //    search: false,
-         //   hideInTable: true
-        },
-        
-         { 
-            title: '是否合格信用风险缓释工具',
-            dataIndex: 'isqualfied', // 查询结果中的隐藏列
-           // search: true,
-           // hideInTable: false
-         },
-        { 
-           title: '缓释一级分类',
-           dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
-           search: false,
-          // hideInTable: true
-        },
-        { 
-            title: '合格信用风险缓释工具类型',
-            dataIndex: 'qualfiedCreditToolType', // 查询结果中的隐藏列
-            search: false,
-           // hideInTable: true
-        },
-        {
-            title: '基础缓释权重',
-            dataIndex: 'baseWeight', // 查询结果中的隐藏列
-            search: false,
-            //hideInTable: true
-        },
-        {
-            title: '是否豁免缓释权重底线',
-            dataIndex: 'isexempt', // 查询结果中的隐藏列
-            search: false,
-            //hideInTable: true
-        },
-        { 
-            title: '豁免后缓释权重',
-            dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
-            search: false,
-           // hideInTable: true
-        },
-        { 
-            title: '备注',
-            dataIndex: 'notes', // 查询结果中的隐藏列
-         //   search: false,
-           // hideInTable: true
-        },
+         // hideInTable: true
+         width:150, 
+      },
+      {
+          title: '基础缓释权重',
+          dataIndex: 'baseWeight', // 查询结果中的隐藏列
+          search: false,
+          //hideInTable: true
+         width:150, 
+      },
+      {
+          title: '是否豁免缓释权重底线',
+          dataIndex: 'isexempt', // 查询结果中的隐藏列
+          search: false,
+          //hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '豁免后缓释权重',
+          dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
+          search: false,
+         // hideInTable: true
+         width:150, 
+      },
+      { 
+          title: '备注',
+          dataIndex: 'notes', // 查询结果中的隐藏列
+       //   search: false,
+         // hideInTable: true
+         width:150, 
+      },
         {
             title: '操作',
             dataIndex: 'operate',
@@ -278,10 +299,10 @@ const repurchasePledgeInfots: React.FC<bbb>= (prop : bbb) => {
    footer={[<SDSubmitButton  editType={editType}   formRef={formRef} doSubmit={inst} >保存</SDSubmitButton>]}
    formRef={formRef}
  >
-<SDFormText name="crmTypeCd2" label="二级缓释品类型编码"   />
-<SDFormText name="crmTypeCd3" label="三级缓释品类型编码"   />
-<SDFormText name="crmTypeCd4" label="四级缓释品类型编码"   />
-<SDFormText name="crmTypeCd5" label="五级缓释品类型编码"   />
+<SDFormText name="crmTypeCd2" label="二级缓释品类型编码"   readonlyCond='update'/>
+<SDFormText name="crmTypeCd3" label="三级缓释品类型编码" readonlyCond='update' />
+<SDFormText name="crmTypeCd4" label="四级缓释品类型编码"  readonlyCond='update' />
+<SDFormText name="crmTypeCd5" label="五级缓释品类型编码" readonlyCond='update' />
 <SDFormText name="crmName2" label="二级缓释品类型名称"   />
 <SDFormText name="crmName3" label="三级缓释品类型名称"   />
 <SDFormText name="crmName4" label="四级缓释品类型名称"   />

+ 76 - 63
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/policybank.tsx

@@ -65,69 +65,82 @@ const policybankts: React.FC<aaa>= (prop : aaa) => {
    }
 
     const columns: ProColumns<PolicyBankModel>[] = [
-        { 
-           title: '计算实例号',
-           dataIndex: 'calcindex', // 查询结果中的隐藏列overeignrating
-           search: false,
-           hideInTable: true
-        },
-        {
-            title: '起始数据日期',
-            dataIndex: 'sdate', // 查询结果中的隐藏列
-            valueType: 'date',
-          //  search: false,  //注调查询条件显示
-          //  hideInTable: true //注调字段列显示
-        },
-        { 
-          title: '截止数据日期',
-          dataIndex: 'edate', // 查询结果中的隐藏列
-          valueType: 'date',
-       //   search: false,
-       //   hideInTable: true
-        },
-        { 
-          title: '年月',
-          dataIndex: 'term', // 查询结果中的隐藏列
-          search: false,
-          hideInTable: true
-        },
-        { 
-            title: '数据日期',
-            dataIndex: 'dataDate', // 查询结果中的隐藏列
-            valueType: 'date',
-            search: false,
-         //   hideInTable: true
-        },
-        { 
-           title: '保证人交易对手名称',
-           dataIndex: 'custName', // 查询结果中的隐藏列
-          // search: true,
-          // hideInTable: false
-        },
-        { 
-           title: '缓释一级分类',
-           dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
-           search: false,
-          // hideInTable: true
-        },
-        { 
-            title: '合格信用风险缓释工具类型',
-            dataIndex: 'qualfiedCreditToolTypeName', // 查询结果中的隐藏列
-            search: false,
-           // hideInTable: true
-        },
-        {
-            title: '基础缓释权重',
-            dataIndex: 'baseWeight', // 查询结果中的隐藏列
-            search: false,
-            //hideInTable: true
-        },
-        { 
-            title: '豁免后缓释权重',
-            dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
-            search: false,
-           // hideInTable: true
-        },
+      { 
+        title: '计算实例号',
+        dataIndex: 'calcindex', // 查询结果中的隐藏列overeignrating
+        search: false,
+        hideInTable: true,
+       // ellipsis: true,
+         width:150, 
+         
+     },
+     {
+         title: '起始数据日期',
+         dataIndex: 'sdate', // 查询结果中的隐藏列
+         valueType: 'date',
+       //  search: false,  //注调查询条件显示
+       //  hideInTable: true //注调字段列显示
+       hideInTable:true,
+         width:150, 
+     },
+     { 
+       title: '截止数据日期',
+       dataIndex: 'edate', // 查询结果中的隐藏列
+       valueType: 'date',
+    //   search: false,
+       hideInTable: true,
+         width:150, 
+     },
+     { 
+       title: '年月',
+       dataIndex: 'term', // 查询结果中的隐藏列
+       search: false,
+       hideInTable: true,
+         width:150, 
+     },
+     { 
+         title: '数据日期',
+         dataIndex: 'dataDate', // 查询结果中的隐藏列
+         valueType: 'date',
+         search: false,
+         hideInTable: true,
+         width:150, 
+     },
+     { 
+        title: '保证人交易对手名称',
+        dataIndex: 'custName', // 查询结果中的隐藏列
+       // search: true,
+       // hideInTable: false
+         width:150, 
+     },
+     { 
+        title: '缓释一级分类',
+        dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
+        search: false,
+       // hideInTable: true
+         width:150, 
+     },
+     { 
+         title: '合格信用风险缓释工具类型',
+         dataIndex: 'qualfiedCreditToolTypeName', // 查询结果中的隐藏列
+         search: false,
+        // hideInTable: true
+         width:150, 
+     },
+     {
+         title: '基础缓释权重',
+         dataIndex: 'baseWeight', // 查询结果中的隐藏列
+         search: false,
+         //hideInTable: true
+         width:150, 
+     },
+     { 
+         title: '豁免后缓释权重',
+         dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
+         search: false,
+        // hideInTable: true
+         width:150, 
+     },
         {
             title: '操作',
             dataIndex: 'operate',

+ 116 - 99
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/repurchasePledgeInfo.tsx

@@ -81,105 +81,122 @@ const repurchasePledgeInfots: React.FC<bbb>= (prop : bbb) => {
    }
 
     const columns: ProColumns<repurchasePledgeInfoModel>[] = [
-        { 
-           title: '计算实例号',
-           dataIndex: 'calcindex', // 查询结果中的隐藏列overeignrating
-           search: false,
-           hideInTable: true
-        },
-        {
-            title: '起始数据日期',
-            dataIndex: 'sdate', // 查询结果中的隐藏列
-            valueType: 'date',
-          //  search: false,  //注调查询条件显示
-          //  hideInTable: true //注调字段列显示
-        },
-        { 
-          title: '截止数据日期',
-          dataIndex: 'edate', // 查询结果中的隐藏列
-          valueType: 'date',
-       //   search: false,
-       //   hideInTable: true
-        },
-        { 
-          title: '年月',
-          dataIndex: 'term', // 查询结果中的隐藏列
-          search: false,
-          hideInTable: true
-        },
-        { 
-            title: '数据日期',
-            dataIndex: 'dataDate', // 查询结果中的隐藏列
-            valueType: 'date',
-            search: false,
-         //   hideInTable: true
-        },
-        { 
-           title: '回购类型',
-           dataIndex: 'repoTypeCd', // 查询结果中的隐藏列
-          // search: true,
-          // hideInTable: false
-        },
-        { 
-            title: '证券种类',
-            dataIndex: 'secClassificationCd', // 查询结果中的隐藏列
-           // search: true,
-           // hideInTable: false
-         },
-         { 
-            title: '证券名称',
-            dataIndex: 'secName', // 查询结果中的隐藏列
-           // search: true,
-           // hideInTable: false
-         },
-         { 
-          title: '截止日期(缓释到期日-缓释起始日)',
-          dataIndex: 'deadline', // 查询结果中的隐藏列
-         // search: true,
-         // hideInTable: false
-       },
-         { 
-            title: '一般专项标签',
-            dataIndex: 'purposeFlag', // 查询结果中的隐藏列
-           // search: true,
-           // hideInTable: false
-         },
-         { 
-            title: '是否合格信用风险缓释工具',
-            dataIndex: 'isqualfied', // 查询结果中的隐藏列
-           // search: true,
-           // hideInTable: false
-         },
-        { 
-           title: '缓释一级分类',
-           dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
-           search: false,
-          // hideInTable: true
-        },
-        { 
-            title: '合格信用风险缓释工具类型',
-            dataIndex: 'qualfiedCreditToolType', // 查询结果中的隐藏列
-            search: false,
-           // hideInTable: true
-        },
-        {
-            title: '基础缓释权重',
-            dataIndex: 'baseWeight', // 查询结果中的隐藏列
-            search: false,
-            //hideInTable: true
-        },
-        {
-            title: '是否豁免缓释权重底线',
-            dataIndex: 'isexempt', // 查询结果中的隐藏列
-            search: false,
-            //hideInTable: true
-        },
-        { 
-            title: '豁免后缓释权重',
-            dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
-            search: false,
-           // hideInTable: true
-        },
+      { 
+        title: '计算实例号',
+        dataIndex: 'calcindex', // 查询结果中的隐藏列overeignrating
+        search: false,
+        hideInTable: true,
+        ellipsis: true,
+        width:150,  
+     },
+     {
+         title: '起始数据日期',
+         dataIndex: 'sdate', // 查询结果中的隐藏列
+         valueType: 'date',
+       //  search: false,  //注调查询条件显示
+         hideInTable: true, //注调字段列显示
+        width:150,  
+     },
+     { 
+       title: '截止数据日期',
+       dataIndex: 'edate', // 查询结果中的隐藏列
+       valueType: 'date',
+    //   search: false,
+    hideInTable:true,
+        width:150,  
+     },
+     { 
+       title: '年月',
+       dataIndex: 'term', // 查询结果中的隐藏列
+       search: false,
+       hideInTable: true,
+        width:150,  
+     },
+     { 
+         title: '数据日期',
+         dataIndex: 'dataDate', // 查询结果中的隐藏列
+         valueType: 'date',
+         search: false,
+         hideInTable:true,
+        width:150,  
+     },
+     { 
+        title: '回购类型',
+        dataIndex: 'repoTypeCd', // 查询结果中的隐藏列
+       // search: true,
+       // hideInTable: false
+        width:150,  
+     },
+     { 
+         title: '证券种类',
+         dataIndex: 'secClassificationCd', // 查询结果中的隐藏列
+        // search: true,
+        // hideInTable: false
+         width:150,  
+     },
+      { 
+         title: '证券名称',
+         dataIndex: 'secName', // 查询结果中的隐藏列
+        // search: true,
+        // hideInTable: false
+         width:150,  
+     },
+      { 
+       title: '截止日期(缓释到期日-缓释起始日)',
+       dataIndex: 'deadline', // 查询结果中的隐藏列
+      // search: true,
+      // hideInTable: false
+       width:150,  
+     },
+      { 
+         title: '一般专项标签',
+         dataIndex: 'purposeFlag', // 查询结果中的隐藏列
+        // search: true,
+        // hideInTable: false
+         width:150,  
+     },
+      { 
+         title: '是否合格信用风险缓释工具',
+         dataIndex: 'isqualfied', // 查询结果中的隐藏列
+        // search: true,
+        // hideInTable: false
+         width:150,  
+     },
+     { 
+        title: '缓释一级分类',
+        dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
+        search: false,
+       // hideInTable: true
+        width:150,  
+     },
+     { 
+         title: '合格信用风险缓释工具类型',
+         dataIndex: 'qualfiedCreditToolType', // 查询结果中的隐藏列
+         search: false,
+        // hideInTable: true
+        width:150,  
+     },
+     {
+         title: '基础缓释权重',
+         dataIndex: 'baseWeight', // 查询结果中的隐藏列
+         search: false,
+         //hideInTable: true
+        width:150,  
+     },
+     {
+         title: '是否豁免缓释权重底线',
+         dataIndex: 'isexempt', // 查询结果中的隐藏列
+         search: false,
+         //hideInTable: true
+        width:150,  
+     },
+     { 
+         title: '豁免后缓释权重',
+         dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
+         search: false,
+        // hideInTable: true
+        width:150,  
+     },
         {
             title: '操作',
             dataIndex: 'operate',

+ 192 - 139
Procedure/frontend/projectb/src/pages/rdpMng/Template/Coding/components/sovereign.tsx

@@ -1,24 +1,28 @@
 import React, { useEffect, useRef, useState } from 'react';
 import { Button, Form, FormInstance, Input, Space, Tooltip } from 'antd';
-import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun } from '@sundata/ui-frame';
-import { SovereignModel, deleteSovereign, getSovereign, inserteSovere, selectSovereign } from '@/services/rwa/sovereign';
+import { EditType, SDForm, SDFormDict, SDFormText, SDModal, SDModalForm, SDOperate, SDPage, SDSubmitButton, SDTable, baseFun, SDButton } from '@sundata/ui-frame';
+import { SovereignModel, deleteSovereign, getSovereign, inserteSovere, selectSovereign, exportExcelModel, selectSovereignCode } from '@/services/rwa/sovereign';
 import { ActionType, ProColumns } from '@ant-design/pro-table';
-import { WomanOutlined } from '@ant-design/icons';
+import { ExportOutlined, WomanOutlined } from '@ant-design/icons';
 import { deletedata } from '@/services/idataMng/impandauditp';
+import { useModel } from '@umijs/max';
+import { ProFormInstance } from '@ant-design/pro-components';
 
 type aaa = {
-  custName ?:String;
+  custName ?:any;
   onCancel:  () => void;
   onChangeVisible(visible: boolean, type: string): unknown;
   onChangeVisdible:(visible:boolean,type ?: 'none' | 'raload' )=>void;
+  formRef: React.MutableRefObject<ProFormInstance<any> | undefined>;
 }
 
 
 const sovereignts: React.FC<aaa>= (prop : aaa) => {
-
+  const ref = prop.formRef;
     const [editType, setEditType] = useState<EditType>('update');
     const formRef = useRef<FormInstance<any>>();
-      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
+    const formRef1 = useRef<FormInstance<any>>();
+      /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件  */
     const [currentRow, setCurrentRow] = useState<SovereignModel>();
     const [dataSource, setDataSource] = useState<any>() ;
     const [detailVisible, setDetailVisible] = useState<boolean>(false);
@@ -28,15 +32,21 @@ const sovereignts: React.FC<aaa>= (prop : aaa) => {
     const tableActionRef = useRef<ActionType>();
 
     const SovereignModel = ( custName: string) => deleteSovereign(custName);
+    const { fetchDict } = useModel('dict');
 
-
-      /** 表格引用对象,刷新表格使用   */
+      /** 表格引用对象,刷新表格使用  */
   const actionRef = useRef<ActionType>();
     useEffect(() => {//初始化调用dealinitxmldomain
         dealinit();
       }, []);
+
+      var formDataList = new Array<SovereignModel>;
+
       
         const dealinit=async()=>{
+          console.log(1);
+          // const sd = await getSovereign(formData,"");
+          // return {data :sd};
       //     if ( false){
       //     const sd = await selectdata(prop);
       //     formRef.current?.setFieldsValue(sd);
@@ -48,15 +58,22 @@ const sovereignts: React.FC<aaa>= (prop : aaa) => {
       // }
       //  console.log(sd);
        
-      //   formRef.current?.setFieldsValue(sd.data);
       //   //return getSovereign();
         
       }
       const selectdata = async (record:any)=>{
-         const sd =await selectSovereign(record.custName);
-         console.log(sd);
+        const sd =await selectSovereign(record.custName);
          formRef.current?.setFieldsValue(sd);
-      }
+      
+    }
+
+   
+    const selectdata1=async()=>{
+      const sd = await selectSovereign;
+      
+      // console.log( sd);
+      //formRef.current?.setFieldValue('crmFirstLevel','保证');
+  }
 
       const closeAndRefresh = ()=>{
         setVisible(false);
@@ -90,76 +107,101 @@ const sovereignts: React.FC<aaa>= (prop : aaa) => {
         }
 
       const columns: ProColumns<SovereignModel>[] = [
-    { 
-       title: '计算实例号',
-       dataIndex: 'calcindex', // 查询结果中的隐藏列
-       search: false,
-       hideInTable: true
-    },
-    {
-        title: '起始数据日期',
-        dataIndex: 'sdate', // 查询结果中的隐藏列
-        valueType: 'date',
-      //  search: false,  //注调查询条件显示
-      //  hideInTable: true //注调字段列显示
-    },
-    { 
-      title: '截止数据日期',
-      dataIndex: 'edate', // 查询结果中的隐藏列
-      valueType: 'date',
-   //   search: false,
-   //   hideInTable: true
-    },
-    { 
-      title: '年月',
-      dataIndex: 'term', // 查询结果中的隐藏列
-      valueType:"dateMonth",
-    //  search: false,
-      hideInTable: true
-    },
-    { 
-        title: '数据日期',
-        dataIndex: 'dataDate', // 查询结果中的隐藏列
-        valueType: 'date',
-        search: false,
-     //   hideInTable: true
-    },
-    { 
-       title: '保证人交易对手名称',
-       dataIndex: 'custName', // 查询结果中的隐藏列
-      // search: true,
-      // hideInTable: false
-    },
-    {
-       title: '主权评级(如有)',
-       dataIndex: 'sovereignRating', // 查询结果中的隐藏列
-       search: false,
-       //hideInTable: true
-    },
-    { 
-       title: '缓释一级分类',
-       dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
-       search: false,
-      // hideInTable: true
-    },
-    { 
-        title: '合格信用风险缓释工具类型',
-        dataIndex: 'qualfiedCreditToolTypeName', // 查询结果中的隐藏列
-        search: false,
-       // hideInTable: true
-    },
-    {
-        title: '基础缓释权重',
-        dataIndex: 'baseWeight', // 查询结果中的隐藏列
-        search: false,
-        //hideInTable: true
-    },
-    { 
-        title: '豁免后缓释权重',
-        dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
-        search: false,
-       // hideInTable: true
-    },
+        { 
+          title: '计算实例号',
+          dataIndex: 'calcindex', // 查询结果中的隐藏列
+       //   search: false,
+          ellipsis: true,
+          hideInTable: true
+          ,width:150  
+   },
+       {
+           title: '起始数据日期',
+           dataIndex: 'sdate', // 查询结果中的隐藏列
+           valueType: 'date',
+         //  search: false,  //注调查询条件显示
+           hideInTable: true ,//注调字段列显示
+          width:150  
+   },
+       { 
+         title: '截止数据日期',
+         dataIndex: 'edate', // 查询结果中的隐藏列
+         valueType: 'date',
+      //   search: false,
+         hideInTable: true,
+          width:150  
+   },
+       { 
+         title: '年月',
+         dataIndex: 'term', // 查询结果中的隐藏列
+         valueType:"dateMonth",
+       //  search: false,
+         hideInTable: true
+          ,width:150  
+   },
+       { 
+           title: '数据日期',
+           dataIndex: 'dataDate', // 查询结果中的隐藏列
+           valueType: 'date',
+       //    search: false,
+           hideInTable: true,
+          width:150  
+   },
+       { 
+          title: '国家名称',
+          dataIndex: 'custName', // 查询结果中的隐藏列
+          search: false,
+         // hideInTable: false
+          width:150  ,
+        //  valueType: 'treeSelect',
+          // fieldProps: {
+          //   treeDefaultExpandAll: true,
+          //   treeCheckable: true,
+          // },
+          // request: () => fetchDict('region'),
+   },
+   {
+    title: '国家代码',
+    dataIndex: 'sovereignCode', // 查询结果中的隐藏列
+    search: false,
+   // hideInTable: true,
+    width:150  
+   },
+       {
+          title: '主权评级(如有)',
+          dataIndex: 'sovereignRating', // 查询结果中的隐藏列
+          search: false,
+          //hideInTable: true
+          width:150  
+   },
+       { 
+          title: '缓释一级分类',
+          dataIndex: 'crmFirstLevel', // 查询结果中的隐藏列
+          search: false,
+         // hideInTable: true
+          width:150  
+   },
+       { 
+           title: '合格信用风险缓释工具类型',
+           dataIndex: 'qualfiedCreditToolTypeName', // 查询结果中的隐藏列
+           search: false,
+          // hideInTable: true
+          width:180  
+   },
+       {
+           title: '基础缓释权重',
+           dataIndex: 'baseWeight', // 查询结果中的隐藏列
+           search: false,
+           //hideInTable: true
+          width:150  
+   },
+       { 
+           title: '豁免后缓释权重',
+           dataIndex: 'exemptionWeight', // 查询结果中的隐藏列
+           search: false,
+          // hideInTable: true
+          width:150  
+   },
     {
         title: '操作',
         dataIndex: 'operate',
@@ -207,96 +249,106 @@ const sovereignts: React.FC<aaa>= (prop : aaa) => {
        </SDOperate>,
         ],
       },
-
-    // {
-    //   title: '操作',
-    //   key: 'option',
-    //   valueType: 'option',
-    //   render: (_, record, index, action) => {
-    //     const btns: React.ReactNode[] = [];
-    //     const bts = record.roleStr?.split(',');
-    //     let btnIndex = 0;
-    //     bts?.forEach((bt: string) => {
-    //       const btn = (
-    //         <SDOperate
-    //         successMessage=''
-    //           key={'btn' + btnIndex++}
-    //           onClick={() => {
-    //             setCurrentRow(record);
-    //             if (bt === '查看') {
-    //               setEditType('display');
-    //               setVisible(true);
-    //             } else if (bt === '修改') {
-    //               setEditType('update');
-    //               setVisible(true);
-    //             }
-    //           }}
-    //           defaultIcon
-    //         >
-    //           {bt}
-    //         </SDOperate>
-    //       );
-    //       btns.push(btn);
-    //     })
-   
-    //     return btns;
+      ]
+     
+    //   const sd1 = async(formData:SovereignModel)=>{
+    //     console.log(2)
+    //   if(formData.custName ===undefined){
+    //     const sd = await getSovereign(formData,"");
+    //     formDataList=[...sd];
+    //     return {data :sd };
+    //   } else{
+    //     var value ="";
+    //     formData.custName.forEach(function(item){ value += item +","}); // 循环下拉树数组变成字符串
+    //     value= value.substring(0,value.length-1) // 去除最后一位,
+    //     let {custName,...Model1}=formData  // 重新解构对象 去除custName字段
+    //   const sd = await getSovereign(Model1,value);
+    //   return {data :sd };
     //   }
+
     // }
 
+    const sd1 = async(formData:SovereignModel)=>{
+      const sd = await getSovereign(formData);
+      formDataList =[...sd];
+      return {data :sd };
+    }
 
-      ]
 
 return (
     <SDPage >
         <SDTable
       title="查询表格"
       rowKey="custName"
-      request={async(formData : SovereignModel)=>{
-        const sd = await getSovereign(formData);
-        return {data :sd };
-      }}
+      request={sd1}
       columns={columns}
      //  singleSelect={false}
-     operations={["create"]}
+    // operations={["create"]}
       //displayColumn="custName"
      actionRef={actionRef}
      formRef={formRef}
      //handleRemove={deletedata}
-      setCurrentRow={setCurrentRow}
-      setEditType={setEditType}
-      setDetailVisible={setVisible}           
+      //setCurrentRow={setCurrentRow}
+     // setEditType={setEditType}
+     // setDetailVisible={setVisible}   
+      toolBarRender={(_, { selectedRows }) => [
+        <SDButton
+          key="export"
+          successMessage='导出成功'
+          onClick={() => {
+            
+            // if (selectedRows === undefined || selectedRows.length < 1) {
+            //   baseFun.warning('请先选择要倒出的模板');
+            //   return;
+            // }
+            
+            exportExcelModel(formDataList);
+            //baseFun.info('处理完成');
+          }}
+        >
+          全部导出
+        </SDButton>,
+        <SDButton
+        key="create"
+        onClick={() => {
+          setVisible(true);
+          setEditType('create');
+          formRef.current?.setFieldValue('crmFirstLevel','保证');
+        }}
+        >
+          新增
+        </SDButton>
+      ]}      
        >
         </SDTable>
         
      { visible &&(
-
-      
       <SDModalForm  
       visible={visible}
       //rowKey="custName" 
       editType={editType} 
-      request={selectdata}
+     // request={selectdata1}
       //params={setDataSource}
       onVisibleChange={() => { setVisible(false) }}
       footer={[<SDSubmitButton  editType={editType}   formRef={formRef} doSubmit={inst} >保存</SDSubmitButton>]}
       formRef={formRef}
+      onValuesChange={async (changedValues,Values) => {
+        if(changedValues.custName!=undefined){      
+          const sd = await selectSovereignCode(changedValues.custName);
+          console.log(sd);
+          formRef.current?.setFieldValue('sovereignCode',sd)}
+       // const jiaoyan=formRef.current?.getFieldsValue();
+      }}
        >
 
-<SDFormText name="custName" label="保证人交易对手名称" readonlyCond='update' /> 
-      <SDFormText name="sovereignRating" label="主权评级(如有)"   />
-      <SDFormText name="crmFirstLevel" label="缓释一级分类"   />
+<SDFormDict name="custName" label="国家名称" readonlyCond='update' dictKey='@sovereignCode' /> 
+<SDFormText name="sovereignCode" label="国家代码"   readonlyCond='both'  />
+      <SDFormDict name="sovereignRating" label="主权评级(标普)"   dictKey="sovereignRating"  />
+      <SDFormText name="crmFirstLevel" label="缓释分类"   />
       <SDFormText name="qualfiedCreditToolTypeName" label="合格信用风险缓释工具类型"   />
-      <SDFormText name="baseWeight" label="基础缓释权重"   />
-      <SDFormText name="exemptionWeight" label="豁免后缓释权重"   />
+      <SDFormText name="baseWeight" label="缓释风险权重%"   />
       </SDModalForm>
-     
-      
-
-
      )
-
-
-
      }   
     
     </SDPage>
@@ -304,3 +356,4 @@ return (
 
 };export default sovereignts;
 
+

+ 66 - 0
Procedure/frontend/projectb/src/services/rwa/fcCommitment.ts

@@ -0,0 +1,66 @@
+import { baseFun, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
+
+export type FcCommitmentModel ={
+ //计算实例号
+calcindex : String ; 
+//起始数据日期
+sdate : String ; 
+//截止数据日期
+edate : String ; 
+//年月
+term : String ; 
+//数据日期
+dataDate : String ; 
+//债项编号
+loanReferenceNo : String ; 
+//财务机构编号
+finBranchNo : String ; 
+//经营机构编号
+mgmtBranchNo : String ; 
+//业务类型
+busType : String ; 
+//客户编号
+custNo : String ; 
+//客户名称
+custName : String ; 
+//产品编号
+productNo : String ; 
+//产品名称
+productName : String ; 
+//表内外标识
+onOffFlag : String ; 
+//账簿类型
+bookTypeCd : String ; 
+//币种代码
+ccyCd : String ; 
+//生效日
+startDt : String ; 
+//到期日
+matDt : String ; 
+//合同金额
+ctrAmount : number ; 
+//循环标识
+revolvingFlag : String ; 
+//资产余额
+balance : number ; 
+//计提准备金
+reserve : number ; 
+//本金科目号
+balAccount : String ; 
+//准备金科目号
+reserveAccount : String ; 
+//核心客户号
+bpCustNo : String ; 
+//所属条线
+busLine : String ; 
+//承诺类型
+commType : String ; 
+
+}
+export async function getFcCommitment(body:FcCommitmentModel){
+    return baseFun.request<TableData<FcCommitmentModel>>('/api/product/rwa/parameter/getFcCommitment',{
+        data:body
+    // dats:modelcode
+    })
+    ;
+}

+ 104 - 0
Procedure/frontend/projectb/src/services/rwa/fcLoan.ts

@@ -0,0 +1,104 @@
+import { baseFun, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
+
+export type FcLoanModel ={
+     //计算实例号
+     calcindex : String ; 
+     //起始数据日期
+     sdate : String ; 
+     //截止数据日期
+     edate : String ; 
+     //年月
+     term : String ; 
+     //数据日期
+     dataDate : String ; 
+     //债项编号
+     loanReferenceNo : String ; 
+     //借款合同编号
+     contNo : String ; 
+     //账务机构编号
+     finBranchNo : String ; 
+     //经营机构编号
+     mgmtBranchNo : String ; 
+     //客户编号
+     custNo : String ; 
+     //客户名称
+     custName : String ; 
+     //客户类型
+     custType : String ; 
+     //产品编号
+     productNo : String ; 
+     //产品名称
+     productName : String ; 
+     //表内外标识
+     onOffFlag : String ; 
+     //账簿类型
+     bookTypeCd : String ; 
+     //生效日
+     startDt : String ; 
+     //到期日
+     matDt : String ; 
+     //资产余额
+     balance : number ; 
+     //应收利息
+     recInt : number ; 
+     //应计利息
+     accrInt : number ; 
+     //利息调整
+     intAdj : number ; 
+     //公允价值变动
+     fairValueChange : number ; 
+     //计提准备金
+     reserve : String ; 
+     //本金科目号
+     glAccountId : String ; 
+     //应收利息科目号
+     recIntAccount : String ; 
+     //应计利息科目号
+     accrIntAccount : String ; 
+     //利息调整科目号
+     intAdjAccount : String ; 
+     //公允价值变动科目号
+     fairValAccount : String ; 
+     //准备金科目号
+     reserveAccount : String ; 
+     //行业投向门类
+     investIndustryCd : String ; 
+     //行业投向大类
+     investIndustryCd1 : String ; 
+     //行业投向中类
+     investIndustryCd2 : String ; 
+     //行业投向子类
+     investIndustryCd3 : String ; 
+     //房地产开发项目类型
+     propDevelProjTypeCd : String ; 
+     //是否满足审慎贷款审批标准标志
+     qualifiedApprovalProcedure : String ; 
+     //债务重组标识
+     reconstructionFlag : String ; 
+     //逾期天数
+     overdueDays : number ; 
+     //五级分类
+     fiveClassCd : String ; 
+     //币种代码
+     ccyCd : String ; 
+     //发放金额
+     amount : number ; 
+     //核心客户号
+     bpCustNo : String ; 
+     //所属条线
+     busLine : String ; 
+     //开证行名称
+     openingBank : String ; 
+     //开证行行号
+     openingBankno : String ; 
+     //跨境货物贸易标志
+     domDocFlag : String ; 
+
+}
+export async function getFcLoan(body:FcLoanModel){
+    return baseFun.request<TableData<FcLoanModel>>('/api/product/rwa/parameter/getFcLoan',{
+        data:body
+    // dats:modelcode
+    })
+    ;
+}

+ 90 - 0
Procedure/frontend/projectb/src/services/rwa/fcOffSheet.ts

@@ -0,0 +1,90 @@
+import { baseFun, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
+
+export type FcOffSheetModel ={
+//计算实例号
+calcindex : String ; 
+//起始数据日期
+sdate : String ; 
+//截止数据日期
+edate : String ; 
+//年月
+term : String ; 
+//数据日期
+dataDate : String ; 
+//债项编号
+loanReferenceNo : String ; 
+//合同编号
+contractNo : String ; 
+//账务机构编号
+finBranchNo : String ; 
+//经营机构编号
+mgmtBranchNo : String ; 
+//客户编号
+custNo : String ; 
+//客户名称
+custName : String ; 
+//产品编号
+productNo : String ; 
+//产品名称
+productName : String ; 
+//表内外标识
+onOffFlag : String ; 
+//账簿类型
+bookType : String ; 
+//币种代码
+ccyCd : String ; 
+//生效日
+startDt : String ; 
+//到期日
+matDt : String ; 
+//资产余额
+balance : number ; 
+//应收利息
+recInt : number ; 
+//应计利息
+accrInt : number ; 
+//利息调整
+intAdj : number ; 
+//公允价值变动
+fairValueChange : number ; 
+//计提准备金
+reserve : number ; 
+//本金科目号
+balAccount : String ; 
+//应收利息科目号
+recIntAccount : String ; 
+//应计利息科目号
+accrIntAccount : String ; 
+//利息调整科目号
+intAdjAccount : String ; 
+//公允价值变动科目号
+fairValAccount : String ; 
+//准备金科目号
+reserveAccount : String ; 
+//五级分类代码
+fiveClassCd : String ; 
+//信用证有效期
+lcExpiDt : String ; 
+//跨境货物贸易标志
+domDocFlag : String ; 
+//国内/国际证标签
+domInteFlag : String ; 
+//贸易类型代码
+tradeTypeCd : String ; 
+//票号
+billNo : String ; 
+//核心客户号
+bpCustNo : String ; 
+//融资性/非融资性标签
+lgType : String ; 
+//开证日
+openingDt : String ; 
+
+}
+export async function getFcOffSheet(body:FcOffSheetModel){
+    return baseFun.request<TableData<FcOffSheetModel>>('/api/product/rwa/parameter/getFcOffSheet',{
+        data:body
+    // dats:modelcode
+    })
+    ;
+}

+ 81 - 0
Procedure/frontend/projectb/src/services/rwa/ffRepo.ts

@@ -0,0 +1,81 @@
+import { baseFun, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
+
+export type FfRepoModel ={
+//计算实例号
+calcindex : String ; 
+//起始数据日期
+sdate : String ; 
+//截止数据日期
+edate : String ; 
+//年月
+term : String ; 
+//数据日期
+dataDate : String ; 
+//债项编号
+loanReferenceNo : String ; 
+//产品编号
+productNo : String ; 
+//产品名称
+productName : String ; 
+//质押买断类型
+zhiyaMaiduanCd : String ; 
+//回购类型
+repoTypeCd : String ; 
+//账务机构编号
+finBranchNo : String ; 
+//经营机构编号
+mgmtBranchNo : String ; 
+//客户编号
+custNo : String ; 
+//客户名称
+custName : String ; 
+//表内外标识
+onOffFlag : String ; 
+//账簿类型
+bookTypeCd : String ; 
+//币种代码
+ccyCd : String ; 
+//生效日
+startDt : String ; 
+//到期日
+matDt : String ; 
+//回购期限
+repoDays : number ; 
+//资产余额
+balance : number ; 
+//应收利息
+recInt : number ; 
+//应计利息
+accrInt : number ; 
+//利息调整
+intAdj : number ; 
+//公允价值变动
+fairValueChange : number ; 
+//计提准备金
+reserve : number ; 
+//本金科目号
+glAccountId : String ; 
+//应收利息科目号
+recIntAccount : String ; 
+//应计利息科目号
+accrIntAccount : String ; 
+//利息调整科目号
+intAdjAccount : String ; 
+//公允价值变动科目号
+fairValAccount : String ; 
+//准备金科目号
+reserveAccount : String ; 
+//债券代码
+billNo : String ; 
+//核心市场参与者标识
+coreMarketPartFlag : String ; 
+
+}
+
+export async function getFfRepo(body:FfRepoModel){
+    return baseFun.request<TableData<FfRepoModel>>('/api/product/rwa/parameter/getFfRepo',{
+        data:body
+    // dats:modelcode
+    })
+    ;
+}

+ 58 - 0
Procedure/frontend/projectb/src/services/rwa/govFinancialAssetComp.ts

@@ -0,0 +1,58 @@
+import type { BasePageModel, TableData } from '@sundata/ui-frame';
+import { baseFun } from '@sundata/ui-frame';
+
+export type GovFinancialAssetCompModel = {
+//计算实例号
+calcindex : String;
+//起始数据日期
+sdate : String;
+//截止数据日期
+edate : String;
+//年月
+term : String;
+//数据日期
+dataDate : String;
+//缓释分类
+crmClass : String;
+//合格信用风险缓释工具类型
+qualfiedCreditToolTypeName : String;
+//缓释权重
+weight : number;
+//名称
+name : String;
+//备注
+notes : String;
+}& BasePageModel;
+
+
+export async function getGovFinancialAssetComp(body:GovFinancialAssetCompModel){
+    return baseFun.request<TableData<GovFinancialAssetCompModel>>('/api/product/rwa/parameter/getGovFinancialAssetComp',{
+        data:body
+    // dats:modelcode
+    })
+    ;
+}
+
+export async function deleteGovFinancialAssetComp(name :String){
+    return baseFun.request<GovFinancialAssetCompModel>('/api/product/rwa/parameter/deleteGovFinancialAssetComp',{
+        params:{name}
+    // dats:modelcode
+    })
+    ;
+}
+
+export async function selectGovFinancialAssetComp(name :String){
+    return baseFun.request<GovFinancialAssetCompModel>('/api/product/rwa/parameter/selectGovFinancialAssetComp',{
+        params:{name}
+    // dats:modelcode
+    })
+    ;
+}
+
+export async function inserteGovFinancialAssetComp(body :GovFinancialAssetCompModel){
+    return baseFun.request<TableData<GovFinancialAssetCompModel>>('/api/product/rwa/parameter/inserteGovFinancialAssetComp',{
+        data:body
+    // dats:modelcode
+    })
+    ;
+}

+ 27 - 10
Procedure/frontend/projectb/src/services/rwa/sovereign.ts

@@ -1,4 +1,4 @@
-import { baseFun, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
+import { baseFun, BasePageModel, DictTree, SDTable, SDTableProps,TableData } from "@sundata/ui-frame"
 
 export type SovereignModel={
     // 计算实例号
@@ -12,7 +12,9 @@ export type SovereignModel={
     // 数据日期
     dataDate :String;
     // 保证人交易对手名称
-    custName :String;
+    custName ?:String;
+    //国家代码
+    sovereignCode :String;
     // 主权评级主权评级(如有)
     sovereignRating : String ;
     // 缓释一级分类
@@ -25,16 +27,17 @@ export type SovereignModel={
     exemptionWeight : number;
     roleStr?: string;//操作列
 
-}
+}& BasePageModel;
 
 export type SovereignModelts ={
     SovereignModelDemo ?: SovereignModel,
    // addEvalmodelParamMaintenanceModelList ?: readonly AddEvalmodelParamMaintenanceModel[],
 }
 
-export async function getSovereign(body:SovereignModel){
-    return baseFun.request<TableData<SovereignModel>>('/api/product/rwa/parameter/getSovereign',{
-        data:body
+export async function getSovereign(body:any){
+
+    return baseFun.request<SovereignModel[]>('/api/product/rwa/parameter/getSovereign',{
+        data:body,
     // dats:modelcode
     })
     ;
@@ -49,7 +52,7 @@ export async function deleteSovereign(custName :String){
     ;
 }
 
-export async function selectSovereign(custName :String){
+export async function selectSovereign(custName ?:any){
     return baseFun.request<SovereignModel>('/api/product/rwa/parameter/selectSovereign',{
         params:{custName}
     // dats:modelcode
@@ -61,6 +64,20 @@ export async function inserteSovere(body :SovereignModel){
     return baseFun.request<TableData<SovereignModel>>('/api/product/rwa/parameter/insertSovereign',{
         data:body
     // dats:modelcode
-    })
-    ;
-}
+    });
+
+}
+
+
+     /** 全部导出 */
+     export async function exportExcelModel(body: SovereignModel[]) {
+        return baseFun.request('/api/product/rwa/parameter/exportExcelModel.do', { data:body });
+      }
+
+      export async function selectSovereignCode(custName :any){
+        return baseFun.request<any>('/api/product/rwa/parameter/selectSovereignCode',{
+            params:{custName}
+        // dats:modelcode
+        });
+    
+    }