From ed9c9f07d1f9a5ed027e06feb8f0f5ed2d1756bc Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 07 六月 2024 10:39:25 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit

---
 h5/pages/staff/vehicle/sendACar.vue |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/h5/pages/staff/vehicle/sendACar.vue b/h5/pages/staff/vehicle/sendACar.vue
index 96c407a..3df0a80 100644
--- a/h5/pages/staff/vehicle/sendACar.vue
+++ b/h5/pages/staff/vehicle/sendACar.vue
@@ -18,6 +18,7 @@
         class="box_list_item"
         v-for="(item, index) in dataList"
         :key="index"
+				@click="itemDetail(item)"
       >
         <view class="box_list_item_head">
           <text>{{ item.carCode }}</text>
@@ -60,10 +61,11 @@
     <!-- 鏃ユ湡 -->
     <u-datetime-picker
       mode="date"
+      v-model="param.queryDate"
       :show="isShowDate"
       :minDate="minDate"
+      closeOnClickOverlay
       @close="isShowDate = false"
-      :closeOnClickOverlay="true"
       @confirm="seletedDate"
       @cancel="isShowDate = false"
     />
@@ -80,6 +82,7 @@
       isShowDate: false,
       carsList: [],
       param: {
+        queryDate: dayjs().format('YYYY-MM-DD'),
         memberId: uni.getStorageSync('userInfo').memberId
       },
       minDate: '',
@@ -88,7 +91,7 @@
         capacity: 10
       },
       total: 0,
-      dataList: []
+      dataList: [],
     }
   },
   onLoad() {
@@ -106,6 +109,10 @@
     getList() {
       const { param, pagination } = this
       pagination.page = pagination.page + 1
+      if(param.queryDate){
+        param.queryStartTime = param.queryDate + ' 00:00:00'
+        param.queryEndTime = param.queryDate + ' 23:59:59'
+      }
       carUseBookPaiche({
         ...pagination,
         model: { ...param }
@@ -118,23 +125,24 @@
         this.total = res.data.total
       })
     },
+		itemDetail(item) {
+			uni.navigateTo({
+				url: "/pages/staff/vehicle/sendACarDetail?id=" + item.id
+			})
+		},
     seletedCar(e) {
       const item = e.value[0]
+      this.pagination.page = 0
       this.$set(this.param, 'carCode', item.code)
       this.$set(this.param, 'carId', item.id)
       this.isShowCar = false
-      if (this.param.carId && this.param.queryDate) {
-        this.pagination.page = 0
-        this.getList()
-      }
+      this.getList()
     },
     seletedDate(e) {
       this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD')
+      this.pagination.page = 0
       this.isShowDate = false
-      if (this.param.carId && this.param.queryDate) {
-        this.pagination.page = 0
-        this.getList()
-      }
+      this.getList()
     },
     endtimeClose() {
       this.param.endTime = ''

--
Gitblit v1.9.3