| | |
| | | <view class="value" @click="isShowDate = true"> |
| | | <text |
| | | class="mr6" |
| | | :style="{ color: param.startTime ? '#999999' : '#999999' }" |
| | | :style="{ color: param.startTime ? '#000000' : '#999999' }" |
| | | > |
| | | <template v-if="param.startTime"> |
| | | {{ param.startHours }}至{{ param.endHours }} |
| | |
| | | </view> |
| | | </view> |
| | | <view class="have_info" v-if="info && info.length > 0"> |
| | | <view class="tit">您申请的用车时段已有车辆预约</view> |
| | | <view class="tit">您申请的用车时段存在以下预约信息,无法预约</view> |
| | | <view class="content" v-for="(item, i) in info" :key="i"> |
| | | <view class="card">{{ item.carCode }}</view> |
| | | <view class="line"> |
| | |
| | | <text class="sel" v-if="param.startTime" |
| | | >{{ param.startHours }}至{{ param.endHours }}</text |
| | | > |
| | | <text class="btn" @click="onSubmit">确认预约</text> |
| | | <text class="btn" :class="{disable: info && info.length > 0}" @click="onSubmit">确认预约</text> |
| | | </view> |
| | | <!-- --> |
| | | <!-- 选择车辆 --> |
| | |
| | | methods: { |
| | | onSubmit() { |
| | | const { param, info } = this |
| | | if (info.length > 0) return uni.showToast({ |
| | | title: '请重新选择时间段', |
| | | icon: 'none' |
| | | }) |
| | | if (info.length > 0) return |
| | | if (!param.startTime) return uni.showToast({ |
| | | title: '请先选择用车时间段', |
| | | icon: 'none' |
| | |
| | | color: $uni-color-primary; |
| | | flex: 1; |
| | | } |
| | | .disable{ |
| | | background: #CCCCCC; |
| | | } |
| | | } |
| | | </style> |