view_screening_results.html 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>筛选类型</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta name="renderer" content="webkit" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <meta name="keywords" content="筛选类型" />
  10. <meta name="description" content="筛选类型" />
  11. <link rel="shortcut icon" href="../../favicon.ico" />
  12. <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
  13. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  14. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  15. <link rel="stylesheet" type="text/css" href="../../../css/element-ui.css" />
  16. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet" />
  17. <style type="text/css">
  18. [v-cloak] {
  19. display: none;
  20. }
  21. .flex-box {
  22. display: -webkit-box;
  23. display: -ms-flexbox;
  24. display: flex;
  25. -webkit-box-pack: center;
  26. -ms-flex-pack: center;
  27. justify-content: center;
  28. -webkit-box-align: center;
  29. -ms-flex-align: center;
  30. align-items: center;
  31. }
  32. .flex-box-item {
  33. -webkit-box-flex: 1;
  34. -ms-flex: 1;
  35. flex: 1;
  36. }
  37. p {
  38. word-break: break-all;
  39. }
  40. /*.question-content{max-height: 195px;overflow: auto;}*/
  41. .prompt-text {
  42. background-color: #ffa39e;
  43. color: #fff;
  44. font-size: 12px;
  45. text-align: center;
  46. line-height: 26px;
  47. }
  48. .single-choice-question {
  49. margin: 20px;
  50. padding: 0 20px;
  51. max-height: 540px;
  52. overflow-y: auto;
  53. border: 1px solid #d7dce6;
  54. border-radius: 10px;
  55. }
  56. .question-title {
  57. font-size: 16px;
  58. line-height: 40px;
  59. }
  60. .question-list,
  61. .daan-list {
  62. margin: 0;
  63. padding-left: 0;
  64. list-style: none;
  65. font-size: 14px;
  66. line-height: 1;
  67. }
  68. .question-list > li {
  69. border-top: 1px solid #d7dce6;
  70. padding: 10px 0;
  71. }
  72. .question-name {
  73. margin-bottom: 10px;
  74. }
  75. .daan-list > * {
  76. padding-left: 20px;
  77. line-height: 20px;
  78. height: 28px;
  79. }
  80. .daan-list input {
  81. opacity: 0;
  82. }
  83. .daan-list input[type='radio'] {
  84. width: 100%;
  85. height: 100%;
  86. opacity: 0;
  87. position: absolute;
  88. cursor: pointer;
  89. margin: 0;
  90. left: 0;
  91. right: 0;
  92. top: 0;
  93. bottom: 0;
  94. }
  95. .daan-list i {
  96. width: 20px;
  97. height: 20px;
  98. display: inline-block;
  99. vertical-align: middle;
  100. margin-right: 10px;
  101. background: url(../images/dianxuan_btn.png) center center / 100% 100% no-repeat;
  102. }
  103. .daan-list input[type='radio']:checked ~ i {
  104. background-image: url(../images/dianxuan_pre.png);
  105. }
  106. .label-block {
  107. display: block;
  108. position: relative;
  109. cursor: pointer;
  110. }
  111. .label-block + .label-block {
  112. margin-top: 16px;
  113. }
  114. .label-block span,
  115. .calculation-score .pull-right {
  116. color: #ff9630;
  117. }
  118. .w-250 {
  119. width: 250px;
  120. border: 1px solid #d7dce6;
  121. position: relative;
  122. border-top: 0;
  123. overflow: hidden;
  124. height: 605px;
  125. overflow: auto;
  126. }
  127. .f-16 {
  128. font-size: 16px;
  129. }
  130. .mb20 {
  131. margin-bottom: 20px !important;
  132. }
  133. .m20 {
  134. margin: 20px;
  135. }
  136. .f16 {
  137. font-size: 16px;
  138. }
  139. .base-info,
  140. .calculation-score,
  141. .btn-group-bottom,
  142. .assessment-report {
  143. padding: 17px;
  144. font-size: 14px;
  145. }
  146. .calculation-score p {
  147. margin-bottom: 5px;
  148. }
  149. .assessment-report p {
  150. margin-bottom: 0;
  151. }
  152. .canvas-box canvas {
  153. width: 100%;
  154. height: 100%;
  155. }
  156. .w-70 {
  157. width: 70px;
  158. }
  159. .base-info .flex-box {
  160. margin-top: 20px;
  161. }
  162. .right-triangle {
  163. position: relative;
  164. background: url(../images/right-triangle.png) right center / auto 15px no-repeat;
  165. }
  166. .base-info .w-70 {
  167. padding-right: 10px;
  168. text-align: justify;
  169. position: relative;
  170. text-align-last: justify;
  171. }
  172. .base-info .w-70:after {
  173. content: ':';
  174. position: absolute;
  175. right: 2px;
  176. top: 0;
  177. font-weight: bold;
  178. }
  179. .base-info input {
  180. height: 20px;
  181. padding: 0;
  182. text-align: center;
  183. width: 60px;
  184. margin: 0 5px;
  185. border-radius: 10px;
  186. border: 1px solid #d7dce6;
  187. }
  188. .progress-number {
  189. position: absolute;
  190. top: 50%;
  191. margin-top: -30px;
  192. text-align: center;
  193. left: 0;
  194. right: 0;
  195. }
  196. .progress-number > span {
  197. font-size: 14px;
  198. color: #12b7f5;
  199. }
  200. .clear-bottom {
  201. height: 91px;
  202. }
  203. .btn-group-bottom {
  204. padding: 40px 0 10px;
  205. position: fixed;
  206. right: 0;
  207. left: 0;
  208. bottom: 0;
  209. border-left: 1px solid #d7dce6;
  210. background: #fff;
  211. border-top: 1px solid #d7dce6;
  212. }
  213. .btn-group-bottom .btn {
  214. width: 100%;
  215. height: 40px;
  216. padding: 8px 12px;
  217. border-radius: 0;
  218. width: 90px;
  219. margin: 0 10px;
  220. }
  221. .warning-text .screen_result {
  222. color: #ff3b30;
  223. font-size: 12px;
  224. }
  225. .success-text .screen_result {
  226. color: #74bf00;
  227. font-size: 12px;
  228. }
  229. .score-box {
  230. height: 80px;
  231. padding-left: 120px;
  232. padding-top: 8px;
  233. background-size: auto 100%;
  234. background-repeat: no-repeat;
  235. background-position: 0 center;
  236. }
  237. .warning-text .score-box {
  238. color: #ff9630;
  239. background-image: url(../images/jiaofeishibai_icon.png);
  240. }
  241. .success-text .score-box {
  242. color: #74bf00;
  243. background-image: url(../images/jiaofeichengong_icon.png);
  244. }
  245. .score-box1 {
  246. color: #e52f2f;
  247. background-image: url(../images/jiaofeishibai_1.png);
  248. height: 80px;
  249. padding-left: 120px;
  250. padding-top: 8px;
  251. background-size: auto 100%;
  252. background-repeat: no-repeat;
  253. background-position: 0 center;
  254. }
  255. .score-box2 {
  256. color: #e56d27;
  257. background-image: url(../images/jiaofeishibai_2.png);
  258. height: 80px;
  259. padding-left: 120px;
  260. padding-top: 8px;
  261. background-size: auto 100%;
  262. background-repeat: no-repeat;
  263. background-position: 0 center;
  264. }
  265. .score-box3 {
  266. color: #fea13f;
  267. background-image: url(../images/jiaofeishibai_3.png);
  268. height: 80px;
  269. padding-left: 120px;
  270. padding-top: 8px;
  271. background-size: auto 100%;
  272. background-repeat: no-repeat;
  273. background-position: 0 center;
  274. }
  275. .score-box4 {
  276. color: #18d6aa;
  277. background-image: url(../images/jiaofeishibai_4.png);
  278. height: 80px;
  279. padding-left: 120px;
  280. padding-top: 8px;
  281. background-size: auto 100%;
  282. background-repeat: no-repeat;
  283. background-position: 0 center;
  284. }
  285. .score-box5 {
  286. color: #d0cfcd;
  287. background-image: url(../images/jiaofeishibai_5.png);
  288. height: 80px;
  289. padding-left: 120px;
  290. padding-top: 8px;
  291. background-size: auto 100%;
  292. background-repeat: no-repeat;
  293. background-position: 0 center;
  294. }
  295. .score {
  296. font-size: 30px;
  297. }
  298. .score > small {
  299. font-size: 12px;
  300. }
  301. .orange-text {
  302. color: #ffa65b;
  303. }
  304. .answer-content,
  305. .advice-content {
  306. border: 1px solid #ececec;
  307. border-radius: 10px;
  308. padding: 10px 20px 5px;
  309. }
  310. .advice-content {
  311. padding: 0;
  312. }
  313. .advice-list {
  314. padding: 20px 20px 0;
  315. overflow: hidden;
  316. }
  317. .advice-list li {
  318. padding-left: 20px;
  319. line-height: 1;
  320. position: relative;
  321. list-style: none;
  322. margin-bottom: 20px;
  323. }
  324. .advice-list li:before {
  325. position: absolute;
  326. left: 0;
  327. top: 50%;
  328. margin-top: -6px;
  329. width: 12px;
  330. height: 12px;
  331. border-radius: 100%;
  332. background-color: #02cfb9;
  333. content: '';
  334. }
  335. .other-advice {
  336. border-top: 1px solid #ececec;
  337. line-height: 2;
  338. height: 90px;
  339. padding: 5px 20px;
  340. }
  341. .bgc-02cfb9 {
  342. background-color: #02cfb9;
  343. color: #fff;
  344. }
  345. .bgc-12b7f5 {
  346. background-color: #12b7f5;
  347. color: #fff;
  348. }
  349. .bgc-FF9630 {
  350. background-color: #ff9630;
  351. color: #fff;
  352. }
  353. .bgc-2DBE55 {
  354. background-color: #2dbe55;
  355. color: #fff;
  356. }
  357. .bgc-2DBE55.focus,
  358. .bgc-2DBE55:focus,
  359. .bgc-2DBE55:hover {
  360. color: #fff;
  361. background-color: #30a14f;
  362. }
  363. .bgc-FF9630.focus,
  364. .bgc-FF9630:focus,
  365. .bgc-FF9630:hover {
  366. color: #fff;
  367. background-color: #f58920;
  368. }
  369. .bgc-12b7f5.focus,
  370. .bgc-12b7f5:focus,
  371. .bgc-12b7f5:hover {
  372. color: #fff;
  373. background-color: #01a9bd;
  374. }
  375. .bgc-02cfb9.focus,
  376. .bgc-02cfb9:focus,
  377. .bgc-02cfb9:hover {
  378. color: #fff;
  379. background-color: #00bda8;
  380. }
  381. .el-dialog--center .el-dialog__body {
  382. text-align: center;
  383. }
  384. .wenjuan-textarea {
  385. width: 240px;
  386. }
  387. </style>
  388. </head>
  389. <body>
  390. <div id="app" v-cloak>
  391. <div class="m20 mb0" style="line-height: 1">
  392. <div class="flex-box mb20">
  393. <div class="flex-box-item">
  394. 筛查类型:
  395. <span v-text="userInfo.template_title"></span>
  396. </div>
  397. <div class="flex-box-item">
  398. 筛查人员:
  399. <span v-text="userInfo.doctorName"></span>
  400. </div>
  401. </div>
  402. <div class="flex-box mb20">
  403. <div class="flex-box-item">
  404. 筛查对象:
  405. <span v-text="userInfo.patient_name+'('+(userInfo.sex==1?'男':'女')+(!userInfo.age?'<1':userInfo.age)+'岁)'"></span>
  406. </div>
  407. <div class="flex-box-item">
  408. 体征记录:
  409. <span v-if="!noTiZhong">
  410. <span v-text="tizhongRecord.value1+'kg'"></span>
  411. &nbsp;&nbsp;身高
  412. <span v-text="tizhongRecord.value2+'cm'"></span>
  413. </span>
  414. <span v-else>暂无体征</span>
  415. </div>
  416. </div>
  417. <div class="flex-box">
  418. <div class="flex-box-item">
  419. 处理情况:
  420. <span>{{dealAction}}</span>
  421. </div>
  422. <div class="flex-box-item ui-grid">
  423. <div class="ui-col-0">筛查机构:</div>
  424. <div class="ui-col-1" v-text="">{{userInfo.doctorHosptailName}}</div>
  425. </div>
  426. </div>
  427. </div>
  428. <div class="single-choice-question" v-loading="isloading">
  429. <div class="question-title">问卷题目</div>
  430. <div class="question-content" v-if="surveyCode == 'aa9bd609fd8b492296f6a34849b76520'">
  431. <div class="pt10 pb5 pr10" v-for="(item,index) in questionList" :key="item.field">
  432. <div class="question-name">{{index + 1}}、{{item.label}}</div>
  433. <div class="daan-list" v-if="item.type== 'input'">
  434. <textarea class="wenjuan-textarea" rows="1" v-model="answer[item.field]"></textarea>
  435. </div>
  436. <div class="daan-list" v-if="item.type =='radio'">
  437. <label class="label-block" v-if="answer[item.field]">
  438. <input type="radio" readonly="readonly" checked="checked" value="1" />
  439. <i></i>
  440. <span v-text="answer[item.field]"></span>
  441. </label>
  442. </div>
  443. <div class="daan-list" v-if="item.type =='checkbox'">
  444. <label class="label-block" v-for="el in answer[item.field]">
  445. <input type="radio" readonly="readonly" checked="checked" value="1" />
  446. <i></i>
  447. <span v-text="el"></span>
  448. </label>
  449. </div>
  450. </div>
  451. </div>
  452. <div class="question-content" v-else>
  453. <ul class="question-list" v-for="(qst,key,index) in answer">
  454. <li v-if="qst.option">
  455. <p class="question-name" v-html="key+'、'+qst.question.title"></p>
  456. <div class="daan-list" v-if="qst.question.questionType==0">
  457. <label class="label-block">
  458. <span class="pull-right" v-text="qst.option.score+'分'" v-if="getScreenData.result.screen_result_score!=-1&&userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  459. <input :type="qst.questionType==1?'checked':'radio'" readonly="readonly" :name="'ques'+index+(qst.questionType==1?'[]':'')" checked="checked" value="1" />
  460. <i></i>
  461. <span v-text="qst.option.content"></span>
  462. </label>
  463. </div>
  464. <div class="daan-list" v-else-if="qst.question.questionType==1">
  465. <label class="label-block" v-for="opt in qst.option">
  466. <span class="pull-right" v-text="opt.score+'分'" v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  467. <input :type="qst.questionType==1?'checked':'radio'" readonly="readonly" :name="'ques'+index+(qst.questionType==1?'[]':'')" checked="checked" value="1" />
  468. <i></i>
  469. <span v-text="opt.content"></span>
  470. </label>
  471. </div>
  472. <div class="daan-list" v-else>
  473. <textarea class="wenjuan-textarea" rows="1" v-model="qst.option.content"></textarea>
  474. </div>
  475. </li>
  476. </ul>
  477. </div>
  478. </div>
  479. <div class="base-info">
  480. <div :class="userInfo.is_danger?'warning-text':'success-text'" v-if="result.screen_result_score!=-1">
  481. <div class="score-box">
  482. <p class="f-16 mb0" v-if="userInfo.isThird != 1 && userInfo.isThird !=2">
  483. <span class="c-333">评分</span>
  484. <span class="score">
  485. <span v-text="result.screen_result_score"></span>
  486. <small>分</small>
  487. </span>
  488. </p>
  489. <p class="screen_result" v-text="result.screen_result"></p>
  490. </div>
  491. </div>
  492. <div v-else>
  493. <div
  494. v-if="userInfo.screen_result_code"
  495. :class="userInfo.screen_result_code==1?'score-box1':userInfo.screen_result_code==2?'score-box2':userInfo.screen_result_code==3?'score-box3':userInfo.screen_result_code==4?'score-box4':'score-box5'">
  496. <p class="mt10" style="font-size: 30px" v-text="result.screen_result"></p>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="calculation-score">
  501. <p class="f16 mb10">评估报告</p>
  502. <div class="answer-content">
  503. <p v-text="(result && result.advice) || userInfo.third_advice"></p>
  504. </div>
  505. </div>
  506. <div class="calculation-score" v-if="result.doctorOtherAdvice || result.doctorAdvice">
  507. <p class="f16 mb10">家庭医生的建议</p>
  508. <div class="advice-content">
  509. <div class="option-advice" v-if="result.doctorAdvice">
  510. <ul class="advice-list">
  511. <li v-for="advice in result.doctorAdvice" v-text="advice.advice || '无'"></li>
  512. </ul>
  513. </div>
  514. <div class="other-advice" v-if="result.doctorOtherAdvice">
  515. <p>
  516. <span class="orange-text">补充建议:</span>
  517. <span v-text="result.doctorOtherAdvice || '无'"></span>
  518. </p>
  519. </div>
  520. </div>
  521. </div>
  522. <template v-if="docInfo.level=='2'&&!userInfo.survey_status&&!showOpt&&btnHide!=1">
  523. <div class="clear-bottom" v-if="!isView || userInfo.is_danger==1">
  524. <div class="btn-group-bottom flex-box">
  525. <button class="btn bgc-2DBE55" @click="jkjy" v-if="result.doctorOtherAdvice || result.doctorAdvice">健康教育</button>
  526. <template v-else>
  527. <button class="btn bgc-FF9630" @click="jkzg">健康跟踪</button>
  528. <button class="btn bgc-02cfb9" @click="referral">转诊</button>
  529. </template>
  530. <button class="btn bgc-12b7f5" v-if="(result.doctorOtherAdvice || result.doctorAdvice)" @click="reScreening">再次筛查</button>
  531. <button class="btn bgc-02cfb9" v-if="(result.doctorOtherAdvice || result.doctorAdvice)" @click="referral">转诊</button>
  532. </div>
  533. </div>
  534. <div class="clear-bottom" v-if="userInfo.is_danger==0">
  535. <div class="btn-group-bottom flex-box">
  536. <button class="btn" style="background-color: #12b7f5; color: #fff" @click="jkzd(userInfo)">健康指导</button>
  537. </div>
  538. </div>
  539. </template>
  540. <!-- 专科 已管理 待处理 已预约 已接诊-->
  541. <template
  542. v-if="docInfo.level=='1'&&(userInfo.survey_status == 1||(userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0))||(userInfo.isOrder == 1 || userInfo.is_order == 1)||(userInfo.isOrder == 2 || userInfo.is_order == 2))&&!showOpt&&btnHide!=1">
  543. <div class="clear-bottom">
  544. <div class="btn-group-bottom flex-box">
  545. <button class="btn bgc-12b7f5" @click="lianxijiayi">联系家医</button>
  546. </div>
  547. </div>
  548. </template>
  549. <template v-if="docInfo.level=='2'&&!showOpt&&btnHide!=1">
  550. <div
  551. class="clear-bottom"
  552. v-if="!userInfo.survey_status&&userInfo.screen_result_score==-1&&(userInfo.isDanger == 1 || userInfo.is_danger == 1)&&(userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0))">
  553. <div class="btn-group-bottom flex-box">
  554. <button class="btn bgc-FF9630" style="width: 120px" @click="sqsf">纳入社区管理</button>
  555. <button class="btn bgc-02cfb9" @click="referral">转诊</button>
  556. <button class="btn bgc-12b7f5" @click="openMessageDialog">消息提醒</button>
  557. </div>
  558. </div>
  559. </template>
  560. <div class="clear-bottom" v-if="(userInfo.is_order>=1)">
  561. <div class="btn-group-bottom text-center">
  562. <p class="c-12b7f5">{{userInfo.is_order==1?'已预约':'已接诊'}}</p>
  563. <p v-if="(userInfo.is_order==2)">专科医生{{specialDoctorName}}已同意安排接诊</p>
  564. </div>
  565. </div>
  566. <el-dialog title="提示" :visible.sync="centerDialogVisible" width="65%" center>
  567. <span>是否确认纳入社区进行管理</span>
  568. <span slot="footer" class="dialog-footer">
  569. <el-button @click="centerDialogVisible = false">取 消</el-button>
  570. <el-button type="primary" @click="centerDialogClick">确 定</el-button>
  571. </span>
  572. </el-dialog>
  573. <el-dialog title="家医联系方式" :visible.sync="jiayiShow" width="65%" center>
  574. <span>
  575. 如需联系家医,请拨打下方电话:
  576. <br />
  577. {{userInfo.doctorMobile}}
  578. </span>
  579. <span slot="footer" class="dialog-footer">
  580. <el-button type="primary" @click="jiayiShow = false">确 定</el-button>
  581. </span>
  582. </el-dialog>
  583. <el-dialog title="消息提醒" :visible.sync="messageVisible" @close="closeMessageDialog" width="540px">
  584. <div v-html="messInfo"></div>
  585. <span slot="footer" class="dialog-footer">
  586. <el-button @click="messageVisible = false">取消</el-button>
  587. <el-button type="primary" @click="messageWarn">确定</el-button>
  588. </span>
  589. </el-dialog>
  590. </div>
  591. <script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  592. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  593. <script src="../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  594. <script src="../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  595. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  596. <script src="../../../plugins/toastr/toastr.min.js"></script>
  597. <script type="text/javascript" src="../../../api/jbsc-api.js"></script>
  598. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  599. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  600. <script src="../js/questionList.js" type="text/javascript" charset="utf-8"></script>
  601. <script type="text/javascript">
  602. var httpData = GetRequest()
  603. var wlyyAgent = JSON.parse(window.localStorage.getItem('wlyyAgent'))
  604. var func_doctor = null,
  605. func_hospital = null
  606. new Vue({
  607. el: '#app',
  608. data: {
  609. centerDialogVisible: false,
  610. answer: [], //问卷
  611. userInfo: { is_again: 0 }, //用户信息
  612. result: [], //结果
  613. tizhongRecord: [],
  614. specialDoctorName: '',
  615. noTiZhong: true,
  616. doctorInfo: { code: wlyyAgent.uid },
  617. resultCode: httpData['resultCode'],
  618. btnHide: httpData['btnHide'],
  619. isView: httpData['isView'] || false,
  620. dealAction: [],
  621. getScreenData: '',
  622. surveyResultCode: '',
  623. isloading: false,
  624. docInfo: JSON.parse(window.localStorage.getItem('docInfo')),
  625. jiayiShow: false,
  626. showOpt: httpData['opt'],
  627. flag: httpData['flag'] || false, // flag == yd,说明是平和县医院统计跳转过来的
  628. messageVisible: false,
  629. messInfo: '',
  630. questionList: [],
  631. dictData: [
  632. {
  633. name: 'obScreen_isMerge',
  634. field: 'isMerge'
  635. },
  636. {
  637. name: 'obScreen_eduState',
  638. field: 'eduState'
  639. },
  640. {
  641. name: 'obScreen_jobState',
  642. field: 'jobState'
  643. },
  644. {
  645. name: 'obScreen_ksDrugName1',
  646. field: 'ksDrugName1'
  647. }
  648. ],
  649. surveyCode: ''
  650. },
  651. mounted: function () {
  652. var vm = this
  653. this.getDictData()
  654. setTimeout(function () {
  655. vm.getScreenResultDetail()
  656. }, 200)
  657. this.getDoctorInfo()
  658. },
  659. methods: {
  660. lianxijiayi: function () {
  661. this.jiayiShow = true
  662. },
  663. centerDialogClick: function () {
  664. var vm = this
  665. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  666. this.centerDialogVisible = false
  667. vm.isloading = true
  668. jbscAPI
  669. .changeSurveyState({
  670. surveyResultCode: this.resultCode, //问卷code
  671. surveyStatus: 1, //surveyStatus =1 社区随访--已管理
  672. doctorCode: docInfo.code //医生code
  673. })
  674. .then(function (res) {
  675. if (res.status == 200) {
  676. top.layer.msg('操作成功')
  677. vm.isloading = false
  678. vm.getScreenResultDetail()
  679. }
  680. })
  681. },
  682. getDoctorInfo: function () {
  683. var vm = this
  684. var data = {
  685. code: vm.doctorInfo.code
  686. }
  687. jbscAPI.doctorBaseinfo(data).then(function (res) {
  688. if (res.status == 200) {
  689. vm.doctorInfo = res.data
  690. } else {
  691. top.layer.msg(res.msg, { icon: 5 })
  692. }
  693. })
  694. },
  695. jkjy: function () {
  696. var vm = this
  697. top.layer.open({
  698. type: 2,
  699. // offset: ['100px'], //右下角弹出
  700. area: ['80%', '648px'],
  701. shade: 0.5,
  702. title: '健康教育',
  703. fixed: true, //不固定
  704. maxmin: true,
  705. closeBtn: 1,
  706. shift: 5,
  707. shadeClose: false, //点击遮罩关闭层
  708. content: '../../article/html/article.html?code=' + this.userInfo.patient_code + '&resultCode=' + vm.resultCode
  709. })
  710. },
  711. //健康指导
  712. jkzd: function (data) {
  713. top.layer.open({
  714. type: 2,
  715. // offset: ['100px'], //右下角弹出
  716. area: ['80%', '648px'],
  717. shade: 0.5,
  718. title: '健康指导',
  719. fixed: true, //不固定
  720. maxmin: true,
  721. closeBtn: 1,
  722. shift: 5,
  723. shadeClose: false, //点击遮罩关闭层
  724. content: '../../guidance/html/index.html?patient=' + data.patientCode + '&resultCode=' + data.code
  725. })
  726. },
  727. jkzg: function () {
  728. var vm = this
  729. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  730. top.layer.open({
  731. type: 2,
  732. area: ['500px', '550px'],
  733. shade: 0.5,
  734. title: '家医建议',
  735. fixed: true, //不固定
  736. maxmin: false,
  737. closeBtn: 1,
  738. shift: 5,
  739. shadeClose: false, //点击遮罩关闭层
  740. content: '../../jbsc/html/advice.html?parentIframe=' + index + '&resultCode=' + vm.resultCode + '&filter_code=' + vm.userInfo.template_code
  741. })
  742. },
  743. sqsf: function () {
  744. var vm = this
  745. vm.centerDialogVisible = true
  746. },
  747. getDictData() {
  748. this.questionList = questionList
  749. var vm = this
  750. this.dictData.forEach(function (item) {
  751. jbscAPI.getDictDataByName(item.name).then(function (res) {
  752. var index = vm.questionList.findIndex(function (el) {
  753. return el.field == item.field
  754. })
  755. vm.questionList[index].options = res.list.map(function (el) {
  756. return {
  757. label: el.value,
  758. value: el.code
  759. }
  760. })
  761. vm.$forceUpdate()
  762. })
  763. })
  764. },
  765. getScreenResultDetail: function () {
  766. var vm = this
  767. var loadding = top.layer.load(0, { shade: false }) //0代表加载的风格,支持0-2
  768. var data = {
  769. code: vm.resultCode
  770. }
  771. var api
  772. if (this.flag == 'yd') {
  773. api = jbscAPI.getYdScreenResultDetail
  774. } else {
  775. api = jbscAPI.getScreenResultDetail
  776. }
  777. api(data).then(function (res) {
  778. top.layer.close(loadding)
  779. if (res.status == 200) {
  780. var data = res.data
  781. vm.surveyCode = data.info.template_code
  782. vm.getScreenData = res.data
  783. data && ((vm.answer = data.answer), (vm.userInfo = data.info), (vm.result = data.result))
  784. data && data.info && data.info.code && vm.getHealth()
  785. data && (vm.specialDoctorName = data.specialDoctorName)
  786. var userInfo = data.info || []
  787. vm.dealAction = []
  788. data && (vm.messInfo = data.info)
  789. if (!userInfo.survey_status) {
  790. if (
  791. userInfo.isDanger == 1 ||
  792. userInfo.is_danger == 1
  793. // (userInfo.isAgain == 1 || userInfo.is_again == 1)
  794. ) {
  795. //只有高危的筛查需要处理
  796. if (userInfo.following == 1) {
  797. vm.dealAction.push('已跟踪')
  798. }
  799. if (userInfo.isOrder == 1 || userInfo.is_order == 1) {
  800. vm.dealAction.push('已预约')
  801. }
  802. if (userInfo.isOrder == 2 || userInfo.is_order == 2) {
  803. vm.dealAction.push('已接诊')
  804. }
  805. if (userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0)) {
  806. vm.dealAction.push('待处理')
  807. }
  808. // if (userInfo.isDanger == 0 || userInfo.is_danger == 0) {
  809. // vm.dealAction.push('日常健康管理')
  810. // }
  811. } else {
  812. vm.dealAction.push('日常健康管理')
  813. }
  814. } else {
  815. if (userInfo.survey_status == 1) {
  816. vm.dealAction.push('已管理')
  817. }
  818. if (userInfo.survey_status == 2) {
  819. vm.dealAction.push('住院补筛')
  820. }
  821. if (userInfo.survey_status == 3) {
  822. vm.dealAction.push('已提醒')
  823. }
  824. }
  825. vm.dealAction = vm.dealAction.join(',')
  826. if (data.info.third_source && data.info.third_source != 4) {
  827. for (let i in vm.answer) {
  828. if (vm.answer[i].question.title == '评估医生:') {
  829. if (vm.answer[i].option) {
  830. jbscAPI.getDoctorInfoByJwDoctor({ jwDoctor: data.answer[i].option.content }).then(function (res1) {
  831. if (res.status == 200) {
  832. vm.answer[i].option.content = res1.data.jwDoctorName
  833. }
  834. })
  835. }
  836. } else if (vm.answer[i].question.title == '评估机构:') {
  837. if (vm.answer[i].option) {
  838. jbscAPI.getHospitalInfoByMappingId({ mappingId: vm.answer[i].option.content }).then(function (res1) {
  839. if (res.status == 200) {
  840. vm.answer[i].option.content = res1.data.name
  841. }
  842. })
  843. }
  844. }
  845. }
  846. } else {
  847. }
  848. if (data.info.template_code == 'aa9bd609fd8b492296f6a34849b76520') {
  849. vm.questionList.forEach(function (item) {
  850. if (item.type == 'radio') {
  851. var obj = item.options.find(function (el) {
  852. return el.value == vm.answer[item.field]
  853. })
  854. if (obj) {
  855. vm.answer[item.field] = obj.label
  856. }
  857. }
  858. if (item.type == 'checkbox') {
  859. var arr = vm.answer[item.field].split(',')
  860. var answer = []
  861. arr.forEach(function (el) {
  862. var obj = item.options.find(function (el1) {
  863. return el1.value == el
  864. })
  865. if (obj) {
  866. answer.push(obj.label)
  867. }
  868. })
  869. vm.answer[item.field] = answer
  870. }
  871. })
  872. }
  873. } else {
  874. top.layer.msg(res.msg, { icon: 5 })
  875. }
  876. })
  877. },
  878. getHealth: function () {
  879. var vm = this
  880. var data = {
  881. patient: vm.userInfo.patient_code
  882. }
  883. if (this.flag && this.flag == 'yd') {
  884. // 异地医院管理情况过来的
  885. jbscAPI.getLastYd(data).then(function (res) {
  886. if (res.status == 200) {
  887. vm.tizhongRecord =
  888. _.find(res.data, function (o) {
  889. return o.type == '3'
  890. }) || {}
  891. } else {
  892. top.layer.msg(res.msg, { icon: 5 })
  893. }
  894. JSON.stringify(vm.tizhongRecord) !== '{}' && (vm.noTiZhong = false)
  895. setTimeout(function () {
  896. vm.dealAction = '住院补筛'
  897. }, 1000)
  898. })
  899. } else {
  900. jbscAPI.getHealth(data).then(function (res) {
  901. if (res.status == 200) {
  902. vm.tizhongRecord =
  903. _.find(res.data, function (o) {
  904. return o.type == '3'
  905. }) || {}
  906. } else {
  907. top.layer.msg(res.msg, { icon: 5 })
  908. }
  909. JSON.stringify(vm.tizhongRecord) !== '{}' && (vm.noTiZhong = false)
  910. })
  911. }
  912. },
  913. referral: function () {
  914. // top.layer.msg('PC上暂不支持,请打开手机端疑似高危记录进行转诊预约', { icon: 5 })
  915. var vm = this
  916. var patient = vm.userInfo.patient_code,
  917. callCode = ''
  918. // 如果是康复复诊过去预约挂号,在就诊信息页面少一个字段显示,1隐藏字段,0正常显示
  919. sessionStorage.setItem('isFuzhen', 0)
  920. top.layer.open({
  921. type: 2,
  922. closeBtn: 1, // 显示关闭按钮
  923. area: ['800px', '90%'],
  924. title: '预约挂号',
  925. content: '../../jbsc/html/appointment/appoint-select.html?patient=' + patient + '&callCode=' + callCode + '&surveyCode=' + vm.resultCode
  926. })
  927. },
  928. reScreening: function () {
  929. //再次筛查
  930. var vm = this
  931. top.layer.open({
  932. type: 2,
  933. // offset: ['100px'], //右下角弹出
  934. area: ['820px', '648px'],
  935. shade: 0.5,
  936. title: '筛选统计',
  937. fixed: true, //不固定
  938. maxmin: true,
  939. closeBtn: 1,
  940. shift: 5,
  941. shadeClose: false, //点击遮罩关闭层
  942. content:
  943. '../../jbsc/html/questionnaire.html?isAgain=1&fliter_title=' +
  944. vm.userInfo.template_title +
  945. '&fliter_code=' +
  946. vm.userInfo.template_code +
  947. '&resident_code=' +
  948. vm.userInfo.patient_code +
  949. '&resident_name=' +
  950. vm.userInfo.patient_name
  951. })
  952. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  953. top.layer.close(index) //再执行关闭
  954. },
  955. messageWarn() {
  956. var vm = this
  957. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  958. jbscAPI
  959. .changeSurveyState({
  960. surveyResultCode: this.resultCode, //问卷code
  961. surveyStatus: 3, //surveyStatus =1 社区随访--已管理
  962. doctorCode: docInfo.code //医生code
  963. })
  964. .then(function (res) {
  965. if (res.status == 200) {
  966. top.layer.msg('操作成功')
  967. vm.getScreenResultDetail()
  968. vm.closeMessageDialog()
  969. }
  970. })
  971. },
  972. openMessageDialog() {
  973. var vm = this
  974. jbscAPI.getSurveyMessage({ surveyResultCode: this.userInfo.code }).then(function (res) {
  975. vm.messageVisible = true
  976. vm.messInfo = res.data
  977. })
  978. // jbscAPI.getSignInfo({ idcard: this.userInfo.idcard }).then(function (res) {
  979. // vm.messageVisible = true
  980. // if (res.data) {
  981. // vm.messInfo.doctName = res.data.doctorName
  982. // } else {
  983. // vm.messInfo.doctName = ''
  984. // }
  985. // vm.$forceUpdate()
  986. // })
  987. },
  988. closeMessageDialog() {
  989. this.messageVisible = false
  990. }
  991. }
  992. })
  993. </script>
  994. </body>
  995. </html>