| | |
| | | <template v-if="activeTab === '1'">
|
| | | <view class="card_list">
|
| | | <view class="list">
|
| | | <view class="item" @click="handleDetail()">
|
| | | <view class="item" v-for="item in recordList" :key="item.id" @click="handleDetail(item.id)">
|
| | | <view class="head">
|
| | | <view class="name">aaaaa选型</view>
|
| | | <view class="status">即将开始</view>
|
| | | <view class="name">{{ item.meetingName }}</view>
|
| | | <view class="status" v-if="item.meetingStatus == '1'">未开始</view>
|
| | | <view class="status red" v-if="item.meetingStatus == '2'">进行中</view>
|
| | | <view class="status" v-if="item.meetingStatus == '3'">已结束</view>
|
| | | <view class="status padding" v-if="item.meetingStatus == '4'">即将开始</view>
|
| | | <view class="status" v-if="item.meetingStatus == '5'">已撤销</view>
|
| | | </view>
|
| | | <view class="line">
|
| | | <view class="label">会议时间:</view>
|
| | | <view class="value">12:00-12</view>
|
| | | <view class="value">{{ item.meetingTime }}</view>
|
| | | </view>
|
| | | <view class="line">
|
| | | <view class="label">会议室:</view>
|
| | | <view class="value">202会议室</view>
|
| | | <view class="value">{{ item.roomName }}</view>
|
| | | </view>
|
| | | <view class="line">
|
| | | <view class="label">预约人:</view>
|
| | | <view class="value">杨某某</view>
|
| | | <view class="value">{{ item.bookingUser }}</view>
|
| | | </view>
|
| | | <view class="line">
|
| | | <view class="label">备注:</view>
|
| | | <view class="value">--</view>
|
| | | <view class="value">{{ item.remark }}</view>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
| | | <script>
|
| | | import Calendar from '@/components/Li-Calendar/Li-Calendar.vue';
|
| | | import { getDay } from '@/utils/utils.js';
|
| | | import { myMeetingPage } from '@/api'
|
| | | function getDate(date, AddDayCount = 0) {
|
| | | if (!date) {
|
| | | date = new Date();
|
| | |
| | | data() {
|
| | | return {
|
| | | activeTab: '0',
|
| | | recordList: [],
|
| | | recordPage: 1,
|
| | | currentTime1: '',
|
| | | dateStart: '1999-05-01',
|
| | | dateEnd: '2999-06-15',
|
| | |
| | | date: getDate(new Date(), -1).fullDate,
|
| | | info: '已打卡'
|
| | | }
|
| | | ]
|
| | | ],
|
| | |
|
| | | };
|
| | | },
|
| | | methods: {
|
| | | tabClick(val) {
|
| | | this.activeTab = val;
|
| | | if(val === '1'){
|
| | | this.getRecordList()
|
| | | }else{
|
| | | this.getList()
|
| | | }
|
| | | },
|
| | | handleDetail(item) {
|
| | | handleDetail(id) {
|
| | | uni.navigateTo({
|
| | | // url: `/pages/staff/meetingDetail?id=${item.id}`,
|
| | | url: `/pages/staff/meetingDetail`
|
| | | url: `/pages/staff/meetingDetail?id=${id}`,
|
| | | // url: `/pages/staff/meetingDetail`
|
| | | });
|
| | | },
|
| | | changeCalendar(e) {
|
| | |
| | | console.log('日期', riqi);
|
| | | this.currentTime1 = riqi;
|
| | | // this.getDateNum()
|
| | | },
|
| | | getList(){},
|
| | | getRecordList() {
|
| | | const { activeStatus } = this
|
| | | myMeetingPage({
|
| | | capacity: 10,
|
| | | page: this.recordPage,
|
| | | model: {
|
| | | // status: activeStatus.key || null,
|
| | | // roomsId: this.roomId,
|
| | | queryType: 2
|
| | | }
|
| | | }).then(res => {
|
| | | this.recordList = res.data.records
|
| | | })
|
| | | },
|
| | | }
|
| | | };
|
| | | </script>
|
| | |
| | | padding: 0rpx 30rpx 30rpx;
|
| | | background: #ffffff;
|
| | | border-radius: 8rpx;
|
| | | margin-bottom: 24rpx;
|
| | | .head {
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | |
| | | font-size: 22rpx;
|
| | | color: #999999;
|
| | | }
|
| | | .padding{
|
| | | color: $uni-color-primary;
|
| | | border: 1rpx solid $uni-color-primary;
|
| | | }
|
| | | .red{
|
| | | color: #e23f29;
|
| | | border: 1rpx solid #e23f29;
|
| | | }
|
| | | }
|
| | | .line {
|
| | | display: flex;
|
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { meetingDetail } from '@/api' |
| | | export default { |
| | | data() { |
| | | return { |
| | | param: {} |
| | | param: {}, |
| | | detail: {} |
| | | }; |
| | | }, |
| | | onLoad(option) { |
| | | this.id = option.id |
| | | this.getDetail() |
| | | }, |
| | | methods: { |
| | | getDetail() { |
| | | const { id } = this |
| | | meetingDetail({id}).then(res => { |
| | | this.detail = res.data |
| | | }) |
| | | }, |
| | | handleSub() { |
| | | |
| | | } |
| | |
| | | queryDate: this.currentDate,
|
| | | status: activeStatus.key || null,
|
| | | // roomsId: this.roomId,
|
| | | queryType: 1
|
| | | queryType: 2
|
| | | }
|
| | | }).then(res => {
|
| | | this.dataList = res.data.records
|
| | |
| | | > |
| | | <view class="detail_modal"> |
| | | <view class="title">会议室预约情况</view> |
| | | <view class="h1">讨论xxxxx选型</view> |
| | | <view class="h1">{{ activeInfo.meetingName }}</view> |
| | | <view class="line"> |
| | | <view class="label">会议时间</view> |
| | | <view class="value">00000</view> |
| | | <view class="value">{{ activeInfo.meetingTime }}</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">会议室</view> |
| | | <view class="value">00000</view> |
| | | <view class="value">{{ activeInfo.roomName }}</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">预约人</view> |
| | | <view class="value">00000</view> |
| | | <view class="value">{{ activeInfo.bookingUserName }}</view> |
| | | </view> |
| | | <view class="btn" @click="isShowDetail = false">关闭</view> |
| | | </view> |
| | |
| | | }, |
| | | selDatetime: '', |
| | | isShowDetail: false, |
| | | activeInfo: {}, |
| | | meetingList: [], |
| | | timeList: [], |
| | | |
| | |
| | | const obj = { |
| | | startTime: selTimeList[0].startTime, |
| | | endTime: selTimeList[selTimeList.length - 1].endTime, |
| | | bookingTimeList: selTimeList.map(i=>i.id).join(',') |
| | | } |
| | | uni.navigateTo({ |
| | | url: `/pages/staff/meetingSubOrder?yudingDate=${activeRoom.yudingDate}&roomName=${activeRoom.roomName}&roomId=${activeRoom.roomId}&startTime=${obj.startTime}&endTime=${obj.endTime}` |
| | | url: `/pages/staff/meetingSubOrder?yudingDate=${activeRoom.yudingDate}&roomName=${activeRoom.roomName}&roomId=${activeRoom.roomId}&startTime=${obj.startTime}&endTime=${obj.endTime}&bookingTimeList=${obj.bookingTimeList}` |
| | | }) |
| | | // this.$jump('/pages/staff/vehicle/apply') |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | datetimeClick(item, index) { |
| | | if (item.isUse == '1') return |
| | | if(item.isChoose){ |
| | | this.getDetail(item.id) |
| | | if(item.bookingTimeId){ |
| | | this.getDetail(item.bookingTimeId) |
| | | return |
| | | } |
| | | if (item.isUse == '1') return |
| | | const { timeList } = this |
| | | const selTimeList = timeList.filter(i => i.checked == '1') |
| | | if (selTimeList.length === 0) { |
| | |
| | | getDetail(id) { |
| | | meetingDetail({ |
| | | id |
| | | }).then(res => { |
| | | this.activeInfo = res.data |
| | | this.isShowDetail = true |
| | | }) |
| | | }, |
| | | } |
| | |
| | | }, |
| | | onLoad(option) { |
| | | this.param = { ...option } |
| | | const bookingTimeList = option.bookingTimeList.split(',').map(i => { |
| | | return { |
| | | timeId: Number(i) |
| | | } |
| | | }) |
| | | this.$set(this.param, 'bookingTimeList', bookingTimeList) |
| | | this.$set(this.param, 'activeDate', dayjs(option.yudingDate).format('YYYY年M月D日')) |
| | | this.initOption() |
| | | }, |
| | | mounted() { |
| | | this.$eventBus.$on('meetingPeo', (res) => { |
| | | this.$set(this.param, 'sysList', res) |
| | | this.$set(this.param, 'sysList', res.map(i=>{ |
| | | i.userId = i.id |
| | | return i |
| | | })) |
| | | // this.$set(this.param, 'memberIds', res.map(i => i.id).join(',')) |
| | | // this.$set(this.param, 'memberNames', res.map(i => i.name).join(',')) |
| | | }) |
| | |
| | | projectList: info.projectList.filter(i => i.checked), |
| | | }).then(res => { |
| | | if(res.code === 200){ |
| | | |
| | | setTimeout(() => { |
| | | uni.showToast({ |
| | | title: '预约成功', |
| | | icon:'success', |
| | | duration: 2000 |
| | | }) |
| | | }) |
| | | uni.redirectTo({ |
| | | url: '/pages/staff/index' |
| | | }) |
| | | } |
| | | }) |
| | | }, |