yangan
2024-06-20 2490d3321f6d6f9b5bacf29225387f7c3f89a2b4
pages/public-page/forward/forward.vue
@@ -88,15 +88,21 @@
               :hairline="false"
               @click.stop="addForm"
               :disabled="whetherClick"></u-button></view>
         <!--分享日计划  -->
         <view
         class="AdddBtn"><u-button text="分享日计划"
               :hairline="false"
               open-type="share"
               :loading='loading'></u-button></view>
         <!-- 提交按钮 -->
         <view 
            @click.stop="submitForm"
         class="forwardBtn"><u-button text="提交"
               :hairline="false"
               type="warning"
               @click.stop="submitForm"
               :disabled="whetherClick1"
               :loading='loading'></u-button></view>
      </view>
      <!-- 增加按钮 -->
@@ -169,12 +175,25 @@
         }
         this.getOrderPlan()
      },
      onShareAppMessage(res) {
        if (res.from === 'button') {// 来自页面内分享按钮
          console.log(res.target)
        }
        return {
          title: '分享日计划',
          path: 'pages/driver-page/delivery-my/delivery-my/delivery-my?'+ `id=${this.orderPlanId}`
        }
      },
      data() {
         return {
            forwardSurplus: 0,
            paramsName: {},
            huoDaiData: [],  //货代Data
            fleetData: [],  //车队Data
            huoDaiData: [],
            isClickFlag:true,// true 可以 or false for forward and back to the direction of the car direction (default
            fleetData: [],
            // 日计划id
            orderPlanId: '',
            jhOrderPlanForwardList: [{  //转发对象
@@ -366,11 +385,16 @@
         },
         // 转发对象
         forwardObjectClick(index, name, id) {
            if(!id){
            this.selectPopupShow = true;
            this.index = index;
            this.originForwardName = name || ''
            this.isDirectAdd = this.originForwardName !== ''
            this.forwardId = id
            }else{
               return
            }
         },
         selectPopupClose() {
            this.selectPopupShow = false;
@@ -595,6 +619,7 @@
                  return isPass;
               }
            });
            console.log(this.jhOrderPlanForwardList,'jhOderPlan')
            if (isPass) {
               this.loading = true;
               this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => {
@@ -622,7 +647,7 @@
            } else {
               this.tabHuoDai = false;
            }
         }
         },
      }
   };
</script>
@@ -786,11 +811,12 @@
      }
      .utils-buttonGroup {
         width: 610rpx;
         width: 700rpx;
         @include flex;
         justify-content: space-between;
         position: fixed;
         bottom: vww(30);
         left: vww(30);
         left: vww(18);
         z-index: 3;
         .AdddBtn,