1、小程序端、PC端,修改文字“淮安市行政中心智慧后勤服务平台”
2、小程序端,进入会议系统后加入弹窗(5秒自动关闭),底部加入会议服务热线
3、小程序端、PC端,加入占用取消功能,管理员专用,取消后即删除
This commit is contained in:
471615499@qq.com 2024-11-09 18:24:11 +08:00
parent 9aa3db2363
commit b72e9574e7
8 changed files with 141 additions and 18 deletions

View File

@ -234,3 +234,11 @@ export function getDep() {
method: "post", method: "post",
}) })
} }
export function approveOrderDel(data) {
return request({
url: '/app/mr/delete',
method: "post",
data,
});
}

View File

@ -8,7 +8,7 @@
<view class="title"></view> <view class="title"></view>
<view class="contentView"> <view class="contentView">
<view class="label1">欢迎进入</view> <view class="label1">欢迎进入</view>
<view class="label2">市行政中心后勤服务平台</view> <view class="label2">淮安市行政中心智慧后勤服务平台</view>
</view> </view>
</view> </view>
<view class="logo" style="background: no-repeat center/cover url({{IMG_NAME + '/profile/static/repair/index/logo.png'}});"></view> <view class="logo" style="background: no-repeat center/cover url({{IMG_NAME + '/profile/static/repair/index/logo.png'}});"></view>

View File

