123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- 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, SDButton } 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';
- import { exportExcelModel, FaGlBalanceSheetModel, getFaGlBalanceSheet } from '@/services/rwa/faGlBalanceSheet';
- type aaa = {
-
- }//总账科目余额表
- const faGlBalanceSheetModel: React.FC<aaa>= (prop : aaa) => {
- const [editType, setEditType] = useState<EditType>('update');
- const formRef = useRef<FormInstance<any>>();
- /** 当前行对象,查看详情、修改时,作为详细信息表单的查询条件 */
- const [currentRow, setCurrentRow] = useState<FaGlBalanceSheetModel>();
- 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>();
- var formDataList =new Array<FaGlBalanceSheetModel>;
- const columns: ProColumns<FcLoanModel>[] = [
-
- {
- title : '计算实例号',
- dataIndex : 'calcindex',
- search:false,
- hideInTable:true,
- width : 150
- },
- {
- title : '截止数据日期',
- dataIndex : 'edate',
- search:false,
- hideInTable:true,
- width : 150
- },
- {
- title : '起始数据日期',
- dataIndex : 'sdate',
- search:false,
- hideInTable:true,
- width : 150
- },
- {
- title : '年月',
- dataIndex : 'term',
- search:false,
- hideInTable:true,
- width : 150
- },
- {
- title : '数据日期',
- dataIndex : 'dataDate',
- valueType:'date',
- width : 150
- },
- {
- title : '报表日期',
- dataIndex : 'reportDate',
- search:false,
- width : 150
- },
- {
- title : '账务机构编码',
- dataIndex : 'finBranchNo',
- search:false,
- width : 150
- },
- {
- title : '账务机构名称',
- dataIndex : 'finBranchName',
- search:false,
- width : 150
- },
- {
- title : '科目',
- dataIndex : 'glCode',
- width : 150
- },
- {
- title : '科目描述',
- dataIndex : 'subjectDesc',
- width : 150
- },
- {
- title : '当日借方余额',
- dataIndex : 'deBalance',
- search:false,
- width : 150
- },
- {
- title : '当日贷方余额',
- dataIndex : 'crBalance',
- search:false,
- width : 150
- },
-
- ]
- return(
- <SDPage>
- <SDTable
- title="查询表格"
- rowKey="custName"
- request={async(formData : FaGlBalanceSheetModel)=>{
- const sd = await getFaGlBalanceSheet(formData);
- formDataList =[...sd];
- return {data :sd };
- }}
- columns={columns}
- // singleSelect={false}
- // operations={["create"]}
- //displayColumn="custName"
- actionRef={actionRef}
- formRef={formRef}
- //handleRemove={deletedata}
- // setCurrentRow={setCurrentRow}
- setEditType={setEditType}
- setDetailVisible={setVisible}
- toolBarRender={(_, { selectedRows }) => [
- <SDButton
- key="export"
- // successMessage='导出成功'
- onClick={async () => {
- exportExcelModel("faGlBalanceSheet",formDataList);
- //baseFun.info('处理完成');
- }}
- >
- 全部导出
- </SDButton>,
- ]}
- />
-
- </SDPage>
- )
- };export default faGlBalanceSheetModel;
|