| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remarks" label="备注" min-width="140px" /> |
| | | <el-table-column v-if="checkPer(['admin','task:divide','task:edit','task:del'])" label="操作" width="180px" align="center" fixed="right"> |
| | | <el-table-column v-if="checkPer(['admin','taskDaliy:add','taskDaliy:edit','taskDaliy:del'])" label="操作" width="180px" align="center" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <udOperation :data="scope.row" :permission="permission" /> |
| | | <udOperation :data="scope.row" :permission="permission" > |
| | | <el-button |
| | | slot="left" |
| | | v-permission="permission.add" |
| | | size="mini" |
| | | type="primary" |
| | | icon="el-icon-share" |
| | | @click="quickFilling1(scope.row)" |
| | | /> |
| | | </udOperation> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | this.form.taskUserMongo.name = this.currentTask.name |
| | | this.form.taskUserMongo.taskStartDate = this.currentTask.taskStartDate |
| | | this.form.taskUserMongo.taskEndDate = this.currentTask.taskEndDate |
| | | this.form.taskProgress = this.currentTask.taskProgress |
| | | |
| | | this.fetchAlreadyConsumedHours() |
| | | |
| | |
| | | type: 'error' |
| | | }) |
| | | return |
| | | } else if (parseInt(this.form.consumedHours) + parseInt(this.form.todayFixedHours) > parseInt(this.form.todayAttendanceHours)) { |
| | | this.$message({ |
| | | showClose: true, |
| | | message: '当日消耗工时总和超过打卡时间,请修改消耗工时', |
| | | type: 'error' |
| | | }) |
| | | return |
| | | // } else if (parseInt(this.form.consumedHours) + parseInt(this.form.todayFixedHours) > parseInt(this.form.todayAttendanceHours)) { |
| | | // this.$message({ |
| | | // showClose: true, |
| | | // message: '当日消耗工时总和超过打卡时间,请修改消耗工时', |
| | | // type: 'error' |
| | | // }) |
| | | // return |
| | | } else if (this.form.taskProgress === undefined) { |
| | | this.$message({ |
| | | showClose: true, |
| | |
| | | this.crud.toAdd() |
| | | this.getTaskProgress(object.id) |
| | | }, |
| | | quickFilling1(object) { |
| | | this.currentTask = { ...object, id: object.taskUserMongo.id, consumedHours: object.consumedHours, taskProgress: object.taskProgress } |
| | | // this.form = object |
| | | // this.form.fillDate = '' |
| | | // this.form.consumedHours = 0 |
| | | // console.log('object : ', object); |
| | | // this.form.taskUserMongo = object.taskUserMongo |
| | | this.crud.toAdd() |
| | | }, |
| | | getTaskProgress(id) { |
| | | // 任务更改查询任务进度 |
| | | crudTaskDaliy.getDailyTaskProgress({ taskUserId: id }).then(res => { |