ll
liukangdong
2024-11-12 5b9c22a1e5e2364603778d1ed95e73129b47f1db
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) {