view_screening_results.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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;}
  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">筛查机构:<span v-text="doctorInfo.hospitalName"></span></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>
  117. <p class="question-name" v-text="key+'、'+qst.question.title"></p>
  118. <div class="daan-list" v-if="qst.question.questionType==0">
  119. <lable class="label-block">
  120. <span class="pull-right" v-text="qst.option.score+'分'"></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. </lable>
  123. </div>
  124. <div class="daan-list" v-else-if="qst.question.questionType==1">
  125. <lable class="label-block" v-for="opt in qst.option">
  126. <span class="pull-right" v-text="opt.score+'分'"></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. </lable>
  129. </div>
  130. <div class="daan-list" v-else>
  131. <textarea class="wenjuan-textarea" rows="2" v-model="qst.question.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"><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.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/vue.js" type="text/javascript" charset="utf-8"></script>
  180. <script src="../../../js/jquery-2.2.4.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. new Vue({
  191. el: "#app",
  192. data: {
  193. answer:[],//问卷
  194. userInfo:{is_again:0},//用户信息
  195. result:[],//结果
  196. tizhongRecord:[],
  197. specialDoctorName:'',
  198. noTiZhong:true,
  199. doctorInfo:{code:wlyyAgent.uid},
  200. resultCode:httpData['resultCode'],
  201. isView: httpData['isView']|| false,
  202. dealAction:[]
  203. },
  204. mounted: function(){
  205. this.getScreenResultDetail()
  206. this.getDoctorInfo()
  207. },
  208. methods: {
  209. getDoctorInfo:function(){
  210. var vm=this;
  211. var data={
  212. code:vm.doctorInfo.code
  213. }
  214. jbscAPI.doctorBaseinfo(data).then(function(res){
  215. if(res.status==200){
  216. vm.doctorInfo=res.data
  217. }else{
  218. top.layer.msg(res.msg, {icon: 5});
  219. }
  220. })
  221. },
  222. jkjy:function(){
  223. var vm=this
  224. top.layer.open({
  225. type: 2,
  226. // offset: ['100px'], //右下角弹出
  227. area: ['80%', '648px'],
  228. shade: 0.5,
  229. title: '健康教育',
  230. fixed: true, //不固定
  231. maxmin: true,
  232. closeBtn: 1,
  233. shift: 5,
  234. shadeClose: false, //点击遮罩关闭层
  235. content: "../../article/html/article.html?code="+this.userInfo.patient_code+'&resultCode='+vm.resultCode
  236. });
  237. },
  238. jkzg:function(){
  239. var vm=this
  240. var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  241. top.layer.open({
  242. type: 2,
  243. area: ['500px', '550px'],
  244. shade: 0.5,
  245. title: '家医建议',
  246. fixed: true, //不固定
  247. maxmin: false,
  248. closeBtn:1,
  249. shift: 5,
  250. shadeClose: false, //点击遮罩关闭层
  251. content: '../../jbsc/html/advice.html?parentIframe='+index+'&resultCode='+vm.resultCode+'&filter_code='+vm.userInfo.template_code
  252. });
  253. },
  254. getScreenResultDetail:function(){
  255. var vm=this;
  256. var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
  257. var data={
  258. code: vm.resultCode
  259. }
  260. jbscAPI.getScreenResultDetail(data).then(function(res){
  261. top.layer.close(loadding);
  262. if(res.status==200){
  263. var data=res.data;
  264. data && (vm.answer=data.answer,vm.userInfo=data.info,vm.result=data.result);
  265. data && data.info && data.info.code && vm.getHealth();
  266. data && (vm.specialDoctorName = data.specialDoctorName);
  267. var userInfo = data.info || []
  268. if(userInfo.isDanger==1 || userInfo.is_danger==1){
  269. //只有高危的筛查需要处理
  270. if(userInfo.following == 1){
  271. vm.dealAction.push("已跟踪");
  272. }
  273. if(userInfo.isOrder == 1 || userInfo.is_order == 1){
  274. vm.dealAction.push("已预约转诊");
  275. }
  276. if(userInfo.isOrder == 2 || userInfo.is_order == 2){
  277. vm.dealAction.push("已接诊");
  278. }
  279. if(vm.dealAction.length == 0){
  280. vm.dealAction.push("待处理");
  281. }
  282. }else{
  283. vm.dealAction.push("日常健康管理");
  284. }
  285. vm.dealAction=vm.dealAction.join(',');
  286. }else{
  287. top.layer.msg(res.msg, {icon: 5});
  288. }
  289. })
  290. },
  291. getHealth:function(){
  292. var vm=this;
  293. var data={
  294. patient: vm.userInfo.patient_code
  295. }
  296. jbscAPI.getHealth(data).then(function(res){
  297. if(res.status == 200) {
  298. vm.tizhongRecord = _.find(res.data,function(o) {
  299. return o.type =="3";
  300. }) || {};
  301. } else {
  302. top.layer.msg(res.msg, {icon: 5});
  303. }
  304. (JSON.stringify(vm.tizhongRecord)!=='{}') && (vm.noTiZhong=false);
  305. })
  306. },
  307. referral:function(){
  308. top.layer.msg("PC上暂不支持,请打开手机端疑似高危记录进行转诊预约",{icon:5});
  309. },
  310. reScreening:function(){//再次筛查
  311. var vm=this
  312. top.layer.open({
  313. type: 2,
  314. // offset: ['100px'], //右下角弹出
  315. area: ['820px', '648px'],
  316. shade: 0.5,
  317. title: '筛选统计',
  318. fixed: true, //不固定
  319. maxmin: true,
  320. closeBtn:1,
  321. shift: 5,
  322. shadeClose: false, //点击遮罩关闭层
  323. 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
  324. });
  325. var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  326. top.layer.close(index); //再执行关闭
  327. },
  328. },
  329. })
  330. </script>
  331. </body>
  332. </html>