From 5b9c22a1e5e2364603778d1ed95e73129b47f1db Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 12 十一月 2024 10:52:47 +0800
Subject: [PATCH] ll

---
 h5/pages/staff/vehicle/sendACarDetail.vue |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/h5/pages/staff/vehicle/sendACarDetail.vue b/h5/pages/staff/vehicle/sendACarDetail.vue
index f45166d..07bed90 100644
--- a/h5/pages/staff/vehicle/sendACarDetail.vue
+++ b/h5/pages/staff/vehicle/sendACarDetail.vue
@@ -99,18 +99,23 @@
         info.approveDateVO.canBeApproved != null &&
         info.approveDateVO.canBeApproved == 1
       ">
-			<template v-if="appr == '1'">
+			<template>
 				<view class="btn" @click="handleSub(3)">鎷掔粷</view>
 				<view class="btn agree" @click="handleSub(2)">鍚屾剰</view>
 			</template>
-			<view v-else class="btn agree" @click="isShowBack = true">鎾ら攢鐢ㄨ溅</view>
-		</view>
+		</view>
+		<template v-else>
+			<view v-if="(info.approveDateVO.canBeApproved == 1 || userInfo.memberId == info.memberId) && info.status == 0" class="main_footer"  @click="isShowBack = true">
+				<view class="agree btn">鎾ゅ洖鐢ㄨ溅</view>
+			</view>
+		</template>
+		
 
 		<!-- 鎾ら攢 -->
 		<u-popup :show="isShowBack" :round="10" :safeAreaInsetBottom="true" mode="bottom" @close="isShowBack = false">
 			<view class="appr_modal">
-				<view class="title">鎾ら攢鐢ㄨ溅</view>
-				<view class="line"> 鎾ら攢璇存槑 </view>
+				<view class="title">鎾ゅ洖鐢ㄨ溅</view>
+				<view class="line"> 鎾ゅ洖璇存槑 </view>
 				<textarea v-model="backParam.info" placeholder="闈炲繀濉�" placeholder-class="placeholder9" />
 				<view class="main_footer">
 					<view class="btn agree" @click="onSubBack">鎻愪氦</view>
@@ -154,7 +159,8 @@
 				showApprModal: false,
 				isShowBack: false,
 				backParam: {},
-				isShowDrive: false,
+				isShowDrive: false,
+				userInfo: uni.getStorageSync('userInfo') || {},
 				id: '',
 				appr: '',
 				infoStatus: '',
@@ -262,8 +268,13 @@
 				this.showApprModal = true
 			},
 			getDriveList() {
-				driveListPost({}).then(res => {
-					this.driveList = [res.data]
+				driveListPost({}).then(res => {
+					const temp = res.data || []
+					this.driveList = [res.data]
+					if(this.param.driverId){
+						const item = temp.find(i=>i.id == this.param.driverId)
+						this.$set(this.param, 'driverName', item.name)
+					}
 				})
 			},
 			seletedDrive(e) {

--
Gitblit v1.9.3