| | |
| | | uni.hideLoading(); |
| | | if (res.code == 0) { |
| | | this.yuYueData = res.data; |
| | | } else { |
| | | this.$u.toast('加载失败'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('预约成功!'); |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | let timer = setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '预约失败'); |
| | | this.$u.toast(res.msg ? res.msg : '预约失败'); |
| | | } |
| | | setTimeout(() => { |
| | | this.yuYueList(); |
| | |
| | | this.rcsqData.filedId = value.filedId; |
| | | this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('新建入场申请成功。'); |
| | | this.$u.toast('入场申请成功'); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '入场申请失败,请稍后重试'); |
| | | } |
| | | }); |
| | | } |