| | |
| | | <u-button class="btn-list" @click="goTravelItinerary" text="行程历史"></u-button> |
| | | |
| | | <!-- <u-button class="btn-budget" @click="goToAdvanceBudget" type="success" text="垫付预算"></u-button> --> |
| | | <u-button class="btn-submit" @click="submitForm" type="primary" text="提交"></u-button> |
| | | <u-button :loading="loading" class="btn-submit" @click="submitForm" type="primary" text="提交"></u-button> |
| | | </view> |
| | | |
| | | |
| | |
| | | voucher: [{ required: true, message: '请上传凭证', trigger: 'blur' }] |
| | | }, |
| | | isHk: false, |
| | | loading: false |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | }, |
| | | |
| | | submitForm() { |
| | | |
| | | if(this.loading){ |
| | | return; |
| | | } |
| | | if (this.fileList.length == 0) { |
| | | uni.$u.toast('图片上传不能为空') |
| | | return |
| | | } |
| | | |
| | | console.log(this.loading); |
| | | this.loading = true; |
| | | this.$refs.uForm.validate().then(res => { |
| | | if (res) { |
| | | |
| | |
| | | |
| | | |
| | | carSubmitDropHoo(this.form).then((res) => { |
| | | |
| | | |
| | | this.form = { |
| | | address: '', |
| | | tripTime: '', |
| | |
| | | if (res == 1) { |
| | | uni.$u.toast('操作成功') |
| | | } |
| | | }).catch(()=>{ |
| | | setTimeout(()=>{ |
| | | this.loading = false |
| | | },2000) |
| | | }) |
| | | |
| | | |
| | |
| | | |
| | | this.cleanedForm = this.cleanFormData({ ...this.form }) |
| | | carSubmitPickHook(this.cleanedForm).then((res) => { |
| | | setTimeout(()=>{ |
| | | this.loading = false |
| | | },2000) |
| | | this.form = { |
| | | address: '', |
| | | tripTime: '', |
| | |
| | | if (res == 1) { |
| | | uni.$u.toast('操作成功') |
| | | } |
| | | }).catch(()=>{ |
| | | setTimeout(()=>{ |
| | | this.loading = false |
| | | },2000) |
| | | }) |
| | | |
| | | } |
| | |
| | | |
| | | }).catch(errors => { |
| | | uni.$u.toast('校验失败') |
| | | setTimeout(()=>{ |
| | | this.loading = false |
| | | },2000) |
| | | }) |
| | | this.$forceUpdate(); |
| | | }, |