| | |
| | | }; |
| | | }, |
| | | onLoad(params) { |
| | | console.log('appointment,params', params); |
| | | if (params.type == '入场申请') { |
| | | this.isRCSQ = true; |
| | | this.rcsqData.originalYyId = params.yyId; |
| | |
| | | // 预约 |
| | | yuYueClick(id) { |
| | | this.yuYuePostParams.yuYueId = id; |
| | | this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams |
| | | .yuYueId }, 'params').then(res => { |
| | | this.$reqPost('yuYue', { |
| | | takeCoalId: this.yuYuePostParams.takeCoalId, |
| | | yuYueId: this.yuYuePostParams.yuYueId |
| | | }, 'params').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('预约成功!'); |
| | | |
| | | this.yuYueList(); |
| | | this.$u.toast('预约成功'); |
| | | let timer = setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '预约失败'); |
| | | } |
| | | }).then(() => { |
| | | this.yuYueList(); |
| | | }) |
| | | }, |
| | | // 入场申请 |
| | |
| | | this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('入场申请成功'); |
| | | let timer = setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '入场申请失败,请稍后重试'); |
| | | } |