ll
liukangdong
2025-02-27 88a34566f7c3f77d90daa3fd57fb0abca3e1b5e6
pda/pages/index/center.vue
@@ -42,6 +42,10 @@
               <text class="value">{{ item.contractNum }}</text>
               <text class="primaryColor" @click="subDetail(item)">预约详情</text>
            </view>
            <view class="line line2" v-if="item.billCode && item.wmsContractNum">
               <text class="label">合同单号</text>
               <text class="value">{{ item.wmsContractNum }}</text>
            </view>
            <view class="line">
               <text class="label">驾驶员</text>
               <text class="value">{{ item.driverName }} {{ item.drivierPhone }}</text>
@@ -83,6 +87,10 @@
               <input v-model="platformCallSearch" type="text" placeholder="搜索车辆牌照" placeholder-class="placeholder9"
                  @confirm="callQuery" />
            </view>
            <view v-if="platformCallList.length == 0" class="empty_wrap">
               <image src="@/static/default_nodata@2x.png" />
               <text>暂无排队车辆</text>
            </view>
            <view class="order_list">
               <scroll-view scroll-y="true" @scrolltolower="callScrolltolower" class="scroll_view">
                  <view class="platform_ing" v-for="item in platformCallList" :key="item.id">
@@ -106,6 +114,10 @@
                        <text class="label">合同单号</text>
                        <text class="value">{{ item.contractNum }}</text>
                        <text class="primaryColor" @click="subDetail(item)">预约详情</text>
                     </view>
                     <view class="line line2" v-if="item.billCode && item.wmsContractNum">
                        <text class="label">合同单号</text>
                        <text class="value">{{ item.wmsContractNum }}</text>
                     </view>
                     <view class="line">
                        <text class="label">驾驶员</text>
@@ -253,9 +265,6 @@
      },
      onLoad() {
         this.getPlatformGroup()
         // setInterval(() => {
         //    this.getPlatformGroup()
         // }, 1000 * 30)
      },
      onHide(){
         if(this.timer1){
@@ -329,6 +338,9 @@
            if (this.platformTaskInfo && this.platformTaskInfo.platformJobList && this.platformTaskInfo.platformJobList
               .length > 0) {
               this.platformTaskInfo.platformJobList.forEach(item => {
                  if(item.wmsContractNum){
                     item.wmsContractNum = item.wmsContractNum.split(',').join(',')
                  }
                  if (item.newCallDate) {
                     let timeNum = 0
                     if(time > new Date(item.newCallDate).getTime()){
@@ -498,6 +510,11 @@
            }).then(res => {
               if (res.data && res.data.records) {
                  this.platformCallList = [...this.platformCallList, ...res.data.records]
                  this.platformCallList.forEach(item => {
                     if(item.wmsContractNum){
                        item.wmsContractNum = item.wmsContractNum.split(',').join(',')
                     }
                  })
                  this.platformCallTotal = res.data.total
               }
            })
@@ -694,12 +711,15 @@
            margin-bottom: 20rpx;
            .label {
               width: 144rpx;
               width: 132rpx;
               color: #666666;
               flex-shrink: 0;
            }
            .value {
               flex: 1;
               display: flex;
               flex-wrap: wrap;
            }
         }
@@ -841,6 +861,7 @@
                  font-size: 28rpx;
                  color: #666666;
                  width: 88rpx;
                  flex-shrink: 0;
               }
               .value {
@@ -1083,4 +1104,8 @@
         }
      }
   }
   .line2{
      margin-right: -30rpx;
      padding-right: 0;
   }
</style>