qingyiay
2023-05-17 af436aa050f76584cd5cb88e413e45cd08c15d50
pages/customer-page/customer-index/customer-index.vue
@@ -209,7 +209,7 @@
         return arrays;
      },
      popupDetermineClick() {
         if (this.receiveNum) {
         if (this.receiveNum > 0) {
            this.getOrderNum.num = this.receiveNum;
            uni.showLoading({ title: '加载中...' });
            this.$reqPost('customerGet', this.getOrderNum, 'params').then(res => {
@@ -217,6 +217,7 @@
               if (res.code == 0) {
                  this.getOrderNum.num = '';
                  this.GetOrderPlan();
                  this.show = false;
                  uni.showToast({
                     title: '领取成功!',
                     icon: 'none',
@@ -226,13 +227,19 @@
                  this.$u.toast(res.msg ? res.msg : '领取失败');
               }
            });
         } else if (Number(this.receiveNum) <= 0) {
            uni.showToast({
               title: '请输入合法的数字',
               icon: 'none'
            });
            this.show = true;
         } else {
            uni.showToast({
               title: '请输入领取数量',
               icon: 'none'
            });
            this.show = true;
         }
         this.show = false;
      },
      /**
       * @客户领取