view_screening_results.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974
  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. messageVisible: false,
  628. messInfo: '',
  629. questionList: [],
  630. dictData: [
  631. {
  632. name: 'obScreen_isMerge',
  633. field: 'isMerge'
  634. },
  635. {
  636. name: 'obScreen_eduState',
  637. field: 'eduState'
  638. },
  639. {
  640. name: 'obScreen_jobState',
  641. field: 'jobState'
  642. },
  643. {
  644. name: 'obScreen_ksDrugName1',
  645. field: 'ksDrugName1'
  646. }
  647. ],
  648. surveyCode: ''
  649. },
  650. mounted: function () {
  651. var vm = this
  652. this.getDictData()
  653. setTimeout(function () {
  654. vm.getScreenResultDetail()
  655. }, 200)
  656. this.getDoctorInfo()
  657. },
  658. methods: {
  659. lianxijiayi: function () {
  660. this.jiayiShow = true
  661. },
  662. centerDialogClick: function () {
  663. var vm = this
  664. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  665. this.centerDialogVisible = false
  666. vm.isloading = true
  667. jbscAPI
  668. .changeSurveyState({
  669. surveyResultCode: this.resultCode, //问卷code
  670. surveyStatus: 1, //surveyStatus =1 社区随访--已管理
  671. doctorCode: docInfo.code //医生code
  672. })
  673. .then(function (res) {
  674. if (res.status == 200) {
  675. top.layer.msg('操作成功')
  676. vm.isloading = false
  677. vm.getScreenResultDetail()
  678. }
  679. })
  680. },
  681. getDoctorInfo: function () {
  682. var vm = this
  683. var data = {
  684. code: vm.doctorInfo.code
  685. }
  686. jbscAPI.doctorBaseinfo(data).then(function (res) {
  687. if (res.status == 200) {
  688. vm.doctorInfo = res.data
  689. } else {
  690. top.layer.msg(res.msg, { icon: 5 })
  691. }
  692. })
  693. },
  694. jkjy: function () {
  695. var vm = this
  696. top.layer.open({
  697. type: 2,
  698. // offset: ['100px'], //右下角弹出
  699. area: ['80%', '648px'],
  700. shade: 0.5,
  701. title: '健康教育',
  702. fixed: true, //不固定
  703. maxmin: true,
  704. closeBtn: 1,
  705. shift: 5,
  706. shadeClose: false, //点击遮罩关闭层
  707. content: '../../article/html/article.html?code=' + this.userInfo.patient_code + '&resultCode=' + vm.resultCode
  708. })
  709. },
  710. //健康指导
  711. jkzd: function (data) {
  712. top.layer.open({
  713. type: 2,
  714. // offset: ['100px'], //右下角弹出
  715. area: ['80%', '648px'],
  716. shade: 0.5,
  717. title: '健康指导',
  718. fixed: true, //不固定
  719. maxmin: true,
  720. closeBtn: 1,
  721. shift: 5,
  722. shadeClose: false, //点击遮罩关闭层
  723. content: '../../guidance/html/index.html?patient=' + data.patientCode + '&resultCode=' + data.code
  724. })
  725. },
  726. jkzg: function () {
  727. var vm = this
  728. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  729. top.layer.open({
  730. type: 2,
  731. area: ['500px', '550px'],
  732. shade: 0.5,
  733. title: '家医建议',
  734. fixed: true, //不固定
  735. maxmin: false,
  736. closeBtn: 1,
  737. shift: 5,
  738. shadeClose: false, //点击遮罩关闭层
  739. content: '../../jbsc/html/advice.html?parentIframe=' + index + '&resultCode=' + vm.resultCode + '&filter_code=' + vm.userInfo.template_code
  740. })
  741. },
  742. sqsf: function () {
  743. var vm = this
  744. vm.centerDialogVisible = true
  745. },
  746. getDictData() {
  747. this.questionList = questionList
  748. var vm = this
  749. this.dictData.forEach(function (item) {
  750. jbscAPI.getDictDataByName(item.name).then(function (res) {
  751. var index = vm.questionList.findIndex(function (el) {
  752. return el.field == item.field
  753. })
  754. vm.questionList[index].options = res.list.map(function (el) {
  755. return {
  756. label: el.value,
  757. value: el.code
  758. }
  759. })
  760. vm.$forceUpdate()
  761. })
  762. })
  763. },
  764. getScreenResultDetail: function () {
  765. var vm = this
  766. var loadding = top.layer.load(0, { shade: false }) //0代表加载的风格,支持0-2
  767. var data = {
  768. code: vm.resultCode
  769. }
  770. jbscAPI.getScreenResultDetail(data).then(function (res) {
  771. top.layer.close(loadding)
  772. if (res.status == 200) {
  773. var data = res.data
  774. vm.surveyCode = data.info.template_code
  775. vm.getScreenData = res.data
  776. data && ((vm.answer = data.answer), (vm.userInfo = data.info), (vm.result = data.result))
  777. data && data.info && data.info.code && vm.getHealth()
  778. data && (vm.specialDoctorName = data.specialDoctorName)
  779. var userInfo = data.info || []
  780. vm.dealAction = []
  781. data && (vm.messInfo = data.info)
  782. if (!userInfo.survey_status) {
  783. if (
  784. userInfo.isDanger == 1 ||
  785. userInfo.is_danger == 1
  786. // (userInfo.isAgain == 1 || userInfo.is_again == 1)
  787. ) {
  788. //只有高危的筛查需要处理
  789. if (userInfo.following == 1) {
  790. vm.dealAction.push('已跟踪')
  791. }
  792. if (userInfo.isOrder == 1 || userInfo.is_order == 1) {
  793. vm.dealAction.push('已预约')
  794. }
  795. if (userInfo.isOrder == 2 || userInfo.is_order == 2) {
  796. vm.dealAction.push('已接诊')
  797. }
  798. if (userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0)) {
  799. vm.dealAction.push('待处理')
  800. }
  801. // if (userInfo.isDanger == 0 || userInfo.is_danger == 0) {
  802. // vm.dealAction.push('日常健康管理')
  803. // }
  804. } else {
  805. vm.dealAction.push('日常健康管理')
  806. }
  807. } else {
  808. if (userInfo.survey_status == 1) {
  809. vm.dealAction.push('已管理')
  810. }
  811. if (userInfo.survey_status == 2) {
  812. vm.dealAction.push('住院补筛')
  813. }
  814. if (userInfo.survey_status == 3) {
  815. vm.dealAction.push('已提醒')
  816. }
  817. }
  818. vm.dealAction = vm.dealAction.join(',')
  819. if (data.info.third_source && data.info.third_source != 4) {
  820. for (let i in vm.answer) {
  821. if (vm.answer[i].question.title == '评估医生:') {
  822. if (vm.answer[i].option) {
  823. jbscAPI.getDoctorInfoByJwDoctor({ jwDoctor: data.answer[i].option.content }).then(function (res1) {
  824. if (res.status == 200) {
  825. vm.answer[i].option.content = res1.data.jwDoctorName
  826. }
  827. })
  828. }
  829. } else if (vm.answer[i].question.title == '评估机构:') {
  830. if (vm.answer[i].option) {
  831. jbscAPI.getHospitalInfoByMappingId({ mappingId: vm.answer[i].option.content }).then(function (res1) {
  832. if (res.status == 200) {
  833. vm.answer[i].option.content = res1.data.name
  834. }
  835. })
  836. }
  837. }
  838. }
  839. } else {
  840. }
  841. if (data.info.template_code == 'aa9bd609fd8b492296f6a34849b76520') {
  842. vm.questionList.forEach(function (item) {
  843. if (item.type == 'radio') {
  844. var obj = item.options.find(function (el) {
  845. return el.value == vm.answer[item.field]
  846. })
  847. if (obj) {
  848. vm.answer[item.field] = obj.label
  849. }
  850. }
  851. if (item.type == 'checkbox') {
  852. var arr = vm.answer[item.field].split(',')
  853. var answer = []
  854. arr.forEach(function (el) {
  855. var obj = item.options.find(function (el1) {
  856. return el1.value == el
  857. })
  858. if (obj) {
  859. answer.push(obj.label)
  860. }
  861. })
  862. vm.answer[item.field] = answer
  863. }
  864. })
  865. }
  866. } else {
  867. top.layer.msg(res.msg, { icon: 5 })
  868. }
  869. })
  870. },
  871. getHealth: function () {
  872. var vm = this
  873. var data = {
  874. patient: vm.userInfo.patient_code
  875. }
  876. jbscAPI.getHealth(data).then(function (res) {
  877. if (res.status == 200) {
  878. vm.tizhongRecord =
  879. _.find(res.data, function (o) {
  880. return o.type == '3'
  881. }) || {}
  882. } else {
  883. top.layer.msg(res.msg, { icon: 5 })
  884. }
  885. JSON.stringify(vm.tizhongRecord) !== '{}' && (vm.noTiZhong = false)
  886. })
  887. },
  888. referral: function () {
  889. // top.layer.msg('PC上暂不支持,请打开手机端疑似高危记录进行转诊预约', { icon: 5 })
  890. var vm = this
  891. var patient = vm.userInfo.patient_code,
  892. callCode = ''
  893. // 如果是康复复诊过去预约挂号,在就诊信息页面少一个字段显示,1隐藏字段,0正常显示
  894. sessionStorage.setItem('isFuzhen', 0)
  895. top.layer.open({
  896. type: 2,
  897. closeBtn: 1, // 显示关闭按钮
  898. area: ['800px', '90%'],
  899. title: '预约挂号',
  900. content: '../../jbsc/html/appointment/appoint-select.html?patient=' + patient + '&callCode=' + callCode + '&surveyCode=' + vm.resultCode
  901. })
  902. },
  903. reScreening: function () {
  904. //再次筛查
  905. var vm = this
  906. top.layer.open({
  907. type: 2,
  908. // offset: ['100px'], //右下角弹出
  909. area: ['820px', '648px'],
  910. shade: 0.5,
  911. title: '筛选统计',
  912. fixed: true, //不固定
  913. maxmin: true,
  914. closeBtn: 1,
  915. shift: 5,
  916. shadeClose: false, //点击遮罩关闭层
  917. content:
  918. '../../jbsc/html/questionnaire.html?isAgain=1&fliter_title=' +
  919. vm.userInfo.template_title +
  920. '&fliter_code=' +
  921. vm.userInfo.template_code +
  922. '&resident_code=' +
  923. vm.userInfo.patient_code +
  924. '&resident_name=' +
  925. vm.userInfo.patient_name
  926. })
  927. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  928. top.layer.close(index) //再执行关闭
  929. },
  930. messageWarn() {
  931. var vm = this
  932. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  933. jbscAPI
  934. .changeSurveyState({
  935. surveyResultCode: this.resultCode, //问卷code
  936. surveyStatus: 3, //surveyStatus =1 社区随访--已管理
  937. doctorCode: docInfo.code //医生code
  938. })
  939. .then(function (res) {
  940. if (res.status == 200) {
  941. top.layer.msg('操作成功')
  942. vm.getScreenResultDetail()
  943. vm.closeMessageDialog()
  944. }
  945. })
  946. },
  947. openMessageDialog() {
  948. var vm = this
  949. jbscAPI.getSurveyMessage({ surveyResultCode: this.userInfo.code }).then(function (res) {
  950. vm.messageVisible = true
  951. vm.messInfo = res.data
  952. })
  953. // jbscAPI.getSignInfo({ idcard: this.userInfo.idcard }).then(function (res) {
  954. // vm.messageVisible = true
  955. // if (res.data) {
  956. // vm.messInfo.doctName = res.data.doctorName
  957. // } else {
  958. // vm.messInfo.doctName = ''
  959. // }
  960. // vm.$forceUpdate()
  961. // })
  962. },
  963. closeMessageDialog() {
  964. this.messageVisible = false
  965. }
  966. }
  967. })
  968. </script>
  969. </body>
  970. </html>