瀏覽代碼

完成新增按钮

yingzhou 6 年之前
父節點
當前提交
11dd3fe36a

+ 76 - 0
app/rehabilitation/html/guide_the_message.html

@ -123,6 +123,14 @@
		      				<div class="f14 c-333">{{item.content}}</div>
	      				</div>
	      			</div>
	      			<div class="flex-box btns-group" v-if="service.isMyTask==1 || service.isZD">
	      				<button class="btn btn-yuyue" v-if="service.reserve==1" @click="qwapp">转诊预约</button>
	      				<button class="btn btn-yuyue" v-if="service.itemType==2 && service.operate!=1" @click="jkjy(service.patient,service.planDetaiId)">健康教育</button>
	      				<button class="btn btn-yuyue" v-if="service.itemType==3 && service.operate!=1" @click="jkzd(service.planDetaiId,service.patient)">健康指导</button>
	      				<button class="btn btn-yuyue" v-if="service.itemType==4 && service.operate!=1" @click="zwkf">随访</button>
	      				<button class="btn btn-zhidao" @click="zdly(service)" v-if="service.isZD">指导留言</button>
	      				<button class="btn btn-zhidao" @click="zdly(service)" v-if="service.isCK">查看留言</button>
	      			</div>
	      		</div>
	      		<div class="complete-info pt10">
	      			<div class="complete-title">完成情况</div>
@ -193,6 +201,45 @@
						this.getServiceItem();
					},
					methods:{
						zwkf:function(){
							top.layer.msg('此功能暂未开放',{icon:1});
						},
						jkjy:function(patient,planId){
							var vm=this
							top.layer.open({
								type: 2,
								//				  offset: ['100px'], //右下角弹出
								area: ['800px', '648px'],
								shade: 0.5,
								title: '健康教育',
								fixed: true, //不固定
								maxmin: true,
								closeBtn: 1,
								shift: 5,
								shadeClose: false, //点击遮罩关闭层
								content: '../../article/html/article.html?code='+patient+'&planId='+planId+'&isReha=true'
							});
						},
						//						健康指导
						jkzd:function(patient,planId){
							var vm=this
							top.layer.open({
								type: 2,
								//				  offset: ['100px'], //右下角弹出
								area: ['800px', '648px'],
								shade: 0.5,
								title: '健康教育',
								fixed: true, //不固定
								maxmin: true,
								closeBtn: 1,
								shift: 5,
								shadeClose: false, //点击遮罩关闭层
								content:'../../guidance/html/index.html#/person-edit-panel?patient='+patient+'&planId='+planId
							});
						},
						qwapp:function(){
							top.layer.msg('请前往app处理',{icon:5});    
						},
						getServiceItem:function(){
							var vm=this;
							var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
@ -205,6 +252,35 @@
								}
							})
						},
						zdly:function(data){
							var vm = this
							var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent'));
							var otherCode,otherName;
							var planDetailId=data.planDetaiId;
							if(loginDoctor.doctorType==1){
								otherCode=data.familyDoctorCode;
								otherName=data.familyDoctorName;
							}else{
								otherCode=data.specialistDoctorCode;
								otherName=data.specialistDoctorName;
							}
							top.layer.open({
							  type: 2,
			//				  offset: ['100px'], //右下角弹出
							  area: ['800px', '650px'],
							  shade: 0.5,
							  title: '指导留言',
							  fixed: true, //不固定
							  maxmin: true,
							  closeBtn:1,
							  shift: 5,
							  shadeClose: false, //点击遮罩关闭层
							  content: '../../consulting/html/consulting.html?otherCode='+otherCode+'&otherName='+encodeURI(otherName)+'&planDetailId='+planDetailId,
							  end:function(){ // 未点击确定按钮,点击关闭按钮  
						      vm.getServiceItemList();
						    }
							});
						},
						deleteImg:function(idx){
							console.log(idx)
							this.upImgs.splice(idx,1)

+ 17 - 2
app/rehabilitation/html/rehabilitation_management.html

@ -234,7 +234,7 @@
								</td>
								<td class="executor">{{item.doctor_name}}</td>
								<td class="place-of-execution">{{item.hospital_name}}</td>
								<td class="view-task" @click="viewDetail(item.id)">查看</td>
								<td class="view-task" @click="viewDetail(item.id,item.status)">查看</td>
								<td class="task-status">{{item.status==0?'未完成':(item.status==1?'已完成':'已预约')}}</td>
							</tr>
							<tr v-if="!timeAxisData.length">
@ -300,11 +300,26 @@
							}
							this.goToLoadData(true);
						},
						viewDetail:function(planids){
						viewDetail:function(planids,status){
							if(!planids){
								layer.msg('无服务项',{icon:5})
								return ;
							}
							if(status==1){
								top.layer.open({
								  type: 2,
								  area: ['600px', '650px'],
								  shade: 0.5,
								  title: '完成项目确认',
								  fixed: true, //不固定
								  maxmin: true,
								  closeBtn:1,
								  shift: 5,
								  shadeClose: false, //点击遮罩关闭层
								  content: '../../rehabilitation/html/guide_the_message.html?planid='+planids
								});
								return ;
							}
//							planids='402803f6657f195301657f4c4ce70000';
							layer.open({
							  type: 2,

+ 1 - 1
app/rehabilitation/html/service_item_content.html

@ -184,7 +184,7 @@
											if(loginDoctor.doctorType!=1){//说明是家医
												o.isCK=true;//无法显示按钮
											}else{//专科
												o.isCK=true;
												o.isCK=false;
											}
										}else{
											if(loginDoctor.doctorType==o.specialistDoctorCode){//说明我自己是创建者