修改评查点结果显示
This commit is contained in:
@@ -73,6 +73,7 @@ interface ReviewPointResult {
|
||||
suggestion: string;
|
||||
result?: boolean;
|
||||
score: number;
|
||||
evaluatedPointResultsLog?: Array<Record<string, unknown>>;
|
||||
}
|
||||
|
||||
// 定义统计数据类型
|
||||
@@ -241,6 +242,11 @@ export async function getReviewPoints(fileId: string) {
|
||||
const point = pointsMap.get(result.evaluation_point_id) || {} as EvaluationPoint;
|
||||
const group = groupsMap.get(point.evaluation_point_groups_id || 0) || {} as EvaluationPointGroup;
|
||||
const editAuditStatus = editAuditStatusMap.get(result.evaluation_point_id) || {id: '', status: 0};
|
||||
|
||||
// 评查结果内容改成由evaluated_point_results_log中获取
|
||||
// const evaluatedPointResultsLog = result.evaluated_point_results_log;
|
||||
// console.log('evaluatedPointResultsLog-------', evaluatedPointResultsLog);
|
||||
|
||||
|
||||
// 从 evaluated_results 中提取数据
|
||||
let message = '';
|
||||
@@ -328,7 +334,121 @@ export async function getReviewPoints(fileId: string) {
|
||||
// }
|
||||
|
||||
// 评查配置: point.evaluation_config
|
||||
evaluationConfig: point.evaluation_config || {}
|
||||
evaluationConfig: point.evaluation_config || {},
|
||||
|
||||
// evaluatedPointResultsLog: evaluatedPointResultsLog || {}
|
||||
evaluatedPointResultsLog: [
|
||||
{
|
||||
"id": "1",
|
||||
"type": "consistency",
|
||||
"config": {
|
||||
"logic": "and",
|
||||
"pairs": [
|
||||
{
|
||||
"sourceField": {"现场笔录-被检查人名称":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-名称":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"现场笔录-法定代表人(负责人)":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-法定代表人":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"现场笔录-烟草专卖许可证号码":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-烟草专卖零售许可证-许可证号":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"证据复制(提取)单-烟草专卖零售许可证-企业名称":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-名称":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"证据复制(提取)单-烟草专卖零售许可证-负责人姓名":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-法定代表人":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"立案报告表-当事人-单位-名称":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-名称":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"立案报告表-当事人-单位-法定代表人(负责人)":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-法定代表人":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"立案报告表-当事人-单位-地址":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-营业执照-住所":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
}
|
||||
],
|
||||
"selectedFields": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
"type": "consistency",
|
||||
"config": {
|
||||
"logic": "and",
|
||||
"pairs": [
|
||||
{
|
||||
"sourceField": {"现场笔录-被检查人姓名":{page: 1,value: '张三'}},
|
||||
"targetField": {"立案报告表-当事人-个人(个体工商户)-姓名":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"立案报告表-当事人-个人(个体工商户)-姓名":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-居民身份证-姓名":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"现场笔录-性别":{page: 1,value: '张三'}},
|
||||
"targetField": {"立案报告表-当事人-个人(个体工商户)-性别":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"立案报告表-当事人-个人(个体工商户)-性别":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-居民身份证-性别":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"现场笔录-证件类型及号码":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-居民身份证-公民身份号码":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"现场笔录-地址":{page: 1,value: '张三'}},
|
||||
"targetField": {"立案报告表-当事人-个人(个体工商户)-住址":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
},
|
||||
{
|
||||
"sourceField": {"立案报告表-当事人-个人(个体工商户)-住址":{page: 1,value: '张三'}},
|
||||
"targetField": {"证据复制(提取)单-居民身份证-住址":{page: 1,value: '张三'}},
|
||||
"compareMethod": "exact",
|
||||
"result": true
|
||||
}
|
||||
],
|
||||
"selectedFields": []
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user