123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847 |
- <!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 rel="stylesheet" type="text/css" href="../../../css/element-ui.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;
- line-height: 20px;
- height: 28px;
- }
- .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-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;
- }
- .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;
- }
- .el-dialog--center .el-dialog__body{
- text-align: center;
- }
- </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="userInfo.doctorName"></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="">{{userInfo.doctorHosptailName}}</div>
- </div>
- </div>
- </div>
- <div class="single-choice-question" v-loading="isloading">
- <div class="question-title">问卷题目</div>
- <div class="question-content">
- <ul class="question-list" v-for="(qst,key,index) in answer">
- <li v-if="qst.option">
- <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" />
- <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" />
- <i></i>
- <span v-text="opt.content"></span>
- </label>
- </div>
- <div class="daan-list" v-else>
- <textarea class="wenjuan-textarea" rows="2" v-model="qst.option.content"></textarea>
- </div>
- </li>
- </ul>
- </div>
- </div>
- <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>
- <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>
- <div class="answer-content">
- <p v-text="(result && result.advice) || userInfo.third_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>
- <template v-if="docInfo.level=='2'&&!userInfo.survey_status">
- <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))">
- <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'">
- <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>
- <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>
- <el-dialog title="提示" :visible.sync="centerDialogVisible" width="65%" center>
- <span>是否确认纳入社区进行管理</span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="centerDialogVisible = false">取 消</el-button>
- <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>
- </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>
- <script src="../../../js/element-ui.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'))
- var func_doctor = null,
- func_hospital = null
- new Vue({
- el: '#app',
- data: {
- centerDialogVisible: false,
- answer: [], //问卷
- userInfo: { is_again: 0 }, //用户信息
- result: [], //结果
- tizhongRecord: [],
- specialDoctorName: '',
- noTiZhong: true,
- doctorInfo: { code: wlyyAgent.uid },
- resultCode: httpData['resultCode'],
- isView: httpData['isView'] || false,
- dealAction: [],
- getScreenData:'',
- surveyResultCode:'',
- isloading:false,
- docInfo:JSON.parse(window.localStorage.getItem('docInfo')),
- jiayiShow:false,
- },
- 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()
- }
- })
- },
- 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
- })
- },
- //健康指导
- 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层的索引
- 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
- })
- },
- sqsf: function () {
- var vm = this
- vm.centerDialogVisible = true
- },
- 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
- 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 = 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
- }
- })
- }
- } 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
- }
- })
- }
- }
- }
- } else {
- }
- } 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 })
- var vm = this
- var patient = vm.userInfo.patient_code,
- callCode = ''
- // 如果是康复复诊过去预约挂号,在就诊信息页面少一个字段显示,1隐藏字段,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
- })
- },
- 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>
|