const EVALUATION_PROCESSING_PROMPT = '评估分析正在进行中,你需要等待1小时左右,我们会在报告生成完成后提示你,你可以去“我的PERILL报告”查阅报告结果。' function isReportGenerating(item = {}) { item = item || {} return String(item.state) === '0' || ['RUNNING', 'PENDING'].indexOf(String(item.status || '')) !== -1 } function canEditEvaluation(item = {}) { const reportState = item.reportState === undefined || item.reportState === null ? item.state : item.reportState return String(item.reportType || '') === '1' && String(reportState) === '1' && ['RUNNING', 'PENDING'].indexOf(String(item.status || '')) === -1 } function normalizeEvaluationForm(data = {}) { return { overallAssessment: data.overallAssessment || '', developmentAdvice: data.developmentAdvice || '' } } module.exports = { EVALUATION_PROCESSING_PROMPT, isReportGenerating, canEditEvaluation, normalizeEvaluationForm }