view_screening_results.html 31 KB

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