Xiao_yanpeng 7 lat temu
rodzic
commit
c7d7b3ebd9

+ 1 - 1
api/record-api.js

@ -22,7 +22,7 @@
            return httpRequest.get('doctor/consult/loglist',{data:data});
        },
        getMembers: function(sessionId){
            return httpRequest.imGet('/sessions/'+sessionId+'/participants');
            return httpRequest.imHttpGet('/sessions/'+sessionId+'/participants');
        },
        //取当前医生的sessionId
        getSessionId:function(data){

+ 9 - 0
app/record/css/consulting.css

@ -13,6 +13,15 @@
    margin-top: 6px;
    margin-bottom: 6px;
}
#talkBox:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
    padding-bottom: 15px;
}
p{
    margin-top: 6px;
    margin-bottom: 6px;

+ 1 - 1
app/record/html/tpl_follow_detail/js/education.js

@ -18,6 +18,6 @@ new Vue({
				}
			}
		})
  	$("#textarea").slimScroll({width:'100%',height: '390px',color: '#666'});
  	$("#textarea").slimScroll({width:'100%',height: '385px',color: '#666'});
  }
})

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

@ -1,7 +1,7 @@
new Vue({
  el: '#app',
  data: {
  	total:20,//总页数
  	total:'',//总页数
  	currentPage:1,//当前页数
  	list:[],//列表集合
  	patient:null,
@ -20,7 +20,11 @@ new Vue({
  			}
  			recordAPI.consultList(data).then(function(res){
  				if(res.status==200){ 
						if(res.data.length>0){  						
						if(res.data.length>0){  
							//初始赋总数
							if(page == 1){
								vm.total = Math.ceil(res.data[0].total/10);
							}
  						vm.list=res.data;
  						$(".consultation-list").animate({scrollTop:0},0);//滚回顶部
  						$(".slimScrollBar").css('top',0);

+ 1 - 1
app/record/js/education-detail.js

@ -21,7 +21,7 @@ new Vue({
	  	Promise.all([promise1, promise2]).then(function(datas){
			var detail = datas[0]
			var content = detail.articleContent
			detail.articleContent = content.split('group1/M00').join(httpRequest.imgUrlDomain+'group1/M00')
			detail.articleContent = content.split('group1/M00').join(httpRequest.imgServer+'group1/M00')
			//优先级
			detail.articleleveName = _.find(datas[1],function(item){return item.code == detail.articlelevel;}).codeName
			//使用范围

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

@ -1,7 +1,7 @@
new Vue({
  el: '#app',
  data: {
  	total:1,//总页数
  	total:'',//总页数
  	currentPage:1,//当前页数
  	list:[],//列表集合
  	patient:null,
@ -20,7 +20,11 @@ new Vue({
				}
  			recordAPI.educationList(data).then(function(res){
  				if(res.status==200){ 
					if(res.data.length){  						
					if(res.data.length>0){
							//初始赋总数
							if(page == 1){
								vm.total = Math.ceil(res.data[0].total/10);
							}
  						vm.list=res.data;
  						$(".consultation-list").animate({scrollTop:0},0);//滚回顶部
  						$(".slimScrollBar").css('top',0);

+ 5 - 1
app/record/js/follow-up.js

@ -1,7 +1,7 @@
new Vue({
  el: '#app',
  data: {
  	total:3,//总页数
  	total:'',//总页数
  	currentPage:1,//当前页数
  	list:[],//列表集合
  	patient:null,
@ -21,6 +21,10 @@ new Vue({
  				if(res.status==200){ 
						if(res.data.length>0){  						
  						vm.list=res.data;
  						//初始赋总数
							if(page == 1){
								vm.total = Math.ceil(res.data[0].total/10);
							}
  						$(".followup-list").animate({scrollTop:0},0);//滚回顶部
  						$(".slimScrollBar").css('top',0);
  					}else{

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

@ -1,7 +1,7 @@
new Vue({
  el: '#app',
  data: {
  	total:1,//总页数
  	total:'',//总页数
  	currentPage:1,//当前页数
  	list:[],//列表集合
  	patient:null,
@ -20,7 +20,11 @@ new Vue({
				}
  			recordAPI.guidanceList(data).then(function(res){
  				if(res.status==200){
  					if(res.data.length){  						
  					if(res.data.length>0){ 
  						//初始赋总数
							if(page == 1){
								vm.total = Math.ceil(res.data[0].total/10);
							}
  						vm.list=res.data;
  						$(".consultation-list").animate({scrollTop:0},0);//滚回顶部
  						$(".slimScrollBar").css('top',0);

+ 4 - 2
app/record/js/record.js

@ -10,12 +10,14 @@ new Vue({
			{title:'统计',href:'../html/census.html'}
    ],
    teamName:null,
    patientCode:"915cdb86-5b1d-11e6-8344-fa163e8aee56",// ec7572875d27446cb4f067b13a85d72a
//  patientCode:"d2e1e4334485476391300f43ab69f8f7",
//  patientCode:"",
    patientCode:"ec7572875d27446cb4f067b13a85d72a",
    activeidx: ""
  },
  mounted: function(){
  	var vm = this;
//	var Request = GetRequest();
//	vm.patientCode = Request["patient"]
  	recordAPI.teamInfo({patient:vm.patientCode}).then(function(res){
  		if(res.status == 200){
  			var data = res.data,teams = [];

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

@ -1,7 +1,7 @@
new Vue({
  el: '#app',
  data: {
  	total:1,//总页数
  	total:'',//总页数
  	currentPage:1,//当前页数
  	list:[],//列表集合
  	patient:null,
@ -20,7 +20,11 @@ new Vue({
				}
  			recordAPI.toBeReservedList(data).then(function(res){
  				if(res.status==200){ 
						if(res.data.length>0){  						
						if(res.data.length>0){
							//初始赋总数
							if(page == 1){
								vm.total = Math.ceil(res.data[0].total/10);
							}
  						vm.list=res.data;
  						$(".consultation-list").animate({scrollTop:0},0);//滚回顶部
  						$(".slimScrollBar").css('top',0);

+ 14 - 10
component/record/follow-up-list.js

@ -1,6 +1,6 @@
Vue.component('follow-list', {
	template: `<ul class="followup-list">
				<li v-for="(list,index) in followUpList" class="consultation-list-item" @click="viewDetail(list.id)">
				<li v-for="(list,index) in followUpList" class="consultation-list-item" @click="viewDetail(list)">
					<p class="follow-up-doctor"><span class="start-time pull-right">开始时间:{{list.createTime}}</span>随访医生:{{list.doctorName}}<span v-if="list.prescriptionCode" class="fu-tag">长处方</span></p>
					<div class="follow-user-info">
						<span class="follow-status" :data-status="list.status" desc="3进行2计划中1完成"></span>
@ -18,15 +18,19 @@ Vue.component('follow-list', {
	},
	props:["followUpData"],
	methods: {
		viewDetail: function(id) {
			top.layer.open({
		      type: 2,
		      maxmin: true,
		      title:"随访详情",
		      area: ['800px', '600px'],
		      shadeClose: false,
		      content: '../html/lay_followUp_detail.html?id='+id
		    });
		viewDetail: function(list) {
			if(list.status == 1){
				top.layer.open({
			      	type: 2,
			      	maxmin: true,
			      	title:"随访详情",
			      	area: ['800px', '600px'],
			      	shadeClose: false,
			     	content: '../html/lay_followUp_detail.html?id='+list.id
			    });
			}else{
				top.toastr.warning("请在手机上完成随访才能查看详情")
			}	
		}
	},
	watch:{