修改
This commit is contained in:
parent
b83e803fd3
commit
1bfd80e57d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user