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