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