123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>筛选类型</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="renderer" content="webkit">
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <meta name="keywords" content="筛选类型">
- <meta name="description" content="筛选类型">
- <link rel="shortcut icon" href="../../favicon.ico">
- <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
- <link rel="stylesheet" type="text/css" href="../../../css/cross.css"/>
- <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
- <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
- <style type="text/css">
- [v-cloak] {
- display: none;
- }
- .flex-box{
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- }
- .flex-box-item{
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- }
- p{word-break: break-all;}
- /*.question-content{max-height: 195px;overflow: auto;}*/
- .prompt-text{background-color: #ffa39e;color: #fff;font-size: 12px;text-align: center;line-height: 26px;}
- .single-choice-question{margin: 20px;padding: 0 20px;max-height: 540px;overflow-y: auto;border: 1px solid #d7dce6;border-radius: 10px;}
- .question-title{font-size: 16px;line-height: 40px;}
- .question-list,.daan-list{margin: 0;padding-left: 0;list-style: none;font-size: 14px;line-height: 1;}
- .question-list>li{border-top: 1px solid #d7dce6;padding: 10px 0;}
- .question-name{margin-bottom: 10px;}
- .daan-list>*{padding-left: 20px;}
- .daan-list input{opacity: 0;}
- .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;}
- .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;}
- .daan-list input[type="radio"]:checked ~ i{background-image: url(../images/dianxuan_pre.png);}
- .label-block{display: block;position: relative;cursor: pointer;}
- .label-block+.label-block{margin-top: 16px;}
- .label-block span,.calculation-score .pull-right{color: #ff9630;}
- .w-250{width: 250px;border: 1px solid #d7dce6;position: relative;border-top: 0;overflow: hidden;height: 605px;overflow: auto;}
- .f-16{font-size: 16px;}
- .mb20{margin-bottom: 20px!important;}
- .m20{margin: 20px;}
- .f16{font-size: 16px;}
- .base-info,.calculation-score,.btn-group-bottom,.assessment-report{padding: 17px;font-size: 14px;}
- .calculation-score p{margin-bottom: 5px;}
- .assessment-report p{margin-bottom: 0;}
- .canvas-box canvas{width: 100%;height: 100%;}
- .w-70{width: 70px;}
- .base-info .flex-box{margin-top: 20px;}
- .right-triangle{position: relative;background: url(../images/right-triangle.png) right center / auto 15px no-repeat;}
- .base-info .w-70{padding-right: 10px;text-align: justify;position: relative;text-align-last: justify;}
- .base-info .w-70:after{content: ':';position: absolute;right: 2px;top: 0;font-weight: bold;}
- .base-info input{height: 20px;padding: 0;text-align: center;width: 60px;margin: 0 5px;border-radius: 10px;border: 1px solid #d7dce6;}
- .progress-number{position: absolute;top: 50%;margin-top: -30px;text-align: center;left: 0;right: 0;}
- .progress-number>span{font-size: 14px;color: #12b7f5;}
- .clear-bottom{height: 91px;}
- .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;}
- .btn-group-bottom .btn{width: 100%;height: 40px;padding: 8px 12px;border-radius: 0;width: 90px;margin: 0 10px;}
- .warning-text .screen_result{color: #ff3b30;font-size: 12px;}
- .success-text .screen_result{color: #74bf00;font-size: 12px;}
- .score-box{height: 80px;padding-left: 120px;padding-top: 8px;background-size: auto 100%;background-repeat: no-repeat;background-position: 0 center;}
- .warning-text .score-box{color: #FF9630;background-image: url(../images/jiaofeishibai_icon.png);}
- .success-text .score-box{color: #74bf00;background-image: url(../images/jiaofeichengong_icon.png)}
- .score{font-size: 30px;}
- .score>small{font-size: 12px;}
- .orange-text{color: #ffa65b;}
- .answer-content,.advice-content{border: 1px solid #ececec;border-radius: 10px;padding: 10px 20px 5px;}
- .advice-content{padding: 0;}
- .advice-list{padding: 20px 20px 0;overflow: hidden;}
- .advice-list li{padding-left: 20px;line-height: 1;position: relative;list-style: none;margin-bottom: 20px;}
- .advice-list li:before{position: absolute;left: 0;top: 50%;margin-top: -6px;width: 12px;height: 12px;border-radius: 100%;background-color: #02cfb9;content: '';}
- .other-advice{border-top: 1px solid #ececec;line-height: 2;height: 90px;padding: 5px 20px;}
- .bgc-02cfb9{background-color: #02cfb9;color: #fff;}
- .bgc-12b7f5{background-color: #12b7f5;color: #fff;}
- .bgc-FF9630{background-color: #FF9630;color: #fff;}
- .bgc-2DBE55{background-color: #2DBE55;color: #fff;}
- .bgc-2DBE55.focus, .bgc-2DBE55:focus, .bgc-2DBE55:hover{color: #fff;background-color: #30a14f;}
- .bgc-FF9630.focus, .bgc-FF9630:focus, .bgc-FF9630:hover{color: #fff;background-color: #f58920;}
- .bgc-12b7f5.focus, .bgc-12b7f5:focus, .bgc-12b7f5:hover{color: #fff;background-color: #01a9bd;}
- .bgc-02cfb9.focus, .bgc-02cfb9:focus, .bgc-02cfb9:hover{color: #fff;background-color: #00bda8;}
- </style>
- </head>
- <body>
- <div id="app" v-cloak>
- <div class="m20 mb0" style="line-height: 1;">
- <div class="flex-box mb20">
- <div class="flex-box-item">筛查类型:<span v-text="userInfo.template_title"></span></div>
- <div class="flex-box-item">筛查人员:<span v-text="doctorInfo.name"></span></div>
- </div>
- <div class="flex-box mb20">
- <div class="flex-box-item">筛查对象:<span v-text="userInfo.patient_name+'('+(userInfo.sex==1?'男':'女')+(!userInfo.age?'<1':userInfo.age)+'岁)'"></span></div>
- <div class="flex-box-item">体征记录:<span v-if="!noTiZhong"><span v-text="tizhongRecord.value1+'kg'"></span> 身高<span v-text="tizhongRecord.value2+'cm'"></span></span><span v-else>暂无体征</span></div>
- </div>
- <div class="flex-box">
- <div class="flex-box-item">处理情况:<span>{{dealAction}}</span></div>
- <div class="flex-box-item ui-grid"><div class="ui-col-0">筛查机构:</div><div class="ui-col-1" v-text="doctorInfo.hospitalName"></div></div>
- </div>
- </div>
- <div class="single-choice-question">
- <div class="question-title">问卷题目</div>
- <div class="question-content">
- <ul class="question-list" v-for="(qst,key,index) in answer">
- <li>
- <p class="question-name" v-text="key+'、'+qst.question.title"></p>
- <div class="daan-list" v-if="qst.question.questionType==0">
- <lable class="label-block">
- <span class="pull-right" v-text="qst.option.score+'分'"></span>
- <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>
- </lable>
- </div>
- <div class="daan-list" v-else-if="qst.question.questionType==1">
- <lable class="label-block" v-for="opt in qst.option">
- <span class="pull-right" v-text="opt.score+'分'"></span>
- <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>
- </lable>
- </div>
- <div class="daan-list" v-else>
- <textarea class="wenjuan-textarea" rows="2" v-model="qst.question.content"></textarea>
- </div>
- </li>
- </ul>
- </div>
- </div>
-
- <div class="base-info">
- <div :class="userInfo.is_danger?'warning-text':'success-text'">
- <div class="score-box">
- <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>
- <p class="screen_result" v-text="result.screen_result"></p>
- </div>
- </div>
- </div>
- <div class="calculation-score">
- <p class="f16 mb10">评估报告</p>
- <div class="answer-content">
- <p v-text="result.advice"></p>
- </div>
-
- </div>
- <div class="calculation-score" v-if="result.doctorOtherAdvice || result.doctorAdvice">
- <p class="f16 mb10">家庭医生的建议</p>
- <div class="advice-content">
- <div class="option-advice" v-if="result.doctorAdvice">
- <ul class="advice-list">
- <li v-for="advice in result.doctorAdvice" v-text="advice.advice"></li>
- </ul>
- </div>
- <div class="other-advice" v-if="result.doctorOtherAdvice">
- <p><span class="orange-text">补充建议:</span><span v-text="result.doctorOtherAdvice || '无'"></span></p>
- </div>
- </div>
-
- </div>
- <div class="clear-bottom" v-if="!isView || (userInfo.is_again==1 && userInfo.is_danger==1)">
- <div class="btn-group-bottom flex-box">
- <button class="btn bgc-2DBE55" @click="jkjy" v-if="result.doctorOtherAdvice || result.doctorAdvice">健康教育</button>
- <button class="btn bgc-FF9630" @click="jkzg" v-else>健康跟踪</button>
- <button class="btn bgc-12b7f5" v-if="userInfo.is_again&&(result.doctorOtherAdvice || result.doctorAdvice)" @click="reScreening">再次筛查</button>
- <button class="btn bgc-02cfb9" @click="referral">转诊</button>
- </div>
- </div>
- <div class="clear-bottom" v-if="(userInfo.is_order>=1)">
- <div class="btn-group-bottom text-center">
- <p class="c-12b7f5">{{userInfo.is_order==1?'已预约':'已接诊'}}</p>
- <p v-if="(userInfo.is_order==2)">专科医生{{specialDoctorName}}已同意安排接诊</p>
- </div>
- </div>
- </div>
- <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../plugins/toastr/toastr.min.js"></script>
- <script type="text/javascript" src="../../../api/jbsc-api.js" ></script>
- <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- var httpData=GetRequest();
- var wlyyAgent=JSON.parse(window.localStorage.getItem('wlyyAgent'));
- new Vue({
- el: "#app",
- data: {
- answer:[],//问卷
- userInfo:{is_again:0},//用户信息
- result:[],//结果
- tizhongRecord:[],
- specialDoctorName:'',
- noTiZhong:true,
- doctorInfo:{code:wlyyAgent.uid},
- resultCode:httpData['resultCode'],
- isView: httpData['isView']|| false,
- dealAction:[]
- },
- mounted: function(){
- this.getScreenResultDetail()
- this.getDoctorInfo()
- },
- methods: {
- getDoctorInfo:function(){
- var vm=this;
- var data={
- code:vm.doctorInfo.code
- }
- jbscAPI.doctorBaseinfo(data).then(function(res){
- if(res.status==200){
- vm.doctorInfo=res.data
- }else{
- top.layer.msg(res.msg, {icon: 5});
- }
- })
- },
- jkjy:function(){
- var vm=this
- top.layer.open({
- type: 2,
- // offset: ['100px'], //右下角弹出
- area: ['80%', '648px'],
- shade: 0.5,
- title: '健康教育',
- fixed: true, //不固定
- maxmin: true,
- closeBtn: 1,
- shift: 5,
- shadeClose: false, //点击遮罩关闭层
- content: "../../article/html/article.html?code="+this.userInfo.patient_code+'&resultCode='+vm.resultCode
- });
- },
- jkzg:function(){
- var vm=this
- var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- top.layer.open({
- type: 2,
- area: ['500px', '550px'],
- shade: 0.5,
- title: '家医建议',
- fixed: true, //不固定
- maxmin: false,
- closeBtn:1,
- shift: 5,
- shadeClose: false, //点击遮罩关闭层
- content: '../../jbsc/html/advice.html?parentIframe='+index+'&resultCode='+vm.resultCode+'&filter_code='+vm.userInfo.template_code
- });
- },
- getScreenResultDetail:function(){
- var vm=this;
- var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
- var data={
- code: vm.resultCode
- }
- jbscAPI.getScreenResultDetail(data).then(function(res){
- top.layer.close(loadding);
- if(res.status==200){
- var data=res.data;
- data && (vm.answer=data.answer,vm.userInfo=data.info,vm.result=data.result);
- data && data.info && data.info.code && vm.getHealth();
- data && (vm.specialDoctorName = data.specialDoctorName);
- var userInfo = data.info || []
- if(userInfo.isDanger==1 || userInfo.is_danger==1){
- //只有高危的筛查需要处理
- if(userInfo.following == 1){
- vm.dealAction.push("已跟踪");
- }
- if(userInfo.isOrder == 1 || userInfo.is_order == 1){
- vm.dealAction.push("已预约转诊");
- }
- if(userInfo.isOrder == 2 || userInfo.is_order == 2){
- vm.dealAction.push("已接诊");
- }
- if(vm.dealAction.length == 0){
- vm.dealAction.push("待处理");
- }
- }else{
- vm.dealAction.push("日常健康管理");
- }
- vm.dealAction=vm.dealAction.join(',');
- }else{
- top.layer.msg(res.msg, {icon: 5});
- }
- })
- },
- getHealth:function(){
- var vm=this;
- var data={
- patient: vm.userInfo.patient_code
- }
- jbscAPI.getHealth(data).then(function(res){
- if(res.status == 200) {
- vm.tizhongRecord = _.find(res.data,function(o) {
- return o.type =="3";
- }) || {};
- } else {
- top.layer.msg(res.msg, {icon: 5});
- }
- (JSON.stringify(vm.tizhongRecord)!=='{}') && (vm.noTiZhong=false);
- })
- },
- referral:function(){
- top.layer.msg("PC上暂不支持,请打开手机端疑似高危记录进行转诊预约",{icon:5});
- },
- reScreening:function(){//再次筛查
- var vm=this
- top.layer.open({
- type: 2,
- // offset: ['100px'], //右下角弹出
- area: ['820px', '648px'],
- shade: 0.5,
- title: '筛选统计',
- fixed: true, //不固定
- maxmin: true,
- closeBtn:1,
- shift: 5,
- shadeClose: false, //点击遮罩关闭层
- 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
- });
- var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- top.layer.close(index); //再执行关闭
- },
- },
- })
- </script>
- </body>
- </html>
|