Ver código fonte

提交修改:排班和电话咨询

liuyuanhang 4 anos atrás
pai
commit
e0228c9356
2 arquivos alterados com 30 adições e 6 exclusões
  1. 29 5
      pages/old_Scheduling.vue
  2. 1 1
      pages/zixun/xiangqing.vue

+ 29 - 5
pages/old_Scheduling.vue

xqd xqd xqd
@@ -109,10 +109,7 @@
 				let endtime = times[1];
 				let weekArr = this.getDateStr(startime, endtime, 0);
 			
-				let res = await this.$request.post("doctor/getLinsDetail", {
-					'start_date': startime,
-					'end_date': endtime
-				});
+				
 				console.log(res);
 				
 				
@@ -142,6 +139,32 @@
 			},
 			
 			
+			getTimeList:async function(){
+				let res = await this.$request.post("doctor/getLinsList");
+				if(res.status==0){
+					if(res.data.service!=0){
+						let times = res.data.service.created_at.substring(0,10);
+						times = times.split('-');
+	
+						this.getweek(times[0],times[1],times[2]);
+					}
+					
+					if(res.data.list.length!=0){
+						let leng = this.oldlist.length;
+						let lists = res.data.list;
+						for(let i=0;i<lists.length;i++){
+							console.log('开始时间L',(lists[i].start_time.schedule_date).replace(/-/g,"/"))
+							this.oldlist.push({
+								label:(lists[i].start_time.schedule_date).replace(/-/g,"/") + "-" + (lists[i].end_time.schedule_date).replace(/-/g,"/"),
+								value: leng+1
+							})
+						}
+					}
+				}
+				console.log(res);
+			},
+			
+			
 			getTemplate: async function(startTime,endTime) {
 				let that = this;
 				// let startTime = '2020-' + that.hospitalWeek[0].value;
@@ -393,8 +416,9 @@
 			// let startTime = '2020-' + '11-30';
 			// let endTime = '2020-' + that.hospitalWeek[6].value;
 			// let endTime = '2020-' + '12-07';
-			this.getweek(2020,10,15);
+			// this.getweek(2020,10,15);
 			this.getTime();
+			this.getTimeList();
 			// this.getTemplate(startTime,endTime)
 		},
 	}

+ 1 - 1
pages/zixun/xiangqing.vue

xqd
@@ -316,7 +316,7 @@
 			    },
 			//
 			phone:async function(){
-				let res = await this.$request.post("patient/callPhones",{'patient_id':this.patient_id,'user_id':this.user_id});
+				let res = await this.$request.post("patient/callPhones",{'order_id':this.orderID,'user_id':this.user_id});
 				if(res.status==0){
 					let phone = res.data;
 					// 去拨打电话即可