Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

RechargeSummary.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <!-- 充值汇总-->
  3. <div class="main-contain">
  4. <div class="app-container">
  5. <div
  6. style="
  7. justify-content: flex-start;
  8. margin: 0px 0 12px 0;
  9. display: flex;
  10. align-items: center;
  11. "
  12. >
  13. <div style="display: flex">
  14. <div style="width: 250px">
  15. <el-input
  16. size="small"
  17. style="width: 200px; margin-left: 10px"
  18. class="filter-item"
  19. placeholder="请输入患者名称"
  20. v-model.trim="keyword"
  21. />
  22. </div>
  23. <div style="width: 465px">
  24. <span>日期查询:</span>
  25. <el-date-picker
  26. v-model="value1"
  27. type="daterange"
  28. range-separator="至"
  29. start-placeholder="开始日期"
  30. end-placeholder="结束日期"
  31. format="yyyy-MM-dd"
  32. value-format="yyyy-MM-dd"
  33. >
  34. </el-date-picker>
  35. </div>
  36. <el-button
  37. size="small"
  38. class="filter-item"
  39. type="primary"
  40. icon="el-icon-search"
  41. @click="search"
  42. >查询</el-button
  43. >
  44. </div>
  45. </div>
  46. <el-table
  47. :header-cell-style="{
  48. backgroundColor: 'rgb(245, 247, 250)',
  49. color: '#606266',
  50. }"
  51. max-height="550"
  52. :data="tableData"
  53. show-summary
  54. sum-text="充值金额合计"
  55. border
  56. >
  57. <el-table-column type="index" label="序号" align="center" width="200">
  58. </el-table-column>
  59. <el-table-column label="患者名称" align="center">
  60. <template slot-scope="scope">
  61. <span>{{ scope.row.his_name ? scope.row.his_name : "" }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column label="充值金额" align="center" prop="sum_decimal">
  65. <template slot-scope="scope">
  66. <span>{{ scope.row.sum_decimal ? scope.row.sum_decimal : "" }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column label="押金余额" align="center">
  70. <template slot-scope="scope">
  71. <span>{{ scope.row.decimal ? scope.row.decimal : "" }}</span>
  72. </template>
  73. </el-table-column>
  74. </el-table>
  75. <!--
  76. <div>
  77. 充值金额合计:<span>{{sum}}</span>
  78. </div> -->
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  84. import {
  85. rechargesummary,
  86. getweektime
  87. }from "@/api/deposit";
  88. export default {
  89. components: {
  90. BreadCrumb,
  91. },
  92. data() {
  93. return {
  94. crumbs: [
  95. { path: false, name: "押金管理" },
  96. { path: "/DepositManagement/DepositSearch", name: "押金查询" },
  97. ],
  98. tableData: [],
  99. // total: 0,
  100. // page: 1,
  101. // limit: 10,
  102. keyword: "",
  103. value1:"",
  104. start_time:"",
  105. end_time:"",
  106. sum:""
  107. };
  108. },
  109. created(){
  110. this.init();
  111. this.search()
  112. },
  113. methods: {
  114. // 初始化数据
  115. init() {
  116. var params = {}
  117. getweektime(params).then((res) => {
  118. if (res.data.state == 1){
  119. this.value1 = [res.data.data.srart_time,res.data.data.end_time]
  120. }
  121. })
  122. },
  123. // 查询操作
  124. search() {
  125. // console.log("value1",this.value1)
  126. if (this.value1 != null){
  127. if(this.value1[0] != undefined && this.value1[1] != undefined){
  128. this.start_time = this.value1[0]
  129. this.end_time = this.value1[1]
  130. }
  131. }else {
  132. this.start_time = ""
  133. this.end_time = ""
  134. }
  135. var params = {
  136. keyword: this.keyword,
  137. start_time: this.start_time,
  138. end_time: this.end_time,
  139. };
  140. console.log("params",params)
  141. rechargesummary(params).then((res) => {
  142. if (res.data.state == 1){
  143. this.tableData = res.data.data.list;
  144. this.sum = res.data.data.sum;
  145. }
  146. })
  147. },
  148. // 删除
  149. toDelete() {},
  150. // 审核
  151. examine() {},
  152. // 打印凭证
  153. print(){}
  154. },
  155. };
  156. </script>
  157. <style>
  158. </style>