ll
liukangdong
2025-03-10 2bc4a739db642494accbf5be1fa55793f4652f44
h5/pages/staff/vehicle/shiwai.vue
@@ -42,7 +42,7 @@
        <view class="line">
          <text>用车时段</text>
          <text>
            {{ item.startTime.slice(5, 16) }}至{{
            {{ item.startTime.slice(5, 16) }} 至 {{
              item.endTime.slice(5, 16)
            }}</text
          >
@@ -102,6 +102,7 @@
         :show="isShowDate"
         ref="startPick"
         title="开始时间"
          :formatter="formatter"
         :minDate="minDate"
         @close="isShowDate = false"
         :closeOnClickOverlay="true"
@@ -112,6 +113,7 @@
      mode="datetime"
      :show="isShowEndDate"
      title="结束时间"
         :formatter="formatter"
      :minDate="new Date(param.startTime || null).getTime()"
      @close="endtimeClose"
      :closeOnClickOverlay="true"
@@ -142,8 +144,27 @@
    // this.minDate = new Date(dayjs().format('YYYY-MM-DD HH:mm') + ':00').getTime()
    this.minDate = new Date().getTime() - (6 * 24 * 60 * 60 * 1000)
    this.initData()
      uni.setStorageSync('vehicleAppForm', {})
  },
  methods: {
      formatter(type, value) {
         if (type === 'year') {
            return `${value}年`
         }
         if (type === 'month') {
            return `${value}月`
         }
         if (type === 'day') {
            return `${value}日`
         }
         if (type === 'hour') {
            return `${value}时`
         }
         if (type === 'minute') {
            return `${value}分`
         }
         return value
      },
      showDate() {
         this.isShowDate = true
         if (!this.param.startTime) {
@@ -343,7 +364,7 @@
  left: 0;
  background-color: #fff;
  bottom: 0;
  padding: 20rpx 30rpx 84rpx;
  padding: 20rpx 30rpx 62rpx;
  box-shadow: 0rpx -3rpx 6rpx 0rpx #eeeeee;
  
   .df_sb{