qingyiay
2023-07-24 c1006b24922632ccb9ae7186925d0fb64d805246
pages/customer-page/customer-index/customer-index.vue
@@ -2,7 +2,7 @@
   <view class="">
      <view class="customer-index">
         <view class="customer-index-body">
            <!-- 待领取和转发提煤单 -->
            <!-- 待领取和转发通知单 -->
            <view class="wait-collection"
               :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }">
            </view>
@@ -37,12 +37,12 @@
                     </view>
                  </view>
                  <view class="third-line">
                     <view class="time-icon">
                     <!-- <view class="time-icon">
                        <view
                           :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||item.carNo||''}}</view>
                     </view> -->
                     <view class="car-num">{{ item.code||''}}</view>
                  </view>
                  <view class="third-line">
                     <view class="time-icon">
@@ -72,9 +72,9 @@
               </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"
@@ -111,7 +111,7 @@
                              v-else-if="roleType == 2">{{ 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>
@@ -192,7 +192,7 @@
      data() {
         return {
            orderPlanData: [],
            show: false, // 领取提煤单弹出框
            show: false, // 领取通知单弹出框
            receiveNum: null,
            getOrderNum: {
               num: '',
@@ -212,7 +212,7 @@
            showMoreData: false,
            cars2: "",
            carNum: "",
            // 剩余的提煤单数量
            // 剩余的通知单数量
            carNumSurplus: '',
            canClick: false,
            onlineurl: ''
@@ -238,7 +238,7 @@
               }
            });
         },
         // 获取历史提煤单
         // 获取历史通知单
         getJhOrderPlanDataPage() {
            uni.showLoading({
               title: '加载中'
@@ -263,7 +263,7 @@
            this.pageCurrent++;
            this.getJhOrderPlanDataPage();
         },
         //fix 点击提煤单返回会增加重复数据
         //fix 点击通知单返回会增加重复数据
         ArrSet(Arr, id) {
            var obj = {};
            const arrays = Arr.reduce((setArr, item) => {
@@ -311,7 +311,7 @@
          */
         receiveClick(item) {
            this.show = true;
            this.getOrderNum.id = item.id; // 获取领取提煤单的id
            this.getOrderNum.id = item.id; // 获取领取通知单的id
            this.cars2 = item.cars2
            this.carNum = item.carNum
         },
@@ -324,15 +324,15 @@
            console.log('输入框', e);
            this.canClick = e > (this.carNum - this.cars2)
            if (this.canClick) {
               this.$u.toast('已超过当前日计划提煤单数量,请重新输入')
               this.$u.toast('已超过当前日计划通知单数量,请重新输入')
            }
         },
         // 提煤单详情
         // 通知单详情
         cardBodyClick(v) {
            uni
               .navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2?v.cars2:""}` });
         },
         // 点击历史提煤单获取详情
         // 点击历史通知单获取详情
         faYundetail(v) {
            uni.navigateTo({
               url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&coalName=${v.coalName}&deptName=${v.deptName}`