Commit 36d5188e authored by wangxl's avatar wangxl
parents 025188b3 2611079e
...@@ -185,7 +185,8 @@ export default { ...@@ -185,7 +185,8 @@ export default {
score16: { required: true, message: "*", trigger: "blur" }, score16: { required: true, message: "*", trigger: "blur" },
score17: { required: true, message: "*", trigger: "blur" }, score17: { required: true, message: "*", trigger: "blur" },
remark: [{ required: true, message: '请填写评审意见', trigger: 'blur' },], remark: [{ required: true, message: '请填写评审意见', trigger: 'blur' },],
supportState: { required: true, message: "*", trigger: "blur" } supportState: { required: true, message: "请选择是否支持立项", trigger: "blur" },
evaluationType: { required: true, message: "*", trigger: "blur" },
}, },
projectInfo: { projectInfo: {
projName: '', projName: '',
...@@ -345,6 +346,7 @@ export default { ...@@ -345,6 +346,7 @@ export default {
} }
}, },
submit () { submit () {
console.log(this.formData)
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
this.loading = true this.loading = true
......
...@@ -25,20 +25,30 @@ ...@@ -25,20 +25,30 @@
<td class="bg-title">评审意见</td> <td class="bg-title">评审意见</td>
<td colspan="4"> <td colspan="4">
<a-form-model-item prop="remark"> <a-form-model-item prop="remark">
<a-textarea placeholder="评审意见" v-model="value.remark" @change="AreaChange()" :maxLength="1000" style="width: 90%; height: 120px; margin-top: 6px" /> <a-textarea placeholder="评审意见" v-model="remark" @change="AreaChange()" :maxLength="1000" style="width: 90%; height: 120px; margin-top: 6px" />
</a-form-model-item> </a-form-model-item>
</td> </td>
<td style="text-align: center">总分:{{ totalScore }}</td> <td style="text-align: center">总分:{{ totalScore }}</td>
</tr> </tr>
<tr> <tr>
<td class="bg-title">是否推荐立项支持</td> <td class="bg-title">是否推荐立项支持</td>
<td colspan="5"> <td colspan="2">
<a-form-model-item prop="supportState"> <a-form-model-item prop="supportState">
<a-radio-group v-model="value.supportState"> <a-radio-group v-model="supportState" @change="supportStateChange">
<a-radio :value="1"></a-radio> <a-radio :value="1"></a-radio>
<a-radio :value="0"></a-radio> <a-radio :value="0"></a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
</td>
<td class="bg-title">评审结果</td>
<td colspan="2">
<a-form-model-item prop="evaluationType">
<a-radio-group v-model="evaluationType" @change="EcaluationChange">
<a-radio :value="1">A类(通过)</a-radio>
<a-radio :value="2">B类(修改)</a-radio>
<a-radio :value="3">C类(不通过)</a-radio>
</a-radio-group>
</a-form-model-item>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -75,6 +85,7 @@ const formData = { ...@@ -75,6 +85,7 @@ const formData = {
projName: null, projName: null,
projNo: null, projNo: null,
}; };
const plainOptions = ['A', 'B', 'C'];
export default { export default {
name: "technologyEvalucation", name: "technologyEvalucation",
...@@ -88,6 +99,7 @@ export default { ...@@ -88,6 +99,7 @@ export default {
}, },
data() { data() {
return { return {
tableData: [ tableData: [
{ rowspan: 1, oneLevel: "1.意义及必要性(5分)", towLevel: "A:项目实施的意义及必要性(5分)", title1: "重要(4-5分)", title2: "较重要(2-3分)", title3: "一般(0-1分)", score: 5, grade: null, }, { rowspan: 1, oneLevel: "1.意义及必要性(5分)", towLevel: "A:项目实施的意义及必要性(5分)", title1: "重要(4-5分)", title2: "较重要(2-3分)", title3: "一般(0-1分)", score: 5, grade: null, },
...@@ -114,7 +126,11 @@ export default { ...@@ -114,7 +126,11 @@ export default {
{ rowspan: 0, oneLevel: "7.风险分析(10分)", towLevel: "B:目标实现风险(4分)", title1: "风险小(4分)", title2: "有一定风险(3分)", title3: "风险较大(0分)", score: 4, grade: null, }, { rowspan: 0, oneLevel: "7.风险分析(10分)", towLevel: "B:目标实现风险(4分)", title1: "风险小(4分)", title2: "有一定风险(3分)", title3: "风险较大(0分)", score: 4, grade: null, },
], ],
remark: "", remark: "",
supportState: null,
evaluationType: 0,
totalScore: 0, totalScore: 0,
plainOptions,
disabled: true,
}; };
}, },
created() { created() {
...@@ -135,6 +151,9 @@ export default { ...@@ -135,6 +151,9 @@ export default {
this.tableData[14].grade = this.value.score15 this.tableData[14].grade = this.value.score15
this.tableData[15].grade = this.value.score16 this.tableData[15].grade = this.value.score16
this.tableData[16].grade = this.value.score17 this.tableData[16].grade = this.value.score17
this.remark = this.value.remark
this.supportState = this.value.supportState
this.evaluationType = this.value.evaluationType
this.calTotalScore() this.calTotalScore()
}, },
methods: { methods: {
...@@ -153,7 +172,7 @@ export default { ...@@ -153,7 +172,7 @@ export default {
this.value.score4 = this.tableData[index].grade; this.value.score4 = this.tableData[index].grade;
break; break;
case 5: case 5:
this.value.score4 = this.tableData[index].grade; this.value.score5 = this.tableData[index].grade;
break; break;
case 6: case 6:
this.value.score6 = this.tableData[index].grade; this.value.score6 = this.tableData[index].grade;
...@@ -194,16 +213,31 @@ export default { ...@@ -194,16 +213,31 @@ export default {
} }
this.calTotalScore() this.calTotalScore()
}, },
AreaChange() {
this.value.remark = this.remark
},
calTotalScore() { calTotalScore() {
this.totalScore = 0; this.totalScore = 0;
this.tableData.forEach((e) => { this.tableData.forEach((e) => {
if (e.grade != null) { if (e.grade != null) {
this.totalScore += e.grade; this.totalScore += e.grade;
} }
this.DetermineType()
}); });
},
DetermineType() {
if (this.totalScore >= 80)
this.evaluationType = 1
else if (this.totalScore < 80 && this.totalScore >= 60)
this.evaluationType = 2
else
this.evaluationType = 3
},
AreaChange() {
this.value.remark = this.remark
},
supportStateChange() {
this.value.supportState = this.supportState
},
EcaluationChange() {
this.value.evaluationType = this.evaluationType
} }
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment