liuyuanhang 4 سال پیش
والد
کامیت
8c849260eb
2فایلهای تغییر یافته به همراه28 افزوده شده و 23 حذف شده
  1. 1 1
      pages/conversation/call.vue
  2. 27 22
      pages/scheduling/month_Scheduling.vue

+ 1 - 1
pages/conversation/call.vue

xqd
@@ -72,7 +72,7 @@
 						for (let k = 0; k < res.data.length; k++) {
 							this.list.push({
 								time: res.data[k].time,
-								duration: this.getDuration(6524),
+								duration: this.getDuration(res.data[k].talk_time),
 								order: res.data[k].order_sn
 							})
 						}

+ 27 - 22
pages/scheduling/month_Scheduling.vue

xqd
@@ -190,33 +190,38 @@
 				console.log(this.saveDay)
 				if (this.saveDay != 0) {
 					if (this.hospitalID != 0) {
-						if (this.saveDayType.mon == this.hospitalID) {
-							SaveLists.push(1)
-						} else if (this.saveDayType.mon == 0) {
-							SaveLists.push(0)
-						}
-						if (this.saveDayType.aft == this.hospitalID) {
-							SaveLists.push(2)
-						} else if (this.saveDayType.aft == 0) {
-							SaveLists.push(0)
-						}
-						if (this.saveDayType.nig == this.hospitalID) {
-							SaveLists.push(3)
-						} else if (this.saveDayType.nig == 0) {
-							SaveLists.push(0)
-						}
-						if (SaveLists.length != 0) {
-							let s = SaveLists.join(",");
+						// if (this.saveDayType.mon == this.hospitalID) {
+						// 	SaveLists.push(1)
+						// } else if (this.saveDayType.mon == 0) {
+						// 	SaveLists.push(0)
+						// }
+						// if (this.saveDayType.aft == this.hospitalID) {
+						// 	SaveLists.push(2)
+						// } else if (this.saveDayType.aft == 0) {
+						// 	SaveLists.push(0)
+						// }
+						// if (this.saveDayType.nig == this.hospitalID) {
+						// 	SaveLists.push(3)
+						// } else if (this.saveDayType.nig == 0) {
+						// 	SaveLists.push(0)
+						// }
+						
+						// if (SaveLists.length != 0) {
+						if(this.saveDayType.length!=0){
+							
+							// let s = SaveLists.join(",");
+							let s = this.saveDayType;
+							if(typeof s=='object'){
+							 s = JSON.stringify(s);
+							}
 							let tj = {
 								'schedule_date': SaveDate.date,
 								'week': SaveDate.week,
 								'type': s,
 								'organization_id': this.hospitalID,
-							}
-							console.log("提交时间的数组",tj);
-							// if(typeof tj=='object'){
-							//  tj = JSON.stringify(tj);
-							// }
+							}
+						
+							
 							let res = await this.$request.post("doctor/saveDay", tj);
 							if (res.status == 0) {
 								uni.showToast({