|
@ -226,7 +226,7 @@
|
|
|
color: #74bf00;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
.score-box{
|
|
|
.score-box {
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
@ -242,56 +242,56 @@
|
|
|
color: #74bf00;
|
|
|
background-image: url(../images/jiaofeichengong_icon.png);
|
|
|
}
|
|
|
.score-box1{
|
|
|
color: #E52F2F;
|
|
|
background-image: url(../images/jiaofeishibai_1.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box2{
|
|
|
color: #E56D27;
|
|
|
background-image: url(../images/jiaofeishibai_2.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box3{
|
|
|
color: #FEA13F;
|
|
|
background-image: url(../images/jiaofeishibai_3.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box4{
|
|
|
color: #18D6AA;
|
|
|
background-image: url(../images/jiaofeishibai_4.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box5{
|
|
|
color: #D0CFCD;
|
|
|
background-image: url(../images/jiaofeishibai_5.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box1 {
|
|
|
color: #e52f2f;
|
|
|
background-image: url(../images/jiaofeishibai_1.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box2 {
|
|
|
color: #e56d27;
|
|
|
background-image: url(../images/jiaofeishibai_2.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box3 {
|
|
|
color: #fea13f;
|
|
|
background-image: url(../images/jiaofeishibai_3.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box4 {
|
|
|
color: #18d6aa;
|
|
|
background-image: url(../images/jiaofeishibai_4.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score-box5 {
|
|
|
color: #d0cfcd;
|
|
|
background-image: url(../images/jiaofeishibai_5.png);
|
|
|
height: 80px;
|
|
|
padding-left: 120px;
|
|
|
padding-top: 8px;
|
|
|
background-size: auto 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: 0 center;
|
|
|
}
|
|
|
.score {
|
|
|
font-size: 30px;
|
|
|
}
|
|
@ -342,6 +342,10 @@
|
|
|
background-color: #02cfb9;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.bgc-17b3ec {
|
|
|
background-color: #17b3ec;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.bgc-12b7f5 {
|
|
|
background-color: #12b7f5;
|
|
|
color: #fff;
|
|
@ -378,9 +382,9 @@
|
|
|
color: #fff;
|
|
|
background-color: #00bda8;
|
|
|
}
|
|
|
.el-dialog--center .el-dialog__body{
|
|
|
text-align: center;
|
|
|
}
|
|
|
.el-dialog--center .el-dialog__body {
|
|
|
text-align: center;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@ -399,8 +403,7 @@
|
|
|
<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>
|
|
|
<span v-text="userInfo.patient_name+'('+(userInfo.sex==1?'男':'女')+(!userInfo.age?'<1':userInfo.age)+'岁)'"></span>
|
|
|
</div>
|
|
|
<div class="flex-box-item">
|
|
|
体征记录:
|
|
@ -431,32 +434,16 @@
|
|
|
<p class="question-name" v-html="key+'、'+qst.question.title"></p>
|
|
|
<div class="daan-list" v-if="qst.question.questionType==0">
|
|
|
<label class="label-block">
|
|
|
<span
|
|
|
class="pull-right"
|
|
|
v-text="qst.option.score+'分'"
|
|
|
v-if="getScreenData.result.screen_result_score!=-1&&userInfo.isThird != 1 && userInfo.isThird !=2"></span>
|
|
|
<input
|
|
|
:type="qst.questionType==1?'checked':'radio'"
|
|
|
readonly="readonly"
|
|
|
:name="'ques'+index+(qst.questionType==1?'[]':'')"
|
|
|
checked="checked"
|
|
|
value="1" />
|
|
|
<span class="pull-right" v-text="qst.option.score+'分'" v-if="getScreenData.result.screen_result_score!=-1&&userInfo.isThird != 1 && userInfo.isThird !=2"></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>
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="daan-list" v-else-if="qst.question.questionType==1">
|
|
|
<label class="label-block" v-for="opt in qst.option">
|
|
|
<span
|
|
|
class="pull-right"
|
|
|
v-text="opt.score+'分'"
|
|
|
v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></span>
|
|
|
<input
|
|
|
:type="qst.questionType==1?'checked':'radio'"
|
|
|
readonly="readonly"
|
|
|
:name="'ques'+index+(qst.questionType==1?'[]':'')"
|
|
|
checked="checked"
|
|
|
value="1" />
|
|
|
<span class="pull-right" v-text="opt.score+'分'" v-if="userInfo.isThird != 1 && userInfo.isThird !=2"></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>
|
|
|
</label>
|
|
@ -471,22 +458,24 @@
|
|
|
|
|
|
<div class="base-info">
|
|
|
<div :class="userInfo.is_danger?'warning-text':'success-text'" v-if="result.screen_result_score!=-1">
|
|
|
<div class="score-box">
|
|
|
<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>
|
|
|
<p class="screen_result" v-text="result.screen_result"></p>
|
|
|
</div>
|
|
|
<div class="score-box">
|
|
|
<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>
|
|
|
<p class="screen_result" v-text="result.screen_result"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<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'">
|
|
|
<p class="mt10" style="font-size: 30px" v-text="result.screen_result"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<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'">
|
|
|
<p class="mt10" style="font-size: 30px;" v-text="result.screen_result"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="calculation-score">
|
|
|
<p class="f16 mb10">评估报告</p>
|
|
@ -510,44 +499,40 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<template v-if="docInfo.level=='2'&&!userInfo.survey_status&&!showOpt">
|
|
|
<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>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="clear-bottom" v-if="userInfo.is_danger==0">
|
|
|
<div class="btn-group-bottom flex-box">
|
|
|
<button class="btn" style="background-color: #12B7F5;color: #fff;" @click="jkzd(userInfo)">健康指导</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- 专科 已管理 待处理 已预约 已接诊-->
|
|
|
<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">
|
|
|
<div class="clear-bottom">
|
|
|
<div class="btn-group-bottom flex-box">
|
|
|
<button class="btn bgc-12b7f5" @click="lianxijiayi" >联系家医</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-if="docInfo.level=='2'&&!showOpt">
|
|
|
<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))">
|
|
|
<div class="btn-group-bottom flex-box">
|
|
|
<button class="btn bgc-FF9630" style="width: 120px;" @click="sqsf" >纳入社区管理</button>
|
|
|
<button class="btn bgc-02cfb9" @click="referral">转诊</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-if="docInfo.level=='2'&&!userInfo.survey_status&&!showOpt">
|
|
|
<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>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="clear-bottom" v-if="userInfo.is_danger==0">
|
|
|
<div class="btn-group-bottom flex-box">
|
|
|
<button class="btn" style="background-color: #12b7f5; color: #fff" @click="jkzd(userInfo)">健康指导</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- 专科 已管理 待处理 已预约 已接诊-->
|
|
|
<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">
|
|
|
<div class="clear-bottom">
|
|
|
<div class="btn-group-bottom flex-box">
|
|
|
<button class="btn bgc-12b7f5" @click="lianxijiayi">联系家医</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-if="docInfo.level=='2'&&!showOpt">
|
|
|
<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))">
|
|
|
<div class="btn-group-bottom flex-box">
|
|
|
<button class="btn bgc-FF9630" style="width: 120px" @click="sqsf">纳入社区管理</button>
|
|
|
<button class="btn bgc-02cfb9" @click="referral">转诊</button>
|
|
|
<button class="btn bgc-12b7f5" @click="openMessageDialog">消息提醒</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<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>
|
|
@ -561,12 +546,27 @@
|
|
|
<el-button type="primary" @click="centerDialogClick">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="家医联系方式" :visible.sync="jiayiShow" width="65%" center>
|
|
|
<span>如需联系家医,请拨打下方电话:<br> {{userInfo.doctorMobile}}</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="jiayiShow = false">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="家医联系方式" :visible.sync="jiayiShow" width="65%" center>
|
|
|
<span>
|
|
|
如需联系家医,请拨打下方电话:
|
|
|
<br />
|
|
|
{{userInfo.doctorMobile}}
|
|
|
</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="jiayiShow = false">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="消息提醒" :visible.sync="messageVisible" @close="closeMessageDialog" width="540px">
|
|
|
<div>尊敬的签约居民,您好!我是您的签约家庭医师。根据您的健康档案情况,我们对您进行了冠心病风险评估,目前评估等级是{{messInfo.screen_result}},为此提供如下建议:</div>
|
|
|
<div>1、请积极联系您的家庭医师{{messInfo.doctName}},进行咨询转诊,进一步检查;</div>
|
|
|
<div>2、可致电厦门市冠心病防治中心挂靠单位厦门大学附属心血管病医院,进行咨询就诊,咨询电话:0592968120;</div>
|
|
|
<div>3、您也可以通过:厦门i健康或者美丽厦门、智慧健康平台进行预约就诊。</div>
|
|
|
<div>您的健康是我们最大的心愿。</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="messageVisible = false">取消</el-button>
|
|
|
<el-button type="primary" @click="messageWarn">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
<script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
|
|
@ -596,38 +596,42 @@
|
|
|
resultCode: httpData['resultCode'],
|
|
|
isView: httpData['isView'] || false,
|
|
|
dealAction: [],
|
|
|
getScreenData:'',
|
|
|
surveyResultCode:'',
|
|
|
isloading:false,
|
|
|
docInfo:JSON.parse(window.localStorage.getItem('docInfo')),
|
|
|
jiayiShow:false,
|
|
|
showOpt: httpData['opt']
|
|
|
getScreenData: '',
|
|
|
surveyResultCode: '',
|
|
|
isloading: false,
|
|
|
docInfo: JSON.parse(window.localStorage.getItem('docInfo')),
|
|
|
jiayiShow: false,
|
|
|
showOpt: httpData['opt'],
|
|
|
messageVisible: false,
|
|
|
messInfo: {}
|
|
|
},
|
|
|
mounted: function () {
|
|
|
this.getScreenResultDetail()
|
|
|
this.getDoctorInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
lianxijiayi:function() {
|
|
|
this.jiayiShow = true
|
|
|
},
|
|
|
centerDialogClick:function() {
|
|
|
var vm = this
|
|
|
var docInfo=JSON.parse(window.localStorage.getItem('docInfo'));
|
|
|
this.centerDialogVisible = false
|
|
|
vm.isloading = true
|
|
|
jbscAPI.changeSurveyState({
|
|
|
surveyResultCode:this.resultCode, //问卷code
|
|
|
surveyStatus:1, //surveyStatus =1 社区随访--已管理
|
|
|
doctorCode:docInfo.code //医生code
|
|
|
}).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
top.layer.msg('操作成功')
|
|
|
vm.isloading = false
|
|
|
vm.getScreenResultDetail()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
lianxijiayi: function () {
|
|
|
this.jiayiShow = true
|
|
|
},
|
|
|
centerDialogClick: function () {
|
|
|
var vm = this
|
|
|
var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
|
|
|
this.centerDialogVisible = false
|
|
|
vm.isloading = true
|
|
|
jbscAPI
|
|
|
.changeSurveyState({
|
|
|
surveyResultCode: this.resultCode, //问卷code
|
|
|
surveyStatus: 1, //surveyStatus =1 社区随访--已管理
|
|
|
doctorCode: docInfo.code //医生code
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
top.layer.msg('操作成功')
|
|
|
vm.isloading = false
|
|
|
vm.getScreenResultDetail()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getDoctorInfo: function () {
|
|
|
var vm = this
|
|
|
var data = {
|
|
@ -654,26 +658,25 @@
|
|
|
closeBtn: 1,
|
|
|
shift: 5,
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
content:
|
|
|
'../../article/html/article.html?code=' + this.userInfo.patient_code + '&resultCode=' + vm.resultCode
|
|
|
content: '../../article/html/article.html?code=' + this.userInfo.patient_code + '&resultCode=' + vm.resultCode
|
|
|
})
|
|
|
},
|
|
|
//健康指导
|
|
|
jkzd: function (data) {
|
|
|
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: '../../guidance/html/index.html?patient=' + data.patientCode + '&resultCode=' + data.code
|
|
|
})
|
|
|
},
|
|
|
//健康指导
|
|
|
jkzd: function (data) {
|
|
|
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: '../../guidance/html/index.html?patient=' + data.patientCode + '&resultCode=' + data.code
|
|
|
})
|
|
|
},
|
|
|
jkzg: function () {
|
|
|
var vm = this
|
|
|
var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
|
|
@ -687,13 +690,7 @@
|
|
|
closeBtn: 1,
|
|
|
shift: 5,
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
content:
|
|
|
'../../jbsc/html/advice.html?parentIframe=' +
|
|
|
index +
|
|
|
'&resultCode=' +
|
|
|
vm.resultCode +
|
|
|
'&filter_code=' +
|
|
|
vm.userInfo.template_code
|
|
|
content: '../../jbsc/html/advice.html?parentIframe=' + index + '&resultCode=' + vm.resultCode + '&filter_code=' + vm.userInfo.template_code
|
|
|
})
|
|
|
},
|
|
|
sqsf: function () {
|
|
@ -710,68 +707,68 @@
|
|
|
top.layer.close(loadding)
|
|
|
if (res.status == 200) {
|
|
|
var data = res.data
|
|
|
vm.getScreenData = res.data
|
|
|
vm.getScreenData = 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 || []
|
|
|
vm.dealAction = []
|
|
|
|
|
|
if(!userInfo.survey_status) {
|
|
|
if (
|
|
|
(userInfo.isDanger == 1 || userInfo.is_danger == 1)
|
|
|
// (userInfo.isAgain == 1 || userInfo.is_again == 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 (userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0)) {
|
|
|
vm.dealAction.push('待处理')
|
|
|
}
|
|
|
// if (userInfo.isDanger == 0 || userInfo.is_danger == 0) {
|
|
|
// vm.dealAction.push('日常健康管理')
|
|
|
// }
|
|
|
} else {
|
|
|
vm.dealAction.push('日常健康管理')
|
|
|
}
|
|
|
}else{
|
|
|
if (userInfo.survey_status == 1) {
|
|
|
vm.dealAction.push('已管理')
|
|
|
}
|
|
|
if (userInfo.survey_status == 2) {
|
|
|
vm.dealAction.push('住院补筛')
|
|
|
}
|
|
|
}
|
|
|
|
|
|
vm.dealAction = []
|
|
|
data && (vm.messInfo = data.info)
|
|
|
if (!userInfo.survey_status) {
|
|
|
if (
|
|
|
userInfo.isDanger == 1 ||
|
|
|
userInfo.is_danger == 1
|
|
|
// (userInfo.isAgain == 1 || userInfo.is_again == 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 (userInfo.following == 0 && (userInfo.isOrder == 0 || userInfo.is_order == 0)) {
|
|
|
vm.dealAction.push('待处理')
|
|
|
}
|
|
|
// if (userInfo.isDanger == 0 || userInfo.is_danger == 0) {
|
|
|
// vm.dealAction.push('日常健康管理')
|
|
|
// }
|
|
|
} else {
|
|
|
vm.dealAction.push('日常健康管理')
|
|
|
}
|
|
|
} else {
|
|
|
if (userInfo.survey_status == 1) {
|
|
|
vm.dealAction.push('已管理')
|
|
|
}
|
|
|
if (userInfo.survey_status == 2) {
|
|
|
vm.dealAction.push('住院补筛')
|
|
|
}
|
|
|
if (userInfo.survey_status == 3) {
|
|
|
vm.dealAction.push('已提醒')
|
|
|
}
|
|
|
}
|
|
|
|
|
|
vm.dealAction = vm.dealAction.join(',')
|
|
|
if (data.info.third_source && data.info.third_source != 4) {
|
|
|
for (let i in vm.answer) {
|
|
|
if (vm.answer[i].question.title == '评估医生:') {
|
|
|
if (vm.answer[i].option) {
|
|
|
jbscAPI
|
|
|
.getDoctorInfoByJwDoctor({ jwDoctor: data.answer[i].option.content })
|
|
|
.then(function (res1) {
|
|
|
if (res.status == 200) {
|
|
|
vm.answer[i].option.content = res1.data.jwDoctorName
|
|
|
}
|
|
|
})
|
|
|
jbscAPI.getDoctorInfoByJwDoctor({ jwDoctor: data.answer[i].option.content }).then(function (res1) {
|
|
|
if (res.status == 200) {
|
|
|
vm.answer[i].option.content = res1.data.jwDoctorName
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
} else if (vm.answer[i].question.title == '评估机构:') {
|
|
|
if (vm.answer[i].option) {
|
|
|
jbscAPI
|
|
|
.getHospitalInfoByMappingId({ mappingId: vm.answer[i].option.content })
|
|
|
.then(function (res1) {
|
|
|
if (res.status == 200) {
|
|
|
vm.answer[i].option.content = res1.data.name
|
|
|
}
|
|
|
})
|
|
|
jbscAPI.getHospitalInfoByMappingId({ mappingId: vm.answer[i].option.content }).then(function (res1) {
|
|
|
if (res.status == 200) {
|
|
|
vm.answer[i].option.content = res1.data.name
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@ -805,13 +802,13 @@
|
|
|
var patient = vm.userInfo.patient_code,
|
|
|
callCode = ''
|
|
|
// 如果是康复复诊过去预约挂号,在就诊信息页面少一个字段显示,1隐藏字段,0正常显示
|
|
|
sessionStorage.setItem("isFuzhen",0)
|
|
|
sessionStorage.setItem('isFuzhen', 0)
|
|
|
top.layer.open({
|
|
|
type: 2,
|
|
|
closeBtn: 1, // 显示关闭按钮
|
|
|
area: ['800px', '90%'],
|
|
|
title: '预约挂号',
|
|
|
content: '../../jbsc/html/appointment/appoint-select.html?patient=' + patient + '&callCode=' + callCode+'&surveyCode='+vm.resultCode
|
|
|
content: '../../jbsc/html/appointment/appoint-select.html?patient=' + patient + '&callCode=' + callCode + '&surveyCode=' + vm.resultCode
|
|
|
})
|
|
|
},
|
|
|
reScreening: function () {
|
|
@ -840,6 +837,39 @@
|
|
|
})
|
|
|
var index = top.layer.getFrameIndex(window.name) //先得到当前iframe层的索引
|
|
|
top.layer.close(index) //再执行关闭
|
|
|
},
|
|
|
messageWarn() {
|
|
|
var vm = this
|
|
|
var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
|
|
|
jbscAPI
|
|
|
.changeSurveyState({
|
|
|
surveyResultCode: this.resultCode, //问卷code
|
|
|
surveyStatus: 3, //surveyStatus =1 社区随访--已管理
|
|
|
doctorCode: docInfo.code //医生code
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
top.layer.msg('操作成功')
|
|
|
vm.getScreenResultDetail()
|
|
|
vm.closeMessageDialog()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
openMessageDialog() {
|
|
|
|
|
|
var vm = this
|
|
|
jbscAPI.getSignInfo({ idcard: this.userInfo.idcard }).then(function (res) {
|
|
|
vm.messageVisible = true
|
|
|
if (res.data) {
|
|
|
vm.messInfo.doctName = res.data.doctorName
|
|
|
} else {
|
|
|
vm.messInfo.doctName = ''
|
|
|
}
|
|
|
vm.$forceUpdate()
|
|
|
})
|
|
|
},
|
|
|
closeMessageDialog() {
|
|
|
this.messageVisible = false
|
|
|
}
|
|
|
}
|
|
|
})
|