| | |
| | | this.maxDate = this.formatTimeStamp(e.value[0].endTime) |
| | | } |
| | | } |
| | | this.confirm2(); |
| | | this.show = false |
| | | } |
| | | }, |
| | |
| | | this.$u.api.getChangeCountCyclePriceVO({ |
| | | applyId: this.id, |
| | | validTime: this.model.startDate |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.model.cyclePrice = res.data.cyclePrice |
| | | this.show1 = false |
| | | } else { |
| | | this.model.startDate = '' |
| | | } |
| | | }) |
| | | }, |
| | | confirm2(e) { |
| | | this.$u.api.getChangeCountCyclePriceVO({ |
| | | applyId: this.id , |
| | | validTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd') + ' 00:00:00' |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.model.cyclePrice = res.data.cyclePrice |
| | |
| | | submit() { |
| | | this.$refs.uForm.validate().then(res => { |
| | | uni.navigateTo({ |
| | | url: `/pages/addition_subtraction/addition_subtraction?id=${this.model.id}&codeId=${this.id}&cyclePrice=${this.model.cyclePrice}&startDate=${this.model.startDate}&code=${this.model.code}` |
| | | url: `/pages/addition_subtraction/addition_subtraction?id=${this.model.id}&codeId=${this.id}&cyclePrice=${this.model.cyclePrice}&startDate=${this.model.startDate}&code=${this.model.code}&title=加减保申请` |
| | | }) |
| | | }).catch(errors => { |
| | | |