yangan
2024-01-31 adc14180ebdc6b3a5251034a0693289dfa015161
pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue
@@ -2,13 +2,14 @@
   <view class="freightForwarder-index">
      <view class="freightForwarder-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"
               icon="http://cdn.uviewui.com/uview/empty/data.png"
               textSize="30"
               iconSize="1000"
               text="暂无数据"
               v-if="orderPlanData.length == 0"></u-empty>
         </view>
         <view class="collection-form">
@@ -54,7 +55,7 @@
               <view class="third-line">
                  <view class="time-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="send-date">{{ item.sendDate }}</view>
@@ -71,7 +72,7 @@
            <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" v-if="orderPlanData.length == 0"></u-empty>
         </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"
@@ -80,6 +81,7 @@
                  icon="http://cdn.uviewui.com/uview/empty/data.png"
                  textSize="30"
                  iconSize="1000"
                  text="暂无数据"
                  v-if="historyCoalData.length === 0"></u-empty>
               <view class="history-information"
                  v-for="(item, index) in historyCoalData"
@@ -106,14 +108,14 @@
                        <view class="third-line_num">{{ item.carNumSurplus }}</view>
                     </view>
                     <view class="third-line">
                        <view class="third-line_text">提煤单个数:</view>
                        <view class="third-line_text">通知单个数:</view>
                        <view class="third-line_num">{{ item.tmCount }}</view>
                     </view>
                  </view>
                  <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>
@@ -121,7 +123,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>
@@ -137,6 +139,7 @@
</template>
<script>
   import { onlineurl } from '@/api/request.js'
   import combinedTitle from '@/components/combined-title/combined-title.vue';
   export default {
      props: {
@@ -182,7 +185,8 @@
            // 数据总量
            total: 0,
            // 是否显示更多数据
            showMoreData: false
            showMoreData: false,
            onlineurl,
         };
      },
      onShow() {
@@ -194,7 +198,7 @@
         }
      },
      methods: {
         // 获取历史提煤单
         // 获取历史通知单
         getJhOrderPlanDataPage() {
            uni.showLoading({
               title: '加载中'
@@ -218,7 +222,7 @@
            this.pageCurrent++;
            this.getJhOrderPlanDataPage();
         },
         //fix 点击提煤单返回会增加重复数据
         //fix 点击通知单返回会增加重复数据
         ArrSet(Arr, id) {
            var obj = {};
            const arrays = Arr.reduce((setArr, item) => {
@@ -254,7 +258,7 @@
               url: `/pages/public-page/forward/forward?orderPlanId=${value.orderPlanId}&carNumSurplusHuodai=${value.carNumSurplusHuodai}&carNum=${value.carNum}`
            });
         },
         // 点击历史提煤单一行获取详情
         // 点击历史通知单一行获取详情
         faYundetail(v) {
            uni.navigateTo({
               url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}`