|
@@ -815,18 +815,17 @@ const ContractModal = (props) => {
|
|
|
},
|
|
|
]}
|
|
|
>
|
|
|
- <TreeSelect
|
|
|
+ <Select
|
|
|
style={{ width: '100%' }}
|
|
|
placeholder="请选择"
|
|
|
showSearch
|
|
|
allowClear
|
|
|
- fieldNames={{
|
|
|
- label: 'Name',
|
|
|
- value: 'Name',
|
|
|
- children: 'children',
|
|
|
- }}
|
|
|
- dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
|
|
- treeData={supplyList}
|
|
|
+ options={supplyList?.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.Name,
|
|
|
+ value: item.Name,
|
|
|
+ };
|
|
|
+ })}
|
|
|
disabled={disableds.contract}
|
|
|
/>
|
|
|
</Form.Item>
|
|
@@ -901,19 +900,18 @@ const ContractModal = (props) => {
|
|
|
},
|
|
|
]}
|
|
|
>
|
|
|
- <TreeSelect
|
|
|
+ <Select
|
|
|
style={{ width: '100%' }}
|
|
|
placeholder="请选择"
|
|
|
showSearch
|
|
|
allowClear
|
|
|
+ options={supplyList?.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.Name,
|
|
|
+ value: item.Name,
|
|
|
+ };
|
|
|
+ })}
|
|
|
disabled={disableds.contract}
|
|
|
- fieldNames={{
|
|
|
- label: 'Name',
|
|
|
- value: 'Name',
|
|
|
- children: 'children',
|
|
|
- }}
|
|
|
- dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
|
|
- treeData={supplyList}
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
@@ -925,19 +923,18 @@ const ContractModal = (props) => {
|
|
|
initialValue={data?.party_c ? data?.party_c.split(',') : []}
|
|
|
labelCol={{ span: 4 }}
|
|
|
>
|
|
|
- <TreeSelect
|
|
|
+ <Select
|
|
|
style={{ width: '100%' }}
|
|
|
placeholder="请选择"
|
|
|
+ mode="multiple"
|
|
|
showSearch
|
|
|
- multiple
|
|
|
allowClear
|
|
|
- fieldNames={{
|
|
|
- label: 'Name',
|
|
|
- value: 'Name',
|
|
|
- children: 'children',
|
|
|
- }}
|
|
|
- dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
|
|
- treeData={supplyList}
|
|
|
+ options={supplyList?.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.Name,
|
|
|
+ value: item.Name,
|
|
|
+ };
|
|
|
+ })}
|
|
|
disabled={disableds.contract}
|
|
|
/>
|
|
|
</Form.Item>
|