PathInfo.vue 8.4 KB

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