churf
2023-09-15 52affdb0b22c402ddb07510a7d97163f9459ac94
日报已消耗工时表现优化
1 files modified
9 ■■■■■ changed files
eladmin-web-master/src/views/task/taskDaliy/index.vue 9 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -440,7 +440,8 @@
      tempValue: '',
      resData: true,
      userIds: [],
      watchFlg: false
      watchFlg: false,
      editVar: ''
    }
  },
  computed: {
@@ -453,6 +454,9 @@
      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
@@ -463,6 +467,9 @@
    },
    'confirmHours': function(newVal) {
      this.confirmHours = newVal
    },
    'crud.status.edit': function() {
      this.editVar = this.form.consumedHours
    }
  },
  methods: {