feat: 完善采购申请流程 - 添加审批、执行、列表筛选排序功能
This commit is contained in:
@@ -348,7 +348,18 @@ const SupplierPage: React.FC = () => {
|
||||
</Form.Item>
|
||||
</div>
|
||||
<Form.Item {...restField} name={[name, 'qr_code']} label="收款码" style={{ marginBottom: 0 }}>
|
||||
<FileUpload maxCount={1} accept="image/*" />
|
||||
<FileUpload
|
||||
maxCount={1}
|
||||
accept="image/*"
|
||||
value={form.getFieldValue([name, 'qr_code']) ? [form.getFieldValue([name, 'qr_code'])] : []}
|
||||
onChange={(urls) => {
|
||||
form.setFieldsValue({
|
||||
payment_infos: form.getFieldValue('payment_infos').map((info: any, i: number) => {
|
||||
return i === Number(name) ? { ...info, qr_code: urls[0] || '' } : info
|
||||
})
|
||||
})
|
||||
}}
|
||||
/>
|
||||
</Form.Item>
|
||||
{fields.length > 0 && (
|
||||
<Button type="link" danger onClick={() => remove(name)} style={{ marginTop: 8 }}>删除此收款信息</Button>
|
||||
|
||||
Reference in New Issue
Block a user