From e23a1db0b60437f17d09d65c65f8fd0c8a5d88c7 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 26 八月 2024 18:11:07 +0800
Subject: [PATCH] 最新版本

---
 h5/pages/staff/vehicle/sendACarDetail.vue |   31 +++++++++++++++++++++----------
 1 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/h5/pages/staff/vehicle/sendACarDetail.vue b/h5/pages/staff/vehicle/sendACarDetail.vue
index 8ffdd4c..01c8c2e 100644
--- a/h5/pages/staff/vehicle/sendACarDetail.vue
+++ b/h5/pages/staff/vehicle/sendACarDetail.vue
@@ -118,10 +118,19 @@
       </view>
     </view>
     <view class="emyty"></view>
-    <view class="main_footer">
-      <!-- <view class="btn" @click="handleSub(3)">鎷掔粷</view>
-      <view class="btn agree" @click="handleSub(2)">鍚屾剰</view> -->
-      <view class="btn agree" @click="isShowBack = true">鎾ら攢鐢ㄨ溅</view>
+    <view
+      class="main_footer"
+      v-if="
+        info.approveDateVO != null &&
+        info.approveDateVO.canBeApproved != null &&
+        info.approveDateVO.canBeApproved == 1
+      "
+    >
+      <template v-if="appr == '1'">
+        <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>
 
     <!-- 鎾ら攢 -->
@@ -155,7 +164,7 @@
     >
       <view class="appr_modal">
         <view class="title">{{ param.status == 2 ? "鍚屾剰" : "鎷掔粷" }}</view>
-        <view class="line" @click="isShowDrive = true">
+        <view v-if="param.status == 2" class="line" @click="isShowDrive = true">
           <text v-if="param.driverName">{{ param.driverName }}</text>
           <text v-else class="placeholder9">娲捐溅鍙告満</text>
           <u-icon class="ml12" name="arrow-right" color="#999999" />
@@ -163,7 +172,7 @@
         <textarea
           v-model="param.checkInfo"
           :placeholder="
-            param.status == 2 ? '鍚屾剰璇存槑锛岄潪蹇呭~' : '鎷掔粷璇存槑锛岄潪蹇呭~'
+            param.status == 2 ? '鍚屾剰璇存槑锛岄潪蹇呭~' : '鎷掔粷璇存槑锛屽繀濉�'
           "
           placeholder-class="placeholder9"
         />
@@ -187,7 +196,7 @@
 </template>
 
 <script>
-import { carUseBookDetail, carUseBookAppr, driveListPos, carUseBookBack } from '@/api'
+import { carUseBookDetail, carUseBookAppr, driveListPost, carUseBookBack } from '@/api'
 export default {
   data() {
     return {
@@ -196,6 +205,7 @@
       backParam: {},
       isShowDrive: false,
       id: '',
+      appr: '',
       info: {},
       param: {
         status: ''
@@ -206,6 +216,7 @@
   },
   onLoad(option) {
     this.id = option.id
+    this.appr = option.appr || ''
     this.getDetail()
   },
   methods: {
@@ -295,7 +306,7 @@
     padding: 30rpx 0;
 
     .flow_title {
-      font-weight: 500;
+      font-weight: 600;
       font-size: 32rpx;
       color: #222222;
       margin-bottom: 24rpx;
@@ -466,7 +477,7 @@
     padding: 30rpx 0;
 
     .name {
-      font-weight: 500;
+      font-weight: 600;
       font-size: 32rpx;
       margin-bottom: 20rpx;
       color: #222222;
@@ -525,7 +536,7 @@
       margin-bottom: 20rpx;
     }
     .title {
-      font-weight: 500;
+      font-weight: 600;
       font-size: 32rpx;
       color: #222222;
       margin-bottom: 40rpx;

--
Gitblit v1.9.3