| | |
| | | <template> |
| | | <view class="appointment"> |
| | | <combined-title :title="yuYueData.length != 0 ? yuYueData[0].filedName + '——' + yuYueData[0].sendDate : '暂无预约列表'"></combined-title> |
| | | <combined-title |
| | | :title="yuYueData.length != 0 ? yuYueData[0].filedName + '——' + yuYueData[0].sendDate : '暂无预约列表'"></combined-title> |
| | | <view class="appointment-table"> |
| | | <uni-table border stripe emptyText="暂无更多数据"> |
| | | <uni-table border |
| | | stripe |
| | | emptyText="暂无更多数据"> |
| | | <uni-tr> |
| | | <uni-th align="center">时间段</uni-th> |
| | | <uni-th align="center">可预约</uni-th> |
| | | <uni-th align="center">已预约</uni-th> |
| | | <uni-th align="center">操作</uni-th> |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in yuYueData" :key="item.id"> |
| | | <uni-tr v-for="(item, index) in yuYueData" |
| | | :key="item.id"> |
| | | <uni-td align="center">{{ (item.startTime || '') + '-' + (item.endTime || '') }}</uni-td> |
| | | <uni-td align="center">{{ item.carNum || '' }}</uni-td> |
| | | <uni-td align="center">{{ item.carNum1 || '' }}</uni-td> |
| | | <uni-td><u-button text="选择" type="primary" :disabled="item.carNum == item.carNum1" @click="yuYueBtnClick(item)"></u-button></uni-td> |
| | | <uni-td><u-button text="选择" |
| | | type="primary" |
| | | :disabled="item.carNum == item.carNum1" |
| | | @click="yuYueBtnClick(item)"></u-button></uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | </view> |
| | |
| | | // 预约 |
| | | yuYueClick(id) { |
| | | this.yuYuePostParams.yuYueId = id; |
| | | this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => { |
| | | this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams |
| | | .yuYueId }, 'params').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('预约成功!'); |
| | | |
| | | let timer = setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '预约失败'); |
| | | } |
| | | setTimeout(() => { |
| | | }).then(() => { |
| | | this.yuYueList(); |
| | | }, 500); |
| | | }); |
| | | }) |
| | | }, |
| | | // 入场申请 |
| | | saveRCSQ(value) { |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | <style lang="scss" |
| | | scoped> |
| | | ::v-deep.appointment { |
| | | width: 94%; |
| | | margin: 0 auto; |
| | | |
| | | h1 { |
| | | font-size: vww(20); |
| | | text-align: center; |
| | | font-weight: 550; |
| | | margin: vww(30) 0 vww(18) 0; |
| | | } |
| | | |
| | | // 表格 |
| | | .uni-table-scroll { |
| | | width: 100%; |
| | |
| | | line-height: vww(20); |
| | | padding: vww(5) vww(10); |
| | | color: #111111; |
| | | |
| | | .u-button { |
| | | height: vww(23); |
| | | } |