zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!--
 * @Author: PengJianTian
 * @Date: 2019-10-21 15:40:58
 * @LastEditTime : 2019-12-25 17:56:44
 * @LastEditors  : PengJianTian
 * @Description: 
 * @FilePath: \cts-web\src\views\area\projectManagement\details\EvaluateData.vue
 * @ 
 -->
<template>
  <el-container>
    <el-main style="padding:0">
      <el-row>
        <p class="title">项目评分</p>
        <p class="totalTicket">
          <el-button v-if="$route.path.includes('add')" type="primary" @click="rebuildingScoreModel" >重新测算</el-button>
          <span class="total">
            <span style="margin-right:12px">得分合计:</span>
            <span>{{ result.evaluateScore }}</span>
          </span>
          <span class="ticket">
            <span style="margin-right:12px">是否一票否决:</span>
            <span>{{ result.evaluateResult  }}</span>
          </span>
        </p>
      </el-row>
      <el-row>
        <el-table :data="result.scoreRecordInfos" stripe fit border size="mini" height="550">
          <el-table-column prop="displayNo" label="编号" width="70"></el-table-column>
          <el-table-column prop="superItemName" label="指标大类" width="270"></el-table-column>
          <el-table-column prop="tipName" label="指标小类" width="270"></el-table-column>
          <el-table-column prop="name" label="指标名称" width="310"></el-table-column>
          <el-table-column prop="itemName" label="指标值" width="350"></el-table-column>
          <el-table-column prop="sooreType" label="评分类型" width="100"></el-table-column>
          <el-table-column label="得分">
            <template slot-scope="scope">
              <span :style="{color:(scope.row.score === '一票否决'?'red':'')}">{{scope.row.score}}</span>
            </template>
          </el-table-column>
          <!-- <el-table-column prop="displayNo" label="编号"></el-table-column>
          <el-table-column prop="superItemName" label="指标大类"></el-table-column>
          <el-table-column prop="tipName" label="指标小类"></el-table-column>
          <el-table-column prop="name" label="指标名称"></el-table-column>
          <el-table-column prop="itemName" label="指标值"></el-table-column>
          <el-table-column prop="sooreType" label="评分类型"></el-table-column>
          <el-table-column prop="score" label="得分" fixed="right"></el-table-column> -->
        </el-table>
      </el-row>
    </el-main>
  </el-container>
</template>
 
<script>
import { queryEvaluateData, deleteEvaluateData } from '@/api/area'
import { mapState } from 'vuex'
export default {
  data: function() {
    return {
      labelPosition: 'right',
      result: {}
    }
  },
  computed: {
    ...mapState({
      detailsParams: state => state.risk.detailsParams
    })
  },
  created() {
    this.getForm()
  },
  methods: {
    getForm() {
      let params = {
        objectType: this.detailsParams.objectType,
        objectNo: this.detailsParams.objectNo
      }
      queryEvaluateData(params).then(res => {
        this.result = res.result
      })
    },
    submitForm() {
      this.$emit('handleNextPage', true)
    },
    // 重新生成评分模型
    rebuildingScoreModel() {
      let params = {
        objectType: this.detailsParams.objectType,
        objectNo: this.detailsParams.objectNo
      }
      deleteEvaluateData(params).then(res => {
        this.result = {}
        queryEvaluateData(params).then(res => {
          this.result = res.result
        })
      })
    }
  }
}
</script>
 
<style scoped>
.totalTicket {
  width: 100%;
  margin-bottom: 10px;
}
.totalTicket .total,
.totalTicket .ticket {
  display: inline-block;
  width: 40%;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}
</style>