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