From c3aaf28f7316cce12eec007a9f85a96cbcddeec2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 07 五月 2025 10:34:20 +0800
Subject: [PATCH] 最新版本541200007
---
h5/pages/staff/vehicle/sendACar.vue | 36 ++++++++++++++++++++++++++++++------
1 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/h5/pages/staff/vehicle/sendACar.vue b/h5/pages/staff/vehicle/sendACar.vue
index bcf1fcc..57a4afe 100644
--- a/h5/pages/staff/vehicle/sendACar.vue
+++ b/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>
@@ -70,6 +69,7 @@
<u-datetime-picker
mode="date"
v-model="param.queryDate"
+ :formatter="formatter"
:show="isShowDate"
:minDate="minDate"
closeOnClickOverlay
@@ -91,7 +91,7 @@
carsList: [],
param: {
queryDate: dayjs().format('YYYY-MM-DD'),
- memberId: uni.getStorageSync('userInfo').memberId
+ // memberId: uni.getStorageSync('userInfo').memberId
},
minDate: '',
pagination: {
@@ -117,6 +117,24 @@
}
},
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
+ },
getList() {
const { param, pagination } = this
pagination.page = pagination.page + 1
@@ -124,6 +142,10 @@
param.queryStartTime = param.queryDate + ' 00:00:00'
param.queryEndTime = param.queryDate + ' 23:59:59'
}
+ if(param.carCode == '鍏ㄩ儴杞﹁締'){
+ param.carCode = null
+ param.carId = null
+ }
carUseBookPaiche({
...pagination,
model: { ...param }
@@ -134,12 +156,13 @@
},
itemDetail(item) {
uni.navigateTo({
- url: "/pages/staff/vehicle/sendACarDetail?id=" + item.id
+ url: `/pages/staff/vehicle/sendACarDetail?id=${item.id}`
})
},
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 +173,7 @@
this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD')
this.pagination.page = 0
this.isShowDate = false
+ this.dataList = []
this.getList()
})
},
@@ -168,7 +192,7 @@
getCarsList({
type: 0
}).then(res => {
- this.carsList = [res.data]
+ this.carsList = [[{ code: '鍏ㄩ儴杞﹁締', id: '' }, ...res.data]]
})
},
}
@@ -184,7 +208,7 @@
.app_header {
display: flex;
align-items: center;
- margin: 0 -15rpx;
+ // margin: 0 -15rpx;
background-color: #fff;
.item {
width: 360rpx;
--
Gitblit v1.9.3