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

DeductionDetails.vue 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. max-height="550"
  53. show-summary
  54. sum-text="押金支付金额合计"
  55. border
  56. >
  57. <el-table-column type="index" label="序号" align="center" width="100">
  58. </el-table-column>
  59. <el-table-column label="就诊号" align="center" width="300">
  60. <template slot-scope="scope">
  61. <span>{{ scope.row.code ? scope.row.code : "" }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column label="患者名称" align="center">
  65. <template slot-scope="scope">
  66. <span>{{ scope.row.name ? scope.row.name : "" }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column label="收费类型" align="center">
  70. <template slot-scope="scope">
  71. <span>{{ scope.row.chargetype ? scope.row.chargetype : "" }}</span>
  72. </template>
  73. </el-table-column>
  74. <el-table-column label="医疗费总额" align="center">
  75. <template slot-scope="scope">
  76. <span>{{ scope.row.total ? scope.row.total : "" }}</span>
  77. </template>
  78. </el-table-column>
  79. <el-table-column label="押金支付金额" align="center" prop="decimal">
  80. <template slot-scope="scope">
  81. <span>{{ scope.row.decimal ? scope.row.decimal : "" }}</span>
  82. </template>
  83. </el-table-column>
  84. <el-table-column label="收费日期" align="center">
  85. <template slot-scope="scope">
  86. <span>{{ scope.row.charge_date ? scope.row.charge_date : "" }}</span>
  87. </template>
  88. </el-table-column>
  89. <el-table-column label="操作" align="center" width="350px">
  90. <template slot-scope="scope">
  91. <span v-if="scope.row.button_show == 1">
  92. <el-button
  93. size="small"
  94. type="primary"
  95. @click="Details(scope.row, scope.row.$index)"
  96. >
  97. 查看详情
  98. </el-button>
  99. </span>
  100. </template>
  101. </el-table-column>
  102. </el-table>
  103. <!-- <div>押金支付金额合计:<span>{{sum}}</span></div> -->
  104. </div>
  105. </div>
  106. </template>
  107. <script>
  108. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  109. import {
  110. deductiondetails,
  111. getweektime
  112. }from "@/api/deposit";
  113. export default {
  114. components: {
  115. BreadCrumb,
  116. },
  117. data() {
  118. return {
  119. crumbs: [
  120. { path: false, name: "押金管理" },
  121. { path: "/DepositManagement/DepositSearch", name: "押金查询" },
  122. ],
  123. tableData: [],
  124. // total: 0,
  125. // page: 1,
  126. // limit: 10,
  127. keyword: "",
  128. value1: "",
  129. start_time:"",
  130. end_time:"",
  131. sum:""
  132. };
  133. },
  134. created(){
  135. this.init();
  136. // this.search()
  137. },
  138. methods: {
  139. // 合计表数据
  140. getSummaries(param) {
  141. let { columns, data } = param;
  142. console.log(param,'oo')
  143. let sums = [];
  144. columns.forEach((column, index) => {
  145. if (index === 0) {
  146. sums[index] = '总价';
  147. return;
  148. }
  149. let values = data.map(item => Number(item[column.property]));
  150. console.log(values,'values')
  151. if (!values.every(value => isNaN(value))) {
  152. sums[index] = values.reduce((prev, curr) => {
  153. const value = Number(curr);
  154. if (!isNaN(value)) {
  155. return prev + curr;
  156. } else {
  157. return prev;
  158. }
  159. }, 0);
  160. sums[index] += '';
  161. } else {
  162. sums[index] = '';
  163. }
  164. });
  165. return sums;
  166. },
  167. // 初始化数据
  168. init() {
  169. var params = {}
  170. getweektime(params).then((res) => {
  171. if(res.data.state == 1){
  172. this.value1 = [res.data.data.srart_time,res.data.data.end_time]
  173. }
  174. this.search()
  175. })
  176. },
  177. // 查询操作
  178. search() {
  179. // this.value1 = ["2022-04-10","2022-05-10"],有空在改。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
  180. // console.log("value1",this.value1)
  181. if (this.value1 != null){
  182. if(this.value1[0] != undefined && this.value1[1] != undefined){
  183. this.start_time = this.value1[0]
  184. this.end_time = this.value1[1]
  185. }
  186. }else {
  187. this.start_time = ""
  188. this.end_time = ""
  189. }
  190. var params = {
  191. keyword: this.keyword,
  192. start_time: this.start_time,
  193. end_time: this.end_time,
  194. };
  195. console.log("params",params)
  196. deductiondetails(params).then((res) => {
  197. if (res.data.state == 1){
  198. this.tableData = res.data.data.list;
  199. this.sum = res.data.data.sum;
  200. }
  201. })
  202. },
  203. // 查看详情
  204. Details(val,index) {
  205. this.$router.push({path:"/outpatientCharges/summaryDetail?patient_id="+val.name_id+"&number="+val.number+"&id="+val.id})
  206. },
  207. },
  208. };
  209. </script>
  210. <style>
  211. </style>