reimbursementUserBusinessList.vue 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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></el-col>
  11. <el-col :span="12" style="text-align:right">
  12. <el-button type="info" size="small" @click="goBack">返回</el-button>
  13. </el-col>
  14. <el-table
  15. :data="columnForm.columnList"
  16. style="width: 100%">
  17. <el-table-column
  18. prop="businessCode"
  19. label="业务编号"
  20. >
  21. </el-table-column>
  22. <el-table-column
  23. prop="year"
  24. label="报销年份"
  25. >
  26. </el-table-column>
  27. <el-table-column
  28. prop="reimbursementDay"
  29. label="报销天数"
  30. >
  31. </el-table-column>
  32. <el-table-column
  33. prop="reimbursementAmount"
  34. label="报销额度"
  35. >
  36. </el-table-column>
  37. <el-table-column
  38. prop="createDate"
  39. label="报销时间"
  40. >
  41. </el-table-column>
  42. </el-table>
  43. </el-col>
  44. </el-row>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. import ReimbursementUser from '@/api/reimbursementSys/user/reimbursementUserService'
  50. export default {
  51. data () {
  52. return {
  53. title: '',
  54. method: '',
  55. loading: false,
  56. previewVisible: false,
  57. isIndeterminate: false,
  58. inputForm: {
  59. id: '',
  60. dataSource: {
  61. id: ''
  62. },
  63. name: '',
  64. sqlCmd: ''
  65. },
  66. columnForm: {
  67. isNeedAll: true,
  68. columnList: []
  69. }
  70. }
  71. },
  72. reimbursementUser: null,
  73. created () {
  74. this.reimbursementUser = new ReimbursementUser()
  75. },
  76. activated () {
  77. this.$refs['inputForm'].resetFields()
  78. this.columnForm.columnList = []
  79. this.inputForm.id = this.$route.query.id
  80. if (this.inputForm.id) {
  81. this.reimbursementUser.findListByUserId(this.inputForm.id).then(({data}) => {
  82. this.columnForm.columnList = data
  83. })
  84. }
  85. },
  86. components: {
  87. editor: require('vue2-ace-editor')
  88. },
  89. methods: {
  90. goBack () {
  91. this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
  92. this.$router.push('/reimbursementSys/user/reimbursementUserList')
  93. }
  94. }
  95. }
  96. </script>