对接单位和部门组件
This commit is contained in:
@ -21,7 +21,7 @@ import {
|
||||
import CategorySelector from '@/components/CategorySelector/CategorySelector';
|
||||
import { getAnnualTemplateList, enableAnnualTemplate, disableAnnualTemplate } from '@/servers/api/supplierAnnual';
|
||||
import { AnnualTemplateStatus, AnnualTemplateStatusText, AnnualTemplateStatusColor } from '@/dicts/supplierAnnualDict';
|
||||
|
||||
import AccessDepartmentSelect from '@/components/AccessDepartmentSelect';
|
||||
const { Option } = Select;
|
||||
|
||||
// 搜索参数类型
|
||||
@ -49,13 +49,6 @@ const SupplierAnnualTemplateManage: React.FC = () => {
|
||||
});
|
||||
const [searchParams, setSearchParams] = useState<AnnualTemplateSearchParams>({});
|
||||
|
||||
// 部门下拉选项
|
||||
const [companyOptions, setCompanyOptions] = useState<{ label: string, value: string }[]>([
|
||||
{ label: '中山市合创展包装材料有限公司', value: '中山市合创展包装材料有限公司' },
|
||||
{ label: '广州市科技发展有限公司', value: '广州市科技发展有限公司' },
|
||||
{ label: '深圳市创新科技有限公司', value: '深圳市创新科技有限公司' },
|
||||
{ label: '东莞市制造业有限公司', value: '东莞市制造业有限公司' },
|
||||
]);
|
||||
|
||||
// 获取模板列表
|
||||
const fetchTemplateList = async (
|
||||
@ -338,11 +331,7 @@ const SupplierAnnualTemplateManage: React.FC = () => {
|
||||
<Input placeholder={`${intl.formatMessage({ id: 'supplierAnnualTemplateManage.common.pleaseInput' })}${intl.formatMessage({ id: 'supplierAnnualTemplateManage.list.templateName' })}`} allowClear />
|
||||
</Form.Item>
|
||||
<Form.Item name="deptId" label={intl.formatMessage({ id: 'supplierAnnualTemplateManage.list.createUnit' })}>
|
||||
<Select placeholder={`${intl.formatMessage({ id: 'supplierAnnualTemplateManage.common.pleaseSelect' })}${intl.formatMessage({ id: 'supplierAnnualTemplateManage.list.createUnit' })}`} allowClear style={{ width: 200 }}>
|
||||
{companyOptions.map(option => (
|
||||
<Option key={option.value} value={option.value}>{option.label}</Option>
|
||||
))}
|
||||
</Select>
|
||||
<AccessDepartmentSelect placeholder={'请选择准入单位'} />
|
||||
</Form.Item>
|
||||
<Form.Item name="categoryId" label={intl.formatMessage({ id: 'supplierAnnualTemplateManage.list.category' })}>
|
||||
<CategorySelector multiple={false} style={{ width: 200 }} />
|
||||
|
Reference in New Issue
Block a user