view_screening_results.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  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-17b3ec {
  346. background-color: #17b3ec;
  347. color: #fff;
  348. }
  349. .bgc-12b7f5 {
  350. background-color: #12b7f5;
  351. color: #fff;
  352. }
  353. .bgc-FF9630 {
  354. background-color: #ff9630;
  355. color: #fff;
  356. }
  357. .bgc-2DBE55 {
  358. background-color: #2dbe55;
  359. color: #fff;
  360. }
  361. .bgc-2DBE55.focus,
  362. .bgc-2DBE55:focus,
  363. .bgc-2DBE55:hover {
  364. color: #fff;
  365. background-color: #30a14f;
  366. }
  367. .bgc-FF9630.focus,
  368. .bgc-FF9630:focus,
  369. .bgc-FF9630:hover {
  370. color: #fff;
  371. background-color: #f58920;
  372. }
  373. .bgc-12b7f5.focus,
  374. .bgc-12b7f5:focus,
  375. .bgc-12b7f5:hover {
  376. color: #fff;
  377. background-color: #01a9bd;
  378. }
  379. .bgc-02cfb9.focus,
  380. .bgc-02cfb9:focus,
  381. .bgc-02cfb9:hover {
  382. color: #fff;
  383. background-color: #00bda8;
  384. }
  385. .el-dialog--center .el-dialog__body {
  386. text-align: center;
  387. }
  388. </style>
  389. </head>
  390. <body>
  391. <div id="app" v-cloak>
  392. <div class="m20 mb0" style="line-height: 1">
  393. <div class="flex-box mb20">
  394. <div class="flex-box-item">
  395. 筛查类型:
  396. <span v-text="userInfo.template_title"></span>
  397. </div>
  398. <div class="flex-box-item">
  399. 筛查人员:
  400. <span v-text="userInfo.doctorName"></span>
  401. </div>
  402. </div>
  403. <div class="flex-box mb20">
  404. <div class="flex-box-item">
  405. 筛查对象:
  406. <span v-text="userInfo.patient_name+'('+(userInfo.sex==1?'男':'女')+(!userInfo.age?'<1':userInfo.age)+'岁)'"></span>
  407. </div>
  408. <div class="flex-box-item">
  409. 体征记录:
  410. <span v-if="!noTiZhong">
  411. <span v-text="tizhongRecord.value1+'kg'"></span>
  412. &nbsp;&nbsp;身高
  413. <span v-text="tizhongRecord.value2+'cm'"></span>
  414. </span>
  415. <span v-else>暂无体征</span>
  416. </div>
  417. </div>
  418. <div class="flex-box">
  419. <div class="flex-box-item">
  420. 处理情况:
  421. <span>{{dealAction}}</span>
  422. </div>
  423. <div class="flex-box-item ui-grid">
  424. <div class="ui-col-0">筛查机构:</div>
  425. <div class="ui-col-1" v-text="">{{userInfo.doctorHosptailName}}</div>
  426. </div>
  427. </div>
  428. </div>
  429. <div class="single-choice-question" v-loading="isloading">
  430. <div class="question-title">问卷题目</div>
  431. <div class="question-content">
  432. <ul class="question-list" v-for="(qst,key,index) in answer">
  433. <li v-if="qst.option">
  434. <p class="question-name" v-html="key+'、'+qst.question.title"></p>
  435. <div class="daan-list" v-if="qst.question.questionType==0">
  436. <label class="label-block">
  437. <span class="pull-right" v-text="qst.option.score+'分'" v-if="getScreenData.result.screen_result_score!=-1&&userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  438. <input :type="qst.questionType==1?'checked':'radio'" readonly="readonly" :name="'ques'+index+(qst.questionType==1?'[]':'')" checked="checked" value="1" />
  439. <i></i>
  440. <span v-text="qst.option.content"></span>
  441. </label>
  442. </div>
  443. <div class="daan-list" v-else-if="qst.question.questionType==1">
  444. <label class="label-block" v-for="opt in qst.option">
  445. <span class="pull-right" v-text="opt.score+'分'" v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  446. <input :type="qst.questionType==1?'checked':'radio'" readonly="readonly" :name="'ques'+index+(qst.questionType==1?'[]':'')" checked="checked" value="1" />
  447. <i></i>
  448. <span v-text="opt.content"></span>
  449. </label>
  450. </div>
  451. <div class="daan-list" v-else>
  452. <textarea class="wenjuan-textarea" rows="2" v-model="qst.option.content"></textarea>
  453. </div>
  454. </li>
  455. </ul>
  456. </div>
  457. </div>
  458. <div class="base-info">
  459. <div :class="userInfo.is_danger?'warning-text':'success-text'" v-if="result.screen_result_score!=-1">
  460. <div class="score-box">
  461. <p class="f-16 mb0" v-if="userInfo.isThird != 1 && userInfo.isThird !=2">
  462. <span class="c-333">评分</span>
  463. <span class="score">
  464. <span v-text="result.screen_result_score"></span>
  465. <small>分</small>
  466. </span>
  467. </p>
  468. <p class="screen_result" v-text="result.screen_result"></p>
  469. </div>
  470. </div>
  471. <div v-else>
  472. <div
  473. v-if="userInfo.screen_result_code"
  474. :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'">
  475. <p class="mt10" style="font-size: 30px" v-text="result.screen_result"></p>
  476. </div>
  477. </div>
  478. </div>
  479. <div class="calculation-score">
  480. <p class="f16 mb10">评估报告</p>
  481. <div class="answer-content">
  482. <p v-text="(result && result.advice) || userInfo.third_advice"></p>
  483. </div>
  484. </div>
  485. <div class="calculation-score" v-if="result.doctorOtherAdvice || result.doctorAdvice">
  486. <p class="f16 mb10">家庭医生的建议</p>
  487. <div class="advice-content">
  488. <div class="option-advice" v-if="result.doctorAdvice">
  489. <ul class="advice-list">
  490. <li v-for="advice in result.doctorAdvice" v-text="advice.advice || '无'"></li>
  491. </ul>
  492. </div>
  493. <div class="other-advice" v-if="result.doctorOtherAdvice">
  494. <p>
  495. <span class="orange-text">补充建议:</span>
  496. <span v-text="result.doctorOtherAdvice || '无'"></span>
  497. </p>
  498. </div>
  499. </div>
  500. </div>
  501. <template v-if="docInfo.level=='2'&&!userInfo.survey_status&&!showOpt">
  502. <div class="clear-bottom" v-if="!isView || (userInfo.is_again==1 && userInfo.is_danger==1)">
  503. <div class="btn-group-bottom flex-box">
  504. <button class="btn bgc-2DBE55" @click="jkjy" v-if="result.doctorOtherAdvice || result.doctorAdvice">健康教育</button>
  505. <button class="btn bgc-FF9630" @click="jkzg" v-else>健康跟踪</button>
  506. <button class="btn bgc-12b7f5" v-if="userInfo.is_again&&(result.doctorOtherAdvice || result.doctorAdvice)" @click="reScreening">再次筛查</button>
  507. </div>
  508. </div>
  509. <div class="clear-bottom" v-if="userInfo.is_danger==0">
  510. <div class="btn-group-bottom flex-box">
  511. <button class="btn" style="background-color: #12b7f5; color: #fff" @click="jkzd(userInfo)">健康指导</button>
  512. </div>
  513. </div>
  514. </template>
  515. <!-- 专科 已管理 待处理 已预约 已接诊-->
  516. <template
  517. 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">
  518. <div class="clear-bottom">
  519. <div class="btn-group-bottom flex-box">
  520. <button class="btn bgc-12b7f5" @click="lianxijiayi">联系家医</button>
  521. </div>
  522. </div>
  523. </template>
  524. <template v-if="docInfo.level=='2'&&!showOpt">
  525. <div
  526. class="clear-bottom"
  527. 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))">
  528. <div class="btn-group-bottom flex-box">
  529. <button class="btn bgc-FF9630" style="width: 120px" @click="sqsf">纳入社区管理</button>
  530. <button class="btn bgc-02cfb9" @click="referral">转诊</button>
  531. <button class="btn bgc-12b7f5" @click="openMessageDialog">消息提醒</button>
  532. </div>
  533. </div>
  534. </template>
  535. <div class="clear-bottom" v-if="(userInfo.is_order>=1)">
  536. <div class="btn-group-bottom text-center">
  537. <p class="c-12b7f5">{{userInfo.is_order==1?'已预约':'已接诊'}}</p>
  538. <p v-if="(userInfo.is_order==2)">专科医生{{specialDoctorName}}已同意安排接诊</p>
  539. </div>
  540. </div>
  541. <el-dialog title="提示" :visible.sync="centerDialogVisible" width="65%" center>
  542. <span>是否确认纳入社区进行管理</span>
  543. <span slot="footer" class="dialog-footer">
  544. <el-button @click="centerDialogVisible = false">取 消</el-button>
  545. <el-button type="primary" @click="centerDialogClick">确 定</el-button>
  546. </span>
  547. </el-dialog>
  548. <el-dialog title="家医联系方式" :visible.sync="jiayiShow" width="65%" center>
  549. <span>
  550. 如需联系家医,请拨打下方电话:
  551. <br />
  552. {{userInfo.doctorMobile}}
  553. </span>
  554. <span slot="footer" class="dialog-footer">
  555. <el-button type="primary" @click="jiayiShow = false">确 定</el-button>
  556. </span>
  557. </el-dialog>
  558. <el-dialog title="消息提醒" :visible.sync="messageVisible" @close="closeMessageDialog" width="540px">
  559. <div>尊敬的签约居民,您好!我是您的签约家庭医师。根据您的健康档案情况,我们对您进行了冠心病风险评估,目前评估等级是{{messInfo.screen_result}},为此提供如下建议:</div>
  560. <div>1、请积极联系您的家庭医师{{messInfo.doctName}},进行咨询转诊,进一步检查;</div>
  561. <div>2、可致电厦门市冠心病防治中心挂靠单位厦门大学附属心血管病医院,进行咨询就诊,咨询电话:0592968120;</div>
  562. <div>3、您也可以通过:厦门i健康或者美丽厦门、智慧健康平台进行预约就诊。</div>
  563. <div>您的健康是我们最大的心愿。</div>
  564. <span slot="footer" class="dialog-footer">
  565. <el-button @click="messageVisible = false">取消</el-button>
  566. <el-button type="primary" @click="messageWarn">确定</el-button>
  567. </span>
  568. </el-dialog>
  569. </div>
  570. <script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  571. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  572. <script src="../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  573. <script src="../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  574. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  575. <script src="../../../plugins/toastr/toastr.min.js"></script>
  576. <script type="text/javascript" src="../../../api/jbsc-api.js"></script>
  577. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  578. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  579. <script type="text/javascript">
  580. var httpData = GetRequest()
  581. var wlyyAgent = JSON.parse(window.localStorage.getItem('wlyyAgent'))
  582. var func_doctor = null,
  583. func_hospital = null
  584. new Vue({
  585. el: '#app',
  586. data: {
  587. centerDialogVisible: false,
  588. answer: [], //问卷
  589. userInfo: { is_again: 0 }, //用户信息
  590. result: [], //结果
  591. tizhongRecord: [],
  592. specialDoctorName: '',
  593. noTiZhong: true,
  594. doctorInfo: { code: wlyyAgent.uid },
  595. resultCode: httpData['resultCode'],
  596. isView: httpData['isView'] || false,
  597. dealAction: [],
  598. getScreenData: '',
  599. surveyResultCode: '',
  600. isloading: false,
  601. docInfo: JSON.parse(window.localStorage.getItem('docInfo')),
  602. jiayiShow: false,
  603. showOpt: httpData['opt'],
  604. messageVisible: false,
  605. messInfo: {}
  606. },
  607. mounted: function () {
  608. this.getScreenResultDetail()
  609. this.getDoctorInfo()
  610. },
  611. methods: {
  612. lianxijiayi: function () {
  613. this.jiayiShow = true
  614. },
  615. centerDialogClick: function () {
  616. var vm = this
  617. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  618. this.centerDialogVisible = false
  619. vm.isloading = true
  620. jbscAPI
  621. .changeSurveyState({
  622. surveyResultCode: this.resultCode, //问卷code
  623. surveyStatus: 1, //surveyStatus =1 社区随访--已管理
  624. doctorCode: docInfo.code //医生code
  625. })
  626. .then(function (res) {
  627. if (res.status == 200) {
  628. top.layer.msg('操作成功')
  629. vm.isloading = false
  630. vm.getScreenResultDetail()
  631. }
  632. })
  633. },
  634. getDoctorInfo: function () {
  635. var vm = this
  636. var data = {
  637. code: vm.doctorInfo.code
  638. }
  639. jbscAPI.doctorBaseinfo(data).then(function (res) {
  640. if (res.status == 200) {
  641. vm.doctorInfo = res.data
  642. } else {
  643. top.layer.msg(res.msg, { icon: 5 })
  644. }
  645. })
  646. },
  647. jkjy: function () {
  648. var vm = this
  649. top.layer.open({
  650. type: 2,
  651. // offset: ['100px'], //右下角弹出
  652. area: ['80%', '648px'],
  653. shade: 0.5,
  654. title: '健康教育',
  655. fixed: true, //不固定
  656. maxmin: true,
  657. closeBtn: 1,
  658. shift: 5,
  659. shadeClose: false, //点击遮罩关闭层
  660. content: '../../article/html/article.html?code=' + this.userInfo.patient_code + '&resultCode=' + vm.resultCode
  661. })
  662. },
  663. //健康指导
  664. jkzd: function (data) {
  665. top.layer.open({
  666. type: 2,
  667. // offset: ['100px'], //右下角弹出
  668. area: ['80%', '648px'],
  669. shade: 0.5,
  670. title: '健康指导',
  671. fixed: true, //不固定
  672. maxmin: true,
  673. closeBtn: 1,
  674. shift: 5,
  675. shadeClose: false, //点击遮罩关闭层
  676. content: '../../guidance/html/index.html?patient=' + data.patientCode + '&resultCode=' + data.code
  677. })
  678. },
  679. jkzg: function () {
  680. var vm = this
  681. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  682. top.layer.open({
  683. type: 2,
  684. area: ['500px', '550px'],
  685. shade: 0.5,
  686. title: '家医建议',
  687. fixed: true, //不固定
  688. maxmin: false,
  689. closeBtn: 1,
  690. shift: 5,
  691. shadeClose: false, //点击遮罩关闭层
  692. content: '../../jbsc/html/advice.html?parentIframe=' + index + '&resultCode=' + vm.resultCode + '&filter_code=' + vm.userInfo.template_code
  693. })
  694. },
  695. sqsf: function () {
  696. var vm = this
  697. vm.centerDialogVisible = true
  698. },
  699. getScreenResultDetail: function () {
  700. var vm = this
  701. var loadding = top.layer.load(0, { shade: false }) //0代表加载的风格,支持0-2
  702. var data = {
  703. code: vm.resultCode
  704. }
  705. jbscAPI.getScreenResultDetail(data).then(function (res) {
  706. top.layer.close(loadding)
  707. if (res.status == 200) {
  708. var data = res.data
  709. vm.getScreenData = res.data
  710. data && ((vm.answer = data.answer), (vm.userInfo = data.info), (vm.result = data.result))
  711. data && data.info && data.info.code && vm.getHealth()
  712. data && (vm.specialDoctorName = data.specialDoctorName)
  713. var userInfo = data.info || []
  714. vm.dealAction = []
  715. data && (vm.messInfo = data.info)
  716. if (!userInfo.survey_status) {
  717. if (
  718. userInfo.isDanger == 1 ||
  719. userInfo.is_danger == 1
  720. // (userInfo.isAgain == 1 || userInfo.is_again == 1)
  721. ) {
  722. //只有高危的筛查需要处理
  723. if (userInfo.following == 1) {
  724. vm.dealAction.push('已跟踪')
  725. }
  726. if (userInfo.isOrder == 1 || userInfo.is_order == 1) {
  727. vm.dealAction.push('已预约')
  728. }
  729. if (userInfo.isOrder == 2 || userInfo.is_order == 2) {
  730. vm.dealAction.push('已接诊')
  731. }
  732. if (userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0)) {
  733. vm.dealAction.push('待处理')
  734. }
  735. // if (userInfo.isDanger == 0 || userInfo.is_danger == 0) {
  736. // vm.dealAction.push('日常健康管理')
  737. // }
  738. } else {
  739. vm.dealAction.push('日常健康管理')
  740. }
  741. } else {
  742. if (userInfo.survey_status == 1) {
  743. vm.dealAction.push('已管理')
  744. }
  745. if (userInfo.survey_status == 2) {
  746. vm.dealAction.push('住院补筛')
  747. }
  748. if (userInfo.survey_status == 3) {
  749. vm.dealAction.push('已提醒')
  750. }
  751. }
  752. vm.dealAction = vm.dealAction.join(',')
  753. if (data.info.third_source && data.info.third_source != 4) {
  754. for (let i in vm.answer) {
  755. if (vm.answer[i].question.title == '评估医生:') {
  756. if (vm.answer[i].option) {
  757. jbscAPI.getDoctorInfoByJwDoctor({ jwDoctor: data.answer[i].option.content }).then(function (res1) {
  758. if (res.status == 200) {
  759. vm.answer[i].option.content = res1.data.jwDoctorName
  760. }
  761. })
  762. }
  763. } else if (vm.answer[i].question.title == '评估机构:') {
  764. if (vm.answer[i].option) {
  765. jbscAPI.getHospitalInfoByMappingId({ mappingId: vm.answer[i].option.content }).then(function (res1) {
  766. if (res.status == 200) {
  767. vm.answer[i].option.content = res1.data.name
  768. }
  769. })
  770. }
  771. }
  772. }
  773. } else {
  774. }
  775. } else {
  776. top.layer.msg(res.msg, { icon: 5 })
  777. }
  778. })
  779. },
  780. getHealth: function () {
  781. var vm = this
  782. var data = {
  783. patient: vm.userInfo.patient_code
  784. }
  785. jbscAPI.getHealth(data).then(function (res) {
  786. if (res.status == 200) {
  787. vm.tizhongRecord =
  788. _.find(res.data, function (o) {
  789. return o.type == '3'
  790. }) || {}
  791. } else {
  792. top.layer.msg(res.msg, { icon: 5 })
  793. }
  794. JSON.stringify(vm.tizhongRecord) !== '{}' && (vm.noTiZhong = false)
  795. })
  796. },
  797. referral: function () {
  798. // top.layer.msg('PC上暂不支持,请打开手机端疑似高危记录进行转诊预约', { icon: 5 })
  799. var vm = this
  800. var patient = vm.userInfo.patient_code,
  801. callCode = ''
  802. // 如果是康复复诊过去预约挂号,在就诊信息页面少一个字段显示,1隐藏字段,0正常显示
  803. sessionStorage.setItem('isFuzhen', 0)
  804. top.layer.open({
  805. type: 2,
  806. closeBtn: 1, // 显示关闭按钮
  807. area: ['800px', '90%'],
  808. title: '预约挂号',
  809. content: '../../jbsc/html/appointment/appoint-select.html?patient=' + patient + '&callCode=' + callCode + '&surveyCode=' + vm.resultCode
  810. })
  811. },
  812. reScreening: function () {
  813. //再次筛查
  814. var vm = this
  815. top.layer.open({
  816. type: 2,
  817. // offset: ['100px'], //右下角弹出
  818. area: ['820px', '648px'],
  819. shade: 0.5,
  820. title: '筛选统计',
  821. fixed: true, //不固定
  822. maxmin: true,
  823. closeBtn: 1,
  824. shift: 5,
  825. shadeClose: false, //点击遮罩关闭层
  826. content:
  827. 'questionnaire.html?isAgain=1&fliter_title=' +
  828. vm.userInfo.template_title +
  829. '&fliter_code=' +
  830. vm.userInfo.template_code +
  831. '&resident_code=' +
  832. vm.userInfo.patient_code +
  833. '&resident_name=' +
  834. vm.userInfo.patient_name
  835. })
  836. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  837. top.layer.close(index) //再执行关闭
  838. },
  839. messageWarn() {
  840. var vm = this
  841. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  842. jbscAPI
  843. .changeSurveyState({
  844. surveyResultCode: this.resultCode, //问卷code
  845. surveyStatus: 3, //surveyStatus =1 社区随访--已管理
  846. doctorCode: docInfo.code //医生code
  847. })
  848. .then(function (res) {
  849. if (res.status == 200) {
  850. top.layer.msg('操作成功')
  851. vm.getScreenResultDetail()
  852. vm.closeMessageDialog()
  853. }
  854. })
  855. },
  856. openMessageDialog() {
  857. var vm = this
  858. jbscAPI.getSignInfo({ idcard: this.userInfo.idcard }).then(function (res) {
  859. vm.messageVisible = true
  860. if (res.data) {
  861. vm.messInfo.doctName = res.data.doctorName
  862. } else {
  863. vm.messInfo.doctName = ''
  864. }
  865. vm.$forceUpdate()
  866. })
  867. },
  868. closeMessageDialog() {
  869. this.messageVisible = false
  870. }
  871. }
  872. })
  873. </script>
  874. </body>
  875. </html>