|
@@ -1,56 +1,51 @@
|
|
|
<template>
|
|
|
<div class="path-wrap">
|
|
|
<div class="content">
|
|
|
- <p class="info">挂号用户信息查询如下:</p>
|
|
|
- <div class="con">
|
|
|
- <p class="name">
|
|
|
- <span>{{pathInfo.patientName}}</span>|
|
|
|
- <span>{{pathInfo.patientSex}}</span>|
|
|
|
- <span>{{pathInfo.patientAge}}岁</span>
|
|
|
+ <div class="topContent">
|
|
|
+ <p class="hospitalName">{{pathInfo.hospitalName}}</p>
|
|
|
+ <h2>智能预问诊</h2>
|
|
|
+ <p class="explain">该系统通过智能引导式问诊,帮助医生规范、全面的采集患者的症状、体征、病史等信息,从而实现诊疗流程的优化和配置。</p>
|
|
|
+ </div>
|
|
|
+ <div class="minContent">
|
|
|
+ <p class="msg"><i class="person"></i>挂号信息</p>
|
|
|
+ <p class="perMsg perLine">
|
|
|
+ <span class="msgTitle">患者信息:</span>
|
|
|
+ <span class="perDetail">{{pathInfo.patientName}}</span>
|
|
|
+ <span class="perDetail">{{pathInfo.patientSex}}</span>
|
|
|
+ <span class="perDetail">{{pathInfo.patientAge}}岁</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <span>挂号科室:</span>
|
|
|
- <span>{{pathInfo.hospitalDeptName}}</span>
|
|
|
+ <p class="perLine">
|
|
|
+ <span class="msgTitle">挂号科室:</span>
|
|
|
+ <span>{{pathInfo.hospitalDeptName}}</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <span>门诊号:</span>
|
|
|
- <span>{{pathInfo.recordId}}</span>
|
|
|
- <span style="margin-left:.20rem">预约医生:</span>
|
|
|
+ <p class="perLine">
|
|
|
+ <span class="msgTitle">预约医生:</span>
|
|
|
<span>{{pathInfo.doctorName}}</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <span>预约时间:</span>
|
|
|
+ <p class="perLine">
|
|
|
+ <span class="msgTitle">门诊号:</span>
|
|
|
+ <span>{{pathInfo.recordId}}</span>
|
|
|
+ </p>
|
|
|
+ <p class="perLine">
|
|
|
+ <span class="msgTitle">预约时间:</span>
|
|
|
<span>{{time}}</span>
|
|
|
</p>
|
|
|
- <p class="already" v-if="type !== 1">{{text[type]}}</p>
|
|
|
</div>
|
|
|
- <div class="out-box">
|
|
|
- <div class="emery">
|
|
|
- <div class="baner">
|
|
|
- <p>{{pathInfo.hospitalName}}</p>
|
|
|
- <p class="big">智能预问诊</p>
|
|
|
- </div>
|
|
|
- <div class="inner">
|
|
|
- <p>该系统通过智能引导式问诊,帮助医生规范、全面的采集患者的症状、体征、病史等信息,从而实现诊疗流程的优化和配置。</p>
|
|
|
- <button @click="getStart">开始</button>
|
|
|
- </div>
|
|
|
- <!-- <p v-if="type==3">您已完成过一次预问诊,是否再次录入</p> -->
|
|
|
- </div>
|
|
|
- <div class="child" v-if="child.length>0&&child[0].value==1 && !hideChild">
|
|
|
- <div class="baner">
|
|
|
- <p>{{pathInfo.hospitalName}}</p>
|
|
|
- <p class="big">儿童体质检测</p>
|
|
|
- </div>
|
|
|
- <div class="inner">
|
|
|
- <p>该标准将为0-12岁儿童在为体质辨识及与中医体质相关疾病的预防、养生保健、健康管理提供依据,使体质分类科学化、规范化。</p>
|
|
|
- <button>开始</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="btmContent" @click="getStart">开始</div>
|
|
|
+ <div class="con">
|
|
|
+ <p class="already" v-if="type !== 1">{{text[type]}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <Toast
|
|
|
+ :message="message"
|
|
|
+ :show="showToast"
|
|
|
+ @comfirn="comfirnDel"
|
|
|
+ @cancel="cancelDel"
|
|
|
+ />
|
|
|
<Submit
|
|
|
v-if="submit"
|
|
|
- :fail="message"
|
|
|
+ :fail="tipMsg"
|
|
|
showType="fail"
|
|
|
></Submit>
|
|
|
</div>
|
|
@@ -58,6 +53,7 @@
|
|
|
<script type="text/javascript">
|
|
|
import api from '@utils/api.js'
|
|
|
import Submit from '../common/Submit';
|
|
|
+ import Toast from '../common/Toast.vue';
|
|
|
import {getUrlArgObject,setScroll,dateParser} from '@utils/tools.js'
|
|
|
import BScroll from 'better-scroll';
|
|
|
export default {
|
|
@@ -77,9 +73,11 @@
|
|
|
hideChild:true, //隐藏儿童
|
|
|
submit:false,
|
|
|
scroll:null,
|
|
|
- message:'',
|
|
|
+ tipMsg:'',
|
|
|
time:'',
|
|
|
- params:{}
|
|
|
+ params:{},
|
|
|
+ showToast:false,
|
|
|
+ message:'您已完成一次预问诊,是否重新录入?'
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -94,6 +92,12 @@
|
|
|
})
|
|
|
},
|
|
|
methods:{
|
|
|
+ comfirnDel() {
|
|
|
+ this.goNext()
|
|
|
+ },
|
|
|
+ cancelDel() {
|
|
|
+ this.showToast = false
|
|
|
+ },
|
|
|
getPathInfo(){
|
|
|
let query = this.$route.query
|
|
|
let hasQuery = JSON.stringify(query) == '{}'
|
|
@@ -121,7 +125,6 @@
|
|
|
if(result.code==0){
|
|
|
this.pathInfo = result.data;
|
|
|
this.$store.commit('savePathInfo',result.data);
|
|
|
- this.recordCheck(); //校验是否填过
|
|
|
this.getAll(); //获取模板
|
|
|
}
|
|
|
})
|
|
@@ -152,10 +155,23 @@
|
|
|
api.recordCheck(param).then((res)=>{
|
|
|
const result = res.data;
|
|
|
if(result.code==0){
|
|
|
- this.type = result.data.type;
|
|
|
+ let type = result.data.type;
|
|
|
+ this.goNext()
|
|
|
+ if(type == 3||type == 6){
|
|
|
+ this.showToast = true
|
|
|
+ }else{
|
|
|
+ this.goNext()
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ goNext(){
|
|
|
+ if(this.isReady){
|
|
|
+ this.$router.replace({path:'/tab'})
|
|
|
+ }else{
|
|
|
+ this.defaultWaring('请先维护症状模块')
|
|
|
+ }
|
|
|
+ },
|
|
|
getAll(){
|
|
|
const param = {
|
|
|
'age':this.pathInfo.patientAge,
|
|
@@ -181,16 +197,11 @@
|
|
|
this.defaultWaring('网络异常请稍后重试');
|
|
|
return
|
|
|
}
|
|
|
- if(this.isReady){
|
|
|
- // this.$router.push({path:'/tab'})
|
|
|
- this.$router.replace({path:'/tab'})
|
|
|
- }else{
|
|
|
- this.defaultWaring('请先维护症状模块')
|
|
|
- }
|
|
|
+ this.recordCheck(); //校验是否填过
|
|
|
},
|
|
|
defaultWaring(msg){
|
|
|
this.submit = true
|
|
|
- this.message = msg
|
|
|
+ this.tipMsg = msg
|
|
|
let timer = setTimeout(() => {
|
|
|
this.submit = false
|
|
|
clearTimeout(timer)
|
|
@@ -198,7 +209,8 @@
|
|
|
},
|
|
|
},
|
|
|
components:{
|
|
|
- Submit
|
|
|
+ Submit,
|
|
|
+ Toast
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -210,109 +222,90 @@
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
.content {
|
|
|
- padding-top: .5rem;
|
|
|
- padding-bottom: .2rem;
|
|
|
+ padding-bottom: .16rem;
|
|
|
box-sizing: border-box;
|
|
|
+ position: absolute;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
- .info{
|
|
|
- font-size: .32rem;
|
|
|
- font-weight: 700;
|
|
|
- color: #040428;
|
|
|
- margin-left: .6rem;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- .con{
|
|
|
- margin-left: .6rem;
|
|
|
- position: relative;
|
|
|
- >p{
|
|
|
- color: #colors[text];
|
|
|
- margin-top: .27rem;
|
|
|
+ .topContent {
|
|
|
+ // background-color: #6678FF;
|
|
|
+ height: 4.78rem;
|
|
|
+ padding: .72rem .6rem;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background:url(../images/topContent.png) no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ .hospitalName {
|
|
|
+ color: #FFFFFF;
|
|
|
+ font-size: .32rem;
|
|
|
}
|
|
|
- .name{
|
|
|
- color: #colors[text];
|
|
|
- margin-top: .27rem;
|
|
|
- span{
|
|
|
- margin-right: .08rem;
|
|
|
- }
|
|
|
+ h2 {
|
|
|
+ font-size: .56rem;
|
|
|
+ padding: .36rem 0 .18rem 0;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
- .dept{
|
|
|
- p{
|
|
|
- display: inline-block;
|
|
|
- margin-top: .27rem;
|
|
|
- span{
|
|
|
- color: #colors[text];
|
|
|
- }
|
|
|
- }
|
|
|
- p:first-child{
|
|
|
- margin-right: .25rem;
|
|
|
- }
|
|
|
+ .explain {
|
|
|
+ font-size: .24rem;
|
|
|
+ color: #fff;
|
|
|
+ line-height: .4rem;
|
|
|
}
|
|
|
- .already{
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- bottom:-.6rem;
|
|
|
- color: #colors[text];
|
|
|
- }
|
|
|
- }
|
|
|
- .out-box{
|
|
|
- white-space: nowrap;
|
|
|
- overflow-x: auto;
|
|
|
- padding:0 .15rem .15rem 0;
|
|
|
- -webkit-overflow-scrolling: touch;
|
|
|
- text-align: center;//隐藏儿童
|
|
|
}
|
|
|
- .emery,.child{
|
|
|
- display: inline-block;
|
|
|
- vertical-align: top;
|
|
|
- width:5.1rem;
|
|
|
- margin-top: .91rem;
|
|
|
+ .minContent {
|
|
|
+ padding: .3rem .6rem .6rem .6rem;
|
|
|
box-sizing: border-box;
|
|
|
- .baner{
|
|
|
- box-sizing: border-box;
|
|
|
- width:100%;
|
|
|
- height: 2.3rem;
|
|
|
- padding-top: .5rem;
|
|
|
- p{
|
|
|
- color:#fff;
|
|
|
- }
|
|
|
- .big{
|
|
|
- font-size: .56rem;
|
|
|
- margin-top: .12rem;
|
|
|
+ border-radius: 5px;
|
|
|
+ width: 90%;
|
|
|
+ box-shadow:0px 12px 24px 0px rgba(198,187,224,0.15);
|
|
|
+ position: relative;
|
|
|
+ top: -0.7rem;
|
|
|
+ background-color: #fff;
|
|
|
+ margin: 0 auto;
|
|
|
+ .msg {
|
|
|
+ font-size: .32rem;
|
|
|
+ padding-bottom: .28rem;
|
|
|
+ border-bottom: 1px solid #E6E6E6;
|
|
|
+ margin-bottom: .6rem;
|
|
|
+ .person {
|
|
|
+ display: inline-block;
|
|
|
+ width: .38rem;
|
|
|
+ height: .4rem;
|
|
|
+ background: url(../images/person.png) no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ margin-right: .3rem;
|
|
|
+ position: relative;
|
|
|
+ top: .06rem;
|
|
|
}
|
|
|
}
|
|
|
- .inner{
|
|
|
- height: 4.5rem;
|
|
|
- box-shadow:-.05rem .05rem .10rem -.04rem #989da3,.05rem .05rem .10rem -.04rem #989da3;
|
|
|
- border-radius: 0 0 .20rem .20rem;
|
|
|
- padding: .45rem .6rem .6rem;
|
|
|
- box-sizing: border-box;
|
|
|
- position: relative;
|
|
|
- p{
|
|
|
- font-size: .24rem;
|
|
|
- line-height: .5rem;
|
|
|
- white-space: normal;
|
|
|
- min-height: 100px;
|
|
|
- }
|
|
|
- button{
|
|
|
- width: 4rem;
|
|
|
- height: .88rem;
|
|
|
- color: #fff;
|
|
|
- font-size: .32rem;
|
|
|
- margin: .40rem 0 0 -.05rem;
|
|
|
- background: -webkit-gradient(linear, right top, left top, from(#4F8BFF), to(#4F4FFF));
|
|
|
- background: -webkit-linear-gradient(right, #4F8BFF, #4F4FFF);
|
|
|
- box-shadow: 0 .12rem .24rem 0 rgba(79,129,255,0.40);
|
|
|
- border-radius: .44rem;
|
|
|
+ .perLine {
|
|
|
+ font-size: .3rem;
|
|
|
+ padding-bottom: .2rem;
|
|
|
+ }
|
|
|
+ .msgTitle {
|
|
|
+ display: inline-block;
|
|
|
+ width: 1.5rem;
|
|
|
+ color: #777777;
|
|
|
+ }
|
|
|
+ .perMsg {
|
|
|
+ .perDetail {
|
|
|
+ margin-right: .24rem;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
- .emery .baner{
|
|
|
- background: url('../images/banerbg@1.5x.png') no-repeat;
|
|
|
- background-size: cover;
|
|
|
- }
|
|
|
- .child .baner{
|
|
|
- background: url('../images/childbg@1.5x.png') no-repeat;
|
|
|
- background-size: cover;
|
|
|
+ .btmContent {
|
|
|
+ width: 94%;
|
|
|
+ height: .88rem;
|
|
|
+ line-height: .88rem;
|
|
|
+ text-align: center;
|
|
|
+ background-color: #colors[btn];
|
|
|
+ font-size: .32rem;
|
|
|
+ color: #fff;
|
|
|
+ margin: 0 auto;
|
|
|
+ border-radius: 5px;
|
|
|
+ position: absolute;
|
|
|
+ bottom: .88rem;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ left: 50%;
|
|
|
}
|
|
|
}
|
|
|
</style>
|