qingyiay
2023-07-02 f5427eeb16cadd3b0534454ab3c92df6f0ec1536
pages/customer-page/customer-index/customer-index.vue
@@ -4,7 +4,7 @@
         <view class="customer-index-body">
            <!-- 待领取和转发提煤单 -->
            <view class="wait-collection"
               style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain">
               :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }">
            </view>
            <view style="position: relative;top: -120px;">
               <u-empty mode="data"
@@ -39,15 +39,15 @@
                  <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">
                           :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carNO.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}">
                        </view>
                     </view>
                     <view class="car-num">{{ item.carNos||''}}</view>
                     <view class="car-num">{{ item.carNos||item.carNo||''}}</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/clock.png') no-repeat;background-size: cover">
                           :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}">
                        </view>
                     </view>
                     <view class="send-date">{{ item.sendDate }}</view>
@@ -63,11 +63,11 @@
                        v-if="item.orderType!=='外购'">
                        <view class="button-image">转发</view>
                     </view>
                     <view class="forward"
                     <!-- <view class="forward"
                        @click.stop="validateClick(index)"
                        v-if='roleType===4'>
                        <view class="button-image">验质</view>
                     </view>
                     </view> -->
                  </view>
               </view>
            </view>
@@ -118,7 +118,7 @@
                     <view class="fourth">
                        <view class="fourth-icon">
                           <view
                              style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover">
                              :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/clock.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'24rpx',height:'24rpx',lineHeight:'24rpx'}">
                           </view>
                        </view>
                        <view class="senddate">{{ item.sendDate }}</view>
@@ -126,7 +126,7 @@
                     <view class="fourth">
                        <view class="fourth-icon">
                           <view
                              style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;">
                              :style="{backgroundImage: `url(${onlineurl}/appimg/image/banner/carnNUm.png)`,backgroundSize: 'cover',backgroundRepeat: 'no-repeat',width:'26rpx',height:'26rpx',lineHeight:'26rpx'}">
                           </view>
                        </view>
                        <view class="senddate">{{ item.orderCode }}</view>
@@ -162,6 +162,7 @@
</template>
<script>
   import { onlineurl } from '@/api/request.js'
   import card from '@/components/card/card.vue';
   import combinedTitle from '@/components/combined-title/combined-title.vue';
   import { customerId } from '@/utils/status';
@@ -188,7 +189,7 @@
      computed: {
         roleType() {
            return uni.getStorageSync('roleType');
         }
         },
      },
      data() {
         return {
@@ -215,7 +216,8 @@
            carNum: "",
            // 剩余的提煤单数量
            carNumSurplus: '',
            canClick: false
            canClick: false,
            onlineurl: ''
         };
      },
      onLoad() {},
@@ -226,6 +228,7 @@
         init() {
            this.GetOrderPlan();
            this.getJhOrderPlanDataPage();
            this.onlineurl = onlineurl;
         },
         // 获取发运计划列表
         GetOrderPlan() {
@@ -329,7 +332,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?v.cars2:""}` });
         },
         // 点击历史提煤单获取详情
         faYundetail(v) {
@@ -591,10 +594,17 @@
                  }
                  .car-num {
                     color: #515151;
                     white-space: nowrap;
                     overflow: hidden;
                     text-overflow: ellipsis;
                  }
                  .time-icon {
                     width: 24rpx;
                     height: 24rpx;
                     line-height: 24rpx;
                  }
               }
               .fourth-line {