对接单位和部门组件

This commit is contained in:
linxd
2025-07-21 14:17:52 +08:00
parent e9ebd6ac1c
commit 7dacf6a4ae
8 changed files with 59 additions and 189 deletions

View File

@ -6,7 +6,7 @@ import CategorySelector from '@/components/CategorySelector/CategorySelector';
import './SupplierSelector.less';
import { useIntl } from 'umi';
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
import AccessDepartmentSelect from '@/components/AccessDepartmentSelect';
const { Option } = Select;
/**
@ -297,23 +297,7 @@ const SupplierSelector: React.FC<SupplierSelectorProps> = ({
name="deptId"
label={intl.formatMessage({ id: 'supplierTaskManage.form.department' })}
>
<Select
placeholder={intl.formatMessage({
id: 'supplierTaskManage.placeholder.selectDepartment',
})}
allowClear
style={{ width: 150 }}
>
<Option value="1">
{intl.formatMessage({ id: 'supplierTaskManage.department.purchase' })}
</Option>
<Option value="2">
{intl.formatMessage({ id: 'supplierTaskManage.department.technology' })}
</Option>
<Option value="3">
{intl.formatMessage({ id: 'supplierTaskManage.department.quality' })}
</Option>
</Select>
<AccessDepartmentSelect orgCategory='' placeholder={'请选择准入单位'} />
</Form.Item>
<Form.Item