| ¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '../../utils/request' |
| | | // æ¥è¯¢ |
| | | export function fetchList(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/bookings/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // 导åºExcel |
| | | export function exportExcel(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/bookings/exportExcel', data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | |
| | | // å建 |
| | | export function create(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/bookings/create', data) |
| | | } |
| | | |
| | | // ä¿®æ¹ |
| | | export function updateById(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/bookings/updateById', data) |
| | | } |
| | | // åæ¶ |
| | | export function cancelById(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/meeting/reservationCancel', data) |
| | | } |
| | | // å¼å§ |
| | | export function startById(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/meeting/start', data) |
| | | } |
| | | // ç»æ |
| | | export function meetingEndById(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/meeting/reservationOver', data) |
| | | } |
| | | // æåå¼å§ |
| | | export function startEarlyById(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/meeting/startEarly', data) |
| | | } |
| | | // |
| | | export function overBookById(data) { |
| | | return request.post('/meetingAdmin/cloudService/business/meeting/reservationOver', data) |
| | | } |
| | | // é¢å®è¯¦æ
|
| | | export function BookDetailById(params) { |
| | | return request.get('/meetingAdmin/cloudService/web/meeting/meetingDetail', { |
| | | params |
| | | }) |
| | | } |
| | | |
| | | // å é¤ |
| | | export function deleteById(id) { |
| | | return request.get(`/meetingAdmin/cloudService/business/bookings/delete/${id}`) |
| | | } |
| | | |
| | | // æ ¹æ®IDæ¥è¯¢ |
| | | export function bookingsDetail(id) { |
| | | return request.get(`/meetingAdmin/cloudService/business/bookings/${id}`) |
| | | } |
| | | |
| | | // æ¹éå é¤ |
| | | export function deleteByIdInBatch(ids) { |
| | | return request.get('/meetingAdmin/cloudService/business/bookings/delete/batch', { |
| | | params: { |
| | | ids |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // ä¼è®®å®¤ä½¿ç¨æ¶é¿ç»è®¡ |
| | | export function getRoomStatistics(yearNum, roomId) { |
| | | return request.get(`/meetingAdmin/cloudService/business/bookings/getRoomStatistics?yearNum=${yearNum}&roomId=${roomId}`) |
| | | } |
| | | // ä¼è®®å®¤ä½¿ç¨æ¶é¿ç»è®¡å¯¼åºExcel |
| | | export function exportRoomStatistics(data) { |
| | | return request.post(`/meetingAdmin/cloudService/business/bookings/exportRoomStatistics`, data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | |
| | | // 人ååå ä¼è®®æ¶å¸¸ |
| | | export function getUserStatistics(data) { |
| | | return request.post(`/meetingAdmin/cloudService/business/bookings/getUserStatistics`, data) |
| | | } |
| | | // 人åå伿¶é¿ç»è®¡å¯¼åºExcel |
| | | export function exportUserStatistics(data) { |
| | | return request.post(`/meetingAdmin/cloudService/business/bookings/exportUserStatistics`, data, { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | |
| | | // |
| | | export function reservationCancel(type) { |
| | | return request.get(`/meetingAdmin/cloudService/business/bookings/reservationCancel?type=${type}`) |
| | | } |
| | | // |
| | | export function findMothBookingMeet({ roomId, dateMonth }) { |
| | | return request.post(`/meetingAdmin/cloudService/business/bookings/findMothBookingMeet?roomId=${roomId}&dateMonth=${dateMonth}`) |
| | | } |