qingyiay
2023-07-17 17427143356e8a410552cb44120a02eb6eb35540
pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue
@@ -1,11 +1,11 @@
<template>
   <view class="main">
      <view style="position: relative;top: -120px;">
      <view>
         <u-empty mode="data"
            icon="http://cdn.uviewui.com/uview/empty/data.png"
            textSize="30"
            iconSize="1000"
            v-if="!orderPlanData"></u-empty>
            v-if="orderPlanData.length===0"></u-empty>
      </view>
      <view class="collection-form">
         <view class="collection-form-item"
@@ -27,6 +27,11 @@
                  <view class="black-bar"></view>
                  <view class="coal-type"
                     v-if="item.orderType">{{ item.orderType||'' }}</view>
               </view>
            </view>
            <view class="second-line">
               <view class="coal-name">
                  <view class="">{{ item.orderCode ||''}}</view>
               </view>
            </view>
            <view class="third-line">
@@ -55,7 +60,7 @@
         </view>
      </view>
      <view class="history-numbers">
         <combined-title title="历史提煤单"></combined-title>
         <combined-title title="历史验质完成"></combined-title>
         <scroll-view :scroll-top="scrollTop"
            scroll-y="true"
            class="scroll-Y"
@@ -70,7 +75,7 @@
               :key="index"
               @click="faYundetail(item)">
               <view class="first">
                  <view class="">{{ item.deptName || '' }}</view>
                  <view class="">{{ item.filedName || '' }}</view>
                  <view class=""><u-icon name="arrow-right"
                        color="#999999"
                        size="40"></u-icon></view>
@@ -81,19 +86,11 @@
               </view>
               <view class="third">
                  <view class="third-line">
                     <view class="third-line_text">领取数:</view>
                     <view class="third-line_num">{{ item.cars2 }}</view>
                  </view>
                  <view class="third-line">
                     <view class="third-line_text">剩余数:</view>
                     <view
                        :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carNO.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}">
                     </view>
                     <view class="third-line_num"
                        v-if="roleType == 1">{{ item.carNumSurplus1 }}</view>
                     <view class="third-line_num"
                        v-else-if="roleType == 2">{{ item.carNumSurplus }}</view>
                  </view>
                  <view class="third-line">
                     <view class="third-line_text">提煤单个数:</view>
                     <view class="third-line_num">{{ item.tmCount }}</view>
                        style=" color: #303030;">{{ item.carNo }}</view>
                  </view>
               </view>
               <view class="fourth">
@@ -190,7 +187,7 @@
            this.pageCurrent++;
            this.qualityInspectionHistory();
         },
         //fix 点击提煤单返回会增加重复数据
         //fix 点击通知单返回会增加重复数据
         ArrSet(Arr, id) {
            var obj = {};
            const arrays = Arr.reduce((setArr, item) => {
@@ -199,9 +196,16 @@
            }, []);
            return arrays;
         },
         // 验质选择
         validateClick(item) {
            uni.navigateTo({
               url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}`
            })
         },
         // 历史
         faYundetail(item) {
            uni.navigateTo({
               url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}&flag=${true}`
            })
         }
      },
@@ -221,6 +225,16 @@
      margin: 0 auto;
   }
   .scroll-Y {
      height: 900rpx;
      .more_text {
         color: #333;
         font-size: 24rpx;
         text-align: center;
      }
   }
   .history-numbers {
      width: 100%;
      position: relative;