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

DepositSearch.vue 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <!-- 押金查询-->
  3. <div class="main-contain">
  4. <div class="position">
  5. <bread-crumb :crumbs="crumbs"></bread-crumb>
  6. </div>
  7. <div class="app-container">
  8. <div
  9. style="
  10. justify-content: flex-start;
  11. margin: 0px 0 12px 0;
  12. display: flex;
  13. align-items: center;
  14. "
  15. >
  16. <div>
  17. <!-- <el-input-->
  18. <!-- size="small"-->
  19. <!-- style="width: 200px; margin-left: 10px"-->
  20. <!-- class="filter-item"-->
  21. <!-- placeholder="请输入患者名称"-->
  22. <!-- v-model.trim="keyword"-->
  23. <!-- />-->
  24. <el-select v-model.trim="keyword" clearable filterable placeholder="请输入患者名称" @select="handleSelect" ><!--@change="updateconfig1(h1)"-->
  25. <el-option
  26. v-for="item in users"
  27. :key="item.id"
  28. :label="item.name"
  29. :value="item.id"
  30. >
  31. </el-option>
  32. </el-select>
  33. <el-button
  34. size="small"
  35. class="filter-item"
  36. type="primary"
  37. icon="el-icon-search"
  38. @click="search"
  39. >查询</el-button
  40. >
  41. </div>
  42. </div>
  43. <el-table
  44. :header-cell-style="{
  45. backgroundColor: 'rgb(245, 247, 250)',
  46. color: '#606266',
  47. }"
  48. :data="tableData"
  49. border
  50. >
  51. <el-table-column type="index" label="序号" align="center" width="200">
  52. </el-table-column>
  53. <el-table-column label="患者名称" align="center">
  54. <template slot-scope="scope">
  55. <span>{{ scope.row.his_patient_name ? scope.row.his_patient_name : "" }}</span>
  56. </template>
  57. </el-table-column>
  58. <el-table-column label="可用金额" align="center">
  59. <template slot-scope="scope">
  60. <span>{{ scope.row.deposit ? scope.row.deposit : "" }}</span>
  61. </template>
  62. </el-table-column>
  63. <el-table-column label="操作" align="center" width="450px">
  64. <template slot-scope="scope">
  65. <el-button
  66. size="small"
  67. type="primary"
  68. @click="toDetails(scope.row, scope.row.$index)"
  69. >
  70. 流水详情
  71. </el-button>
  72. </template>
  73. </el-table-column>
  74. </el-table>
  75. <el-pagination
  76. @size-change="handleSizeChange"
  77. @current-change="handleCurrentChange"
  78. :page-sizes="[10, 50, 100, 200, 500, 1000]"
  79. :page-size="10"
  80. background
  81. align="right"
  82. style="margin-top: 20px"
  83. layout="total, sizes, prev, pager, next, jumper"
  84. :total="total"
  85. >
  86. </el-pagination>
  87. </div>
  88. </div>
  89. </template>
  90. <script>
  91. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  92. import {
  93. gethisuser,
  94. getuserlist
  95. }from "@/api/deposit";
  96. export default {
  97. components: {
  98. BreadCrumb,
  99. },
  100. data() {
  101. return {
  102. crumbs: [
  103. { path: false, name: "押金管理" },
  104. { path: "/DepositManagement/DepositSearch", name: "押金查询" },
  105. ],
  106. tableData: [],
  107. total: 0,
  108. page: 1,
  109. limit: 10,
  110. keyword:'',
  111. users:[],//可用患者列表
  112. };
  113. },
  114. created(){
  115. this.init()
  116. this.getuser()
  117. },
  118. methods: {
  119. // 初始化数据
  120. init() {
  121. //分页
  122. var params = {
  123. keyword: this.keyword,
  124. page: this.page,
  125. limit: this.limit,
  126. };
  127. getuserlist(params).then((res) =>{
  128. if (res.data.state == 1){
  129. this.total = res.data.data.total;
  130. this.tableData = res.data.data.list;
  131. }
  132. })
  133. },
  134. //获取患者列表
  135. getuser(){
  136. var params = {};
  137. gethisuser(params).then((res) =>{
  138. if (res.data.state == 1){
  139. this.users = res.data.data.list;
  140. }
  141. console.log("this.users",this.users)
  142. })
  143. },
  144. // 查询操作
  145. search() {
  146. var params = {
  147. keyword: this.keyword,
  148. page: this.page,
  149. limit: this.limit,
  150. };
  151. getuserlist(params).then((res) =>{
  152. if (res.data.state == 1){
  153. this.total = res.data.data.total;
  154. this.tableData = res.data.data.list;
  155. }
  156. })
  157. },
  158. // 页表操作
  159. handleSizeChange(val) {
  160. this.limit = val;
  161. this.init();
  162. },
  163. handleCurrentChange(val) {
  164. this.page = val;
  165. this.init();
  166. },
  167. handleSelect(item){
  168. this.keyword = item.id
  169. },
  170. updateconfig(){
  171. console.log("keyword",this.keyword)
  172. },
  173. // 流水详情
  174. toDetails(data,val) {
  175. console.log("data",data)
  176. console.log("data",val)
  177. this.$router.push({ path: "/DepositManagement/DepositDetails",query:{key:data}});
  178. },
  179. },
  180. };
  181. </script>
  182. <style>
  183. </style>