| | |
| | | yyId: '', |
| | | deptId: '', |
| | | filedId: '', |
| | | remark: '' |
| | | }, |
| | | yuYueSection: '' |
| | | yuYueSection: '', |
| | | coalStatus: '', |
| | | tmId: "" |
| | | }; |
| | | }, |
| | | onLoad(params) { |
| | |
| | | this.yuYueListParams.filedId = params.filedId; |
| | | this.yuYueListParams.deptId = params.deptId; |
| | | this.yuYueListParams.sendDate = params.sendDate; |
| | | this.coalStatus = params.coalStatus; |
| | | this.tmId = params.tmId |
| | | }, |
| | | onShow() { |
| | | this.init(); |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 入场申请 |
| | | // 更换预约时间段 |
| | | saveRCSQ(value) { |
| | | this.rcsqData.yyId = value.id; |
| | | this.rcsqData.deptId = value.deptId; |
| | | this.rcsqData.filedId = value.filedId; |
| | | this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('入场申请成功'); |
| | | this.$u.toast('更换预约时间段成功'); |
| | | let timer = setTimeout(() => { |
| | | uni.switchTab({ |
| | | url: '/pages/tabbar-page/index-tabbar/index-tabbar' |
| | | }) |
| | | }, 1500); |
| | | //如果未签到 先签到再申请 |
| | | } else if (res.code == 3) { |
| | | this.$u.toast('请先签到'); |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock?orderPlanId=${this.yuYuePostParams.takeCoalId}&coalStatus=${ |
| | | this.coalStatus}&tmId=${this.tmId}&yyId=${this.rcsqData.originalYyId}&filedId=${this.yuYueListParams.filedId}&deptId=${this.yuYueListParams.deptId}&sendDate=${this.yuYueListParams.sendDate}&yuYueSection=${this.yuYueSection}` |
| | | }) |
| | | }, 1500) |
| | | return |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '入场申请失败,请稍后重试'); |
| | | this.$u.toast(res.msg ? res.msg : '更换预约时间段失败,请稍后重试'); |
| | | } |
| | | }); |
| | | } |