Commit c2f90071 authored by Bill's avatar Bill

fix: 修改结算bug

parent dafd112d
...@@ -99,12 +99,11 @@ const columns = [ ...@@ -99,12 +99,11 @@ const columns = [
const Info: React.FC = () => { const Info: React.FC = () => {
const ref = useRef<any>({}); const ref = useRef<any>({});
const [infoDetail, setInfoDetail] = useState<any>(null);
const { id, preview } = usePageStatus(); const { id, preview } = usePageStatus();
const { retColumn } = useIsExistsBrokerage(columns, ["brokerage", "ratio"]) const { retColumn } = useIsExistsBrokerage(columns, ["brokerage", "ratio"])
const params = useMemo(() => { return id ? { id: id.toString() } : null }, [id]); const params = useMemo(() => { return id ? { id: id.toString() } : null }, [id]);
const { loading, initialValue }= useInitialValue<GetSettleAccountsPlatformSettlementGetReceivableDetailResponse, { id: string }>(PublicApi.getSettleAccountsPlatformSettlementGetReceivableDetail, params) const { loading, initialValue }= useInitialValue<GetSettleAccountsPlatformSettlementGetReceivableDetailResponse, { id: string }>(PublicApi.getSettleAccountsPlatformSettlementGetReceivableDetail, params)
const { infoList } = useBalanceInfo(infoDetail, { type: "platform" }) const { infoList } = useBalanceInfo(initialValue, { type: "platform" })
const fetchListData = async (params) => { const fetchListData = async (params) => {
const postData = { const postData = {
...@@ -116,19 +115,6 @@ const Info: React.FC = () => { ...@@ -116,19 +115,6 @@ const Info: React.FC = () => {
return res.data return res.data
} }
// useEffect(() => {
// if(id) {
// // 获取详情
// async function fetchDetail() {
// const { data, code } = await PublicApi.getSettleAccountsPlatformSettlementGetReceivableDetail({id})
// if(code == 1000) {
// setInfoDetail(data);
// }
// }
// fetchDetail();
// }
// }, [id])
/** /**
* 搜索 * 搜索
*/ */
...@@ -178,7 +164,6 @@ const Info: React.FC = () => { ...@@ -178,7 +164,6 @@ const Info: React.FC = () => {
/> />
} }
/> />
</Card> </Card>
</PageHeaderWrapper> </PageHeaderWrapper>
) )
......
...@@ -108,7 +108,7 @@ export const addSchema = { ...@@ -108,7 +108,7 @@ export const addSchema = {
enum: [], enum: [],
title: '结算单据', title: '结算单据',
'x-rules': [ 'x-rules': [
{required: true, message: '请填写策略名称'}, {required: true, message: '请填写结算单据类型'},
] ]
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment