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

statistics.vue 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <template>
  2. <div class="main-contain new-main-contain">
  3. <div class="position">
  4. <!-- <bread-crumb :crumbs='crumbs'></bread-crumb>-->
  5. <bread-crumb :crumbs='crumbs'></bread-crumb>
  6. </div>
  7. <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
  8. <div class="mainLeft">
  9. <div>
  10. <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;"
  11. :row-style="{ color: '#303133' }"
  12. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  13. highlight-current-row ref="tab"
  14. @current-change="handleCurrentChange">
  15. <el-table-column align="center" prop="name" label="姓名" wdith='89'>
  16. <template slot-scope="scope">{{ scope.row.name }}</template>
  17. </el-table-column>
  18. </el-table>
  19. </div>
  20. </div>
  21. <div class="mainRight">
  22. <el-tabs v-model="titleType">
  23. <el-tab-pane label="明细" name="明细"></el-tab-pane>
  24. <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
  25. </el-tabs>
  26. <detail-statistics v-if="titleType == '明细'" :patient_id="patient_id"></detail-statistics>
  27. <gather-statistics v-if="titleType == '汇总'" :patient_id="patient_id"></gather-statistics>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. import {
  34. GetAllPatients,
  35. } from '@/api/his/his_tools'
  36. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  37. import DetailStatistics from './components/detailStatistics'
  38. import GatherStatistics from './components/gatherStatistics'
  39. export default {
  40. components: {
  41. GatherStatistics,
  42. DetailStatistics,
  43. BreadCrumb,
  44. },
  45. data() {
  46. return {
  47. patientTableData:[],
  48. tableHeight: 400,
  49. crumbs: [
  50. { path: false, name: 'His工具' },
  51. { path: false, name: '明细汇总统计' }
  52. ],
  53. titleType: '明细',
  54. patient_id:0
  55. }
  56. },
  57. methods: {
  58. getPatientList(){
  59. GetAllPatients().then(response => {
  60. if (response.data.state == 0) {
  61. this.$message.error(response.data.msg)
  62. return false
  63. } else {
  64. this.patientTableData = response.data.data.list
  65. this.patient_id = this.patientTableData[0].id
  66. }
  67. })
  68. },
  69. handleCurrentChange(row){
  70. this.patient_id = row.id
  71. },
  72. },
  73. created() {
  74. const tableHeight = document.body.clientHeight - 290
  75. this.tableHeight = tableHeight
  76. this.getPatientList()
  77. },
  78. mounted() {
  79. },
  80. watch: {}
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. .new-main-contain {
  85. height: 100%;
  86. display: flex;
  87. flex-direction: column;
  88. }
  89. .app-container {
  90. height: 100%;
  91. }
  92. .mainCell {
  93. height: 36px;
  94. display: flex;
  95. align-items: center;
  96. }
  97. .mainLeft {
  98. width: 200px;
  99. height: 100%;
  100. display: flex;
  101. flex-direction: column;
  102. .el-radio {
  103. margin-right: 5px;
  104. }
  105. }
  106. .mainRight {
  107. margin-left: 10px;
  108. flex: 1;
  109. height: 100%;
  110. display: flex;
  111. flex-direction: column;
  112. overflow-y: auto;
  113. .cellSpan {
  114. min-width: 80px;
  115. display: inline-block;
  116. margin-right: 10px;
  117. }
  118. }
  119. .mainCenter {
  120. display: flex;
  121. flex: 1;
  122. }
  123. .centerLeft {
  124. flex: 1;
  125. display: flex;
  126. flex-direction: column;
  127. position: relative;
  128. .el-form-item {
  129. width: 32%;
  130. margin-right: 1%;
  131. float: left;
  132. }
  133. .el-form-item__label {
  134. text-align: left;
  135. }
  136. }
  137. .backColor {
  138. background: #f6f8f9;
  139. height: 5px;
  140. margin-bottom: 5px;
  141. }
  142. .tabsBox {
  143. position: relative;
  144. height: 76%;
  145. overflow-y: auto;
  146. margin-bottom: 60px;
  147. .el-tabs__item {
  148. padding: 0 10px;
  149. }
  150. }
  151. .preTabs {
  152. height: 100%;
  153. display: flex;
  154. flex-direction: column;
  155. .el-tabs__content {
  156. flex: 1;
  157. overflow-y: auto;
  158. }
  159. }
  160. .costBox {
  161. width: 100%;
  162. height: 60px;
  163. background: #fff;
  164. position: absolute;
  165. bottom: 0;
  166. display: flex;
  167. align-items: center;
  168. }
  169. .addTab {
  170. position: absolute;
  171. right: 0;
  172. top: 14px;
  173. z-index: 20;
  174. }
  175. .centerRight {
  176. width: 300px;
  177. margin-left: 10px;
  178. display: flex;
  179. flex-direction: column;
  180. position: relative;
  181. }
  182. .rightTab {
  183. height: 40px;
  184. width: 100%;
  185. border: 1px solid #d2d2d2;
  186. box-sizing: border-box;
  187. p {
  188. width: 50%;
  189. height: 40px;
  190. line-height: 40px;
  191. text-align: center;
  192. background: #eee;
  193. float: left;
  194. }
  195. > p:last-child {
  196. border-left: 1px solid #d2d2d2;
  197. float: right;
  198. }
  199. .activeP {
  200. background: #409EFF;
  201. color: #fff;
  202. }
  203. }
  204. .comfirmBox {
  205. width: 100%;
  206. height: 60px;
  207. background: #fff;
  208. position: absolute;
  209. bottom: 0;
  210. display: flex;
  211. align-items: center;
  212. justify-content: space-between;
  213. }
  214. .mainHeader {
  215. width: 100%;
  216. background: #fff;
  217. position: fixed;
  218. z-index: 100;
  219. height: 36px;
  220. }
  221. .titleBox {
  222. position: fixed;
  223. z-index: 99;
  224. background: #fff;
  225. }
  226. .fixedCell {
  227. position: fixed;
  228. z-index: 99;
  229. right: 30px;
  230. background: #fff;
  231. width: 300px;
  232. display: flex;
  233. justify-content: space-between;
  234. }
  235. </style>
  236. <style lang="scss">
  237. .centerLeft {
  238. .el-form-item__label {
  239. text-align: left;
  240. }
  241. }
  242. .tabsBox {
  243. .el-tabs__item {
  244. padding: 0 10px;
  245. }
  246. .el-tabs--bottom .el-tabs--left > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--bottom .el-tabs--right > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--bottom.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--bottom.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top .el-tabs--left > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top .el-tabs--right > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2) {
  247. padding: 0 10px;
  248. }
  249. .el-tabs--bottom .el-tabs--left > .el-tabs__header .el-tabs__item:last-child, .el-tabs--bottom .el-tabs--right > .el-tabs__header .el-tabs__item:last-child, .el-tabs--bottom.el-tabs--border-card > .el-tabs__header .el-tabs__item:last-child, .el-tabs--bottom.el-tabs--card > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top .el-tabs--left > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top .el-tabs--right > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:last-child {
  250. padding: 0 10px;
  251. }
  252. .el-tabs--card > .el-tabs__header .el-tabs__item.is-active.is-closable {
  253. padding: 0 10px;
  254. }
  255. }
  256. .centerRight {
  257. .el-tabs__nav-scroll {
  258. display: flex;
  259. }
  260. .el-tabs__nav {
  261. margin: 0 auto;
  262. }
  263. .el-table th .cell, .el-table td .cell {
  264. padding: 0 2px;
  265. }
  266. }
  267. .preTabs {
  268. .el-tabs__content {
  269. }
  270. }
  271. .rightTabs {
  272. height: 100%;
  273. .el-tabs__content {
  274. }
  275. }
  276. .centerDialog {
  277. .el-dialog__body {
  278. max-height: calc(100vh - 100px) !important;
  279. padding: 0 20px;
  280. }
  281. }
  282. </style>