| | |
| | | this.punchTheClockObj.tmcoa = params.tmId.toString(); |
| | | this.orderPlanId = params.orderPlanId; |
| | | this.coalStatus = params.coalStatus; |
| | | this.yyId = params.yyId; |
| | | }, |
| | | data() { |
| | | return { |
| | | nowTime: '', |
| | | coalStatus: 0, |
| | | orderPlanId:'', |
| | | yyId:null, |
| | | coalDetailsData:{}, |
| | | punchTheClockObj: { |
| | | tmcoa: null, |
| | |
| | | console.log(res, '签到'); |
| | | if (res.code == 0) { |
| | | this.$u.toast('签到成功'); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }, |
| | | 500 |
| | | ); |
| | | }); |
| | | // 如果是签到后才能更改时间,点签到完成就别返回主界面了,更改完后再返回 |
| | | // setTimeout(() => { |
| | | // uni.navigateBack({ |
| | | // delta: 1 |
| | | // }, |
| | | // 500 |
| | | // ); |
| | | // }); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '签到失败'); |
| | | } |