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

RechargeSummary.vue 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. }from "@/api/deposit";
  87. export default {
  88. components: {
  89. BreadCrumb,
  90. },
  91. data() {
  92. return {
  93. crumbs: [
  94. { path: false, name: "押金管理" },
  95. { path: "/DepositManagement/DepositSearch", name: "押金查询" },
  96. ],
  97. tableData: [],
  98. // total: 0,
  99. // page: 1,
  100. // limit: 10,
  101. keyword: "",
  102. value1:"",
  103. start_time:"",
  104. end_time:"",
  105. sum:""
  106. };
  107. },
  108. created(){
  109. this.search()
  110. },
  111. methods: {
  112. // 初始化数据
  113. init() {},
  114. // 查询操作
  115. search() {
  116. // console.log("value1",this.value1)
  117. if (this.value1 != null){
  118. if(this.value1[0] != undefined && this.value1[1] != undefined){
  119. this.start_time = this.value1[0]
  120. this.end_time = this.value1[1]
  121. }
  122. }else {
  123. this.start_time = ""
  124. this.end_time = ""
  125. }
  126. var params = {
  127. keyword: this.keyword,
  128. start_time: this.start_time,
  129. end_time: this.end_time,
  130. };
  131. console.log("params",params)
  132. rechargesummary(params).then((res) => {
  133. if (res.data.state == 1){
  134. this.tableData = res.data.data.list;
  135. this.sum = res.data.data.sum;
  136. }
  137. })
  138. },
  139. // 删除
  140. toDelete() {},
  141. // 审核
  142. examine() {},
  143. // 打印凭证
  144. print(){}
  145. },
  146. };
  147. </script>
  148. <style>
  149. </style>