Commit 957e3e40 authored by 卢均锐's avatar 卢均锐

chore: 去除多余代码

-跳转对账单请款
parent 8a7af3d6
......@@ -209,41 +209,39 @@ const SearchDetail = () => {
}
return (
<div style={{ margin: '-24px -24px 0' }}>
<PeripheralLayout
no={dataSource?.reconciliationNo}
detail={dataSource?.reconciliationAbstract}
tabLink={_tabs}
components={
<Fragment>
<ProgressLayout effect={[{ title: '外部流转', state: 1, logs: dataSource?.externalLogStates }]} />
<CommonLayout layoutId="basicLayout" title={intl.formatMessage({ id: 'balance.jibenxinxi' })} effect={basicEffect} commonSpan={12} />
<Card id='billLayout' title={intl.formatMessage({ id: 'balance.duizhangdanmingxi' })}>
<StandardTable
keepAlive={false}
currentRef={currentRef}
columns={columns}
tableProps={{ rowKey: 'reconciliationRowId', scroll: { x: 2600 } }}
fetchTableData={(params: any) => loadingTableData(params)}
/>
</Card>
<BusinessFileLayout fetchdata={dataSource?.files} editAble={false} />
<Card id='invoiceLayout' title={intl.formatMessage({ id: 'balance.fapiaoxinxi' })}>
{dataSource?.invoiceMessages?.numbers.length > 0 ? (
<Row gutter={[8, 8]}>
{dataSource?.invoiceMessages?.numbers.map((item, index) => (
<Col span={6} key={`BusinessInvoiceCard_${index}`}>
<BusinessInvoiceCard data={item} />
</Col>
))}
</Row>
) : '-'}
</Card>
<RecordCommonLayout effect={{ externalLogs: dataSource?.records ?? [] }} />
</Fragment>
}
/>
</div>
<PeripheralLayout
no={dataSource?.reconciliationNo}
detail={dataSource?.reconciliationAbstract}
tabLink={_tabs}
components={
<Fragment>
<ProgressLayout effect={[{ title: '外部流转', state: 1, logs: dataSource?.externalLogStates }]} />
<CommonLayout layoutId="basicLayout" title={intl.formatMessage({ id: 'balance.jibenxinxi' })} effect={basicEffect} commonSpan={12} />
<Card id='billLayout' title={intl.formatMessage({ id: 'balance.duizhangdanmingxi' })}>
<StandardTable
keepAlive={false}
currentRef={currentRef}
columns={columns}
tableProps={{ rowKey: 'reconciliationRowId', scroll: { x: 2600 } }}
fetchTableData={(params: any) => loadingTableData(params)}
/>
</Card>
<BusinessFileLayout fetchdata={dataSource?.files} editAble={false} />
<Card id='invoiceLayout' title={intl.formatMessage({ id: 'balance.fapiaoxinxi' })}>
{dataSource?.invoiceMessages?.numbers.length > 0 ? (
<Row gutter={[8, 8]}>
{dataSource?.invoiceMessages?.numbers.map((item, index) => (
<Col span={6} key={`BusinessInvoiceCard_${index}`}>
<BusinessInvoiceCard data={item} />
</Col>
))}
</Row>
) : '-'}
</Card>
<RecordCommonLayout effect={{ externalLogs: dataSource?.records ?? [] }} />
</Fragment>
}
/>
)
}
export default SearchDetail;
......@@ -345,7 +345,7 @@ const Add = () => {
}
return (
<div style={{ margin: '-24px -24px 0' }}>
<>
<PeripheralLayout
no={_title}
tabLink={_tabs}
......@@ -418,7 +418,7 @@ const Add = () => {
}
/>
<Prompt when={unsaved} message={intl.formatMessage({ id: 'common.tip.save.confirm' }, { default: '您还有未保存的内容,是否确定要离开?' })} />
</div>
</>
)
}
export default Add;
......@@ -229,7 +229,7 @@ const SearchDetail = () => {
const _params: any = { reconciliationId: id }
postSettleAccountsBusinessReconciliationTeamworkGenerateApplyMount(_params).then((res) => {
if (res.code === 1000) {
history.push('/memberCenter/balance/businessReconciliation/readyAdd/funds', { data: res.data })
history.push('/memberCenter/balance/businessRequestFunds/admin/funds', { data: res.data })
}
})
}
......@@ -253,7 +253,7 @@ const SearchDetail = () => {
return (
<div style={{ margin: '-24px -24px 0' }}>
<>
<PeripheralLayout
no={dataSource?.reconciliationNo}
detail={dataSource?.reconciliationAbstract}
......@@ -289,7 +289,7 @@ const SearchDetail = () => {
}
/>
<ModalOperate title='对账单确认' visible={modalVisible} id={id} fetch={postSettleAccountsBusinessReconciliationTeamworkConfirmReconciliation} onOk={_modalOk} onCancel={_modalCancle} />
</div>
</>
)
}
export default SearchDetail;
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