view_screening_results.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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 href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  16. <style type="text/css">
  17. [v-cloak] {
  18. display: none;
  19. }
  20. .flex-box{
  21. display: -webkit-box;
  22. display: -ms-flexbox;
  23. display: flex;
  24. -webkit-box-pack: center;
  25. -ms-flex-pack: center;
  26. justify-content: center;
  27. -webkit-box-align: center;
  28. -ms-flex-align: center;
  29. align-items: center;
  30. }
  31. .flex-box-item{
  32. -webkit-box-flex: 1;
  33. -ms-flex: 1;
  34. flex: 1;
  35. }
  36. p{word-break: break-all;}
  37. /*.question-content{max-height: 195px;overflow: auto;}*/
  38. .prompt-text{background-color: #ffa39e;color: #fff;font-size: 12px;text-align: center;line-height: 26px;}
  39. .single-choice-question{margin: 20px;padding: 0 20px;max-height: 540px;overflow-y: auto;border: 1px solid #d7dce6;border-radius: 10px;}
  40. .question-title{font-size: 16px;line-height: 40px;}
  41. .question-list,.daan-list{margin: 0;padding-left: 0;list-style: none;font-size: 14px;line-height: 1;}
  42. .question-list>li{border-top: 1px solid #d7dce6;padding: 10px 0;}
  43. .question-name{margin-bottom: 10px;}
  44. .daan-list>*{padding-left: 20px;line-height: 20px;height: 28px;}
  45. .daan-list input{opacity: 0;}
  46. .daan-list input[type="radio"]{width: 100%;height: 100%;opacity: 0;position: absolute;cursor: pointer;margin: 0;left: 0;right: 0;top: 0;bottom: 0;}
  47. .daan-list i{width: 20px;height: 20px;display: inline-block;vertical-align: middle;margin-right: 10px;background: url(../images/dianxuan_btn.png) center center / 100% 100% no-repeat;}
  48. .daan-list input[type="radio"]:checked ~ i{background-image: url(../images/dianxuan_pre.png);}
  49. .label-block{display: block;position: relative;cursor: pointer;}
  50. .label-block+.label-block{margin-top: 16px;}
  51. .label-block span,.calculation-score .pull-right{color: #ff9630;}
  52. .w-250{width: 250px;border: 1px solid #d7dce6;position: relative;border-top: 0;overflow: hidden;height: 605px;overflow: auto;}
  53. .f-16{font-size: 16px;}
  54. .mb20{margin-bottom: 20px!important;}
  55. .m20{margin: 20px;}
  56. .f16{font-size: 16px;}
  57. .base-info,.calculation-score,.btn-group-bottom,.assessment-report{padding: 17px;font-size: 14px;}
  58. .calculation-score p{margin-bottom: 5px;}
  59. .assessment-report p{margin-bottom: 0;}
  60. .canvas-box canvas{width: 100%;height: 100%;}
  61. .w-70{width: 70px;}
  62. .base-info .flex-box{margin-top: 20px;}
  63. .right-triangle{position: relative;background: url(../images/right-triangle.png) right center / auto 15px no-repeat;}
  64. .base-info .w-70{padding-right: 10px;text-align: justify;position: relative;text-align-last: justify;}
  65. .base-info .w-70:after{content: ':';position: absolute;right: 2px;top: 0;font-weight: bold;}
  66. .base-info input{height: 20px;padding: 0;text-align: center;width: 60px;margin: 0 5px;border-radius: 10px;border: 1px solid #d7dce6;}
  67. .progress-number{position: absolute;top: 50%;margin-top: -30px;text-align: center;left: 0;right: 0;}
  68. .progress-number>span{font-size: 14px;color: #12b7f5;}
  69. .clear-bottom{height: 91px;}
  70. .btn-group-bottom{padding: 40px 0 10px;position: fixed;right: 0;left: 0;bottom: 0;border-left: 1px solid #D7DCE6;background: #fff;border-top: 1px solid #D7DCE6;}
  71. .btn-group-bottom .btn{width: 100%;height: 40px;padding: 8px 12px;border-radius: 0;width: 90px;margin: 0 10px;}
  72. .warning-text .screen_result{color: #ff3b30;font-size: 12px;}
  73. .success-text .screen_result{color: #74bf00;font-size: 12px;}
  74. .score-box{height: 80px;padding-left: 120px;padding-top: 8px;background-size: auto 100%;background-repeat: no-repeat;background-position: 0 center;}
  75. .warning-text .score-box{color: #FF9630;background-image: url(../images/jiaofeishibai_icon.png);}
  76. .success-text .score-box{color: #74bf00;background-image: url(../images/jiaofeichengong_icon.png)}
  77. .score{font-size: 30px;}
  78. .score>small{font-size: 12px;}
  79. .orange-text{color: #ffa65b;}
  80. .answer-content,.advice-content{border: 1px solid #ececec;border-radius: 10px;padding: 10px 20px 5px;}
  81. .advice-content{padding: 0;}
  82. .advice-list{padding: 20px 20px 0;overflow: hidden;}
  83. .advice-list li{padding-left: 20px;line-height: 1;position: relative;list-style: none;margin-bottom: 20px;}
  84. .advice-list li:before{position: absolute;left: 0;top: 50%;margin-top: -6px;width: 12px;height: 12px;border-radius: 100%;background-color: #02cfb9;content: '';}
  85. .other-advice{border-top: 1px solid #ececec;line-height: 2;height: 90px;padding: 5px 20px;}
  86. .bgc-02cfb9{background-color: #02cfb9;color: #fff;}
  87. .bgc-12b7f5{background-color: #12b7f5;color: #fff;}
  88. .bgc-FF9630{background-color: #FF9630;color: #fff;}
  89. .bgc-2DBE55{background-color: #2DBE55;color: #fff;}
  90. .bgc-2DBE55.focus, .bgc-2DBE55:focus, .bgc-2DBE55:hover{color: #fff;background-color: #30a14f;}
  91. .bgc-FF9630.focus, .bgc-FF9630:focus, .bgc-FF9630:hover{color: #fff;background-color: #f58920;}
  92. .bgc-12b7f5.focus, .bgc-12b7f5:focus, .bgc-12b7f5:hover{color: #fff;background-color: #01a9bd;}
  93. .bgc-02cfb9.focus, .bgc-02cfb9:focus, .bgc-02cfb9:hover{color: #fff;background-color: #00bda8;}
  94. </style>
  95. </head>
  96. <body>
  97. <div id="app" v-cloak>
  98. <div class="m20 mb0" style="line-height: 1;">
  99. <div class="flex-box mb20">
  100. <div class="flex-box-item">筛查类型:<span v-text="userInfo.template_title"></span></div>
  101. <div class="flex-box-item">筛查人员:<span v-text="doctorInfo.name"></span></div>
  102. </div>
  103. <div class="flex-box mb20">
  104. <div class="flex-box-item">筛查对象:<span v-text="userInfo.patient_name+'('+(userInfo.sex==1?'男':'女')+(!userInfo.age?'<1':userInfo.age)+'岁)'"></span></div>
  105. <div class="flex-box-item">体征记录:<span v-if="!noTiZhong"><span v-text="tizhongRecord.value1+'kg'"></span>&nbsp;&nbsp;身高<span v-text="tizhongRecord.value2+'cm'"></span></span><span v-else>暂无体征</span></div>
  106. </div>
  107. <div class="flex-box">
  108. <div class="flex-box-item">处理情况:<span>{{dealAction}}</span></div>
  109. <div class="flex-box-item ui-grid"><div class="ui-col-0">筛查机构:</div><div class="ui-col-1" v-text="doctorInfo.hospitalName"></div></div>
  110. </div>
  111. </div>
  112. <div class="single-choice-question">
  113. <div class="question-title">问卷题目</div>
  114. <div class="question-content">
  115. <ul class="question-list" v-for="(qst,key,index) in answer">
  116. <li v-if="qst.option">
  117. <p class="question-name" v-html="key+'、'+qst.question.title"></p>
  118. <div class="daan-list" v-if="qst.question.questionType==0">
  119. <label class="label-block">
  120. <span class="pull-right" v-text="qst.option.score+'分'" v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  121. <input :type="qst.questionType==1?'checked':'radio'" readonly="readonly" :name="'ques'+index+(qst.questionType==1?'[]':'')" checked="checked" value="1" /><i></i><span v-text="qst.option.content"></span>
  122. </label>
  123. </div>
  124. <div class="daan-list" v-else-if="qst.question.questionType==1">
  125. <label class="label-block" v-for="opt in qst.option">
  126. <span class="pull-right" v-text="opt.score+'分'" v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></span>
  127. <input :type="qst.questionType==1?'checked':'radio'" readonly="readonly" :name="'ques'+index+(qst.questionType==1?'[]':'')" checked="checked" value="1" /><i></i><span v-text="opt.content"></span>
  128. </label>
  129. </div>
  130. <div class="daan-list" v-else>
  131. <textarea class="wenjuan-textarea" rows="2" v-model="qst.option.content"></textarea>
  132. </div>
  133. </li>
  134. </ul>
  135. </div>
  136. </div>
  137. <div class="base-info">
  138. <div :class="userInfo.is_danger?'warning-text':'success-text'">
  139. <div class="score-box">
  140. <p class="f-16 mb0" v-if="userInfo.isThird != 1 && userInfo.isThird !=2"><span class="c-333">评分 </span><span class="score"><span v-text="result.screen_result_score"></span><small> 分</small></span></p>
  141. <p class="screen_result" v-text="result.screen_result"></p>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="calculation-score">
  146. <p class="f16 mb10">评估报告</p>
  147. <div class="answer-content">
  148. <p v-text="(result && result.advice) || userInfo.third_advice"></p>
  149. </div>
  150. </div>
  151. <div class="calculation-score" v-if="result.doctorOtherAdvice || result.doctorAdvice">
  152. <p class="f16 mb10">家庭医生的建议</p>
  153. <div class="advice-content">
  154. <div class="option-advice" v-if="result.doctorAdvice">
  155. <ul class="advice-list">
  156. <li v-for="advice in result.doctorAdvice" v-text="advice.advice || '无'"></li>
  157. </ul>
  158. </div>
  159. <div class="other-advice" v-if="result.doctorOtherAdvice">
  160. <p><span class="orange-text">补充建议:</span><span v-text="result.doctorOtherAdvice || '无'"></span></p>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="clear-bottom" v-if="!isView || (userInfo.is_again==1 && userInfo.is_danger==1)">
  165. <div class="btn-group-bottom flex-box">
  166. <button class="btn bgc-2DBE55" @click="jkjy" v-if="result.doctorOtherAdvice || result.doctorAdvice">健康教育</button>
  167. <button class="btn bgc-FF9630" @click="jkzg" v-else>健康跟踪</button>
  168. <button class="btn bgc-12b7f5" v-if="userInfo.is_again&&(result.doctorOtherAdvice || result.doctorAdvice)" @click="reScreening">再次筛查</button>
  169. <button class="btn bgc-02cfb9" @click="referral">转诊</button>
  170. </div>
  171. </div>
  172. <div class="clear-bottom" v-if="(userInfo.is_order>=1)">
  173. <div class="btn-group-bottom text-center">
  174. <p class="c-12b7f5">{{userInfo.is_order==1?'已预约':'已接诊'}}</p>
  175. <p v-if="(userInfo.is_order==2)">专科医生{{specialDoctorName}}已同意安排接诊</p>
  176. </div>
  177. </div>
  178. </div>
  179. <script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  180. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  181. <script src="../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  182. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  183. <script src="../../../plugins/toastr/toastr.min.js"></script>
  184. <script type="text/javascript" src="../../../api/jbsc-api.js" ></script>
  185. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  186. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  187. <script type="text/javascript">
  188. var httpData=GetRequest();
  189. var wlyyAgent=JSON.parse(window.localStorage.getItem('wlyyAgent'));
  190. var func_doctor=null,
  191. func_hospital=null
  192. new Vue({
  193. el: "#app",
  194. data: {
  195. answer:[],//问卷
  196. userInfo:{is_again:0},//用户信息
  197. result:[],//结果
  198. tizhongRecord:[],
  199. specialDoctorName:'',
  200. noTiZhong:true,
  201. doctorInfo:{code:wlyyAgent.uid},
  202. resultCode:httpData['resultCode'],
  203. isView: httpData['isView']|| false,
  204. dealAction:[]
  205. },
  206. mounted: function(){
  207. this.getScreenResultDetail()
  208. this.getDoctorInfo()
  209. },
  210. methods: {
  211. getDoctorInfo:function(){
  212. var vm=this;
  213. var data={
  214. code:vm.doctorInfo.code
  215. }
  216. jbscAPI.doctorBaseinfo(data).then(function(res){
  217. if(res.status==200){
  218. vm.doctorInfo=res.data
  219. }else{
  220. top.layer.msg(res.msg, {icon: 5});
  221. }
  222. })
  223. },
  224. jkjy:function(){
  225. var vm=this
  226. top.layer.open({
  227. type: 2,
  228. // offset: ['100px'], //右下角弹出
  229. area: ['80%', '648px'],
  230. shade: 0.5,
  231. title: '健康教育',
  232. fixed: true, //不固定
  233. maxmin: true,
  234. closeBtn: 1,
  235. shift: 5,
  236. shadeClose: false, //点击遮罩关闭层
  237. content: "../../article/html/article.html?code="+this.userInfo.patient_code+'&resultCode='+vm.resultCode
  238. });
  239. },
  240. jkzg:function(){
  241. var vm=this
  242. var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  243. top.layer.open({
  244. type: 2,
  245. area: ['500px', '550px'],
  246. shade: 0.5,
  247. title: '家医建议',
  248. fixed: true, //不固定
  249. maxmin: false,
  250. closeBtn:1,
  251. shift: 5,
  252. shadeClose: false, //点击遮罩关闭层
  253. content: '../../jbsc/html/advice.html?parentIframe='+index+'&resultCode='+vm.resultCode+'&filter_code='+vm.userInfo.template_code
  254. });
  255. },
  256. getScreenResultDetail:function(){
  257. var vm=this;
  258. var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
  259. var data={
  260. code: vm.resultCode
  261. }
  262. jbscAPI.getScreenResultDetail(data).then(function(res){
  263. top.layer.close(loadding);
  264. if(res.status==200){
  265. var data=res.data;
  266. data && (vm.answer=data.answer,vm.userInfo=data.info,vm.result=data.result);
  267. data && data.info && data.info.code && vm.getHealth();
  268. data && (vm.specialDoctorName = data.specialDoctorName);
  269. var userInfo = data.info || []
  270. if((userInfo.isDanger==1 || userInfo.is_danger==1) && ( userInfo.isAgain==1 || userInfo.is_again==1)){
  271. //只有高危的筛查需要处理
  272. if(userInfo.following == 1){
  273. vm.dealAction.push("已跟踪");
  274. }
  275. if(userInfo.isOrder == 1 || userInfo.is_order == 1){
  276. vm.dealAction.push("已预约");
  277. }
  278. if(userInfo.isOrder == 2 || userInfo.is_order == 2){
  279. vm.dealAction.push("已接诊");
  280. }
  281. if(userInfo.following==0 && (userInfo.isOrder==0 || userInfo.is_order==0)){
  282. vm.dealAction.push("待处理");
  283. }
  284. if(userInfo.isDanger==0 || userInfo.is_danger==0){
  285. vm.dealAction.push("日常健康管理");
  286. }
  287. }else{
  288. vm.dealAction.push("");
  289. }
  290. vm.dealAction=vm.dealAction.join(',');
  291. if(data.info.third_source && data.info.third_source!=4){
  292. for(let i in vm.answer){
  293. if(vm.answer[i].question.title=='评估医生:'){
  294. if(vm.answer[i].option){
  295. jbscAPI.getDoctorInfoByJwDoctor({jwDoctor:data.answer[i].option.content}).then(function(res1){
  296. if(res.status == 200){
  297. vm.answer[i].option.content=res1.data.jwDoctorName
  298. }
  299. })
  300. }
  301. } else if(vm.answer[i].question.title=='评估机构:'){
  302. if(vm.answer[i].option){
  303. jbscAPI.getHospitalInfoByMappingId({mappingId:vm.answer[i].option.content}).then(function(res1){
  304. if(res.status == 200){
  305. vm.answer[i].option.content=res1.data.name
  306. }
  307. })
  308. }
  309. }
  310. }
  311. }else{
  312. }
  313. }else{
  314. top.layer.msg(res.msg, {icon: 5});
  315. }
  316. })
  317. },
  318. getHealth:function(){
  319. var vm=this;
  320. var data={
  321. patient: vm.userInfo.patient_code
  322. }
  323. jbscAPI.getHealth(data).then(function(res){
  324. if(res.status == 200) {
  325. vm.tizhongRecord = _.find(res.data,function(o) {
  326. return o.type =="3";
  327. }) || {};
  328. } else {
  329. top.layer.msg(res.msg, {icon: 5});
  330. }
  331. (JSON.stringify(vm.tizhongRecord)!=='{}') && (vm.noTiZhong=false);
  332. })
  333. },
  334. referral:function(){
  335. top.layer.msg("PC上暂不支持,请打开手机端疑似高危记录进行转诊预约",{icon:5});
  336. },
  337. reScreening:function(){//再次筛查
  338. var vm=this
  339. top.layer.open({
  340. type: 2,
  341. // offset: ['100px'], //右下角弹出
  342. area: ['820px', '648px'],
  343. shade: 0.5,
  344. title: '筛选统计',
  345. fixed: true, //不固定
  346. maxmin: true,
  347. closeBtn:1,
  348. shift: 5,
  349. shadeClose: false, //点击遮罩关闭层
  350. content: 'questionnaire.html?isAgain=1&fliter_title='+vm.userInfo.template_title+'&fliter_code='+vm.userInfo.template_code+'&resident_code='+vm.userInfo.patient_code+'&resident_name='+vm.userInfo.patient_name
  351. });
  352. var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  353. top.layer.close(index); //再执行关闭
  354. },
  355. },
  356. })
  357. </script>
  358. </body>
  359. </html>