index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div>
  3. <div class="app-container">
  4. <el-form :model="queryParams" ref="queryForm" size="mini" :inline="true">
  5. <el-row >
  6. <el-col :span="18">
  7. <el-form-item label="状态" prop="status">
  8. <el-select
  9. size="mini"
  10. v-model="queryParams.status"
  11. placeholder=""
  12. clearable
  13. @change="getList"
  14. >
  15. <el-option
  16. v-for="dict in dict.type.ehr_pm_status"
  17. :key="dict.value"
  18. :label="dict.label"
  19. :value="dict.value"
  20. ></el-option>
  21. </el-select>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :span="6">
  25. <el-form-item style="float:right">
  26. <el-button size="mini" plain @click="btnBack">返回</el-button>
  27. </el-form-item>
  28. </el-col>
  29. </el-row>
  30. </el-form>
  31. <el-table size="mini" height="500px" v-loading="loading" :data="listData">
  32. <el-table-column label="编号" align="center" prop="id" />
  33. <el-table-column label="员工姓名" align="center" prop="staffName" />
  34. <el-table-column label="评估周期" align="center" prop="name" />
  35. <el-table-column label="月度" align="center" prop="month" />
  36. <el-table-column label="自评分" align="center" prop="saMark" />
  37. <el-table-column label="状态" align="center" prop="status" >
  38. <template slot-scope="scope">
  39. <dict-tag :options="dict.type.ehr_pm_status" :value="scope.row.status"/>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
  43. <template slot-scope="scope">
  44. <el-button
  45. size="mini"
  46. type="text"
  47. icon="el-icon-search"
  48. @click="btnPmVerify(scope.row)"
  49. v-if="scope.row.status == 4"
  50. >待评分</el-button>
  51. </template>
  52. </el-table-column>
  53. </el-table>
  54. </div>
  55. </div>
  56. </template>
  57. <script>
  58. import { listUnMark} from "@/api/business/ehr/pm/pmmark";
  59. import { getInfo} from "@/api/business/ehr/pm/flow";
  60. export default {
  61. name: "AwaitMarkPm",
  62. dicts: ['ehr_pm_status'],
  63. data() {
  64. return {
  65. // 遮罩层
  66. loading: true,
  67. // 表格数据
  68. listData: [],
  69. // 查询参数
  70. queryParams: {
  71. pageNum: 1,
  72. pageSize: 10,
  73. sourceId: null,
  74. status: null,
  75. },
  76. };
  77. },
  78. created() {
  79. this.queryParams.sourceId = this.$route.params.id;
  80. this.getList();
  81. },
  82. methods: {
  83. /** 查询绩效列表 */
  84. getList() {
  85. this.loading = true;
  86. listUnMark(this.queryParams).then(response => {
  87. this.listData = response.rows;
  88. this.loading = false;
  89. });
  90. },
  91. //待确认
  92. async btnPmVerify(row){
  93. let params = {
  94. performanceId:row.id,
  95. performanceStatus:4,
  96. staff:this.$store.state.user.name,
  97. status:0,
  98. }
  99. let res = await getInfo(params);
  100. if(res.code == 200 && res.data){
  101. this.$router.push({ name: 'AwaitMarkPmDetail', query: { performanceId: row.id,flowId: res.data.id } });
  102. }else{
  103. console.log("params",params);
  104. this.$modal.msgSuccess("未找到对应流程,请联系管理员!");
  105. }
  106. },
  107. //返回
  108. btnBack(){
  109. this.$router.push({name:'EvaluatePm'});
  110. },
  111. }
  112. };
  113. </script>
  114. <style lang="scss" scoped>
  115. .btn_grooup {
  116. margin-bottom: 10px;
  117. display: flex;
  118. justify-content: flex-end;
  119. }
  120. .paginationClass {
  121. z-index: 500;
  122. position: fixed;
  123. bottom: 10px;
  124. right: 10px;
  125. width: 100%;
  126. line-height: var(--footer-height);
  127. color: #fff;
  128. }
  129. </style>