doctorDesk.vue 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container" style="display:flex">
  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. <el-table :data="tableData" border height="500" style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  24. <el-table-column align="center" width="40">
  25. <template slot-scope="scope">
  26. <el-popover placement="top-start" width="200" trigger="hover">
  27. <i slot="reference" class="el-icon-caret-bottom"></i>
  28. </el-popover>
  29. </template>
  30. </el-table-column>
  31. <el-table-column align="center" prop="name" label="姓名" width="100">
  32. <template slot-scope="scope">{{ scope.row.date }}</template>
  33. </el-table-column>
  34. <el-table-column align="center" prop="name" label="姓名" width="110">
  35. <template slot-scope="scope">{{ scope.row.date }}</template>
  36. </el-table-column>
  37. </el-table>
  38. </div>
  39. <div class="mainRight">
  40. <div style="display:flex;justify-content: space-between;">
  41. <div>
  42. <div class="mainCell">
  43. <p>姓名:<span class="cellSpan"></span></p>
  44. <p>证件号:<span class="cellSpan"></span></p>
  45. <p>挂号类型:<span class="cellSpan"></span></p>
  46. <p>患者保险类型:<span class="cellSpan"></span></p>
  47. </div>
  48. <div class="mainCell">
  49. <label class="title"><span class="name">诊断</span> : </label>
  50. <el-input size="small" style="width:150px;margin:0 10px;" v-model="input" placeholder="请输入内容"></el-input>
  51. <label class="title"><span class="name">处方类型</span> : </label>
  52. <el-select size="small" v-model="value" placeholder="请选择" style="width:150px;margin-left:10px;">
  53. <el-option
  54. v-for="item in options"
  55. :key="item.value"
  56. :label="item.label"
  57. :value="item.value">
  58. </el-option>
  59. </el-select>
  60. </div>
  61. </div>
  62. <div class="cost">
  63. <p>当用费用总额:</p>
  64. <p>药品费用总额:</p>
  65. </div>
  66. </div>
  67. <div style="display:flex;justify-content: space-between;">
  68. <div class="mainCell" style="margin-bottom:10px;">
  69. <label class="title"><span class="name">新增</span> : </label>
  70. <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">智慧医保</el-button>
  71. <el-button size="small" @click="open(2)" type="primary">病历</el-button>
  72. <el-button size="small" @click="open(3)" type="primary">新医嘱</el-button>
  73. <el-button size="small" @click="open(4)" type="primary">选择模板</el-button>
  74. <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
  75. <el-button size="small" @click="open(6)" type="primary">开检验</el-button>
  76. </div>
  77. <div><el-button size="small" type="primary">保存打印</el-button></div>
  78. </div>
  79. <el-table :data="tableData" border height="500" style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
  80. <el-table-column align="center" prop="name" label="类型">
  81. <template slot-scope="scope">{{ scope.row.date }}</template>
  82. </el-table-column>
  83. <el-table-column align="center" prop="name" label="名称">
  84. <template slot-scope="scope">{{ scope.row.date }}</template>
  85. </el-table-column>
  86. <el-table-column align="center" prop="name" label="规格">
  87. <template slot-scope="scope">{{ scope.row.date }}</template>
  88. </el-table-column>
  89. <el-table-column align="center" prop="name" label="数量">
  90. <template slot-scope="scope">{{ scope.row.date }}</template>
  91. </el-table-column>
  92. <el-table-column align="center" prop="name" label="单次用量">
  93. <template slot-scope="scope">{{ scope.row.date }}</template>
  94. </el-table-column>
  95. <el-table-column align="center" prop="name" label="操作">
  96. <template slot-scope="scope">
  97. <el-button size="mini" type="danger">删除</el-button>
  98. </template>
  99. </el-table-column>
  100. </el-table>
  101. </div>
  102. </div>
  103. <prescription ref='prescription'></prescription>
  104. <medicalRecord ref='medicalRecord'></medicalRecord>
  105. <advice ref='advice'></advice>
  106. <select-template ref='selectTemplate'></select-template>
  107. <save-template ref='saveTemplate'></save-template>
  108. <inspection ref='inspection'></inspection>
  109. </div>
  110. </template>
  111. <script>
  112. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  113. import prescription from './components/prescription'
  114. import medicalRecord from './components/medicalRecord'
  115. import advice from './components/advice'
  116. import selectTemplate from './components/selectTemplate'
  117. import saveTemplate from './components/saveTemplate'
  118. import inspection from './components/inspection'
  119. export default {
  120. components:{
  121. BreadCrumb,
  122. prescription,
  123. medicalRecord,
  124. advice,
  125. selectTemplate,
  126. saveTemplate,
  127. inspection
  128. },
  129. data(){
  130. return{
  131. crumbs: [
  132. { path: false, name: '门诊医生站' },
  133. { path: false, name: '医生工作台' }
  134. ],
  135. tableData: [{
  136. date: '2016-05-02',
  137. name: '王小虎',
  138. address: '上海市普陀区金沙江路 1518 弄'
  139. }, {
  140. date: '2016-05-04',
  141. name: '王小虎',
  142. address: '上海市普陀区金沙江路 1517 弄'
  143. }, {
  144. date: '2016-05-01',
  145. name: '王小虎',
  146. address: '上海市普陀区金沙江路 1519 弄'
  147. }, {
  148. date: '2016-05-03',
  149. name: '王小虎',
  150. address: '上海市普陀区金沙江路 1516 弄'
  151. }]
  152. }
  153. },
  154. methods:{
  155. open(index){
  156. if(index == 1){
  157. this.$refs.prescription.show()
  158. }else if(index == 2){
  159. this.$refs.medicalRecord.show()
  160. }else if(index == 3){
  161. this.$refs.advice.show()
  162. }else if(index == 4){
  163. this.$refs.selectTemplate.show()
  164. }else if(index == 5){
  165. this.$refs.saveTemplate.show()
  166. }else if(index == 6){
  167. this.$refs.inspection.show()
  168. }
  169. }
  170. }
  171. }
  172. </script>
  173. <style lang="scss" scoped>
  174. .mainCell{
  175. height:36px;
  176. display: flex;
  177. align-items: center;
  178. }
  179. .mainLeft{
  180. width:250px;
  181. .el-radio{
  182. margin-right:20px;
  183. }
  184. }
  185. .mainRight{
  186. margin-left:20px;
  187. flex:1;
  188. .cellSpan{
  189. min-width: 80px;
  190. display: inline-block;
  191. margin-right: 10px;
  192. }
  193. .cost{
  194. border: 1px solid #ccc;
  195. height: 60px;
  196. display: flex;
  197. width: 200px;
  198. flex-direction: column;
  199. justify-content: space-around;
  200. padding: 0 10px;
  201. }
  202. }
  203. </style>