churf
2023-08-25 71a12701db5c7932e4d220ed7570ca503951dbce
日报暂存变量temp优化
1 files modified
3 ■■■■■ changed files
eladmin-web-master/src/views/task/taskDaliy/index.vue 3 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -596,6 +596,7 @@
          if (this.formTaskUserIds[i].id === this.form.taskUserMongo.id) {
            this.form.taskHours = this.formTaskUserIds[i].performanceHours
            this.form.alreadyConsumedHours = this.formTaskUserIds[i].alreadyConsumedHours
            this.temp = this.formTaskUserIds[i].alreadyConsumedHours
          }
        }
      })
@@ -711,8 +712,6 @@
      }
    },
    formDateChange() {
      this.form.consumedHours = 0
      this.tempValue = 0
      crudTaskDaliy.getDailyDetail({ taskUserId: this.form.taskUserMongo.id, fillDate: this.form.fillDate }).then(res => {
        if (res !== '') {
          this.form.alreadyConsumedHours = this.temp - res.consumedHours