|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import React, { FC, useEffect, useState } from "react";
|
|
|
|
|
import { exceptStr, paginationFun } from "@/utils/common";
|
|
|
|
|
import { defaultPage, ILoading, IPage } from "@/common/types/page";
|
|
|
|
|
import { message, Spin, Table, Typography } from "antd";
|
|
|
|
|
import { Button, message, Spin, Table, Typography } from "antd";
|
|
|
|
|
import { LockOutlined, UnlockOutlined } from "@ant-design/icons";
|
|
|
|
|
import API from "@/api";
|
|
|
|
|
import styles from "./index.less";
|
|
|
|
@ -66,7 +66,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
|
const confCode: any = await API.CalculateService.getSysconfcode({ code: "OPEN_ACCT_RESULT_SUM" });
|
|
|
|
|
setShowSumrow(confCode.data.status && confCode.data.data === "1");
|
|
|
|
|
if (confCode.data.status && confCode.data.data === "1") {
|
|
|
|
|
const sumRowlist: any = await API.CalculateService.getAcctresultsum({...extraParams["queryParams"]});
|
|
|
|
|
const sumRowlist: any = await API.CalculateService.getAcctresultsum({ ...extraParams["queryParams"] });
|
|
|
|
|
if (sumRowlist.data.status && !_.isEmpty(sumRowlist.data.data.sumRow)) {
|
|
|
|
|
setSumRow(sumRowlist.data.data.sumRow);
|
|
|
|
|
}
|
|
|
|
@ -86,7 +86,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
|
title: "操作",
|
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
|
return (
|
|
|
|
|
<a
|
|
|
|
|
<Button type="link" style={{ padding: "0" }}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
window.parent.postMessage(
|
|
|
|
|
{
|
|
|
|
@ -98,7 +98,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
删除
|
|
|
|
|
</a>
|
|
|
|
|
</Button>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}];
|
|
|
|
@ -278,7 +278,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
|
width: "100px",
|
|
|
|
|
fixed: "right",
|
|
|
|
|
render: (text: string, record: any) => {
|
|
|
|
|
return <a onClick={() => {
|
|
|
|
|
return <Button type="link" style={{ padding: "0" }} onClick={() => {
|
|
|
|
|
window.parent.postMessage(
|
|
|
|
|
{
|
|
|
|
|
type: "PR",
|
|
|
|
@ -286,7 +286,7 @@ const AntdTable: FC<ITableProps> = (props) => {
|
|
|
|
|
},
|
|
|
|
|
"*"
|
|
|
|
|
);
|
|
|
|
|
}}>编辑</a>;
|
|
|
|
|
}}>编辑</Button>;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return tmpColumns;
|
|
|
|
|