描述:会议预约填写参会人数

This commit is contained in:
SelfRidicule 2024-09-03 14:28:29 +08:00
parent 10b208506f
commit 221d068a3d
3 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,7 @@ Page({
userData: {},
serviceList: [],
title: '',
personNum: '',
reservationPersonList: [],
},
@ -115,6 +116,12 @@ Page({
app.vantNotifyErr(Notify, '请输入会议主题!')
return;
}
// 参会人数
if (!_this.data.personNum) {
app.vantNotifyErr(Notify, '请输入参会人数!')
return;
}
// 参会人员
let reservationPersonList = _this.data.reservationPersonList.map(item => {
return {
@ -129,6 +136,7 @@ Page({
"userId": _this.data.userData.id,
"customerId": _this.data.userData.icsCustomerId,
"title": _this.data.title,
"personNum": _this.data.personNum,
reservationPersonList,
"startTime": _this.data.startTime,
"endDate": _this.data.endTime,

View File

@ -50,7 +50,7 @@
<view class="itemView">
<view class="label">参会人数</view>
<view class="content">
<van-field value="{{ personNum }}" placeholder="请输入参会人数" clearable input-align="right" border="{{ false }}" data-name="title" bind:change="inputChange" />
<van-field value="{{ personNum }}" placeholder="请输入参会人数" clearable input-align="right" border="{{ false }}" data-name="personNum" bind:change="inputChange" />
</view>
</view>
<view class="itemView" bind:tap="jumpMeetingPerson">

View File

@ -28,7 +28,7 @@
</view>
<view class="cellView">
<view class="label">参会人数</view>
<view class="content">{{detail.reservationPersonList.length}}</view>
<view class="content">{{detail.personNum}}</view>
</view>
<view class="cellView">
<view class="label">会议预约人</view>