This commit is contained in:
2025-12-03 09:59:27 +08:00

View File

@@ -17,6 +17,11 @@
<input type="text" v-model="formData.rtCreatRole" placeholder="请输入申请人姓名" placeholder-class="input-placeholder" /> <input type="text" v-model="formData.rtCreatRole" placeholder="请输入申请人姓名" placeholder-class="input-placeholder" />
</view> </view>
<view class="form-item">
<label>手机号码</label>
<input type="text" v-model="formData.mobilePhone" placeholder="请输入申请人手机号码" placeholder-class="input-placeholder" />
</view>
<view class="form-item"> <view class="form-item">
<label>使用部门/学院</label> <label>使用部门/学院</label>
<picker mode="selector" :range="deptXZJGList" @change="handleDeptChange"> <picker mode="selector" :range="deptXZJGList" @change="handleDeptChange">
@@ -149,7 +154,8 @@ export default {
this.formData.rtPeople <= this.list.roomCapacity && this.formData.rtPeople <= this.list.roomCapacity &&
this.Reserveduse.length > 0 && this.Reserveduse.length > 0 &&
this.selectedRoles.length > 0 && this.selectedRoles.length > 0 &&
this.timeindex !== null this.timeindex !== null &&
this.formData.mobilePhone
); );
} }
}, },
@@ -217,6 +223,11 @@ export default {
return false; return false;
} }
if (!this.formData.mobilePhone) {
uni.showToast({ title: '请输入申请人手机号码', icon: 'none' });
return false;
}
if (!this.formData.rtDepar) { if (!this.formData.rtDepar) {
uni.showToast({ title: '请选择使用部门/学院', icon: 'none' }); uni.showToast({ title: '请选择使用部门/学院', icon: 'none' });
return false; return false;