pages/customer-page/customer-index/customer-index.vue
@@ -61,8 +61,6 @@
<script>
import card from '@/components/card/card.vue';
import { customerId } from '@/utils/status';
// import colorGradient from '@/uni_modules/uview-ui/libs/function/colorGradient';
import { todayDate } from '@/utils/util.js';
export default {
   components: {
      card
@@ -80,7 +78,6 @@
   },
   onShow() {
      this.init();
      console.log(todayDate, '获取今天的日期');
   },
   methods: {
      init() {
@@ -96,10 +93,6 @@
            uni.hideLoading();
         });
      },
      // 领取点击
      // numInput(id) {
      // },
      popupDetermineClick() {
         if (this.receiveNum) {
            this.getOrderNum.num = this.receiveNum;
@@ -116,6 +109,8 @@
                     icon: 'none',
                     duration: 1000
                  });
               } else {
                  this.$u.toast(res.data ? res.data : '领取失败');
               }
            });
         } else {
@@ -128,17 +123,14 @@
      },
      /**
       * @客户领取
       * 领取弹框
       */
      receiveClick(item) {
         this.show = true;
         this.getOrderNum.id = item.id; // 获取领取提煤单的id
      },
      open() {
         console.log('打开了');
      },
      open() {},
      close() {
         console.log('关闭方法');
         this.show = false;
         this.receiveNum = null;
      },
@@ -148,14 +140,20 @@
      // 提煤单详情
      cardBodyClick(name) {
         console.log('提煤单详情', name);
         let code = null;
         this.orderPlanData.forEach(item => {
            if (item.id == name) {
               code = item.code;
            }
         });
         uni.navigateTo({
            url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${name}`
            url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${name}&code=${code}`
         });
      },
      // 转发
      forwardClick(obj) {
         uni.navigateTo({
            url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}`
            url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}`
         });
      }
   }