dialog.auditview.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div class="edu-training-edit">
  3. <DialogCom title="审核情况" @close="onHide" :visible.sync="isShow" width="960px">
  4. <div class="page-body">
  5. <el-form ref="form" :model="formData" label-width="150px">
  6. <el-table :data="formData">
  7. <el-table-column label="接待机构" align="center" prop="orgName" />
  8. <el-table-column label="审核状态" align="center" prop="status" width="80" >
  9. <template slot-scope="r">
  10. <dict-tag :options="dict.type.letter_status" :value="r.row.status"/>
  11. </template>
  12. </el-table-column>
  13. <el-table-column label="审核结果" align="center" prop="checkStatus" width="80">
  14. <template slot-scope="r">
  15. <span>{{r.row.checkStatus==null?"待审批":r.row.checkStatus===1?"通过":"不通过"}}</span>
  16. </template>
  17. </el-table-column>
  18. <el-table-column label="审核人" align="center" prop="checkUser" width="100"/>
  19. <el-table-column label="审核时间" align="center" prop="checkTime"/>
  20. <el-table-column label="审核意见" align="center" prop="checkRemark">
  21. <template slot-scope="r">
  22. <span class="text-style" :title="r.row.checkRemark">{{ r.row.checkRemark }}</span>
  23. </template>
  24. </el-table-column>
  25. </el-table>
  26. </el-form>
  27. </div>
  28. <div slot="footer" class="dialog-footer">
  29. <el-button @click="onHide">取 消</el-button>
  30. <!-- <el-button type="primary" @click="submitForm" v-if="showAudit">确 定</el-button>-->
  31. </div>
  32. </DialogCom>
  33. </div>
  34. </template>
  35. <script>
  36. import {mapState, mapMutations} from "vuex";
  37. import {auditAllList} from "@/api/core/letter";
  38. export default {
  39. components: {},
  40. data() {
  41. const params = this.$route.params;
  42. return {
  43. id: params ? params.id : null,
  44. isShow: false,
  45. formData: this.reset(),
  46. };
  47. },
  48. dicts: ['letter_status'],
  49. props: {},
  50. watch: {},
  51. created() {
  52. },
  53. computed: {
  54. ...mapState(["loginUser", "org",]),
  55. },
  56. methods: {
  57. ...mapMutations([]),
  58. reset(other = {}) {
  59. return {
  60. id: null,
  61. checkUser:null,
  62. checkTime:null,
  63. checkStatus:null,
  64. checkRemark:null,
  65. letterId:null,
  66. orgId:null,
  67. status:null,
  68. ...other,
  69. };
  70. },
  71. async show(id, other = {}) {
  72. this.isShow = true;
  73. auditAllList(id).then(response => {
  74. this.formData = response.data;
  75. });
  76. },
  77. onHide() {
  78. this.isShow = false;
  79. this.formData = this.reset();
  80. this.$emit('closed')
  81. },
  82. },
  83. mounted() {
  84. },
  85. };
  86. </script>
  87. <style lang="scss">
  88. .title {
  89. clear: both;
  90. margin: auto;
  91. text-align: center;
  92. color: black;
  93. font-size: xx-large;
  94. letter-spacing: 3px;
  95. }
  96. .text-style{
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. white-space: nowrap;
  100. }
  101. </style>