MrShi
2025-03-28 3363af77fa23bdc599c3f746ba9802b799c780eb
h5/pages/staff/task/driver.vue
@@ -2,7 +2,7 @@
  <view class="main_app">
    <view class="status_wrap">
      <view class="name">{{info.driverName}}的入园预约</view>
      <view class="desc">{{info.carCodeFront}}</view>
      <view class="gray">{{info.carCodeFront}}</view>
         <view class="desc" :class="{
             gray: info.businessStatus == '2' || info.businessStatus == '3' || info.businessStatus == '4',
           }">{{ infoStatus }}</view>
@@ -18,7 +18,7 @@
        <view class="value">{{info.inReason}}</view>
      </view>
      <view class="item">
        <view class="label">合同编号</view>
        <view class="label">合同/单据编号</view>
        <view class="value">{{info.contractNum}}</view>
      </view>
         <view class="item">
@@ -26,9 +26,10 @@
           <view v-if="info.arriveDate" class="value">{{info.arriveDate.slice(0,16)}}</view>
         </view>
         <view class="item">
           <view class="label">准运证照片</view>
           <view class="label">准运证/运单照片</view>
           <view class="value">
               <image
               @click="priviewImage(info.prefixUrl + info.transportImg)"
                  v-if="info.transportImg"
                 class="avatar_wrap"
                 :src="info.prefixUrl + info.transportImg"
@@ -36,7 +37,7 @@
            </view>
         </view>
         <view class="item">
           <view class="label">入库类型</view>
           <view class="label">作业类型</view>
           <view class="value">{{info.inType == 0 ? '整托盘' : '件烟'}}</view>
         </view>
         <view class="item">
@@ -70,6 +71,7 @@
               <image v-if="item.type == 1" class="img" src="@/static/staff/ic_chaosong@2x.png" />
               <image v-else-if="item.approveType == 1 || item.approveType == 0" class="img"
                  src="@/static/staff/ic_shenpiren@2x.png" />
                  <image v-else-if="item.faceImg" :src="item.faceImg" class="img"></image>
               <span v-else class="img_name">{{item.memberName && item.memberName.slice(0,1)}}</span>
               <image v-if="item.status == 2" class="status" src="@/static/staff/liucheng_success@2x.png"
                  mode="widthFix" />
@@ -101,7 +103,11 @@
      </view>
    </view>
    <view class="emyty"></view>
    <view class="main_footer">
    <view v-if="
      info.approveDateVO != null &&
      info.approveDateVO.canBeApproved != null &&
      info.approveDateVO.canBeApproved == 1
    " class="main_footer">
      <view class="btn" @click="handleSub('0')">拒绝</view>
      <view class="btn agree" @click="handleSub('1')">同意</view>
    </view>
@@ -151,11 +157,17 @@
    }
  },
   onLoad(option) {
      uni.setStorageSync('ywinfo',{})
      this.type = option.objType
      this.infoStatus = option.info
      this.getDetail(option.id)
   },
  methods: {
      priviewImage(url) {
         uni.previewImage({
            urls: [url]
         })
      },
      getDetail(id) {
         driverApplyDetail({id}).then(res => {
            this.info = res.data
@@ -425,14 +437,15 @@
      margin-bottom: 20rpx;
      color: #222222;
    }
    .desc {
      font-size: 26rpx;
      color: #999999;
      color: #ed4545;
         margin-bottom: 12rpx;
    }
      .gray {
         color: #999999;
         margin-bottom: 12rpx;
      }
    .status {