Commit 934de27a authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:处理资金账户获取对公账户信息异常

parent 999a4aa6
......@@ -41,7 +41,7 @@ const CheckDetail: React.FC<{}> = () => {
const { code, data } = res
setDetails(data)
if(code === 1000) {
let bankRes = await PublicApi.getSettleAccountsCorporateAccountConfig({memberId: data.memberId + ''})
let bankRes: any = await PublicApi.getSettleAccountsPlatformConfigGetPlatformAccountConfig()
setBankDetail(bankRes.data)
}
}
......@@ -66,7 +66,7 @@ const CheckDetail: React.FC<{}> = () => {
title: '交易时间',
dataIndex: 'tradeTime',
key: 'tradeTime',
render: (text: any) => moment(text).format("YYYY-MM-DD HH:mm:ss")
render: (text: any) => moment(text).format("YYYY-MM-DD HH:mm:ss")
},
{
title: '交易金额(元)',
......@@ -116,7 +116,7 @@ const CheckDetail: React.FC<{}> = () => {
}
const handleCancel = () => {
checkForm.resetFields()
checkForm.resetFields()
setVisibleModal(false)
}
......@@ -126,7 +126,7 @@ const CheckDetail: React.FC<{}> = () => {
onBack={() => history.goBack()}
backIcon={<ReutrnEle />}
extra={ urlParams.preview ? [] : [
<Button
<Button
icon={<CheckSquareOutlined />}
key="1"
type="primary"
......@@ -288,8 +288,8 @@ const CheckDetail: React.FC<{}> = () => {
layout="vertical"
form={checkForm}
>
<Form.Item
name="status"
<Form.Item
name="status"
label=""
rules={[
{
......@@ -305,8 +305,8 @@ const CheckDetail: React.FC<{}> = () => {
</Radio.Group>
</Form.Item>
{
checkStatus===2 && <Form.Item
name="remark"
checkStatus===2 && <Form.Item
name="remark"
label={'审核不通过原因'}
rules={[
{
......
......@@ -48,7 +48,7 @@ const PaymentDetail: React.FC<{}> = () => {
const { code, data } = res
setDetails(data)
if(code === 1000) {
let bankRes = await PublicApi.getSettleAccountsCorporateAccountConfig({memberId: data.memberId + ''})
let bankRes: any = await PublicApi.getSettleAccountsPlatformConfigGetPlatformAccountConfig()
setBankDetail(bankRes.data)
}
}
......@@ -62,7 +62,7 @@ const PaymentDetail: React.FC<{}> = () => {
})
})
}
const columns: ColumnType<any>[] = [
{
title: '交易流水号',
......@@ -73,7 +73,7 @@ const PaymentDetail: React.FC<{}> = () => {
title: '交易时间',
dataIndex: 'tradeTime',
key: 'tradeTime',
render: (text: any) => moment(text).format("YYYY-MM-DD HH:mm:ss")
render: (text: any) => moment(text).format("YYYY-MM-DD HH:mm:ss")
},
{
title: '交易金额(元)',
......@@ -143,10 +143,10 @@ const PaymentDetail: React.FC<{}> = () => {
const cardChange = (value) => {
console.log(value)
setPayParam(() => {
setPayParam(() => {
return {
...payParam,
...value,
...value,
}
})
}
......@@ -222,7 +222,7 @@ const PaymentDetail: React.FC<{}> = () => {
onBack={() => history.goBack()}
backIcon={<ReutrnEle />}
extra={ urlParams.preview ? [] : [
<Button
<Button
icon={<CheckSquareOutlined />}
key="1"
type="primary"
......@@ -382,17 +382,17 @@ const PaymentDetail: React.FC<{}> = () => {
destroyOnClose={true}
>
{
currentStep
currentStep
?
renderResult()
:
<>
<CapitalCardCheckBox
<CapitalCardCheckBox
cardChange={(v)=>cardChange(v)}
name="payType"
dataSource={[
{
title: '支付方式',
title: '支付方式',
items: [
{id:1, name: '支付宝', logoUrl: alipay},
{id:2, name: '微信', logoUrl: wxpay},
......@@ -400,7 +400,7 @@ const PaymentDetail: React.FC<{}> = () => {
]
},
// {
// title: '支付渠道',
// title: '支付渠道',
// items: [
// {id: 4, name: '线下转账线上确认'},
// ]
......@@ -412,12 +412,12 @@ const PaymentDetail: React.FC<{}> = () => {
errorTips.tipMethod &&
<p className={styles.errorTips}>请选择支付方式</p>
}
<CapitalCardCheckBox
<CapitalCardCheckBox
cardChange={(v)=>cardChange(v)}
name="payChannel"
dataSource={[
{
title: '支付渠道',
title: '支付渠道',
items: [
{id: 1, name: '线下转账线上确认'},
]
......
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