| | |
| | | tempValue: '', |
| | | resData: true, |
| | | userIds: [], |
| | | watchFlg: false |
| | | watchFlg: false, |
| | | editVar: '' |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | if (newVal === 0 && this.userIds.includes(this.form.taskUserMongo.id)) { |
| | | this.form.alreadyConsumedHours = this.tempValue |
| | | } |
| | | if (this.crud.status.edit === 1 && newVal === 0) { |
| | | this.form.alreadyConsumedHours = this.form.alreadyConsumedHours - (this.editVar - 0) |
| | | } |
| | | if (this.watchFlg) { |
| | | this.form.alreadyConsumedHours = (this.form.alreadyConsumedHours) - (oldVal - 0) + (newVal - 0) |
| | | this.watchFlg = false |
| | |
| | | }, |
| | | 'confirmHours': function(newVal) { |
| | | this.confirmHours = newVal |
| | | }, |
| | | 'crud.status.edit': function() { |
| | | this.editVar = this.form.consumedHours |
| | | } |
| | | }, |
| | | methods: { |