yht2016 4 лет назад
Родитель
Сommit
88841a01d6

+ 2 - 2
app/rehabilitation/css/rehabilitation_management.css

@ -92,7 +92,7 @@ html,
}

.task-list li {
	width: 90px;
	min-width: 90px;
	cursor: pointer;
	text-align: center;
	display: block;
@ -103,7 +103,7 @@ html,
	margin-bottom: 20px;
	color: #333333;
	border: solid 1px #d7dce6;
	padding: 3px;
	padding: 3px 8px;
}

.task-list li.active {

+ 9 - 5
app/rehabilitation/html/rehabilitation_management.html

@ -67,7 +67,7 @@
					<a class="icon icon-back icon-16 mr10" href="javascript:history.back();"></a><i class="icon icon-shuaxin icon-16" @click="refreshPage"></i>
				</div>
				<div v-if="!showServerItemDetail" class="flex-box-item text-center" flex-grow="5">
					<!-- <div class="div-kuaisu-task" @click="changeSearch(1)" v-show="tabStatus!=3">快速找任务</div> -->
					<div class="div-kuaisu-task" @click="changeSearch(1)" v-show="tabStatus!=3">快速找任务</div>
					<div class="pull-right switch-list" v-show="tabStatus!=3">
						<span class="rili" :class="{active:(tabStatus==1)}" @click="tabStatus=1"><i class="icon icon-rili icon-20"></i></span>
						<span class="shijianzhou" :class="{active:(tabStatus==2)}" @click="tabStatus=2"><i class="icon icon-liebiao icon-20"></i></span>
@ -80,15 +80,15 @@
					<div class="search-condition">
						<p>快速找任务</p>
						<ul class="task-list">
							<li :class="{'active':(searchTask==task.code)}" v-for="task in taskArr" @click="changeTask(task)">{{task.name}}</li>
							<li :class="{'active':(searchTask===task.code)}" v-for="task in taskArr" @click="changeTask(task)">{{task.name}}</li>
						</ul>
						<p>任务状态</p>
						<ul class="task-list">
							<li :class="{'active':(status==sts.code)}" v-for="sts in statusArr" @click="changeStatus(sts.code)">{{sts.name}}</li>
							<li :class="{'active':(status===sts.code)}" v-for="sts in statusArr" @click="changeStatus(sts)">{{sts.name}}</li>
						</ul>
					</div>
					<div class="text-center">
						<button class="btn btn-search" @click="goToLoadData">确认</button>
						<button class="btn btn-search" @click="confirmSearch">确认</button>
					</div>
				</div>
				<div class="ui-grid c-h100">
@ -175,7 +175,7 @@
							</div>
							<!--快速查找-->
							<div class="ui-col-1 c-border-t" style="overflow: hidden; overflow-y: scroll;" v-if="isFastSearch">
								<div class="calendar-days" v-for="searchData1 in searchData">
								<div v-if="searchData.length>0" class="calendar-days" v-for="searchData1 in searchData">
                                    <div v-for="items in searchData1" class="flex-box clearfix">
                                    	<div class="fl flex-box calendar-day c-fff c-f28 bgc-2dbe55">
                                    		<p class="p0">{{items[0].mounth}}月</p>
@ -205,6 +205,10 @@
		                                </div>
		                            </div>
		                       </div>
								<div v-else class="f16 ptb10 text-center">
									<img src="../../../images/wushuju_img.png"  class="mt50"/>
									<p class="c-666">暂无数据</p>
								</div>
							</div>
							<!--无快速查找-->
							<div class="ui-col-1" style="overflow: hidden; overflow-y: scroll;" v-if="!isFastSearch">

+ 15 - 19
app/rehabilitation/js/rehabilitation_management.js

@ -48,23 +48,14 @@
			__Data:[],//当前的年月(日历)
			__xData:[],//当前的年月(时间轴)
			isFastSearch: false, // 是否是快速查找任务
			status:null,//任务状态(0未完成,1已完成,2已预约)
			searchTask:null,//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
			searchTaskName:null,//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
			status: '',//任务状态(0未完成,1已完成,2已预约)
			searchTask: '',//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
			searchTaskName: '全部',//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
			planId: httpData['planId'],
			patientCode: httpData['patientCode'],
			taskArr:[
				{code:1,name:'我的任务'},
				{code:2,name:'健康教育'},
				{code:3,name:'健康指导'},
				{code:4,name:'随访'},
				{code:5,name:'复诊'},
			],
			statusArr:[
				{code:0,name:'未完成'},
				{code:1,name:'已完成'},
				{code:2,name:'已预约'},
			],
			taskArr:[{code:"",name:"全部"},{code:2,name:"康复咨询"},{code:4,name:"上门服务"},{code:1,name:"电话/短信关怀"},{code:3,name:"健康监测"},{code:5,name:"康复指导"},
        		{code:6,name:"康复随访"},{code:7,name:"康复复诊"}],        
        	statusArr:[{code:"",name:"全部"},{code:0,name:"未完成"},{code:1,name:"已完成"},{code:2,name:"已预约"}],
			curTask:'',//快速查找是否点击了搜索按钮
			curTaskName:'',//快速查找是否点击了搜索按钮
			tabStatus:null,
@ -263,11 +254,12 @@
				});
			},
			changeStatus:function(val){
				this.status=this.status==val?null:val;
				this.status=val.code;
				console.log('this.status', this.status)
			},
			changeTask:function(val){
				this.searchTask=this.searchTask==val.code?null:val.code;
				this.searchTaskName=this.searchTaskName==val.name?null:val.name;
				this.searchTask=val.code;
				this.searchTaskName=val.name;
			},
			monDetail:function(){
			  this.currentDay = this.ynow + '年'+ (this.mnow + 1) +'月';
@ -413,7 +405,7 @@
				var __days=vm.__Data;
				var lastDay=(__days.concat()).pop().day;
				lastDay=lastDay>9?lastDay:'0'+lastDay;
				if(vm.searchTask || vm.status || vm.status == 0) {
				if(vm.searchTask != '' || vm.status != '') {
					vm.isFastSearch = true
				} else {
					vm.isFastSearch = false
@ -684,6 +676,10 @@
					[7, 4]
				][index];
			},
			confirmSearch: function(){
				this.changeSearch(-1)
				this.goToLoadData(true)
			},
			changeSearch: function(status) {
				var i = status == 1 ? -400 : 0;
				var timer1 = setInterval(function() {