PathInfo.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <div class="path-wrap">
  3. <p class="info">挂号用户信息查询如下:</p>
  4. <div class="con">
  5. <p class="name">
  6. <span>{{pathInfo.patientName}}</span>|
  7. <span>{{pathInfo.patientSex}}</span>|
  8. <span>{{pathInfo.patientAge}}岁</span>
  9. </p>
  10. <div class="dept">
  11. <p>
  12. <span>挂号科室:</span>
  13. <span>{{pathInfo.selfDeptName}}</span>
  14. </p>
  15. <p>
  16. <span>门诊号:</span>
  17. <span>{{pathInfo.recordId}}</span>
  18. </p>
  19. </div>
  20. <div class="doct">
  21. <p>
  22. <span>预约医生:</span>
  23. <span>{{pathInfo.doctorName}}</span>
  24. </p>
  25. <p>
  26. <span>预约时间:</span>
  27. <span>{{pathInfo.systemTime}}</span>
  28. </p>
  29. </div>
  30. </div>
  31. <div class="out-box">
  32. <div class="emery">
  33. <div class="baner">
  34. <p>{{pathInfo.hospitalName}}</p>
  35. <p class="big">智能预问诊</p>
  36. </div>
  37. <div class="inner">
  38. <p>该系统通过智能引导式问诊,帮助医生规范、全面的采集患者的症状、体征、病史等信息,从而实现诊疗流程的优化和配置。</p>
  39. <button @click="getStart">开始</button>
  40. </div>
  41. <p v-if="type==3">您已完成过一次预问诊,是否再次录入预问诊信息</p>
  42. </div>
  43. <div class="child" v-if="child.length>0&&child[0].value==1">
  44. <div class="baner">
  45. <p>{{pathInfo.hospitalName}}</p>
  46. <p class="big">儿童体质检测</p>
  47. </div>
  48. <div class="inner">
  49. <p>该标准将为0-12岁儿童在为体质辨识及与中医体质相关疾病的预防、养生保健、健康管理提供依据,使体质分类科学化、规范化。</p>
  50. <button>开始</button>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </template>
  56. <script type="text/javascript">
  57. import api from '@utils/api.js'
  58. import {getUrlArgObject} from '@utils/tools.js'
  59. export default {
  60. name:'PathInfo',
  61. data(){
  62. return {
  63. pathInfo:{},
  64. child:[],
  65. type:null //1-未做过;3-只做过问诊;4-只做过体质辨识;6-都做过
  66. }
  67. },
  68. created(){
  69. this.getPathInfo();
  70. this.getSysConfig();
  71. },
  72. methods:{
  73. getPathInfo(){
  74. const params = {
  75. 'hospitalCode':getUrlArgObject('hospitalCode'),
  76. 'hospitalDeptCode':getUrlArgObject('hospitalDeptCode'),
  77. 'doctorCode':getUrlArgObject('doctorCode'),
  78. 'patientCode':getUrlArgObject('patientCode'),
  79. 'recordId':getUrlArgObject('recordId')
  80. }
  81. api.getPathInfo(params).then((res)=>{
  82. const result = res.data;
  83. if(result.code==0){
  84. this.pathInfo = result.data;
  85. this.$store.commit('savePathInfo',result.data);
  86. this.recordCheck(); //校验是否填过
  87. this.getAll(); //获取模板
  88. }
  89. })
  90. },
  91. getSysConfig(){
  92. const param = {
  93. 'hospitalCode':getUrlArgObject('hospitalCode')
  94. }
  95. api.getSysConfig(param).then((res)=>{
  96. const result = res.data;
  97. if(result.code==0){
  98. const datas = result.data;
  99. this.child = datas.filter((item)=>{return item.code == "constitution_show"})
  100. this.$store.commit('saveSysConfig',datas)
  101. }
  102. })
  103. },
  104. recordCheck(){
  105. const param = {
  106. 'doctorId':this.pathInfo.doctorId,
  107. 'hospitalDeptId':this.pathInfo.selfDeptId,
  108. 'hospitalId':this.pathInfo.hospitalId,
  109. 'inquiryCode':this.pathInfo.recordId,
  110. 'patientId':this.pathInfo.patientId
  111. }
  112. api.recordCheck(param).then((res)=>{
  113. const result = res.data;
  114. if(result.code==0){
  115. this.type = result.data.type;
  116. }
  117. })
  118. },
  119. getAll(){
  120. const param = {
  121. 'age':this.pathInfo.patientAge,
  122. 'relationId':this.pathInfo.selfDeptId,
  123. 'mouduleType':1, //根据科室划分
  124. 'sexType':this.pathInfo.patientSex=='男'?1:(this.pathInfo.patientSex=='女'?2:3),
  125. }
  126. api.getAll(param).then((res)=>{
  127. const result = res.data;
  128. if(result.code==0){
  129. const datas = result.data;
  130. this.$store.commit('saveAll',datas)
  131. }
  132. })
  133. },
  134. getStart(){
  135. this.$router.push({path:'/tab'})
  136. }
  137. }
  138. }
  139. </script>
  140. <style lang="less" scoped>
  141. .path-wrap{
  142. padding-top: .7rem;
  143. font-size: .28rem;
  144. box-sizing: border-box;
  145. .info{
  146. font-size: .32rem;
  147. font-weight: 700;
  148. color: #040428;
  149. margin-left: .6rem;
  150. font-weight: bold;
  151. }
  152. .con{
  153. margin-left: .6rem;
  154. .name{
  155. color: #7C828E;
  156. margin-top: .27rem;
  157. span{
  158. margin-right: .08rem;
  159. }
  160. }
  161. .dept,.doct{
  162. display: inline-block;
  163. p{
  164. margin-top: .27rem;
  165. span{
  166. color: #7C828E;
  167. }
  168. }
  169. }
  170. .doct{
  171. margin-left: .26rem;
  172. }
  173. }
  174. .out-box{
  175. white-space: nowrap;
  176. overflow-x: auto;
  177. padding:0 .15rem .15rem 0;
  178. }
  179. .emery,.child{
  180. display: inline-block;
  181. vertical-align: top;
  182. width:5.3rem;
  183. margin-top: .91rem;
  184. margin-left: .6rem;
  185. box-sizing: border-box;
  186. .baner{
  187. box-sizing: border-box;
  188. width:100%;
  189. height: 2.52rem;
  190. padding: .66rem 0 0 .6rem;
  191. p{
  192. color:#fff;
  193. }
  194. .big{
  195. font-size: .56rem;
  196. margin-top: .12rem;
  197. }
  198. }
  199. .inner{
  200. height: 4.98rem;
  201. box-shadow:-5px 5px 10px -4px #989da3,5px 5px 10px -4px #989da3;
  202. border-radius: 0px 0px 20px 20px;
  203. padding: .45rem .6rem .6rem;
  204. box-sizing: border-box;
  205. position: relative;
  206. p{
  207. font-size: .24rem;
  208. line-height: .5rem;
  209. white-space: normal;
  210. }
  211. button{
  212. width: 4rem;
  213. height: .88rem;
  214. color: #fff;
  215. font-size: .32rem;
  216. margin-top: .20rem;
  217. background: -webkit-gradient(linear, right top, left top, from(#4F8BFF), to(#4F4FFF));
  218. background: linear-gradient(right, #4F8BFF, #4F4FFF);
  219. box-shadow: 0 12px 24px 0 rgba(79,129,255,0.40);
  220. border-radius: 44px;
  221. position: absolute;
  222. bottom: .7rem;
  223. }
  224. }
  225. }
  226. .emery .baner{
  227. background: url('../images/banerbg@1.5x.png') no-repeat;
  228. background-size: cover;
  229. }
  230. .child .baner{
  231. background: url('../images/childbg@1.5x.png') no-repeat;
  232. background-size: cover;
  233. }
  234. }
  235. </style>