[update] 修改企标制修订流程,评分限制分数

This commit is contained in:
lideqin
2024-01-03 10:48:55 +08:00
parent 868548774c
commit 86a6e993ad
@@ -43,7 +43,9 @@ const fixDataSourse = [
desc: '评估标准文件的格式是否符合GB/T 1.1的要求,包括文件名、编号、版本号、' +
'发布日期、生效日期、引用文件章节、图表等内容是否齐全、准确、清晰。',
score: '一般',
scoreRange: '0~5'
scoreRange: '0~5',
min: 0,
max: 15
},
{
id: 2,
@@ -61,7 +63,9 @@ const fixDataSourse = [
desc: '评估标准文件的内容是否详细准确、内容详实、逻辑清晰、科学合理。包括术语定义、' +
'引用标准、技术要求、试验检测方法等各个方面是否符合/严于法律法规、国家标准、行业标准等要求。',
score: '一般',
scoreRange: '0~20'
scoreRange: '0~20',
min: 0,
max: 45
},
{
id: 5,
@@ -78,7 +82,9 @@ const fixDataSourse = [
project: '适用性 (10)',
desc: '评估标准文件的应用范围是否明确、适用,是否与研发工艺、质量、生产、采购等环节相符合。',
score: '一般',
scoreRange: '0~3'
scoreRange: '0~3',
min: 0,
max: 10
},
{
id: 8,
@@ -96,7 +102,9 @@ const fixDataSourse = [
desc: '评估标准文件所涉及的专业领域是否全面、系统,是否涵盖了所有相关模版' +
'(比如设计规范模版、释放规范模版、产品技术条件模版)所规定的要素和环节。',
score: '一般',
scoreRange: '0~5'
scoreRange: '0~5',
min: 0,
max: 15
},
{
id: 11,
@@ -113,7 +121,9 @@ const fixDataSourse = [
project: '可读性 (5)',
desc: '评估标准文件的可读性是否良好,是否有错别字,是否易于阅读和理解。',
score: '一般',
scoreRange: '0~2'
scoreRange: '0~2',
min: 0,
max: 5
},
{
id: 14,
@@ -130,7 +140,9 @@ const fixDataSourse = [
project: '权威性及可执行性(10)',
desc: '评估标准文件的权威性是否足够,是否得到了相关方的认可和信任,是否得到了有效的贯彻和执行。',
score: '一般',
scoreRange: '0~3'
scoreRange: '0~3',
min: 0,
max: 10
},
{
id: 17,
@@ -223,13 +235,17 @@ export default {
dataIndex: 'evaluateScore',
customRender: (text, row, index) => {
const obj = {
children: <a-input v-model={this.dataSource[index].evaluateScore} maxLength={50}
title={this.dataSource[index].evaluateScore} placeholder={'请输入'}
onChange={ e => {
e.target.value = (e.target.value.replace(/[^0-9-]/g, '')).trim()
this.dataSource[index].evaluateScore = (e.target.value.replace(/[^0-9-]/g, '')).trim()
} }
children: <a-input-number v-model={this.dataSource[index].evaluateScore}
min={this.dataSource[index].min} max={this.dataSource[index].max} precision={0}
title={this.dataSource[index].evaluateScore + ''} placeholder={'请输入'}
/>,
// children: <a-input v-model={this.dataSource[index].evaluateScore} maxLength={50}
// title={this.dataSource[index].evaluateScore} placeholder={'请输入'}
// onChange={ e => {
// e.target.value = (e.target.value.replace(/[^0-9-]/g, '')).trim()
// this.dataSource[index].evaluateScore = (e.target.value.replace(/[^0-9-]/g, '')).trim()
// } }
// />,
attrs: {}
}
if (index === 19) {
@@ -286,8 +302,8 @@ export default {
this.dataSource = JSON.parse(JSON.stringify(fixDataSourse))
for (const i in fixDataSourse) {
if (i % 3 === 0) {
this.dataSource[i].evaluateScore = data.reviewMeetingDetails[Math.floor(i / 3)].evaluateScore || ''
this.dataSource[i].deductionScoreReason = data.reviewMeetingDetails[Math.floor(i / 3)].deductionScoreReason || ''
this.$set(this.dataSource[i], 'evaluateScore', data.reviewMeetingDetails[Math.floor(i / 3)].evaluateScore || '')
this.$set(this.dataSource[i], 'deductionScoreReason', data.reviewMeetingDetails[Math.floor(i / 3)].deductionScoreReason || '')
}
}
} else {
@@ -304,7 +320,7 @@ export default {
const data = {}
const arr = []
for (const item in this.dataSource) {
if (item % 3 === 0 && this.dataSource[item].evaluateScore && this.dataSource[item].deductionScoreReason) {
if (item % 3 === 0) {
// 是有评分和扣分理由的行
arr.push({
...this.dataSource[item],