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

DeductionSummary.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. :data="tableData"
  52. show-summary
  53. :summary-method="getSummaries"
  54. max-height="550"
  55. sum-text="押金支付金额合计"
  56. border
  57. >
  58. <el-table-column type="index" label="序号" align="center" width="200">
  59. </el-table-column>
  60. <el-table-column label="患者名称" align="center">
  61. <template slot-scope="scope">
  62. <span>{{ scope.row.name ? scope.row.name : "" }}</span>
  63. </template>
  64. </el-table-column>
  65. <el-table-column label="医疗费总额" align="center">
  66. <template slot-scope="scope">
  67. <span>{{ scope.row.total ? scope.row.total : "" }}</span>
  68. </template>
  69. </el-table-column>
  70. <el-table-column label="押金支付金额" align="center" prop="decimal">
  71. <template slot-scope="scope">
  72. <span>{{ scope.row.decimal ? scope.row.decimal : "" }}</span>
  73. </template>
  74. </el-table-column>
  75. </el-table>
  76. <!-- <div>押金支付金额合计:<span>{{sum}}</span></div> -->
  77. </div>
  78. </div>
  79. </template>
  80. <script>
  81. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  82. import {
  83. desummary,
  84. getweektime
  85. }from "@/api/deposit";
  86. export default {
  87. components: {
  88. BreadCrumb,
  89. },
  90. data() {
  91. return {
  92. crumbs: [
  93. { path: false, name: "押金管理" },
  94. { path: "/DepositManagement/DepositSearch", name: "押金查询" },
  95. ],
  96. tableData: [{},{},{}],
  97. // total: 0,
  98. // page: 1,
  99. // limit: 10,
  100. keyword: "",
  101. value1: "",
  102. start_time:"",
  103. end_time:"",
  104. sum:""
  105. };
  106. },
  107. created(){
  108. this.init();
  109. // this.search()
  110. },
  111. methods: {
  112. // 初始化数据
  113. init() {
  114. var params = {}
  115. getweektime(params).then((res) => {
  116. if (res.data.state == 1){
  117. this.value1 = [res.data.data.srart_time,res.data.data.end_time]
  118. }
  119. this.search()
  120. })
  121. },
  122. // 查询操作
  123. search() {
  124. if (this.value1 != null){
  125. if(this.value1[0] != undefined && this.value1[1] != undefined){
  126. this.start_time = this.value1[0]
  127. this.end_time = this.value1[1]
  128. }
  129. }else {
  130. this.start_time = ""
  131. this.end_time = ""
  132. }
  133. var params = {
  134. keyword: this.keyword,
  135. start_time: this.start_time,
  136. end_time: this.end_time,
  137. };
  138. console.log("params",params)
  139. desummary(params).then((res) => {
  140. if (res.data.state == 1){
  141. this.tableData = res.data.data.list;
  142. this.sum = res.data.data.sum;
  143. }
  144. })
  145. },
  146. // 删除
  147. toDelete() {},
  148. // 审核
  149. examine() {},
  150. // 打印凭证
  151. print() {},
  152. },
  153. };
  154. </script>
  155. <style>
  156. </style>