qingyiay
2023-10-13 eec82b55813387e20087989536cd32810b59cd48
pages/customer-page/customer-index/customer-index.vue
@@ -142,7 +142,8 @@
               <view class="receiverPopup__btn"><u-button text="确定"
                     type="primary"
                     @click="popupDetermineClick"
                     :disabled="canClick"></u-button></view>
                     :disabled="canClick"
                     :loading="popupDetermineClickLoading"></u-button></view>
            </view>
         </u-popup>
      </view>
@@ -203,7 +204,8 @@
            carNum: "",
            // 剩余的提煤单数量
            carNumSurplus: '',
            canClick: false
            canClick: false,
            popupDetermineClickLoading: false
         };
      },
      onLoad() {
@@ -260,11 +262,13 @@
         },
         popupDetermineClick() {
            if (this.receiveNum > 0) {
               this.popupDetermineClickLoading = true;
               this.getOrderNum.num = this.receiveNum;
               uni.showLoading({ title: '加载中...' });
               this.$reqPost('customerGet', this.getOrderNum, 'params').then(res => {
                  uni.hideLoading();
                  if (res.code == 0) {
                     this.popupDetermineClickLoading = false;
                     this.getOrderNum.num = '';
                     this.GetOrderPlan();
                     this.show = false;
@@ -274,6 +278,7 @@
                        duration: 1000
                     });
                  } else {
                     this.popupDetermineClickLoading = false;
                     this.$u.toast(res.msg ? res.msg : '领取失败');
                  }
               });