achievementKDetail.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <div class="startFrom">
  3. <el-dialog title="业绩考核系数详情" v-model="dialogVisible" :fullscreen="true" :close-on-click-modal="false">
  4. <div class="startDetail">
  5. <p class="starttitleSty">基础信息:</p>
  6. <el-row class="danjuMsg">
  7. <el-col :span="10">
  8. <div class="danjuMsg_data">
  9. <span class="data_tit">单位名称:</span>
  10. <span>{{receiptMsg.organizationName}}</span>
  11. </div>
  12. </el-col>
  13. <el-col :span="12">
  14. <div class="danjuMsg_data">
  15. <span class="data_tit">年度:</span>
  16. <span>{{receiptMsg.year}}</span>
  17. </div>
  18. </el-col>
  19. <el-col :span="24">
  20. <div class="danjuMsg_data">
  21. <span class="data_tit data_tit_1">业务简述:</span>
  22. <span>{{receiptMsg.desc}}</span>
  23. </div>
  24. </el-col>
  25. </el-row>
  26. <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
  27. <el-tab-pane label="权重分配" name="first">
  28. <!-- @select="rowClick" @select-all="rowClick" -->
  29. <el-table :data="weightAllocation" style="width: 100%">
  30. <!-- <el-table-column type="selection" label="操作" align="center"></el-table-column> -->
  31. <el-table-column type="index" label="序号" width="80" />
  32. <el-table-column label="考评单位" prop="organizationName" width="300"/>
  33. <el-table-column label="资产管理系数" align="center">
  34. <el-table-column label="资产总额" prop="zzc" />
  35. <el-table-column label="K1" prop="k1" />
  36. </el-table-column>
  37. <el-table-column label="幅度管理系数" align="center">
  38. <el-table-column label="机组" prop="jzs" />
  39. <el-table-column label="K2" prop="k2" />
  40. </el-table-column>
  41. <el-table-column label="效益贡献系数" align="center">
  42. <el-table-column label="账面利润总额" prop="zmlrze" />
  43. <el-table-column label="发电量" prop="fdl" />
  44. <el-table-column label="度电利润" prop="ddlr" />
  45. <el-table-column label="K3" prop="k3" />
  46. </el-table-column>
  47. <el-table-column label="定员管理系数" align="center">
  48. <el-table-column label="定员" prop="dy" />
  49. <el-table-column label="K4" prop="k4" />
  50. </el-table-column>
  51. <el-table-column label="K" prop="k" />
  52. <el-table-column label="填报人" prop="createBy" />
  53. <el-table-column label="填报日期" prop="createTime" width="160" />
  54. </el-table>
  55. </el-tab-pane>
  56. </el-tabs>
  57. </div>
  58. <template #footer>
  59. <span class="dialog-footer">
  60. <el-button type="primary" @click="dialogVisible = false">取 消</el-button>
  61. </span>
  62. </template>
  63. </el-dialog>
  64. </div>
  65. </template>
  66. <script>
  67. import {apigetyeargroupcoefficientlistById} from '../../api/api'
  68. import addIcon from '../../assets/btnIcon/add.png'
  69. import saveIcon from '../../assets/btnIcon/save.png'
  70. import editIcon from '../../assets/btnIcon/edit.png'
  71. import deleteIcon from '../../assets/btnIcon/delete.png'
  72. export default {
  73. data() {
  74. return {
  75. dialogVisible: false,
  76. activeName: 'first',
  77. quantifiedList: [],
  78. nonQuantifiedList: [],
  79. changeDateSelect: [],
  80. receiptMsg: {
  81. organizationName: '',
  82. des: '',
  83. year: '',
  84. },
  85. addIcon: addIcon,
  86. saveIcon: saveIcon,
  87. editIcon: editIcon,
  88. deleteIcon: deleteIcon,
  89. rowMsg: {},
  90. weightAllocation: []
  91. }
  92. },
  93. created() {
  94. },
  95. methods: {
  96. init(row) {
  97. this.dialogVisible = true
  98. this.activeName = 'first'
  99. this.getDetails(row.id)
  100. this.rowMsg = row
  101. },
  102. handleClick() {
  103. this.changeDateSelect = []
  104. },
  105. rowClick(selection, row) {
  106. this.changeDateSelect = selection
  107. },
  108. //获取详情
  109. getDetails(id) {
  110. let that = this
  111. let params = {
  112. id: id
  113. }
  114. apigetyeargroupcoefficientlistById(params).then(datas =>{
  115. if (datas && datas.data) {
  116. that.receiptMsg = {
  117. organizationName: datas.data.createOrgName,
  118. year: datas.data.year,
  119. desc: datas.data.des
  120. }
  121. that.weightAllocation = datas.data.coefficientList
  122. }
  123. })
  124. }
  125. }
  126. }
  127. </script>
  128. <style lang="less">
  129. .startFrom{
  130. .el-overlay{
  131. .el-dialog{
  132. // margin-top: 7vh;
  133. .el-dialog__body{
  134. padding: 0 20px !important;
  135. .startDetail{
  136. .starttitleSty{
  137. font-size: 18px;
  138. font-family: Microsoft YaHei;
  139. font-weight: bold;
  140. color: #3B7AD1;
  141. // line-height: 12px;
  142. margin: 20px 0 20px 10px;
  143. }
  144. .danjuMsg{
  145. border: 1px solid #D6DBEA;
  146. padding: 10px 20px;
  147. border-radius: 10px;
  148. margin-bottom: 20px;
  149. .danjuMsg_data{
  150. padding: 5px 0 10px 0;
  151. .data_tit{
  152. margin-right: 10px;
  153. font-weight: bold;
  154. font-size: 14px;
  155. font-family: Microsoft YaHei;
  156. color: #8991B0;
  157. }
  158. .data_tit_wd{
  159. display: inline-block;
  160. width: 90px;
  161. }
  162. .el-form-item--small{
  163. .el-input{
  164. height: 25px;
  165. width: 160px;
  166. }
  167. margin-bottom: 0;
  168. .el-input-number{
  169. height: 25px;
  170. .el-input-number__decrease, .el-input-number__increase{
  171. right: -39px;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. .el-select, .el-input{
  178. width: 100%;
  179. }
  180. .el-tabs{
  181. .el-tabs__header{
  182. .el-tabs__nav{
  183. .el-tabs__item{
  184. font-size: 18px;
  185. font-family: Microsoft YaHei;
  186. font-weight: bold;
  187. margin: 0 10px;
  188. color: #8991B0;
  189. }
  190. .is-active{
  191. font-size: 18px;
  192. font-family: Microsoft YaHei;
  193. font-weight: bold;
  194. color: #3B7AD1;
  195. margin: 0 10px;
  196. }
  197. }
  198. }
  199. .el-table{
  200. .el-table__body-wrapper{
  201. height: 53vh;
  202. }
  203. .el-table__row{
  204. .cell{
  205. .el-input{
  206. height: 24px;
  207. .el-input__inner{
  208. height: 24px;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }
  215. }
  216. }
  217. .el-dialog__footer{
  218. .dialog-footer{
  219. display: flex;
  220. justify-content: center;
  221. .el-button{
  222. width: 180px !important;
  223. height: 40px !important;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. </style>