Xiao_yanpeng 7 tahun lalu
induk
melakukan
fd44d0a2ee

+ 2 - 1
app/record/css/consultation.css

@ -5,9 +5,10 @@
.con-avatar+.con-user-info{padding-left: 68px;}
.article-title,.con-user-name{font-weight: 700;color: #333;font-size: 16px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.guidance-status,.con-status{position: absolute;right: 10px;top: -1px;}
.guidance-status:before,.con-status:before{content: '进行中';background: #ff9630;width: 26px;height: 58px;color: #fff;display: inline-block;line-height: 1.2;font-size: 13px;text-align: center;padding: 5px 5px 8px;border-bottom-left-radius: 13px;border-bottom-right-radius: 13px;}
.guidance-status:before,.con-status:before{content: '';width: 26px;height: 58px;color: #fff;display: inline-block;line-height: 1.2;font-size: 13px;text-align: center;padding: 5px 5px 8px;border-bottom-left-radius: 13px;border-bottom-right-radius: 13px;}
.guidance-status:before{padding-top: 12px;}
.con-status[data-status="1"]:before{content: '已结束';background: #c8c8c8;}
.con-status[data-status="0"]:before{content: '进行中';background: #fca701;}
.guidance-status[data-status="1"]:before{content: "未读";background: #fca701;}
.guidance-status[data-status="2"]:before{content: "已读";background: #12b7f5;}
.start-time{font-weight: 100;font-size: 14px;}

+ 1 - 1
app/record/css/follow-up.css

@ -5,7 +5,7 @@
.follow-up-doctor{font-weight: 700;color: #333;font-size: 16px;border-bottom: 1px solid #d7dce6;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;padding-left: 20px;height: 40px;line-height: 40px;margin-bottom: 0;padding-right: 10px;}
.follow-status{position: absolute;right: 10px;top: -1px;}
.follow-status:before{content: '';width: 26px;height: auto;color: #fff;display: inline-block;line-height: 1.2;font-size: 13px;text-align: center;padding: 5px 5px 8px;border-bottom-left-radius: 13px;border-bottom-right-radius: 13px;}
.follow-status[data-status="1"]:before{content: '已完成';background: #ccc;}
.follow-status[data-status="1"]:before{content: '已完成';background: #c8c8c8;}
.follow-status[data-status="2"]:before{content: '计划中';background: #19D5C5;}
.follow-status[data-status="3"]:before{content: '进行中';background: #fca701;}
.start-time{font-weight: 100;font-size: 14px;}

+ 4 - 0
app/record/html/census.html

@ -2,6 +2,10 @@
<html>
	<head>
		<meta charset="UTF-8">
		<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>统计</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/consultation.css" />

+ 2 - 1
app/record/html/consult-detail.html

@ -4,7 +4,8 @@
    <meta charset="utf-8">
    <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 http-equiv="Cache-Control" content="no-siteapp">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>咨询详情页</title>
    <link href="../../../css/bootstrap.min.css" rel="stylesheet">
    <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">

+ 4 - 0
app/record/html/consultation.html

@ -2,6 +2,10 @@
<html>
	<head>
		<meta charset="UTF-8">
		<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>咨询</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/consultation.css" />

+ 4 - 0
app/record/html/education.html

@ -2,6 +2,10 @@
<html>
	<head>
		<meta charset="UTF-8">
		<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>健康教育</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />

+ 4 - 0
app/record/html/follow-up.html

@ -2,6 +2,10 @@
<html>
	<head>
		<meta charset="UTF-8">
		<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>随访</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />

+ 4 - 0
app/record/html/guidance.html

@ -2,6 +2,10 @@
<html>
	<head>
		<meta charset="UTF-8">
		<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>健康指导</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/consultation.css" />

+ 4 - 0
app/record/html/record.html

@ -2,6 +2,10 @@
<html>
	<head>
		<meta charset="UTF-8">
		<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>服务记录</title>
		<link rel="shortcut icon" href="../../../favicon.ico">
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>

+ 9 - 4
app/record/html/toBeReserved.html

@ -2,22 +2,27 @@
<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 http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>代预约</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :to-be-reserved-data="list" @init-data="msgListView"></follow-list>
			<reserved-list :reserve-data="list"></reserved-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../component/record/toBeReserved-list.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js" ></script>
		<script src="../../../plugins/slimscroll/jquery.slimscroll.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js"></script>
		<script src="../../../component/record/toBeReserved-list.js"></script>
		<script src="../js/toBeReserved.js"></script>
	</body>
</html>

+ 6 - 6
app/record/js/record.js

@ -10,7 +10,8 @@ new Vue({
			{title:'统计',href:'../html/census.html'}
    ],
    teamName:null,
    patientCode:"ec7572875d27446cb4f067b13a85d72a",
//  patientCode:"ec7572875d27446cb4f067b13a85d72a",
    patientCode:"d2e1e4334485476391300f43ab69f8f7",
    activeidx: ""
  },
  mounted: function() {
@ -36,8 +37,11 @@ new Vue({
				//保存患者的团队信息
				vm.teamName = teams[0].name;
				window.localStorage.setItem("severPatientTeam",JSON.stringify(teams[0]))
				//缓存结束后才触发事件
				var query = GetRequest();
  			vm.activeidx = query.tabIdex || "0"
  		}else{
  			toastr.Error("获取团队信息失败")
  			toastr.error(res.msg)
  		}
  	})
  	//保存患者code
@ -46,12 +50,8 @@ new Vue({
		recordAPI.docInfo().then(function(res){
			if(res.status == 200){
				window.localStorage.setItem("severDocInfo",JSON.stringify(res.data))
			}else{
				toastr.Error("获取医生信息失败")
			}
		})
  	var query = GetRequest();
  	this.activeidx = query.tabIdex || "0"
  },
  methods:{
  	

+ 18 - 10
app/record/js/toBeReserved.js

@ -1,34 +1,42 @@
new Vue({
  el: '#app',
  data: {
  	total:1,//总页数
  	total:5,//总页数
  	currentPage:1,//当前页数
  	list:[]//列表集合
  	list:[],//列表集合
  	patient:null,
  	teamCode:null
  },
  methods:{
  	msgListView: function(page){
  		var vm=this;
  		if(page){
  			vm.currentPage=page;
  			var data = {patientCode:'ed57f0d34e11458db8540bb8c942ff4f',
					patient:'ed57f0d34e11458db8540bb8c942ff4f',
					teamCode:646,
					page:page,
					pagesize:10}
  			var data = {
  				patient:vm.patient,
					teamCode:vm.teamCode,
					pageIndex:page,
					pageSize:10
				}
  			recordAPI.toBeReservedList(data).then(function(res){
  				if(res.status==200){ 
					if(res.data.length){  						
						if(res.data.length>0){  						
  						vm.list=res.data;
  						$(".consultation-list").animate({scrollTop:0},0);//滚回顶部
  						$(".slimScrollBar").css('top',0);
  					}else{
  							top.toastr.info("啊喔!没有更多内容了");
  						top.toastr.info("没有更多内容了");
  					}
  				}else{
  					top.toastr.error(res.msg||("服务器返回状态码"+res.status));
  					top.toastr.error(res.msg);
  				}
  			})
  		}
  	}
  },
  mounted(){
  	this.patient = localStorage.getItem("severPatientCode");
  	this.teamCode = JSON.parse(localStorage.getItem("severPatientTeam")).id;
  	this.msgListView(this.currentPage);
  },
})

+ 18 - 19
component/record/toBeReserved-list.js

@ -1,4 +1,4 @@
Vue.component('follow-list', {
Vue.component('reserved-list', {
	template: `<ul class="consultation-list">
				<li class="consultation-list-item" @click="viewDetail(1)" v-for="(list,index) in toBeReservedList">
					<p class="follow-up-doctor"><span class="start-time pull-right">开始时间:{{list.czrq}}</span>随访医生:{{list.doctorName}}</p>
@ -10,37 +10,36 @@ Vue.component('follow-list', {
			</ul>`,
	data: function() {
		return {
			toBeReservedList: [{id:1,photo:'#',dname:'山东省地方',czrq:'2018-12-12 12:12:12',orgName:'xx医院',doctorName:'陈医生',deptName:'心理科室',startTime:'2018-12-12 12:12:12'}],
//			toBeReservedList: "",
			toBeReservedList: "",
			curPage:1
		}
	},
	props:["toBeReservedData"],
	props:["reserveData"],
	methods: {
		viewDetail:function(){
			top.layer.open({
		      type: 2,
		      maxmin: true,
		      area: ['1000px', '650px'],
		      shadeClose: true,
		      moveOut:true,
		      btn:'返回',
		      success: function(layero){
			  	layero.find('.layui-layer-btn').css({'text-align': 'center','border-top': '1px solid #ececec','padding-top': '7.5px'});
			  	layero.find('.layui-layer-btn').find('a').addClass("layui-btn").css({background: '#f96565',color: '#fff',width: '100px',border: 'none', height: '34px','line-height':'22px',padding: '6px 12px','font-size': '14px'});
			  },
		      content: '../html/lay_detail_reserved.html'
			    type: 2,
			    maxmin: true,
			    area: ['1000px', '650px'],
			    shadeClose: false,
			    moveOut:true,
			    btn:'返回',
			    success: function(layero){
				  	layero.find('.layui-layer-btn').css({'text-align': 'center','border-top': '1px solid #ececec','padding-top': '7.5px'});
				  	layero.find('.layui-layer-btn').find('a').addClass("layui-btn").css({background: '#f96565',color: '#fff',width: '100px',border: 'none', height: '34px','line-height':'22px',padding: '6px 12px','font-size': '14px'});
				},
			    content: '../html/lay_detail_reserved.html'
		   	});
//			top.layer.full(layerTop);
		}
		
	},
	watch:{
		followUpData:function(val){
			this.toBeReservedList=this.toBeReservedData;
		reserveData:function(){
			this.toBeReservedList = this.reserveData;
		}
	},
	mounted: function() {
		this.$emit('init-data', this.curPage);
		var divH = $("#tab-iframe",parent.document).height() - 75;
		$(".consultation-list").slimScroll({ height: divH,color: '#666'});
	}
})