view_screening_results.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  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. </style>
  385. </head>
  386. <body>
  387. <div id="app" v-cloak>
  388. <div class="m20 mb0" style="line-height: 1">
  389. <div class="flex-box mb20">
  390. <div class="flex-box-item">
  391. 筛查类型:
  392. <span v-text="userInfo.template_title"></span>
  393. </div>
  394. <div class="flex-box-item">
  395. 筛查人员:
  396. <span v-text="userInfo.doctorName"></span>
  397. </div>
  398. </div>
  399. <div class="flex-box mb20">
  400. <div class="flex-box-item">
  401. 筛查对象:
  402. <span
  403. v-text="userInfo.patient_name+'('+(userInfo.sex==1?'男':'女')+(!userInfo.age?'<1':userInfo.age)+'岁)'"></span>
  404. </div>
  405. <div class="flex-box-item">
  406. 体征记录:
  407. <span v-if="!noTiZhong">
  408. <span v-text="tizhongRecord.value1+'kg'"></span>
  409. &nbsp;&nbsp;身高
  410. <span v-text="tizhongRecord.value2+'cm'"></span>
  411. </span>
  412. <span v-else>暂无体征</span>
  413. </div>
  414. </div>
  415. <div class="flex-box">
  416. <div class="flex-box-item">
  417. 处理情况:
  418. <span>{{dealAction}}</span>
  419. </div>
  420. <div class="flex-box-item ui-grid">
  421. <div class="ui-col-0">筛查机构:</div>
  422. <div class="ui-col-1" v-text="">{{userInfo.doctorHosptailName}}</div>
  423. </div>
  424. </div>
  425. </div>
  426. <div class="single-choice-question" v-loading="isloading">
  427. <div class="question-title">问卷题目</div>
  428. <div class="question-content">
  429. <ul class="question-list" v-for="(qst,key,index) in answer">
  430. <li v-if="qst.option">
  431. <p class="question-name" v-html="key+'、'+qst.question.title"></p>
  432. <div class="daan-list" v-if="qst.question.questionType==0">
  433. <label class="label-block">
  434. <span
  435. class="pull-right"
  436. v-text="qst.option.score+'分'"
  437. v-if="getScreenData.result.screen_result_score!=-1&&userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  438. <input
  439. :type="qst.questionType==1?'checked':'radio'"
  440. readonly="readonly"
  441. :name="'ques'+index+(qst.questionType==1?'[]':'')"
  442. checked="checked"
  443. value="1" />
  444. <i></i>
  445. <span v-text="qst.option.content"></span>
  446. </label>
  447. </div>
  448. <div class="daan-list" v-else-if="qst.question.questionType==1">
  449. <label class="label-block" v-for="opt in qst.option">
  450. <span
  451. class="pull-right"
  452. v-text="opt.score+'分'"
  453. v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  454. <input
  455. :type="qst.questionType==1?'checked':'radio'"
  456. readonly="readonly"
  457. :name="'ques'+index+(qst.questionType==1?'[]':'')"
  458. checked="checked"
  459. value="1" />
  460. <i></i>
  461. <span v-text="opt.content"></span>
  462. </label>
  463. </div>
  464. <div class="daan-list" v-else>
  465. <textarea class="wenjuan-textarea" rows="2" v-model="qst.option.content"></textarea>
  466. </div>
  467. </li>
  468. </ul>
  469. </div>
  470. </div>
  471. <div class="base-info">
  472. <div :class="userInfo.is_danger?'warning-text':'success-text'" v-if="result.screen_result_score!=-1">
  473. <div class="score-box">
  474. <p class="f-16 mb0" v-if="userInfo.isThird != 1 && userInfo.isThird !=2">
  475. <span class="c-333">评分</span>
  476. <span class="score">
  477. <span v-text="result.screen_result_score"></span>
  478. <small>分</small>
  479. </span>
  480. </p>
  481. <p class="screen_result" v-text="result.screen_result"></p>
  482. </div>
  483. </div>
  484. <div v-else>
  485. <div v-if="userInfo.screen_result_code" :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'">
  486. <p class="mt10" style="font-size: 30px;" v-text="result.screen_result"></p>
  487. </div>
  488. </div>
  489. </div>
  490. <div class="calculation-score">
  491. <p class="f16 mb10">评估报告</p>
  492. <div class="answer-content">
  493. <p v-text="(result && result.advice) || userInfo.third_advice"></p>
  494. </div>
  495. </div>
  496. <div class="calculation-score" v-if="result.doctorOtherAdvice || result.doctorAdvice">
  497. <p class="f16 mb10">家庭医生的建议</p>
  498. <div class="advice-content">
  499. <div class="option-advice" v-if="result.doctorAdvice">
  500. <ul class="advice-list">
  501. <li v-for="advice in result.doctorAdvice" v-text="advice.advice || '无'"></li>
  502. </ul>
  503. </div>
  504. <div class="other-advice" v-if="result.doctorOtherAdvice">
  505. <p>
  506. <span class="orange-text">补充建议:</span>
  507. <span v-text="result.doctorOtherAdvice || '无'"></span>
  508. </p>
  509. </div>
  510. </div>
  511. </div>
  512. <template v-if="docInfo.level=='2'&&!userInfo.survey_status&&!showOpt">
  513. <div class="clear-bottom" v-if="!isView || (userInfo.is_again==1 && userInfo.is_danger==1)">
  514. <div class="btn-group-bottom flex-box">
  515. <button class="btn bgc-2DBE55" @click="jkjy" v-if="result.doctorOtherAdvice || result.doctorAdvice">
  516. 健康教育
  517. </button>
  518. <button class="btn bgc-FF9630" @click="jkzg" v-else>健康跟踪</button>
  519. <button
  520. class="btn bgc-12b7f5"
  521. v-if="userInfo.is_again&&(result.doctorOtherAdvice || result.doctorAdvice)"
  522. @click="reScreening">
  523. 再次筛查
  524. </button>
  525. </div>
  526. </div>
  527. <div class="clear-bottom" v-if="userInfo.is_danger==0">
  528. <div class="btn-group-bottom flex-box">
  529. <button class="btn" style="background-color: #12B7F5;color: #fff;" @click="jkzd(userInfo)">健康指导</button>
  530. </div>
  531. </div>
  532. </template>
  533. <!-- 专科 已管理 待处理 已预约 已接诊-->
  534. <template 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">
  535. <div class="clear-bottom">
  536. <div class="btn-group-bottom flex-box">
  537. <button class="btn bgc-12b7f5" @click="lianxijiayi" >联系家医</button>
  538. </div>
  539. </div>
  540. </template>
  541. <template v-if="docInfo.level=='2'&&!showOpt">
  542. <div class="clear-bottom" 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))">
  543. <div class="btn-group-bottom flex-box">
  544. <button class="btn bgc-FF9630" style="width: 120px;" @click="sqsf" >纳入社区管理</button>
  545. <button class="btn bgc-02cfb9" @click="referral">转诊</button>
  546. </div>
  547. </div>
  548. </template>
  549. <div class="clear-bottom" v-if="(userInfo.is_order>=1)">
  550. <div class="btn-group-bottom text-center">
  551. <p class="c-12b7f5">{{userInfo.is_order==1?'已预约':'已接诊'}}</p>
  552. <p v-if="(userInfo.is_order==2)">专科医生{{specialDoctorName}}已同意安排接诊</p>
  553. </div>
  554. </div>
  555. <el-dialog title="提示" :visible.sync="centerDialogVisible" width="65%" center>
  556. <span>是否确认纳入社区进行管理</span>
  557. <span slot="footer" class="dialog-footer">
  558. <el-button @click="centerDialogVisible = false">取 消</el-button>
  559. <el-button type="primary" @click="centerDialogClick">确 定</el-button>
  560. </span>
  561. </el-dialog>
  562. <el-dialog title="家医联系方式" :visible.sync="jiayiShow" width="65%" center>
  563. <span>如需联系家医,请拨打下方电话:<br> {{userInfo.doctorMobile}}</span>
  564. <span slot="footer" class="dialog-footer">
  565. <el-button type="primary" @click="jiayiShow = false">确 定</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. },
  604. mounted: function () {
  605. this.getScreenResultDetail()
  606. this.getDoctorInfo()
  607. },
  608. methods: {
  609. lianxijiayi:function() {
  610. this.jiayiShow = true
  611. },
  612. centerDialogClick:function() {
  613. var vm = this
  614. var docInfo=JSON.parse(window.localStorage.getItem('docInfo'));
  615. this.centerDialogVisible = false
  616. vm.isloading = true
  617. jbscAPI.changeSurveyState({
  618. surveyResultCode:this.resultCode, //问卷code
  619. surveyStatus:1, //surveyStatus =1 社区随访--已管理
  620. doctorCode:docInfo.code //医生code
  621. }).then(function(res){
  622. if(res.status == 200) {
  623. top.layer.msg('操作成功')
  624. vm.isloading = false
  625. vm.getScreenResultDetail()
  626. }
  627. })
  628. },
  629. getDoctorInfo: function () {
  630. var vm = this
  631. var data = {
  632. code: vm.doctorInfo.code
  633. }
  634. jbscAPI.doctorBaseinfo(data).then(function (res) {
  635. if (res.status == 200) {
  636. vm.doctorInfo = res.data
  637. } else {
  638. top.layer.msg(res.msg, { icon: 5 })
  639. }
  640. })
  641. },
  642. jkjy: function () {
  643. var vm = this
  644. top.layer.open({
  645. type: 2,
  646. // offset: ['100px'], //右下角弹出
  647. area: ['80%', '648px'],
  648. shade: 0.5,
  649. title: '健康教育',
  650. fixed: true, //不固定
  651. maxmin: true,
  652. closeBtn: 1,
  653. shift: 5,
  654. shadeClose: false, //点击遮罩关闭层
  655. content:
  656. '../../article/html/article.html?code=' + this.userInfo.patient_code + '&resultCode=' + vm.resultCode
  657. })
  658. },
  659. //健康指导
  660. jkzd: function (data) {
  661. top.layer.open({
  662. type: 2,
  663. // offset: ['100px'], //右下角弹出
  664. area: ['80%', '648px'],
  665. shade: 0.5,
  666. title: '健康指导',
  667. fixed: true, //不固定
  668. maxmin: true,
  669. closeBtn: 1,
  670. shift: 5,
  671. shadeClose: false, //点击遮罩关闭层
  672. content: '../../guidance/html/index.html?patient=' + data.patientCode + '&resultCode=' + data.code
  673. })
  674. },
  675. jkzg: function () {
  676. var vm = this
  677. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  678. top.layer.open({
  679. type: 2,
  680. area: ['500px', '550px'],
  681. shade: 0.5,
  682. title: '家医建议',
  683. fixed: true, //不固定
  684. maxmin: false,
  685. closeBtn: 1,
  686. shift: 5,
  687. shadeClose: false, //点击遮罩关闭层
  688. content:
  689. '../../jbsc/html/advice.html?parentIframe=' +
  690. index +
  691. '&resultCode=' +
  692. vm.resultCode +
  693. '&filter_code=' +
  694. vm.userInfo.template_code
  695. })
  696. },
  697. sqsf: function () {
  698. var vm = this
  699. vm.centerDialogVisible = true
  700. },
  701. getScreenResultDetail: function () {
  702. var vm = this
  703. var loadding = top.layer.load(0, { shade: false }) //0代表加载的风格,支持0-2
  704. var data = {
  705. code: vm.resultCode
  706. }
  707. jbscAPI.getScreenResultDetail(data).then(function (res) {
  708. top.layer.close(loadding)
  709. if (res.status == 200) {
  710. var data = res.data
  711. vm.getScreenData = res.data
  712. data && ((vm.answer = data.answer), (vm.userInfo = data.info), (vm.result = data.result))
  713. data && data.info && data.info.code && vm.getHealth()
  714. data && (vm.specialDoctorName = data.specialDoctorName)
  715. var userInfo = data.info || []
  716. vm.dealAction = []
  717. if(!userInfo.survey_status) {
  718. if (
  719. (userInfo.isDanger == 1 || 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. }
  749. vm.dealAction = vm.dealAction.join(',')
  750. if (data.info.third_source && data.info.third_source != 4) {
  751. for (let i in vm.answer) {
  752. if (vm.answer[i].question.title == '评估医生:') {
  753. if (vm.answer[i].option) {
  754. jbscAPI
  755. .getDoctorInfoByJwDoctor({ jwDoctor: data.answer[i].option.content })
  756. .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
  765. .getHospitalInfoByMappingId({ mappingId: vm.answer[i].option.content })
  766. .then(function (res1) {
  767. if (res.status == 200) {
  768. vm.answer[i].option.content = res1.data.name
  769. }
  770. })
  771. }
  772. }
  773. }
  774. } else {
  775. }
  776. } else {
  777. top.layer.msg(res.msg, { icon: 5 })
  778. }
  779. })
  780. },
  781. getHealth: function () {
  782. var vm = this
  783. var data = {
  784. patient: vm.userInfo.patient_code
  785. }
  786. jbscAPI.getHealth(data).then(function (res) {
  787. if (res.status == 200) {
  788. vm.tizhongRecord =
  789. _.find(res.data, function (o) {
  790. return o.type == '3'
  791. }) || {}
  792. } else {
  793. top.layer.msg(res.msg, { icon: 5 })
  794. }
  795. JSON.stringify(vm.tizhongRecord) !== '{}' && (vm.noTiZhong = false)
  796. })
  797. },
  798. referral: function () {
  799. // top.layer.msg('PC上暂不支持,请打开手机端疑似高危记录进行转诊预约', { icon: 5 })
  800. var vm = this
  801. var patient = vm.userInfo.patient_code,
  802. callCode = ''
  803. // 如果是康复复诊过去预约挂号,在就诊信息页面少一个字段显示,1隐藏字段,0正常显示
  804. sessionStorage.setItem("isFuzhen",0)
  805. top.layer.open({
  806. type: 2,
  807. closeBtn: 1, // 显示关闭按钮
  808. area: ['800px', '90%'],
  809. title: '预约挂号',
  810. content: '../../jbsc/html/appointment/appoint-select.html?patient=' + patient + '&callCode=' + callCode+'&surveyCode='+vm.resultCode
  811. })
  812. },
  813. reScreening: function () {
  814. //再次筛查
  815. var vm = this
  816. top.layer.open({
  817. type: 2,
  818. // offset: ['100px'], //右下角弹出
  819. area: ['820px', '648px'],
  820. shade: 0.5,
  821. title: '筛选统计',
  822. fixed: true, //不固定
  823. maxmin: true,
  824. closeBtn: 1,
  825. shift: 5,
  826. shadeClose: false, //点击遮罩关闭层
  827. content:
  828. 'questionnaire.html?isAgain=1&fliter_title=' +
  829. vm.userInfo.template_title +
  830. '&fliter_code=' +
  831. vm.userInfo.template_code +
  832. '&resident_code=' +
  833. vm.userInfo.patient_code +
  834. '&resident_name=' +
  835. vm.userInfo.patient_name
  836. })
  837. var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
  838. top.layer.close(index) //再执行关闭
  839. }
  840. }
  841. })
  842. </script>
  843. </body>
  844. </html>