更新部分功能
This commit is contained in:
@ -3,7 +3,7 @@ import {
|
||||
Modal, Table, Button, Checkbox, Row, Col, Input, Select, Form, Space, message
|
||||
} from "antd";
|
||||
import { getSupplierCategoryPage } from '../services';
|
||||
|
||||
import CategorySelector from '@/components/CategorySelector';
|
||||
const { Option } = Select;
|
||||
|
||||
interface Supplier {
|
||||
@ -161,23 +161,22 @@ const SupplierSelectModal: React.FC<SupplierSelectModalProps> = ({
|
||||
bodyStyle={{ padding: 24 }}
|
||||
>
|
||||
<Form layout="inline" form={form} style={{ marginBottom: 16 }}>
|
||||
|
||||
|
||||
<Form.Item name="name" label="供应商名称">
|
||||
<Input style={{ width: 180 }} allowClear />
|
||||
<Input style={{ width: 140 }} allowClear maxLength={50} placeholder="请输入供应商名称" />
|
||||
</Form.Item>
|
||||
<Form.Item name="evalLevel" label="最近一次评价等级">
|
||||
<Select style={{ width: 140 }} allowClear>
|
||||
<Form.Item name="levelName" label="最近一次评价等级">
|
||||
<Select style={{ width: 140 }} allowClear placeholder="请选择最近一次评价等级" >
|
||||
{['A', 'B', 'C', 'D'].map(level => (
|
||||
<Option key={level} value={level}>{level}</Option>
|
||||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item name="category" label="准入品类">
|
||||
<Select style={{ width: 140 }} allowClear>
|
||||
{['燃油', '润滑油', '备件'].map(cat => (
|
||||
<Option key={cat} value={cat}>{cat}</Option>
|
||||
))}
|
||||
</Select>
|
||||
<Form.Item name="categoryId" label="准入品类">
|
||||
<CategorySelector multiple={false} style={{ width: 140 }} />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item>
|
||||
<Space>
|
||||
<Button type="primary" onClick={handleSearch}>查询</Button>
|
||||
@ -200,7 +199,6 @@ const SupplierSelectModal: React.FC<SupplierSelectModalProps> = ({
|
||||
fetchData(values, pag.current!, pag.pageSize!);
|
||||
}}
|
||||
size="small"
|
||||
bordered
|
||||
/>
|
||||
</Col>
|
||||
<Col span={2} style={{ textAlign: "center", display: "flex", flexDirection: "column", justifyContent: "center" }}>
|
||||
@ -215,7 +213,6 @@ const SupplierSelectModal: React.FC<SupplierSelectModalProps> = ({
|
||||
columns={rightColumns}
|
||||
pagination={false}
|
||||
size="small"
|
||||
bordered
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
|
@ -27,6 +27,9 @@ interface getSupplierCategoryPageData {
|
||||
supplierName?: number;
|
||||
categoryId?: string;
|
||||
reviewResult?: string;
|
||||
levelName?: string;
|
||||
name?: string;
|
||||
|
||||
}
|
||||
|
||||
export const getSupplierCategoryPage = (data: getSupplierCategoryPageData) => request.post('/coscoSupplierexit/getSupplierCategoryPage', { data });
|
||||
|
Reference in New Issue
Block a user