import React from 'react'; import { Form, Switch, InputNumber, Input, Radio, Divider } from 'antd'; import Styles from './web.pc.module.less'; import AliPayUpsert from '../../aliPay/upsert'; export default function render(props) { const { apAccount, aliPay, oakFullpath, systemId } = props.data; const { t, update } = props.methods; if (apAccount) { // @oak-ignore return (
{(!aliPay || aliPay.$$createAt$$ === 1) && } {(apAccount.aliPayId && apAccount?.$$createAt$$ !== 1) && }
{t('aliPayIsShared')}
{ const appId = currentTarget.value; update({ appId }); }}/> { const mchId = currentTarget.value; update({ mchId }); }}/> { const privateKeyPath = currentTarget.value; update({ privateKeyPath }); }}/> { const keyType = e.target.value; update({ keyType }); }}/> { const mode = e.target.value; update({ mode }); }}/> {apAccount.mode === 'publicKey' && (<> { const publicKeyPath = currentTarget.value; update({ publicKeyPath }); }}/> )} {apAccount.mode === 'certificate' && (<> { const alipayRootCertPath = currentTarget.value; update({ alipayRootCertPath }); }}/> { const alipayPublicCertPath = currentTarget.value; update({ alipayPublicCertPath }); }}/> { const appCertPath = currentTarget.value; update({ appCertPath }); }}/> )} { const gateway = currentTarget.value; update({ gateway }); }}/> { const setting = e.target.value; update({ setting }); }}/> { update({ needEncrypt: enabled }); }}/> {apAccount.needEncrypt && ( { const encryptKey = currentTarget.value; update({ encryptKey }); }}/> )} { const taxLossRatio = value; update({ taxLossRatio }); }}/> { const refundCompensateRatio = value; update({ refundCompensateRatio }); }}/> { const refundGapDays = value; update({ refundGapDays }); }}/> { update({ enabled }); }}/> ); } return null; }