dev_1.2
tangjie 2026-07-31 10:39:07 +08:00
parent eeb34c722a
commit 107c89aaca
2 changed files with 27 additions and 10 deletions

View File

@ -318,7 +318,7 @@ const EvalProjectCreate = (props) => {
</Col>
<Col span={12}>
<Form.Item
name="is_statutory"
name="isStatutory"
label="是否法定项目"
rules={[{ required: true, message: "请选择是否法定项目" }]}
>

View File

@ -135,10 +135,10 @@ const InspectionPanel = ({ dataSource = [], evalProjectDetailData = {}, readOnly
name="SITE_INSPECTION_FORM"
label="现场检查表"
maxCount={10}
accept=".pdf,.doc,.docx,.xls,.xlsx"
accept=".pdf,.doc,.docx,.xls,.xlsx,.png,.jpg,.jpeg"
disabled={readOnly}
extra="检查表应包含项目名称检查日期检查人员检查依据逐项检查结果和不符合项记录上传后与人员打卡记录共同作为现场踏勘凭证
支持ExcelWordPDF和清晰扫描"
支持 PDFWordExcelPNGJPG 格式最多上传 10 个文"
/>
</div>
);
@ -157,9 +157,9 @@ const RectificationNoticePanel = ({ readOnly }) => (
name="RECTIFICATION_NOTICE"
label="整改通知单"
maxCount={10}
accept=".pdf,.doc,.docx,.jpg,.jpeg,.png,.xls,.xlsx"
accept=".pdf,.doc,.docx,.xls,.xlsx,.png,.jpg,.jpeg"
disabled={readOnly}
extra="支持 PDF、Word、JPG、PNG、Excel 格式,最多上传 10 个文件"
extra="支持 PDF、Word、Excel、PNG、JPG 格式,最多上传 10 个文件"
/>
</div>
);
@ -177,9 +177,9 @@ const EnterpriseRectificationPanel = ({ readOnly }) => (
name="ENTERPRISE_RECTIFICATION"
label="企业整改报告"
maxCount={10}
accept=".pdf,.doc,.docx,.jpg,.jpeg,.png,.zip,.rar,.7z"
accept=".pdf,.doc,.docx,.xls,.xlsx,.png,.jpg,.jpeg"
disabled={readOnly}
extra="支持 PDF、Word、压缩包、图片格式,最多上传 10 个文件"
extra="支持 PDF、Word、Excel、PNG、JPG 格式,最多上传 10 个文件"
/>
</div>
);
@ -197,9 +197,9 @@ const RectificationReviewPanel = ({ readOnly }) => (
name="RECTIFICATION_REVIEW"
label="整改情况复查单"
maxCount={10}
accept=".pdf,.doc,.docx,.jpg,.jpeg,.png,.xls,.xlsx"
accept=".pdf,.doc,.docx,.xls,.xlsx,.png,.jpg,.jpeg"
disabled={readOnly}
extra="支持 PDF、Word、JPG、PNG、Excel 格式,最多上传 10 个文件"
extra="支持 PDF、Word、Excel、PNG、JPG 格式,最多上传 10 个文件"
/>
</div>
);
@ -253,12 +253,29 @@ const SurveyContent = ({ readOnly, ...props }) => {
}
}, [projectId]);
const validateSurveyStep = () => {
if (surveyPersonnel.length < 2) {
message.warning("您的打卡信息未完善请前往现场在APP中进行定位打卡");
return false;
}
const hasProjectLead = surveyPersonnel.some((p) =>
Array.isArray(p.role) ? p.role.includes("PROJECT_LEAD") : p.role === "PROJECT_LEAD"
);
if (!hasProjectLead) {
message.warning("您的打卡信息未完善请前往现场在APP中进行定位打卡");
return false;
}
return true;
};
const goPrev = () => {
if (currentIdx > 0) setActiveStage(STAGES[currentIdx - 1].key);
};
const goNext = () => {
if (currentIdx < STAGES.length - 1) setActiveStage(STAGES[currentIdx + 1].key);
if (currentIdx === STAGES.length - 1) return;
if (activeStage === "SITE_INSPECTION_FORM" && !validateSurveyStep()) return;
setActiveStage(STAGES[currentIdx + 1].key);
};
const handleSave = async () => {