年审
This commit is contained in:
@ -1,34 +1,16 @@
|
||||
.supplierTemplateManageContainer {
|
||||
}
|
||||
|
||||
.page-header {
|
||||
.pageHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 24px;
|
||||
justify-content: space-between;
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
}
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.inner-card {
|
||||
.innerCard {
|
||||
margin-bottom: 24px;
|
||||
|
||||
.ant-card-head {
|
||||
padding: 0 0 16px 0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.ant-card-head-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.ant-card-body {
|
||||
padding: 24px 0;
|
||||
:global(.ant-card-head) {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,18 +22,17 @@
|
||||
}
|
||||
|
||||
.ant-card-head {
|
||||
padding: 0 0 16px 0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.ant-card-head-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
.ant-card-head-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.formActions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 24px;
|
||||
text-align: center;
|
||||
padding: 16px 0;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ import {
|
||||
updateTemplate,
|
||||
addTemplate
|
||||
} from '@/servers/api/supplierEvaluate';
|
||||
import './supplierTemplateManage.less';
|
||||
import styles from './supplierTemplateManage.less';
|
||||
|
||||
const { Option } = Select;
|
||||
|
||||
@ -239,7 +239,7 @@ const SupplierTemplateManageAdd: React.FC = () => {
|
||||
return (
|
||||
<div className="common-container">
|
||||
<Card bordered={false}>
|
||||
<div className="page-header">
|
||||
<div className={styles.pageHeader}>
|
||||
<Title level={4} style={{ margin: 0 }}>
|
||||
{isEdit ? '编辑评价模板' : '新增评价模板'}
|
||||
</Title>
|
||||
@ -261,7 +261,7 @@ const SupplierTemplateManageAdd: React.FC = () => {
|
||||
wrapperCol={{ span: 17 }}
|
||||
>
|
||||
<Spin spinning={loading}>
|
||||
<Card title="基础信息" bordered={false} className="inner-card">
|
||||
<Card title="基础信息" bordered={false} className={styles.innerCard}>
|
||||
<Row gutter={24}>
|
||||
<Col span={8}>
|
||||
<Form.Item
|
||||
@ -299,7 +299,7 @@ const SupplierTemplateManageAdd: React.FC = () => {
|
||||
name="categoryId"
|
||||
rules={[{ required: true, message: '请选择品类' }]}
|
||||
>
|
||||
<CategorySelector value={categoryLimitation} />
|
||||
<CategorySelector value={categoryLimitation} multiple={false} />
|
||||
</Form.Item>
|
||||
) : null;
|
||||
}}
|
||||
@ -375,7 +375,7 @@ const SupplierTemplateManageAdd: React.FC = () => {
|
||||
|
||||
<Divider />
|
||||
|
||||
<Card title="指标信息" bordered={false} className="inner-card">
|
||||
<Card title="指标信息" bordered={false} className={styles.innerCard}>
|
||||
<EvaluateTemplateTable
|
||||
onChange={handleTemplateDataChange}
|
||||
value={templateData}
|
||||
@ -383,7 +383,7 @@ const SupplierTemplateManageAdd: React.FC = () => {
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
<div className="form-actions">
|
||||
<div className={styles.formActions}>
|
||||
<Space>
|
||||
<Button onClick={handleBack}>取消</Button>
|
||||
<Button type="primary" htmlType="submit" loading={loading} icon={<SaveOutlined />}>
|
||||
|
@ -15,12 +15,13 @@ import {
|
||||
} from '@/dicts/supplierTemplateDict';
|
||||
import ScoreEvaluationTable from '@/components/ScoreEvaluationTable';
|
||||
import EvaluateTemplateTable from '@/components/EvaluateTemplateTable';
|
||||
import type { TemplateDimension } from '@/servers/dao/supplierEvaluateTask';
|
||||
|
||||
const { Title } = Typography;
|
||||
|
||||
const SupplierTemplateManageDetail: React.FC = () => {
|
||||
const [loading, setLoading] = useState<boolean>(false);
|
||||
const [templateDetail, setTemplateDetail] = useState<SupplierEvaluate.TemplateDetail | null>(
|
||||
const [templateDetail, setTemplateDetail] = useState<TemplateDimension | null>(
|
||||
null,
|
||||
);
|
||||
const [templateData, setTemplateData] = useState<any[]>([]);
|
||||
|
Reference in New Issue
Block a user