details.vue 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="details_main">
  3. <view>
  4. <ren-dropdown-filter :filterData='filterData' :defaultIndex='defaultIndex' @ed='ed' @dateChange='dateChange'
  5. >
  6. </ren-dropdown-filter>
  7. </view>
  8. <view class="cost_all">
  9. <view class="date_range">
  10. {{start_date}}-{{end_date}}
  11. </view>
  12. <view class="balance">
  13. <view class="disburse balance_t">
  14. <view>支出</view>
  15. <view>{{expenditure}}</view>
  16. </view>
  17. <view class="top_up balance_t">
  18. <view>充值</view>
  19. <view>{{recharge}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="mingxi_xq">
  24. <view class="mingxi">
  25. <view class="mingxi_time">
  26. <text>7月18日 周一</text>
  27. <text class="mingxi_yuer">-10</text>
  28. </view>
  29. <view >
  30. <text>扣费</text>
  31. <text class="mingxi_yuer2">余额:300.00</text>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import RenDropdownFilter from '@/components/ren-dropdown-filter/ren-dropdown-filter.vue'
  39. import {getgetbalanceinfo} from '@/api/api.js'
  40. export default {
  41. components: {
  42. // RenDropdownFilter
  43. },
  44. data() {
  45. return {
  46. start_date: '2022/06/19',
  47. end_date: '2022/07/19',
  48. Date: false,
  49. value1:1,
  50. value2:0,
  51. patient_id: 15652,
  52. org_id:10265,
  53. expenditure:null,//支出
  54. recharge:null,//充值
  55. list:[],//流水
  56. filterData: [
  57. [{
  58. text: '一周',
  59. value: '0'
  60. }, {
  61. text: '一个月',
  62. value: 1
  63. }, {
  64. text: '三个月',
  65. value: 2
  66. }, {
  67. text: '六个月',
  68. value: 3
  69. }, {
  70. text: '一年',
  71. value: 4
  72. }],
  73. [{
  74. text: '全部',
  75. value: ''
  76. }, {
  77. text: '充值',
  78. value: 1
  79. }, {
  80. text: '扣费',
  81. value: 2
  82. }, {
  83. text: '退款',
  84. value: 3
  85. }, {
  86. text: '退费',
  87. value: 4
  88. }]
  89. ],
  90. moeny:[{
  91. text: '全部',
  92. value: 0
  93. }, {
  94. text: '充值',
  95. value: 1
  96. }, {
  97. text: '扣费',
  98. value: 2
  99. }, {
  100. text: '退款',
  101. value: 3
  102. }, {
  103. text: '退费',
  104. value: 4
  105. }],
  106. defaultIndex: [0, 0]
  107. }
  108. },
  109. onLoad() {
  110. this.getbalanceinfos()
  111. },
  112. methods: {
  113. async getbalanceinfos(){
  114. let params={
  115. patient_id: 15652,
  116. org_id:10265,
  117. start_time:'2023-02-01',
  118. end_time:'2023-02-28'
  119. }
  120. let res=await getgetbalanceinfo(params)
  121. console.log('xxxxx',res.data.data);
  122. this.expenditure = res.data.data.expenditure
  123. this.recharge = res.data.data.recharge
  124. this.list = res.data.data.list
  125. },
  126. ed(res) {
  127. console.log(res)
  128. },
  129. dateChange(d) {
  130. uni.showToast({
  131. icon: 'none',
  132. title: d
  133. })
  134. }
  135. }
  136. };
  137. </script>
  138. <style lang="scss">
  139. @import url(./advance.css);
  140. .text {
  141. font-size: 12px;
  142. color: #666;
  143. margin-top: 5px;
  144. }
  145. .uni-px-5 {
  146. padding-left: 10px;
  147. padding-right: 10px;
  148. }
  149. .uni-pb-5 {
  150. padding-bottom: 10px;
  151. }
  152. </style>