qingyiay
2023-06-30 80a3aa28c4e66df31c6032e3098aeb376198f2d7
pages/customer-page/customer-index/customer-index.vue
@@ -20,20 +20,29 @@
                  @click="cardBodyClick(item)">
                  <view class="first-line">
                     <view class="dispatch-receive">
                        <view class="dispatch">{{ item.filedName }}</view>
                        <view class="dispatch">{{ item.filedName||'' }}</view>
                     </view>
                     <view class="point-number">
                        <text class="residue">{{ item.cars2 }}</text>
                        <text>/{{ item.carNum }}</text>
                     <view class="point-number"
                        v-if="roleType == 1">
                        <text class="residue">{{ item.cars2||'' }}</text>
                        <text>/{{ item.carNum ||''}}</text>
                     </view>
                  </view>
                  <view class="second-line">
                     <view class="coal-name">
                        <view class="">{{ item.coalName }}</view>
                        <view class="">{{ item.coalName ||''}}</view>
                        <view class="black-bar"></view>
                        <view class="coal-type"
                           v-if="item.orderType">{{ item.orderType }}</view>
                           v-if="item.orderType">{{ item.orderType||'' }}</view>
                     </view>
                  </view>
                  <view class="third-line">
                     <view class="time-icon">
                        <view
                           style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carNO.png') no-repeat;background-size: cover">
                        </view>
                     </view>
                     <view class="car-num">{{ item.carNos||''}}</view>
                  </view>
                  <view class="third-line">
                     <view class="time-icon">
@@ -45,12 +54,19 @@
                  </view>
                  <view class="fourth-line">
                     <view class="receive"
                        @click.stop="receiveClick(item)">
                        @click.stop="receiveClick(item)"
                        v-if="item.orderType!=='外购'">
                        <view class="button-image">领取</view>
                     </view>
                     <view class="forward"
                        @click.stop="forwardClick(item)">
                        @click.stop="forwardClick(item)"
                        v-if="item.orderType!=='外购'">
                        <view class="button-image">转发</view>
                     </view>
                     <view class="forward"
                        @click.stop="validateClick(index)"
                        v-if='roleType===4'>
                        <view class="button-image">验质</view>
                     </view>
                  </view>
               </view>
@@ -313,7 +329,7 @@
         // 提煤单详情
         cardBodyClick(v) {
            uni
      .navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
               .navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
         },
         // 点击历史提煤单获取详情
         faYundetail(v) {
@@ -326,7 +342,12 @@
            if (obj.cars2 == 0) return this.$u.toast('请先领取后再转发');
            uni
               .navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}` });
         }
         },
         // 验质
         validateClick(index) {
            uni
               .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan?index=${index}` });
         },
      }
   };
</script>
@@ -552,7 +573,7 @@
               }
               .third-line {
                  width: 40%;
                  width: 80%;
                  height: vww(30);
                  margin-left: vww(15);
                  display: flex;
@@ -568,13 +589,19 @@
                     font-weight: 300;
                     color: #515151;
                  }
                  .car-num {
                     white-space: nowrap;
                     overflow: hidden;
                     text-overflow: ellipsis;
                  }
               }
               .fourth-line {
                  width: 100%;
                  height: vww(30);
                  @include flex;
                  justify-content: flex-start;
                  justify-content: flex-end;
                  position: relative;
                  bottom: vww(10);
                  left: 25%;