feat
parent
a2456fa2c3
commit
0a1dd4e498
|
|
@ -311,8 +311,15 @@ const EvalProjectCreate = (props) => {
|
||||||
name="industryCode"
|
name="industryCode"
|
||||||
label="所属行业"
|
label="所属行业"
|
||||||
rules={[{ required: true, message: "请选择所属行业" }]}
|
rules={[{ required: true, message: "请选择所属行业" }]}
|
||||||
|
getValueProps={(value) => ({
|
||||||
|
value: value ? String(value).split(",") : [],
|
||||||
|
})}
|
||||||
|
getValueFromEvent={(value) =>
|
||||||
|
Array.isArray(value) ? value.join(",") : value
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
|
mode="multiple"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
allowClear
|
allowClear
|
||||||
options={industryOptions}
|
options={industryOptions}
|
||||||
|
|
|
||||||
|
|
@ -523,6 +523,7 @@ const ContractContent = ({ readOnly, ...props }) => {
|
||||||
<AttachmentUpload
|
<AttachmentUpload
|
||||||
name="scanFileUrl"
|
name="scanFileUrl"
|
||||||
label="项目合同扫描件"
|
label="项目合同扫描件"
|
||||||
|
rules={[{ required: true, message: "请上传项目合同扫描件" }]}
|
||||||
accept=".pdf"
|
accept=".pdf"
|
||||||
maxCount={10}
|
maxCount={10}
|
||||||
disabled={readOnly}
|
disabled={readOnly}
|
||||||
|
|
|
||||||
|
|
@ -94,10 +94,10 @@ const RiskAnalysisContent = ({ readOnly, ...props }) => {
|
||||||
message.warning("文件上传中,请稍后再保存");
|
message.warning("文件上传中,请稍后再保存");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (statusCode === 2&&!rest.participants?.length) {
|
// if (statusCode === 2&&!rest.participants?.length) {
|
||||||
message.warning("请选择风险分析人员");
|
// message.warning("请选择风险分析人员");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
const res = await evalRiskAnalysisSave({
|
const res = await evalRiskAnalysisSave({
|
||||||
...rest,
|
...rest,
|
||||||
projectId,
|
projectId,
|
||||||
|
|
@ -199,8 +199,17 @@ const RiskAnalysisContent = ({ readOnly, ...props }) => {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item label="所属行业" name="industryName">
|
<Form.Item
|
||||||
<Select placeholder="请选择所属行业" allowClear>
|
label="所属行业"
|
||||||
|
name="industryName"
|
||||||
|
getValueProps={(value) => ({
|
||||||
|
value: value ? String(value).split(",") : [],
|
||||||
|
})}
|
||||||
|
getValueFromEvent={(value) =>
|
||||||
|
Array.isArray(value) ? value.join(",") : value
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Select mode="multiple" placeholder="请选择所属行业" allowClear>
|
||||||
{QUALIFICATION_INDUSTRY_OPTIONS.map((opt) => (
|
{QUALIFICATION_INDUSTRY_OPTIONS.map((opt) => (
|
||||||
<Select.Option key={opt.value} value={opt.value}>
|
<Select.Option key={opt.value} value={opt.value}>
|
||||||
{opt.label}
|
{opt.label}
|
||||||
|
|
|
||||||
|
|
@ -296,7 +296,7 @@ const SurveyContent = ({ readOnly, ...props }) => {
|
||||||
message.warning("文件上传中,请稍后再保存");
|
message.warning("文件上传中,请稍后再保存");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if(!validateSurveyStep()) return;
|
if(!validateSurveyStep()) return;
|
||||||
const payload = [];
|
const payload = [];
|
||||||
for (const s of STAGES.slice(0, 3)) {
|
for (const s of STAGES.slice(0, 3)) {
|
||||||
const fileList = values[s.key] || [];
|
const fileList = values[s.key] || [];
|
||||||
|
|
@ -333,7 +333,10 @@ const SurveyContent = ({ readOnly, ...props }) => {
|
||||||
current={currentIdx}
|
current={currentIdx}
|
||||||
onChange={(idx) => setActiveStage(STAGES[idx].key)}
|
onChange={(idx) => setActiveStage(STAGES[idx].key)}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
items={STAGES.map((s) => ({ title: s.label }))}
|
items={STAGES.map((s) => ({
|
||||||
|
title: s.label,
|
||||||
|
...(readOnly ? { status: "finish" } : {}),
|
||||||
|
}))}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form form={form} layout="vertical" disabled={readOnly} scrollToFirstError>
|
<Form form={form} layout="vertical" disabled={readOnly} scrollToFirstError>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue