| | |
| | | } |
| | | }, |
| | | checkForm(flag) { |
| | | if (this.form.taskUserMongo.id === undefined) { |
| | | this.$message({ |
| | | showClose: true, |
| | | message: '任务进度不能为空', |
| | | type: 'error' |
| | | }) |
| | | return |
| | | } else if (this.form.fillDate === undefined) { |
| | | this.$message({ |
| | | showClose: true, |
| | | message: '分配任务不能为空', |
| | | type: 'error' |
| | | }) |
| | | return |
| | | } else if (this.form.consumedHours === undefined || this.form.consumedHours === 0) { |
| | | this.$message({ |
| | | showClose: true, |
| | | message: '请填写任务时长', |
| | | type: 'error' |
| | | }) |
| | | return |
| | | } else if (this.form.taskProgress === undefined) { |
| | | this.$message({ |
| | | showClose: true, |
| | | message: '填写日期不能为空', |
| | | type: 'error' |
| | | }) |
| | | return |
| | | } |
| | | crudTaskDaliy.checkTaskHours({ 'taskProgress': this.form.taskProgress, 'taskUserId': this.form.taskUserMongo.id, 'fillDate': this.form.fillDate }).then(res => { |
| | | if (res === false && !this.confirmProgress) { |
| | | flag++ |