Commit 0e4e3332 authored by wangxl's avatar wangxl

3333

parent 7d86b010
<template>
<div>
<table class="tab-content" cellpadding="3" cellspacing="3" style="width: 98%">
<table class="tab-content" cellpadding="3" cellspacing="3" style="width: 98%;margin-top: 6px;">
<tr>
<td class="bg-title">指标分类</td>
<td class="bg-title">评分标准</td>
<td class="bg-title">评分项目</td>
<td class="bg-title">单项得分</td>
<td class="bg-title">明细</td>
<td class="bg-title">数量</td>
<td class="bg-title">评分</td>
<td class="bg-title">备注</td>
<td class="bg-title" style="width:7%">指标分类</td>
<td class="bg-title" style="width:10%">评分标准</td>
<td class="bg-title" style="width:10%">评分项目</td>
<td class="bg-title" style="width:8%">单项得分</td>
<td class="bg-title" style="width:30%">明细</td>
<td class="bg-title" style="width:10%">数量</td>
<td class="bg-title" style="width:10%">评分</td>
<td class="bg-title" style="width:25%">备注</td>
</tr>
<tr v-for="(item,index) in scoreList" :key="'scoreList'+index" type="flex" class="row_center">
<td :rowspan="item.row1" v-if="item.row1>0">{{item.content1}}</td>
<td :rowspan="item.row1" v-if="item.row1>0" style="text-align:center;font-weight: 800;">{{item.content1}}</td>
<td :rowspan="item.row2" v-if="item.row2>0">{{item.content2}}</td>
<td>{{item.content}}</td>
<td>{{item.scoreDetail}}</td>
<td style="text-align:center">{{item.scoreDetail}}</td>
<td>
<a-form-model-item :prop="'scoreList.' + index + '.detail'" :rules="{required: true, message: '*', trigger: 'blur',}">
<a-input v-model="item.detail" style="width: 60%" />
<a-input v-model="item.detail" style="width: 85%" />
</a-form-model-item>
</td>
<td>
<a-form-model-item :prop="'scoreList.' + index + '.count'" :rules="{required: true, message: '*', trigger: 'blur',}">
<a-input-number v-model="item.count" :min="0" style="width: 60%" />
<a-input-number v-model="item.count" :min="0" style="width: 80%" />
</a-form-model-item>
</td>
<td style="text-align: center;">
<a-form-model-item :prop="'scoreList.' + index + '.score'" :rules="{required: true, message: '*', trigger: 'blur',}">
<a-input-number v-model="item.score" :min="0" :max="item.maxScore" style="width: 60%" />
<a-input-number v-model="item.score" :min="0" :max="item.maxScore" style="width: 80%" />
</a-form-model-item>
</td>
<td>{{item.remark}}</td>
</tr>
<tr>
<td colspan="7" class="bg-title" style="text-align: right;">总分:</td>
<td style="text-align: left;padding-left: 12px;">{{Count()}}</td>
<td colspan="6" style="text-align: right;">总分:</td>
<td style="text-align: center;padding-left: 12px;">{{Count()}}</td>
<td></td>
</tr>
</table>
<div style="height: 10px;"></div>
</div>
</template>
......@@ -52,12 +54,6 @@ export default {
return []
}
},
totalScore: {
type: Number,
default () {
return 0;
},
},
},
data () {
return {
......
......@@ -200,6 +200,13 @@ export default {
changeScroll () {
this.$refs.main.scrollTop = document.getElementsByClassName('x_modal_content')[0].offsetHeight
},
checkInfo () {
if (!!!this.formData.totalScore) {
return false
} else {
return true
}
},
save () {
if (this.checkInfo()) {
this.loading = true
......@@ -218,13 +225,6 @@ export default {
this.$message.warn('请先评分再保存!')
}
},
checkInfo () {
if (!!!this.formData.totalScore) {
return false
} else {
return true
}
},
submit () {
this.$refs.form.validate(valid => {
if (valid) {
......
......@@ -15,10 +15,9 @@
<a-divider style="height: 1px; background-color: #e8e8e8;" />
<div class="submit-btn">
<a-button type="primary" @click="exportData">导出Excel</a-button>
<a-button type="primary" @click="testScoreView">查看评分表</a-button>
<span class="form-description">※ 注:保存评审内容后,请及时提交! 专家评分时间:{{description}}</span>
</div>
<a-table :dataSource="tableData" :columns="columns" :scroll="{ x: 'max-content' }" rowKey="id" :pagination="false" :loading="loading">
<a-table :dataSource="tableData" :columns="columns" :scroll="{ x: 'max-content' }" rowKey="id" :pagination="false" :loading="loading">
<template slot="talentInfo" slot-scope="record">
<a @click="recordClick(record, 'tView')">{{record.personName}}</a>
</template>
......@@ -71,7 +70,7 @@ export default {
{ title: '职称', dataIndex: 'titleName', align: 'center' },
{ title: '申报年度', dataIndex: 'assignYear', align: 'center' },
{ title: '评分', dataIndex: 'totalScore', align: 'center' },
{ title: '评审状态', dataIndex: 'stateName', align: 'center'},
{ title: '评审状态', dataIndex: 'stateName', align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, },
],
pagination: { pageIndex: 1, pageSize: 50, total: 0, pageSizeOptions: this.$defaultPageSizeOptions, },
......@@ -95,10 +94,6 @@ export default {
this.getYear()
},
methods: {
testScoreView () {
this.id = ''
this.scoreVisible = true
},
moment,
getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, systemType: getType(), timeType: 4 }).then(({ data = {} }) => {
......
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