This commit is contained in:
lyp 2025-03-05 04:02:15 +08:00
parent b83e803fd3
commit 1bfd80e57d

View File

@ -604,27 +604,28 @@ export default function Payment(props: IPaymentProps) {
<tr>
<td className="table-label"><span style={{ color: 'red' }}>*</span></td>
<td>
<Form.Item
name="rechargeVoucher"
style={{ marginBottom: '0' }}
valuePropName="fileList"
getValueFromEvent={(e: any) => {
if (e.file.status === 'done') {
rechargeVoucherArray.push(e.file.response.data.fileId);
setRechargeVoucherArray(rechargeVoucherArray);
}
if (e.file.status === 'removed') {
const idArray = rechargeVoucherArray.filter(item => item != e.file.response.data.fileId);
setRechargeVoucherArray(idArray);
}
return e.fileList;
}}
rules={[{ required: true, message: '请上传打款凭证' }]}
>
{/* <div style={{
width: '200px',
overflow: 'hidden',
}}> */}
<div style={{
width: '200px',
overflow: 'hidden',
}}>
<Form.Item
name="rechargeVoucher"
style={{ marginBottom: '0' }}
valuePropName="fileList"
getValueFromEvent={(e: any) => {
if (e.file.status === 'done') {
rechargeVoucherArray.push(e.file.response.data.fileId);
setRechargeVoucherArray(rechargeVoucherArray);
}
if (e.file.status === 'removed') {
const idArray = rechargeVoucherArray.filter(item => item != e.file.response.data.fileId);
setRechargeVoucherArray(idArray);
}
return e.fileList;
}}
rules={[{ required: true, message: '请上传打款凭证' }]}
>
<Upload name="image"
maxCount={2}
action={uploadImageUrl()}
@ -639,8 +640,9 @@ export default function Payment(props: IPaymentProps) {
>
<Button icon={<UploadOutlined />}></Button>
</Upload>
{/* </div> */}
</Form.Item>
</Form.Item>
</div>
</td>
</tr>
</tbody>