From 2490d3321f6d6f9b5bacf29225387f7c3f89a2b4 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 20 六月 2024 15:47:15 +0800 Subject: [PATCH] feat:司机填写集装箱号 --- pages/public-page/forward/forward.vue | 38 ++++++++++++++++++++++++++++++++------ 1 files changed, 32 insertions(+), 6 deletions(-) diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue index 3362eb1..f27b4b9 100644 --- a/pages/public-page/forward/forward.vue +++ b/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: [], // 鏃ヨ鍒抜d 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, -- Gitblit v1.9.1