血透系统pad前端

RecordPage.vue 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <div>
  3. <van-row class="top_row">
  4. <van-col :span="9">
  5. <div>
  6. <span class="title"> {{ $store.getters.user.org.org_short_name }} </span>
  7. </div>
  8. </van-col>
  9. <van-col :span="6">
  10. <div class="department">
  11. <ul>
  12. <li v-for="(item,i) in ['候诊室','透析区']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li>
  13. </ul>
  14. </div>
  15. </van-col>
  16. <van-col :span="9">
  17. <router-link to="/add_urgent_schedule">
  18. <van-button size="small" type="info" class="add_schedule_btn">临时排班</van-button>
  19. </router-link>
  20. <div class="search">
  21. <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" class="field">
  22. <i class="iconfont" slot="left-icon">&#xe741;</i>
  23. <van-button slot="button" size="small" type="info" style="border: none;" @click="searchWithKeyword">搜索</van-button>
  24. </van-field>
  25. </div>
  26. </van-col>
  27. </van-row>
  28. <!-- <div class="top">
  29. <div class="hospital">
  30. <span class="title"> {{ $store.getters.user.org.org_short_name }} </span>
  31. </div>
  32. <div class="department">
  33. <ul>
  34. <li v-for="(item,i) in ['候诊室','透析区']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li>
  35. </ul>
  36. </div>
  37. <div class="search">
  38. <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" style="background-color: #ebf1f7; height: 0.6rem; line-height: 0.6rem; padding: 0 0 0 10px; border-radius: 30px;">
  39. <i class="iconfont" slot="left-icon">&#xe741;</i>
  40. <van-button slot="button" size="small" type="info" style="border: none;" @click="searchWithKeyword">搜索</van-button>
  41. </van-field>
  42. </div>
  43. <van-button size="small" type="info">临时排班</van-button>
  44. </div> -->
  45. <div class="area">
  46. <waiting-area v-show="index==0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
  47. <dialysis-area v-show="index==1" title="透析区" :search_keyword="search_keyword" @clear_search_keyword="clearKeyword"></dialysis-area>
  48. </div>
  49. </div>
  50. </template>
  51. <script>
  52. import DialysisArea from "./DialysisArea";
  53. import WaitingArea from "./WaitingArea";
  54. import { Popover } from "vux";
  55. export default {
  56. name: "RecordPage",
  57. data() {
  58. return {
  59. index: 1,
  60. search_input: "",
  61. search_keyword: ""
  62. // yyList: [
  63. // {
  64. // value: "0",
  65. // name: "济南医院"
  66. // },
  67. // {
  68. // value: "1",
  69. // name: "血透中心"
  70. // }
  71. // ]
  72. };
  73. },
  74. components: {
  75. DialysisArea,
  76. WaitingArea,
  77. Popover
  78. // Group,
  79. // Cell
  80. },
  81. methods: {
  82. ClickTab: function(tabIndex) {
  83. this.index = tabIndex;
  84. },
  85. searchWithKeyword: function() {
  86. this.$refs.search_field.blur();
  87. this.search_keyword = this.search_input;
  88. },
  89. clearKeyword: function() {
  90. this.search_input = "";
  91. this.search_keyword = "";
  92. }
  93. }
  94. };
  95. </script>
  96. <style style="stylesheet/scss" lang="scss" scoped>
  97. .top_row {
  98. font-size: 0.3rem;
  99. padding: 0.3rem 0.3rem;
  100. border-bottom: 1px #e5e5e5 solid;
  101. display: flex;
  102. align-items: center;
  103. }
  104. .title {
  105. font-size: 0.34rem;
  106. font-weight: 600;
  107. color: $title-color;
  108. }
  109. .department {
  110. text-align: center;
  111. ul {
  112. li {
  113. float: left;
  114. font-size: 0.36rem;
  115. margin: 0 0.2rem;
  116. height: 0.64rem;
  117. line-height: 0.64rem;
  118. padding: 0 0.3rem;
  119. color: $title-color;
  120. &.active {
  121. background: $main-color;
  122. color: #fff;
  123. border-radius: 30px;
  124. }
  125. }
  126. }
  127. }
  128. .add_schedule_btn {
  129. margin-left: 10px;
  130. float: right;
  131. background-color: #ff7978;
  132. border: none;
  133. }
  134. </style>