会议室预约场次和人数字段调整;会议室列表几个会议室可预约时间段提示

This commit is contained in:
Leo_Ding 2025-09-22 17:48:33 +08:00
parent a4ef11b0bd
commit fa73ab3853
2 changed files with 32 additions and 6 deletions

View File

@ -93,10 +93,10 @@
<view>
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
<u--input placeholder="请输入场次" border="null" v-model="counter"></u--input>
<u--input placeholder="请输入场次" border="null" v-model="num"></u--input>
</view>
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
<u--input placeholder="请输入人数" border="null" v-model="num"></u--input>
<u--input placeholder="请输入人数" border="null" v-model="counter"></u--input>
</view>
</view>
</view>
@ -335,12 +335,12 @@
reg: /^.+$/,
errMsg: '结束时间不能空'
},
counter: {
num: {
name: '申请场次',
reg: /^[1-9]\d*$/,
errMsg: '申请场次不能空且是正整数'
},
num: {
counter: {
name: '申请人数',
reg: /^[1-9]\d*$/,
errMsg: '申请人数不能空且是正整数'

View File

@ -173,7 +173,8 @@
],
currentTab: 0,
meetingRoomList: [],
orderList: [] //
orderList: [], //
dialogList:[1,5,4,2]
};
},
onLoad() {
@ -324,7 +325,32 @@
});
}
});
} else {
} else if(this.dialogList.includes(item.num)){
uni.showModal({
title: '温馨提示',
content: ' 可预约时段工作日8:30—11:30,13:30—17:00',
confirmColor: '#007AFF', // uView
success: (res) => {
if (res.confirm) {
//
this.navigateToDetail(id, true);
} else if (res.cancel) {
//
uni.showToast({
title: '已取消',
icon: 'none'
});
}
},
fail: (err) => {
console.error('弹窗失败:', err);
uni.showToast({
title: '操作失败',
icon: 'none'
});
}
});
}else {
//
this.navigateToDetail(id, false);
}