From e8ad0c2b79f54ff88445ce4a37032c4910f66cff Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 13 九月 2024 17:06:54 +0800 Subject: [PATCH] feat:预约列表增加传参 --- pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo.vue | 38 +++++++++++++++++++++++++------------- 1 files changed, 25 insertions(+), 13 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo.vue b/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo.vue index 6e43e5c..3485ac2 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/originInfo/originInfo.vue @@ -72,14 +72,19 @@ </u-form-item> </u-form> <view class="submit-button"> - <u-button text="鏃犻渶鎻愪氦" - type="primary" - @click.stop="directAppointment" - v-if="isSpecial===1"></u-button> - <u-button text="鎻愪氦" - type="primary" - @click.stop="submitOriginInfo" - :loading="submitOriginInfoLoading"></u-button> + <view class=""> + <u-button text="绔嬪嵆棰勭害" + type="primary" + @click.stop="directAppointment" + v-if="isSpecial"></u-button> + </view> + <view class=""> + <u-button text="鎻愪氦淇℃伅" + type="primary" + @click.stop="submitOriginInfo" + :loading="submitOriginInfoLoading" + :disabled="!coalContactClean"></u-button> + </view> </view> </view> </view> @@ -90,7 +95,8 @@ <script> import combinedTitle from '@/components/combined-title/combined-title.vue' import BigNumber from "bignumber.js" - import { BaseUrl } from '@/api/publicInterface.js' + import { BaseUrl } from '@/api/publicInterface.js'; + import {mapMutations} from 'vuex'; export default { components: { combinedTitle @@ -115,7 +121,8 @@ sendDate: '', deptId: '', filedId: '', - isSpecial: false + coalName:'', + isSpecial: null } }, computed: { @@ -130,10 +137,13 @@ this.sendDate = params.sendDate || '' this.deptId = params.deptId || '' this.filedId = params.filedId || '' - this.isSpecial = params.isSpecial || 0 + this.coalName = params.coalName; + this.isSpecial = Number(params.isSpecial) + console.log(params.isSpecial, typeof params.isSpecial); this.getTakeCoal() }, methods: { + ...mapMutations(['changeisUploadimg']), getTakeCoal() { uni.showLoading({ title: '鍔犺浇涓�' @@ -214,7 +224,7 @@ }, directAppointment() { uni.navigateTo({ - url: `/pages/driver-page/appointment/appointment?takeCoalId=${this.orderPlanId}&filedId=${this.filedId}&deptId=${this.deptId}&sendDate=${this.sendDate}` + url: `/pages/driver-page/appointment/appointment?takeCoalId=${this.orderPlanId}&filedId=${this.filedId}&deptId=${this.deptId}&sendDate=${this.sendDate}&coalName=${this.coalName}` }); }, submitOriginInfo() { @@ -337,10 +347,12 @@ } .submit-button { - width: 180rpx; + width: 450rpx; margin: vww(8) auto; + @include flex; .u-button { + width: 45%; font-size: 28rpx; font-weight: 300; color: #ffffff; -- Gitblit v1.9.1