ChargeDetails.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="dashboard-container" :class="{'nocopy': $route.meta.nocopy}">
  3. <div class="tableBox">
  4. <Title :title="'费用明细'" />
  5. <el-table :data="tableData" style="width: 100%">
  6. <el-table-column type="index" label="序号"></el-table-column>
  7. <el-table-column prop="FYXH" label="费用序号"></el-table-column>
  8. <el-table-column prop="FYMC" label="费用名称"></el-table-column>
  9. <el-table-column prop="ZFJE" label="自付金额"></el-table-column>
  10. <el-table-column prop="JFRQ" label="计费日期"></el-table-column>
  11. <el-table-column prop="FYSL" label="费用数量"></el-table-column>
  12. <el-table-column prop="FYDJ" label="费用单价"></el-table-column>
  13. <el-table-column prop="ZJE" label="总金额"></el-table-column>
  14. <el-table-column prop="FYKS" label="费用科室"></el-table-column>
  15. <el-table-column prop="FYGB" label="费用归并"></el-table-column>
  16. <el-table-column prop="SYFYGB" label="首页费用归并"></el-table-column>
  17. </el-table>
  18. <!-- 分页控制 -->
  19. <!-- <mPagination v-if="tableData && tableData.length !== 0" :data="paginationData" @pageChangeEvent="pageHasChanged"></mPagination> -->
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import Title from '@/components/Title';
  25. import { mapGetters } from 'vuex';
  26. import mPagination from '@/components/m-pagination';
  27. export default {
  28. name: 'ChargeDetails',
  29. components: {
  30. Title,
  31. mPagination,
  32. },
  33. computed: {
  34. ...mapGetters(['name']),
  35. },
  36. data() {
  37. return {
  38. tableData: [],
  39. // 分页数据
  40. paginationData: {
  41. total: 10,
  42. currentPage: 1,
  43. pageSize: 10,
  44. },
  45. MED_REC_ID: '',
  46. };
  47. },
  48. mounted() {
  49. this.MED_REC_ID = this.$route.query.MED_REC_ID;
  50. this.funQuery();
  51. },
  52. methods: {
  53. pageHasChanged() {
  54. this.funQuery();
  55. },
  56. funQuery() {
  57. //查询
  58. let pramse = {
  59. MED_REC_ID: this.MED_REC_ID,
  60. // page: this.paginationData.currentPage,
  61. // limit: this.paginationData.pageSize,
  62. };
  63. this.$axios.post('/feeDetail', pramse).then(res => {
  64. console.log(res);
  65. // this.paginationData.total = res.data.count;
  66. this.tableData = res.data;
  67. });
  68. },
  69. }
  70. };
  71. </script >
  72. <style scoped>
  73. ::v-deep.el-pagination.is-background .btn-next,
  74. ::v-deep.el-pagination.is-background .btn-prev,
  75. ::v-deep.el-pagination.is-background .el-pager li {
  76. margin: 0 5px;
  77. background-color: #fff;
  78. color: #606266;
  79. min-width: 30px;
  80. border-radius: 2px;
  81. border: 1px solid #dfe3f3;
  82. line-height: 27px;
  83. }
  84. ::v-deep.el-pagination.is-background .el-pager li:not(.disabled).active {
  85. background: #7e8bab;
  86. }
  87. ::v-deep.el-table .el-table__row td {
  88. color: #7e8bab;
  89. border-bottom: 1px solid #f4f4f4;
  90. }
  91. ::v-deep.el-table .el-table__header tr th:first-child {
  92. border-radius: 10px 0px 0px 10px;
  93. }
  94. ::v-deep.el-table .el-table__header tr th:last-child {
  95. border-radius: 0px 10px 10px 0px;
  96. }
  97. ::v-deep.el-table .el-table__header tr th {
  98. background: #f1f6ff;
  99. color: #13171e;
  100. border-bottom: 0px;
  101. }
  102. </style>
  103. <style lang="scss" scoped>
  104. .dashboard-container{
  105. padding: 0;
  106. margin: 10px !important;
  107. }
  108. .tableBox {
  109. width: 100%;
  110. background: #fff;
  111. padding: 19px;
  112. border-radius: 5px;
  113. font-size: 12px;
  114. }
  115. .tableBox {
  116. background: #fff;
  117. padding: 19px;
  118. border-radius: 5px;
  119. }
  120. .dashboard {
  121. &-container {
  122. margin: 30px;
  123. }
  124. &-text {
  125. font-size: 30px;
  126. line-height: 46px;
  127. }
  128. }
  129. .pind {
  130. padding: 0 20px;
  131. }
  132. .pind10 {
  133. padding: 0 5px;
  134. }
  135. .width150 {
  136. width: 200px;
  137. }
  138. .width300 {
  139. width: 295px;
  140. }
  141. .width500 {
  142. width: 645px;
  143. }
  144. .width90 {
  145. width: 90px;
  146. }
  147. .blue {
  148. color: #185da6;
  149. }
  150. </style>