From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/staff/vehicle/apply.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/h5/pages/staff/vehicle/apply.vue b/h5/pages/staff/vehicle/apply.vue
index e9211a0..87d9c52 100644
--- a/h5/pages/staff/vehicle/apply.vue
+++ b/h5/pages/staff/vehicle/apply.vue
@@ -14,7 +14,7 @@
           >
             <text v-if="param.startTime">
               {{ param.startTime.slice(5, 16) }}鑷硔{
-                param.endTime.slice(11, 16)
+                param.endTime.slice(5, 16)
               }}
             </text>
             <text v-else>璇烽�夋嫨</text>
@@ -91,7 +91,15 @@
             }"
           >
             <text v-if="param.memberNames">
-              {{ param.memberNames }}
+              <text v-for="(mem, i) in param.memberList" :key="mem.id">
+                <template v-if="i < 2">
+                  <text>{{ mem.name }}</text>
+                  <text v-if="i < 1 && param.memberList.length > 1">,</text>
+                </template>
+              </text>
+              <text v-if="param.memberList.length > 2"
+                >绛墈{ param.memberList.length }}浜�</text
+              >
             </text>
             <text v-else>璇烽�夋嫨</text>
           </text>
@@ -129,11 +137,13 @@
     </view>
     <view class="sub_btn" @click="handleSub">鎻愪氦</view>
     <!--  -->
+    <!-- :minDate="new Date(param.startTime).getTime()"
+      :maxDate="new Date(param.endTime).getTime()" -->
     <u-datetime-picker
       :show="isShowDatetime"
+      @confirm="confirmDate"
       :minDate="new Date(param.startTime).getTime()"
       :maxDate="new Date(param.endTime).getTime()"
-      @confirm="confirmDate"
       @cancel="isShowDatetime = false"
       mode="datetime"
     ></u-datetime-picker>
@@ -201,13 +211,14 @@
       })
     },
     selPeople() {
-      if(this.param.memberList && this.param.memberList.length > 0){
-        this.$eventBus.$emit('applePeoDetail', this.param.memberList)
+      if (this.param.memberList && this.param.memberList.length > 0) {
+        setTimeout(() => {
+          this.$eventBus.$emit('applePeoDetail', this.param.memberList || [])
+        }, 500)
       }
       this.$jump('/pages/staff/vehicle/applePeo')
     },
     confirmDate(e) {
-
       this.param.planUseDate = dayjs(e.value).format('YYYY-MM-DD HH:mm')
       this.isShowDatetime = false
     }

--
Gitblit v1.9.3