渣渣宝 4 tahun lalu
induk
melakukan
81526fc5fe
3 mengubah file dengan 24 tambahan dan 16 penghapusan
  1. 10 3
      pages/patient/patientxq.vue
  2. 1 1
      pages/scheduling/month_Scheduling.vue
  3. 13 12
      pages/service/more.vue

+ 10 - 3
pages/patient/patientxq.vue

xqd xqd xqd xqd
@@ -221,8 +221,8 @@
 				//头像路径
 				img: 'https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png',
 				//名字
-				name: '渣渣宝',
-				bz: '备注备注备注备注',
+				name: '用户名',
+				bz: '备注',
 				user_id: 0,
 				//已购服务
 				tclist: [],
@@ -239,7 +239,7 @@
 			}
 		},
 		onLoad(options) {
-			console.log(options.id);
+			console.log("ID",options.id);
 			this.detailres(options.id)
 			this.getguanzhu();
 		},
@@ -304,9 +304,11 @@
 			},
 			detailres: async function(e) {
 				let idXq = e
+				console.log("给接口的ID",e)
 				let res = await this.$request.post("doctor/userListDetile", {
 					user_id: idXq
 				})
+				console.log("请求接口后数据",res)
 				if (res.status == 0) {
 					let user_arr = res.data.user_arr
 					this.user_id = user_arr.id
@@ -322,6 +324,11 @@
 
 					// tclist渲染服务包
 					this.tclist = res.data.fuwu_arr
+				}else{
+					uni.showLoading({
+						title:"请求失败",
+						icon:'none'
+					})
 				}
 
 			},

+ 1 - 1
pages/scheduling/month_Scheduling.vue

xqd
@@ -529,7 +529,7 @@
 				var seperator = "-";
 				// 最后拼接字符串,得到一个格式为(yyyy-MM-dd)的日期
 				var nowDate = date.getFullYear() + seperator + nowMonth + seperator + strDate
-				if (this.getimePate(nowDate) > this.getimePate(this.monthList[index].date)) {
+				if (this.getimePate(nowDate) >= this.getimePate(this.monthList[index].date)) {
 					uni.showModal({
 						title: '只能修改今天之后的数据!'
 					})

+ 13 - 12
pages/service/more.vue

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -25,7 +25,7 @@
 				</view>
 				<!-- 右 -->
 				<view class="right">
-					<u-input v-model="form.is_phone.base_price" type="digit" :border="true" placeholder="请输入金额" />
+					<u-input v-model="form.is_phone.base_price" type="number" :border="true" placeholder="请输入金额" />
 				</view>
 			</view>
 			<!-- 步进价格 -->
@@ -37,7 +37,7 @@
 				</view>
 				<!-- 右 -->
 				<view class="right">
-					<u-input v-model="form.is_phone.step_price" type="digit" :border="true" placeholder="请输入金额" />
+					<u-input v-model="form.is_phone.step_price" type="number" :border="true" placeholder="请输入金额" />
 				</view>
 			</view>
 			<!-- 服务时间 -->
@@ -92,7 +92,7 @@
 				</view>
 				<!-- 右 -->
 				<view class="right">
-					<u-input v-model="form.is_phone.person" type="digit" :border="true" placeholder="请输入人次" />
+					<u-input v-model="form.is_phone.person" type="number" :border="true" placeholder="请输入人次" />
 				</view>
 			</view>
 
@@ -115,7 +115,7 @@
 				</view>
 				<!-- 右 -->
 				<view class="right">
-					<u-input v-model="form.is_chat.base_price" type="digit" :border="true" placeholder="请输入金额" />
+					<u-input v-model="form.is_chat.base_price" type="number" :border="true" placeholder="请输入金额" />
 				</view>
 			</view>
 			<!-- 服务时间 -->
@@ -167,7 +167,7 @@
 				</view>
 				<!-- 右 -->
 				<view class="right">
-					<u-input v-model="form.is_chat.person" type="digit" :border="true" placeholder="请输入人次" />
+					<u-input v-model="form.is_chat.person" type="number" :border="true" placeholder="请输入人次" />
 				</view>
 			</view>
 		</view>
@@ -193,7 +193,7 @@
 					</view>
 					<!-- 右 -->
 					<view class="right">
-						<u-input v-model="form.is_appoint.hospitalList[hospitalcurrent].appoint_price" type="digit" :border="true"
+						<u-input v-model="form.is_appoint.hospitalList[hospitalcurrent].appoint_price" type="number" :border="true"
 						 placeholder="请输入金额" />
 					</view>
 				</view>
@@ -1172,10 +1172,11 @@
 						break;
 					case 2:		//门诊的保存
 						if (that.showList[2].flag) {
-							that.form.is_appoint.hospitalList.forEach(item => {
-								console.log(item)
+							
+								let item = that.form.is_appoint.hospitalList[this.hospitalcurrent]
+								console.log("item",item.appoint_price ==  '')
 								//基础价格
-								if (item.appoint_price == "") {
+								if (item.appoint_price == '') {
 									uni.showToast({
 										title: '请填写' + item.name + '的基础价格,否则无法保存',
 										icon: 'none'
@@ -1231,7 +1232,7 @@
 									return false
 								}
 								
-							})
+							
 							this.setMenData()
 						}
 						break;
@@ -1377,7 +1378,7 @@
 				let that = this;
 				let forms = JSON.parse(JSON.stringify(that.form));
 				let newMenList = [];
-				for (let i = 0; i < forms.is_appoint.hospitalList.length; i++) {
+				let i = this.hospitalcurrent
 					newMenList.push({
 						"base_price": forms.is_appoint.hospitalList[i].appoint_price,
 						"service_times": forms.is_appoint.hospitalList[i].service_times,
@@ -1394,7 +1395,7 @@
 						"show_days": forms.is_appoint.hospitalList[i].show_days,
 						"org_id": forms.is_appoint.hospitalList[i].id,
 					})
-				}
+				
 				console.log("保存门诊shez",newMenList)
 				let a = ({'is_appoint':newMenList})
 				if(typeof a == 'object'){