| | |
| | | </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> |
| | |
| | | <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 |
| | |
| | | sendDate: '', |
| | | deptId: '', |
| | | filedId: '', |
| | | isSpecial: false |
| | | coalName:'', |
| | | isSpecial: null |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | 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: '加载中' |
| | |
| | | }, |
| | | 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() { |
| | |
| | | } |
| | | |
| | | .submit-button { |
| | | width: 180rpx; |
| | | width: 450rpx; |
| | | margin: vww(8) auto; |
| | | @include flex; |
| | | |
| | | .u-button { |
| | | width: 45%; |
| | | font-size: 28rpx; |
| | | font-weight: 300; |
| | | color: #ffffff; |