|
@@ -149,7 +149,14 @@ function AddModal(props) {
|
|
|
initialValue={data.supplier_id}
|
|
|
rules={[{ required: true, message: '请选择项目客户' }]}
|
|
|
>
|
|
|
- <Select style={{ width: '100%' }} onChange={e => form.setFieldsValue({ supplier_id: e })}>
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ style={{ width: '100%' }}
|
|
|
+ onChange={e => form.setFieldsValue({ supplier_id: e })}
|
|
|
+ filterOption={(input, option) => {
|
|
|
+ return (option?.children[0] ?? '').includes(input);
|
|
|
+ }}
|
|
|
+ >
|
|
|
{supplierList.map(item => (
|
|
|
<Option key={item.id} value={item.id}>
|
|
|
{item.name}({item.id})
|