@ -1,6 +1,7 @@
const app = getApp() const app = getApp()
import Notify from '@vant/weapp/notify/notify'; import Notify from '@vant/weapp/notify/notify';
import Dialog from '@vant/weapp/dialog/dialog';
import { import {
depLogin depLogin
} from "../../../api/login/login.js" } from "../../../api/login/login.js"
@ -67,6 +68,7 @@ Page({
} }
}) })
}, // 弹出层点击确认不关闭,手动关 }, // 弹出层点击确认不关闭,手动关
adminTel: '83605343',
}, },
showTimePicker() { showTimePicker() {
this.setData({ this.setData({
@ -82,6 +84,22 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
Dialog.alert({
message: '1、此系统分配的账号仅用于会议室申请预约请各单位专人扎口负责会议预定管理工作。\n2、系统提示“预约提交成功”后请及时关注预约进度若有疑问请随时拨打会议服务热线83605343。\n3、会议开始前如需调整会议请及时通过系统操作或电话告知已预约成功的会议室可能因临时重大会议取消或调剂请理解配合。',
messageAlign: 'left',
}).then(() => {
// on close
})
let count = 5
const countdown = setInterval(() => {
if (count > 0) {
count--;
} else {
Dialog.close()
clearInterval(countdown);
}
}, 1000)
let _this = this let _this = this
let userDetail = wx.getStorageSync('user') let userDetail = wx.getStorageSync('user')
// 获取两周后时间,默认只能选两周之后,管理员可以选一年后的 // 获取两周后时间,默认只能选两周之后,管理员可以选一年后的
@ -279,6 +297,12 @@ Page({
}) })
}, },
callAdmin() {
let num = this.data.adminTel
wx.makePhoneCall({
phoneNumber: num
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */

View File

@ -24,6 +24,11 @@
</view> </view>
</view> </view>
<view style="text-align: center;color: grey; margin-top: 0px;line-height: 20px;">
<view bind:tap="callAdmin">
会议服务热线: {{ adminTel }}
</view>
</view>
<!-- <view class="ownership">{{ownership}}</view> --> <!-- <view class="ownership">{{ownership}}</view> -->
</view> </view>
@ -35,6 +40,7 @@
<van-datetime-picker title="请选择会议日期" type="date" value="{{ currentDate }}" min-date="{{ minDate }}" max-date="{{ maxDate }}" formatter="{{ formatter }}" bind:confirm="goRes" bind:cancel="hideTimePicker" /> <van-datetime-picker title="请选择会议日期" type="date" value="{{ currentDate }}" min-date="{{ minDate }}" max-date="{{ maxDate }}" formatter="{{ formatter }}" bind:confirm="goRes" bind:cancel="hideTimePicker" />
</van-popup> </van-popup>
<van-dialog id="van-dialog" />
<!-- 提示框 --> <!-- 提示框 -->
<van-dialog use-slot title="请认证所在单位" show="{{ showLogin }}" show-cancel-button bind:close="onCloseLogin" bind:confirm="orderLogin" beforeClose="{{ beforeClose }}" zIndex="109"> <van-dialog use-slot title="请认证所在单位" show="{{ showLogin }}" show-cancel-button bind:close="onCloseLogin" bind:confirm="orderLogin" beforeClose="{{ beforeClose }}" zIndex="109">
<van-cell-group style="margin: 20px;"> <van-cell-group style="margin: 20px;">

View File

@ -12,7 +12,8 @@ import {
selectReservationListByUserIdRq, selectReservationListByUserIdRq,
selectVisitorInvitationRecordRq, selectVisitorInvitationRecordRq,
cancelOrderRq, cancelOrderRq,
approveOrderRq approveOrderRq,
approveOrderDel
} from "../../../../api/meeting/meetingRoom.js" } from "../../../../api/meeting/meetingRoom.js"
Page({ Page({
@ -339,7 +340,7 @@ Page({
if (statusValue == 4) { if (statusValue == 4) {
// 占用,可以修改 // 占用,可以修改
showEdit = true showEdit = true
// showCancel = true showCancel = true
// showStaff = true // showStaff = true
statusName = '已占用' statusName = '已占用'
} }
@ -410,13 +411,54 @@ Page({
// 取消预约一系列方法 // 取消预约一系列方法
cancelConfirm(e) { cancelConfirm(e) {
console.log('cancelConfirm', e); console.log('cancelConfirm', e);
let status = e.currentTarget.dataset.status
let _this = this; let _this = this;
let id = e.currentTarget.dataset.id let id = e.currentTarget.dataset.id
if (status == '4') {
// 占用,占用的取消直接删除
Dialog.confirm({
title: '确认',
message: '取消后不可撤销,是否确认?',
})
.then(() => {
// on confirm
approveOrderDel({
id: id,
}).then(res => {
console.log('delApprove', res)
if (res.code == 0) {
// 刷新预约数据
_this.setData({
reservationPageNum: 1,
reservationDataList: [],
reservationIsDataAll: false,
showRejectReason: false
})
Notify({
type: 'success',
message: '已取消'
})
_this.getDataList()
} else {
// 危险通知
Notify({
type: 'danger',
message: res.msg
});
}
})
})
.catch(() => {
// on cancel
});
} else {
// 其余的取消,需要输入原因
_this.setData({ _this.setData({
cancelId: id, cancelId: id,
showCancelReason: true, showCancelReason: true,
cancelReason: '' cancelReason: ''
}) })
}
}, },
onCloseCancel(e) { onCloseCancel(e) {
let _this = this; let _this = this;

View File

@ -34,7 +34,7 @@
<!-- <view class="btn" wx:if="{{item.showInvite}}">去邀请 <!-- <view class="btn" wx:if="{{item.showInvite}}">去邀请
<button class="shareBtn" open-type="share" data-id="{{item.id}}">转发</button> <button class="shareBtn" open-type="share" data-id="{{item.id}}">转发</button>
</view> --> </view> -->
<van-button style="margin-right: 10rpx;" size="small" plain type="warning" wx:if="{{item.showCancel}}" bind:tap="cancelConfirm" data-id="{{item.id}}">取消预约</van-button> <van-button style="margin-right: 10rpx;" size="small" plain type="warning" wx:if="{{item.showCancel}}" bind:tap="cancelConfirm" data-id="{{item.id}}" data-status="{{item.status}}">取消预约</van-button>
<van-button style="margin-right: 10rpx;" size="small" plain type="info" wx:if="{{item.showEdit}}" bind:tap="editConfirm" data-id="{{item.id}}">修改信息</van-button> <van-button style="margin-right: 10rpx;" size="small" plain type="info" wx:if="{{item.showEdit}}" bind:tap="editConfirm" data-id="{{item.id}}">修改信息</van-button>
<van-button style="margin-right: 10rpx;" size="small" plain type="warning" wx:if="{{item.showStaff}}" bind:tap="goStaff" data-id="{{item.id}}">会务负责人</van-button> <van-button style="margin-right: 10rpx;" size="small" plain type="warning" wx:if="{{item.showStaff}}" bind:tap="goStaff" data-id="{{item.id}}">会务负责人</van-button>
<van-button style="margin-right: 10rpx;" size="small" plain type="primary" wx:if="{{item.showApprove}}" bind:tap="pass" data-id="{{item.id}}">通过</van-button> <van-button style="margin-right: 10rpx;" size="small" plain type="primary" wx:if="{{item.showApprove}}" bind:tap="pass" data-id="{{item.id}}">通过</van-button>

View File

@ -14,7 +14,8 @@ import {
cancelOrderRq, cancelOrderRq,
inviteRecordPersonListRq, inviteRecordPersonListRq,
getMeetingRoomServiceAndEquipmentRq, getMeetingRoomServiceAndEquipmentRq,
approveOrderRq approveOrderRq,
approveOrderDel
} from "../../../../../api/meeting/meetingRoom.js" } from "../../../../../api/meeting/meetingRoom.js"
Page({ Page({
@ -152,6 +153,7 @@ Page({
if (act == 'approve') { if (act == 'approve') {
// 管理员允许编辑 // 管理员允许编辑
showEdit = true showEdit = true
showCancel = true
} }
statusName = '已占用' statusName = '已占用'
} }
@ -378,12 +380,53 @@ Page({
cancelConfirm(e) { cancelConfirm(e) {
console.log('cancelConfirm', e); console.log('cancelConfirm', e);
let _this = this; let _this = this;
let status = e.currentTarget.dataset.status
let id = e.currentTarget.dataset.id let id = e.currentTarget.dataset.id
if (status == '4') {
// 占用,占用的取消直接删除
Dialog.confirm({
title: '确认',
message: '取消后不可撤销,是否确认?',
})
.then(() => {
// on confirm
approveOrderDel({
id: id,
}).then(res => {
console.log('delApprove', res)
if (res.code == 0) {
Notify({
type: 'success',
message: '已取消'
})
// 数据状态变更,向上个页面传递变更
let pages = getCurrentPages(); //获取page
let prevPage = pages[pages.length - 2]; //上一个页面(父页面)
prevPage.setData({
dataChange: true
})
wx.navigateBack({
delta: 1 // 返回的页面数,如果 delta 大于现有页面数,则返回到首页。
})
} else {
// 危险通知
Notify({
type: 'danger',
message: res.msg
});
}
})
})
.catch(() => {
// on cancel
});
} else {
_this.setData({ _this.setData({
cancelId: id, cancelId: id,
showCancelReason: true, showCancelReason: true,
cancelReason: '' cancelReason: ''
}) })
}
}, },
onCloseCancel(e) { onCloseCancel(e) {
let _this = this; let _this = this;

View File

@ -105,7 +105,7 @@
<!-- <view class="btn" wx:if="{{detail.showInvite}}">去邀请 <!-- <view class="btn" wx:if="{{detail.showInvite}}">去邀请
<button class="shareBtn" open-type="share" data-id="{{detail.id}}">转发</button> <button class="shareBtn" open-type="share" data-id="{{detail.id}}">转发</button>
</view> --> </view> -->
<van-button style="margin-right: 10rpx;" size="normal" plain type="warning" wx:if="{{detail.showCancel}}" bind:tap="cancelConfirm" data-id="{{detail.id}}">取消预约</van-button> <van-button style="margin-right: 10rpx;" size="normal" plain type="warning" wx:if="{{detail.showCancel}}" bind:tap="cancelConfirm" data-id="{{detail.id}}" data-status="{{detail.status}}">取消预约</van-button>
<van-button style="margin-right: 10rpx;" size="normal" plain type="info" wx:if="{{detail.showEdit}}" bind:tap="editConfirm" data-id="{{detail.id}}">修改信息</van-button> <van-button style="margin-right: 10rpx;" size="normal" plain type="info" wx:if="{{detail.showEdit}}" bind:tap="editConfirm" data-id="{{detail.id}}">修改信息</van-button>
<van-button style="margin-right: 10rpx;" size="normal" plain type="primary" wx:if="{{detail.showApprove}}" bind:tap="pass" data-id="{{detail.id}}">通过</van-button> <van-button style="margin-right: 10rpx;" size="normal" plain type="primary" wx:if="{{detail.showApprove}}" bind:tap="pass" data-id="{{detail.id}}">通过</van-button>
<van-button style="margin-right: 10rpx;" size="normal" plain type="danger" wx:if="{{detail.showApprove}}" bind:tap="rejectConfirm" data-id="{{detail.id}}">驳回</van-button> <van-button style="margin-right: 10rpx;" size="normal" plain type="danger" wx:if="{{detail.showApprove}}" bind:tap="rejectConfirm" data-id="{{detail.id}}">驳回</van-button>