import React from 'react';
import { Form, Switch, InputNumber, Input, Select, Radio } from 'antd';
export default function render(props) {
const { apProduct, applications, oakFullpath, systemId } = props.data;
const { t, update } = props.methods;
if (apProduct) {
return (
{apProduct.type && applications && (
)}
{
update({ enabled });
}}/>
{
const taxLossRatio = value;
update({ taxLossRatio });
}}/>
{
const refundCompensateRatio = value;
update({ refundCompensateRatio });
}}/>
{
const refundGapDays = value;
update({ refundGapDays });
}}/>
{apProduct.type === 'mp' &&
{
update({ needReceiving });
}}/>
}
{apProduct.type === 'native' && (
{
const prepayMethod = e.target.value;
update({ config: {
...(apProduct?.config || {}),
prepayMethod
} });
}}/>
)}
{(!['person', 'app'].includes(apProduct.type)) &&
{
const returnUrl = currentTarget.value;
update({ config: {
...(apProduct?.config || {}),
returnUrl
} });
}}/>
}
{apProduct.type === 'native' && (
{
const qrPayMode = e.target.value;
update({ config: {
...(apProduct?.config || {}),
qrPayMode
} });
}}/>
)}
{apProduct.type === 'native' && apProduct?.config?.qrPayMode === 4 &&
{
const qrCodeWidth = currentTarget.value;
update({ config: {
...(apProduct?.config || {}),
qrCodeWidth: qrCodeWidth ? Number(qrCodeWidth) : undefined
} });
}}/>
}
);
}
return null;
}