churf
2023-08-31 b3e2d40e907e21e828214b3d65e7c94096e68c70
eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -590,7 +590,7 @@
        // 检索任务列表
        this.formTasks = res
      })
      crudTaskUser.getAllTaskUser().then(res => {
      crudTaskUser.getAllTaskUser(this.form.taskUserMongo.id).then(res => {
        if (res === []) {
          this.formTaskUserIds = []
        }
@@ -740,7 +740,9 @@
      }
      crudTaskDaliy.getDailyDetail({ taskUserId: this.form.taskUserMongo.id, fillDate: this.form.fillDate }).then(res => {
        if (res !== '') {
          this.form.alreadyConsumedHours = this.temp - res.consumedHours
          console.log('this.temp:', this.temp)
          console.log('res.consumedHours:', res.consumedHours)
          this.form.alreadyConsumedHours = this.temp
          this.form.taskProgress = res.taskProgress
          this.form.consumedHours = res.consumedHours
          this.form.remarks = res.remarks
@@ -755,13 +757,11 @@
          if (flag) {
            this.form.taskUserMongo.id = taskUserMongoName
            this.form.taskHours = 0
            this.form.alreadyConsumedHours = 0
          }
        }
        if (form.flag) {
          this.from.alreadyConsumedHours = this.temp
        }
        if (form.taskUserMongo.id == null) {
          this.form.alreadyConsumedHours = 0
        }
      })
    },