| | |
| | | _this2.maxDate = _this2.formatTimeStamp(e.value[0].endTime); |
| | | } |
| | | } |
| | | _this2.confirm2(); |
| | | _this2.show = false; |
| | | } |
| | | case 4: |
| | |
| | | } |
| | | }); |
| | | }, |
| | | confirm2: function confirm2(e) { |
| | | var _this4 = this; |
| | | this.$u.api.getChangeCountCyclePriceVO({ |
| | | applyId: this.id, |
| | | validTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd') + ' 00:00:00' |
| | | }).then(function (res) { |
| | | if (res.code === 200) { |
| | | _this4.model.cyclePrice = res.data.cyclePrice; |
| | | _this4.show1 = false; |
| | | } else { |
| | | _this4.model.startDate = ''; |
| | | } |
| | | }); |
| | | }, |
| | | // 获取明天日期 |
| | | getTomorrow: function getTomorrow() { |
| | | var today = new Date(); |
| | |
| | | return "".concat(year, "-").concat(month, "-").concat(day); |
| | | }, |
| | | submit: function submit() { |
| | | var _this4 = this; |
| | | var _this5 = this; |
| | | this.$refs.uForm.validate().then(function (res) { |
| | | uni.navigateTo({ |
| | | url: "/pages/addition_subtraction/addition_subtraction?id=".concat(_this4.model.id, "&codeId=").concat(_this4.id, "&cyclePrice=").concat(_this4.model.cyclePrice, "&startDate=").concat(_this4.model.startDate, "&code=").concat(_this4.model.code) |
| | | url: "/pages/addition_subtraction/addition_subtraction?id=".concat(_this5.model.id, "&codeId=").concat(_this5.id, "&cyclePrice=").concat(_this5.model.cyclePrice, "&startDate=").concat(_this5.model.startDate, "&code=").concat(_this5.model.code) |
| | | }); |
| | | }).catch(function (errors) {}); |
| | | } |