From bdad06349901c13f8ce2c9381a3ace2b7f80c652 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 11 三月 2025 14:33:28 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
h5/pages/staff/vehicle/apply.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/h5/pages/staff/vehicle/apply.vue b/h5/pages/staff/vehicle/apply.vue
index 93b9bca..d5c0fbf 100644
--- a/h5/pages/staff/vehicle/apply.vue
+++ b/h5/pages/staff/vehicle/apply.vue
@@ -7,7 +7,7 @@
<text>*</text>
<text>棰勮鐢ㄨ溅鏃舵</text>
</view>
- <view class="value" @click="$goBack()">
+ <view class="value" @click="goBack">
<text class="mr6" :style="{ color: param.startTime ? '#000000' : '#999999' }">
<text v-if="param.startTime">
{{ param.startTime.slice(5, 16) }}鑷硔{
@@ -24,7 +24,7 @@
<text>*</text>
<text>鐢宠杞﹁締</text>
</view>
- <view class="value" @click="$goBack()">
+ <view class="value" @click="goBack">
<input type="text" disabled placeholder="璇疯緭鍏ョ敵璇疯溅杈�" v-model="param.carCode"
placeholder-style="color: #999999;" />
</view>
@@ -130,9 +130,14 @@
this.$set(this.param, 'memberNames', res.map(i => i.realname).join(','))
})
},
+ destroyed() {
+ console.log('椤甸潰閿�姣�');
+ // uni.setStorageSync('vehicleAppForm', {})
+ },
onLoad(option) {
- console.log(option)
- this.param = { ...this.param, ...option }
+ const param = uni.getStorageSync('vehicleAppForm') || {}
+ this.param = { ...param, ...option }
+ console.log(this.param);
this.minDate = new Date().getTime()
this.param.planUseDate = dayjs(this.param.startTime).format('YYYY-MM-DD HH:mm')
},
@@ -160,6 +165,7 @@
...param,
}).then(res => {
if (res.code === 200) {
+ uni.setStorageSync('vehicleAppForm', {})
setTimeout(() => {
uni.showToast({
title: '鎻愪氦鎴愬姛',
@@ -180,6 +186,10 @@
}
this.$jump('/pages/staff/vehicle/applePeo')
},
+ goBack() {
+ uni.setStorageSync('vehicleAppForm', this.param)
+ this.$goBack()
+ },
confirmDate(e) {
this.param.planUseDate = dayjs(e.value).format('YYYY-MM-DD HH:mm')
this.isShowDatetime = false
--
Gitblit v1.9.3