reimbursementBusinessList.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div class="el-scrollbar__wrap wrap-white padding-20">
  3. <div class="el-scrollbar__view">
  4. <el-row :gutter="20" v-loading="loading">
  5. <el-col :span="12">
  6. <el-form size="small" :model="inputForm" ref="inputForm" v-loading="loading" label-width="150px">
  7. </el-form>
  8. </el-col>
  9. <el-col :span="24">
  10. <el-col :span="12"><h3>业务报销详情</h3>
  11. <div style="margin-bottom: 5px;">
  12. <span class="color: red">可报销额度:{{columnForm.reimbursementQuota}}</span>
  13. <span class="color: red">; 已报销额度:{{columnForm.alreadyReimbursementAmount}}</span>
  14. <span class="color: red">; 剩余报销额度:{{columnForm.surplusReimbursementAmount}}</span>
  15. </div>
  16. </el-col>
  17. <el-col :span="12" style="text-align:right">
  18. <el-button type="info" size="small" @click="goBack">返回</el-button>
  19. </el-col>
  20. <el-table
  21. :data="columnForm.columnList"
  22. style="width: 100%">
  23. <el-table-column
  24. prop="userName"
  25. label="报销人"
  26. >
  27. </el-table-column>
  28. <el-table-column
  29. prop="year"
  30. label="报销年份"
  31. >
  32. </el-table-column>
  33. <el-table-column
  34. prop="reimbursementType"
  35. label="报销类型"
  36. >
  37. </el-table-column>
  38. <el-table-column
  39. prop="reimbursementDay"
  40. label="报销天数"
  41. >
  42. </el-table-column>
  43. <el-table-column
  44. prop="reimbursementAmount"
  45. label="报销额度"
  46. >
  47. </el-table-column>
  48. <el-table-column
  49. prop="createDate"
  50. label="报销时间"
  51. >
  52. </el-table-column>
  53. </el-table>
  54. </el-col>
  55. </el-row>
  56. </div>
  57. </div>
  58. </template>
  59. <script>
  60. import ReimbursementBusiness from '@/api/reimbursementSys/reimbursementBusinessService'
  61. export default {
  62. data () {
  63. return {
  64. title: '',
  65. method: '',
  66. loading: false,
  67. previewVisible: false,
  68. isIndeterminate: false,
  69. inputForm: {
  70. id: '',
  71. dataSource: {
  72. id: ''
  73. },
  74. name: '',
  75. sqlCmd: ''
  76. },
  77. columnForm: {
  78. reimbursementQuota: '', // 报销额度
  79. alreadyReimbursementAmount: '', // 已报销额度
  80. surplusReimbursementAmount: '', // 剩余报销额度
  81. columnList: []
  82. }
  83. }
  84. },
  85. reimbursementBusiness: null,
  86. created () {
  87. this.reimbursementBusiness = new ReimbursementBusiness()
  88. },
  89. activated () {
  90. this.$refs['inputForm'].resetFields()
  91. this.columnForm.columnList = []
  92. this.inputForm.id = this.$route.query.id
  93. if (this.inputForm.id) {
  94. this.reimbursementBusiness.findListByBusinessCodeId(this.inputForm.id).then(({data}) => {
  95. this.columnForm.columnList = data.list
  96. this.columnForm.reimbursementQuota = data.reimbursementQuota
  97. this.columnForm.alreadyReimbursementAmount = data.alreadyReimbursementAmount
  98. this.columnForm.surplusReimbursementAmount = data.surplusReimbursementAmount
  99. })
  100. }
  101. },
  102. methods: {
  103. goBack () {
  104. this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
  105. this.$router.push('/reimbursementSys/reimbursementList')
  106. }
  107. }
  108. }
  109. </script>