ll
liukangdong
2024-11-12 5b9c22a1e5e2364603778d1ed95e73129b47f1db
h5/pages/staff/vehicle/sendACar.vue
@@ -7,8 +7,7 @@
        <u-icon class="ml12" name="arrow-down" color="#999999" />
      </view>
      <view class="item" @click="isShowCar = true">
        <text v-if="param.carCode">{{ param.carCode }}</text>
        <text v-else class="placeholder9">选择车辆</text>
        <text>{{ param.carCode || '全部车辆' }}</text>
        <u-icon class="ml12" name="arrow-down" color="#999999" />
      </view>
    </view>
@@ -140,6 +139,7 @@
    seletedCar(e) {
      const item = e.value[0]
      this.pagination.page = 0
         this.dataList = []
      this.$set(this.param, 'carCode', item.code)
      this.$set(this.param, 'carId', item.id)
      this.isShowCar = false
@@ -150,6 +150,7 @@
        this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD')
        this.pagination.page = 0
        this.isShowDate = false
            this.dataList = []
        this.getList()
      })
    },
@@ -168,7 +169,7 @@
      getCarsList({
        type: 0
      }).then(res => {
        this.carsList = [res.data]
        this.carsList = [[{ code: '全部车辆', id: '' }, ...res.data]]
      })
    },
  }