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

doctorDesk.vue 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <template>
  2. <div class="main-contain new-main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
  7. <div class="mainLeft">
  8. <div class="mainCell" style="justify-content: space-between;">
  9. <p>未就诊:<span>0</span>人</p>
  10. <p>已就诊:<span>0</span>人</p>
  11. </div>
  12. <div class="mainCell">
  13. <el-radio-group v-model="radio">
  14. <el-radio :label="1">未就诊</el-radio>
  15. <el-radio :label="2">已就诊</el-radio>
  16. <el-radio :label="3">全部</el-radio>
  17. </el-radio-group>
  18. </div>
  19. <div class="mainCell" style="margin-bottom:10px;">
  20. <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  21. <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
  22. </div>
  23. <div style="flex:1;overflow-y:auto;">
  24. <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  25. <el-table-column align="center" prop="name" label="患者姓名">
  26. <template slot-scope="scope">{{ scope.row.date }}</template>
  27. </el-table-column>
  28. <el-table-column align="center" prop="name" label="就诊号" width="90">
  29. <template slot-scope="scope">{{ scope.row.date }}</template>
  30. </el-table-column>
  31. </el-table>
  32. </div>
  33. </div>
  34. <div class="mainRight">
  35. <div class="mainHeader">
  36. <el-radio-group v-model="titleType">
  37. <el-radio-button label="处方"></el-radio-button>
  38. <el-radio-button label="病历"></el-radio-button>
  39. </el-radio-group>
  40. </div>
  41. <desk-prescription v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
  42. <desk-record v-if="titleType == '病历'"></desk-record>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  49. import deskPrescription from './components/deskPrescription'
  50. import deskRecord from './components/deskRecord'
  51. export default {
  52. components:{
  53. BreadCrumb,
  54. deskPrescription,
  55. deskRecord
  56. },
  57. data(){
  58. return{
  59. crumbs: [
  60. { path: false, name: '门诊医生站' },
  61. { path: false, name: '医生工作台' }
  62. ],
  63. titleType:'处方',
  64. tableData: [{
  65. date: '2016-05-02',
  66. name: '王小虎',
  67. address: '上海市普陀区金沙江路 1518 弄'
  68. }, {
  69. date: '2016-05-04',
  70. name: '王小虎',
  71. address: '上海市普陀区金沙江路 1517 弄'
  72. }, {
  73. date: '2016-05-01',
  74. name: '王小虎',
  75. address: '上海市普陀区金沙江路 1519 弄'
  76. }, {
  77. date: '2016-05-03',
  78. name: '王小虎',
  79. address: '上海市普陀区金沙江路 1516 弄'
  80. },{
  81. date: '2016-05-02',
  82. name: '王小虎',
  83. address: '上海市普陀区金沙江路 1518 弄'
  84. }, {
  85. date: '2016-05-04',
  86. name: '王小虎',
  87. address: '上海市普陀区金沙江路 1517 弄'
  88. }, {
  89. date: '2016-05-01',
  90. name: '王小虎',
  91. address: '上海市普陀区金沙江路 1519 弄'
  92. }, {
  93. date: '2016-05-03',
  94. name: '王小虎',
  95. address: '上海市普陀区金沙江路 1516 弄'
  96. },{
  97. date: '2016-05-02',
  98. name: '王小虎',
  99. address: '上海市普陀区金沙江路 1518 弄'
  100. }, {
  101. date: '2016-05-04',
  102. name: '王小虎',
  103. address: '上海市普陀区金沙江路 1517 弄'
  104. }, {
  105. date: '2016-05-01',
  106. name: '王小虎',
  107. address: '上海市普陀区金沙江路 1519 弄'
  108. }, {
  109. date: '2016-05-03',
  110. name: '王小虎',
  111. address: '上海市普陀区金沙江路 1516 弄'
  112. }, {
  113. date: '2016-05-04',
  114. name: '王小虎',
  115. address: '上海市普陀区金沙江路 1517 弄'
  116. }, {
  117. date: '2016-05-01',
  118. name: '王小虎',
  119. address: '上海市普陀区金沙江路 1519 弄'
  120. }, {
  121. date: '2016-05-03',
  122. name: '王小虎',
  123. address: '上海市普陀区金沙江路 1516 弄'
  124. }],
  125. }
  126. },
  127. methods:{
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. .new-main-contain{
  133. height: 100%;
  134. display: flex;
  135. flex-direction: column;
  136. }
  137. .app-container{
  138. height:100%;
  139. }
  140. .mainCell{
  141. height:36px;
  142. display: flex;
  143. align-items: center;
  144. }
  145. .mainLeft{
  146. width:200px;
  147. height: 100%;
  148. display: flex;
  149. flex-direction: column;
  150. .el-radio{
  151. margin-right:5px;
  152. }
  153. }
  154. .mainRight{
  155. margin-left:20px;
  156. flex:1;
  157. height: 100%;
  158. display: flex;
  159. flex-direction: column;
  160. overflow-y: auto;
  161. .cellSpan{
  162. min-width: 80px;
  163. display: inline-block;
  164. margin-right: 10px;
  165. }
  166. }
  167. .mainCenter{
  168. display: flex;
  169. flex:1;
  170. }
  171. .centerLeft{
  172. flex: 1;
  173. display: flex;
  174. flex-direction: column;
  175. position: relative;
  176. .el-form-item{
  177. width:32%;
  178. margin-right: 1%;
  179. float: left;
  180. }
  181. .el-form-item__label{
  182. text-align: left;
  183. }
  184. }
  185. .backColor{
  186. background: #f6f8f9;
  187. height: 5px;
  188. margin-bottom: 5px;
  189. }
  190. .tabsBox{
  191. position: relative;
  192. height: 76%;
  193. overflow-y: auto;
  194. margin-bottom: 60px;
  195. .el-tabs__item{
  196. padding: 0 10px;
  197. }
  198. }
  199. .preTabs{
  200. height:100%;
  201. }
  202. .costBox{
  203. width:100%;
  204. height:60px;
  205. background:#fff;
  206. position: absolute;
  207. bottom:0;
  208. display: flex;
  209. align-items: center;
  210. }
  211. .addTab{
  212. position: absolute;
  213. right: 0;
  214. top: 14px;
  215. z-index: 20;
  216. }
  217. .centerRight{
  218. width: 300px;
  219. margin-left: 5px;
  220. display: flex;
  221. flex-direction: column;
  222. position: relative;
  223. }
  224. .rightTab{
  225. height: 40px;
  226. width: 100%;
  227. border: 1px solid #d2d2d2;
  228. box-sizing: border-box;
  229. p{
  230. width: 50%;
  231. height: 40px;
  232. line-height: 40px;
  233. text-align: center;
  234. background: #eee;
  235. float: left;
  236. }
  237. >p:last-child{
  238. border-left: 1px solid #d2d2d2;
  239. float: right;
  240. }
  241. .activeP{
  242. background: #409EFF;
  243. color:#fff;
  244. }
  245. }
  246. .comfirmBox{
  247. width:100%;
  248. height:60px;
  249. background:#fff;
  250. position: absolute;
  251. bottom:0;
  252. display: flex;
  253. align-items: center;
  254. justify-content: space-between;
  255. }
  256. </style>
  257. <style lang="scss">
  258. .centerLeft{
  259. .el-form-item__label{
  260. text-align: left;
  261. }
  262. }
  263. .tabsBox{
  264. .el-tabs__item{
  265. padding: 0 10px;
  266. }
  267. .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){
  268. padding: 0 10px;
  269. }
  270. .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{
  271. padding: 0 10px;
  272. }
  273. .el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{
  274. padding: 0 10px;
  275. }
  276. }
  277. .centerRight{
  278. .el-tabs__nav-scroll{
  279. display: flex;
  280. }
  281. .el-tabs__nav{
  282. margin: 0 auto;
  283. }
  284. .el-table th .cell, .el-table td .cell{
  285. padding: 0 2px;
  286. }
  287. }
  288. .preTabs{
  289. // .el-tabs__content{
  290. // height:69%;
  291. // overflow-y: auto;
  292. // }
  293. }
  294. .rightTabs{
  295. height: 100%;
  296. // .el-tabs__content{
  297. // height:72%;
  298. // overflow-y: auto;
  299. // }
  300. }
  301. </style>