PathInfo.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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 && !hideChild">
  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. hideChild:true //隐藏儿童
  92. }
  93. },
  94. created(){
  95. // this.ifWX();
  96. this.getPathInfo();
  97. this.getSysConfig();
  98. this.$store.commit('initAllData');//初始化store数据
  99. },
  100. methods:{
  101. getPathInfo(){
  102. const params = {
  103. 'hospitalCode':getUrlArgObject('hospitalCode'),
  104. 'hospitalDeptCode':getUrlArgObject('hospitalDeptCode'),
  105. 'doctorCode':getUrlArgObject('doctorCode'),
  106. 'patientCode':getUrlArgObject('patientCode'),
  107. 'recordId':getUrlArgObject('recordId')
  108. }
  109. api.getPathInfo(params).then((res)=>{
  110. const result = res.data;
  111. if(result.code==0){
  112. this.pathInfo = result.data;
  113. this.$store.commit('savePathInfo',result.data);
  114. this.recordCheck(); //校验是否填过
  115. this.getAll(); //获取模板
  116. }
  117. })
  118. },
  119. getSysConfig(){
  120. const param = {
  121. 'hospitalCode':getUrlArgObject('hospitalCode')
  122. }
  123. api.getSysConfig(param).then((res)=>{
  124. const result = res.data;
  125. if(result.code==0){
  126. const datas = result.data;
  127. this.child = datas.filter((item)=>{return item.code == "constitution_show"})
  128. this.$store.commit('saveSysConfig',datas)
  129. }
  130. })
  131. },
  132. recordCheck(){
  133. const param = {
  134. 'doctorId':this.pathInfo.doctorId,
  135. 'hospitalDeptId':this.pathInfo.hospitalDeptId,
  136. 'hospitalId':this.pathInfo.hospitalId,
  137. 'inquiryCode':this.pathInfo.recordId,
  138. 'patientId':this.pathInfo.patientId
  139. }
  140. api.recordCheck(param).then((res)=>{
  141. const result = res.data;
  142. if(result.code==0){
  143. this.type = result.data.type;
  144. }
  145. })
  146. },
  147. getAll(){
  148. this.isReady=false
  149. const param = {
  150. 'age':this.pathInfo.patientAge,
  151. 'relationId':this.pathInfo.selfDeptId,
  152. 'mouduleType':1, //根据科室划分
  153. 'sexType':this.pathInfo.patientSex=='男'?1:(this.pathInfo.patientSex=='女'?2:3),
  154. }
  155. api.getAll(param).then((res)=>{
  156. const result = res.data;
  157. if(result.code==0){
  158. const datas = result.data;
  159. this.$store.commit('saveAll',datas)
  160. this.isReady=true
  161. }
  162. })
  163. },
  164. getStart(){
  165. this.$router.push({path:'/tab'})
  166. },
  167. ifWX(){
  168. let us = navigator.userAgent.toLowerCase();
  169. if(us.indexOf('micromessenger') == -1){
  170. console.log("非微信打开")
  171. }
  172. }
  173. }
  174. }
  175. </script>
  176. <style lang="less" scoped>
  177. .path-wrap{
  178. padding-top: .5rem;
  179. font-size: .28rem;
  180. box-sizing: border-box;
  181. .info{
  182. font-size: .32rem;
  183. font-weight: 700;
  184. color: #040428;
  185. margin-left: .6rem;
  186. font-weight: bold;
  187. }
  188. .con{
  189. margin-left: .6rem;
  190. position: relative;
  191. >p{
  192. color: #7C828E;
  193. margin-top: .27rem;
  194. }
  195. .name{
  196. color: #7C828E;
  197. margin-top: .27rem;
  198. span{
  199. margin-right: .08rem;
  200. }
  201. }
  202. .dept{
  203. p{
  204. display: inline-block;
  205. margin-top: .27rem;
  206. span{
  207. color: #7C828E;
  208. }
  209. }
  210. p:first-child{
  211. margin-right: .25rem;
  212. }
  213. }
  214. /* .dept,.doct{
  215. display: inline-block;
  216. p{
  217. display: inline-block;
  218. margin-top: .27rem;
  219. span{
  220. color: #7C828E;
  221. }
  222. }
  223. }
  224. .doct{
  225. margin-left: .26rem;
  226. } */
  227. .already{
  228. position: absolute;
  229. left: 0;
  230. bottom:-.6rem;
  231. color: #7C828E;
  232. }
  233. }
  234. .out-box{
  235. white-space: nowrap;
  236. overflow-x: auto;
  237. padding:0 .15rem .15rem 0;
  238. -webkit-overflow-scrolling: touch;
  239. text-align: center;//隐藏儿童
  240. }
  241. .emery,.child{
  242. display: inline-block;
  243. vertical-align: top;
  244. // width:5.3rem;
  245. width:5.1rem;
  246. margin-top: .91rem;
  247. // margin-left: .6rem;
  248. box-sizing: border-box;
  249. .baner{
  250. box-sizing: border-box;
  251. width:100%;
  252. // height: 2.52rem;
  253. height: 2.3rem;
  254. // padding: .66rem 0 0 .6rem;
  255. padding: .5rem 0 0 .6rem;
  256. p{
  257. color:#fff;
  258. }
  259. .big{
  260. font-size: .56rem;
  261. margin-top: .12rem;
  262. }
  263. }
  264. .inner{
  265. // height: 4.98rem;
  266. height: 4.5rem;
  267. box-shadow:-.05rem .05rem .10rem -.04rem #989da3,.05rem .05rem .10rem -.04rem #989da3;
  268. border-radius: 0 0 .20rem .20rem;
  269. padding: .45rem .6rem .6rem;
  270. box-sizing: border-box;
  271. position: relative;
  272. p{
  273. font-size: .24rem;
  274. line-height: .5rem;
  275. white-space: normal;
  276. min-height: 100px;
  277. }
  278. button{
  279. width: 4rem;
  280. height: .88rem;
  281. color: #fff;
  282. font-size: .32rem;
  283. // margin-top: .20rem;
  284. margin: .20rem 0 0 -.05rem;
  285. background: -webkit-gradient(linear, right top, left top, from(#4F8BFF), to(#4F4FFF));
  286. background: -webkit-linear-gradient(right, #4F8BFF, #4F4FFF);
  287. box-shadow: 0 .12rem .24rem 0 rgba(79,129,255,0.40);
  288. border-radius: .44rem;
  289. // position: absolute;
  290. // bottom: .7rem;
  291. }
  292. }
  293. }
  294. .emery .baner{
  295. background: url('../images/banerbg@1.5x.png') no-repeat;
  296. background-size: cover;
  297. }
  298. .child .baner{
  299. background: url('../images/childbg@1.5x.png') no-repeat;
  300. background-size: cover;
  301. }
  302. }
  303. </style>