haoxuan
2024-04-24 78ba89a381c2ca6a745ffa0c3b6c903ed3130d5f
src/views/employeeSalary/attendanceStatistics/components/AttendanceStatisticsDetails.vue
@@ -163,6 +163,8 @@
    formInfo() {
      if (this.islook) {
        this.form = {};
        this.isEditOne=false
        this.isEditTwo=false
        this.$nextTick(()=>{
          this.$refs["form"].resetFields();
          if (this.editRow.workerId) {
@@ -194,6 +196,7 @@
    cancelMethod() {
      this.$refs["form"].resetFields();
      this.islook = false;
      this.$emit('shutdown')
    },
    submitForm(formName,name) {
      this.$refs[formName].validate((valid) => {
@@ -204,7 +207,14 @@
            date:form.month+'-'+day,
            overTimeDuration:Number(form.weekdayOverTime),
            status:form.status,
            workerId:form.workerId
            workerId:form.workerId,
            classes:form.classes,
            classesEndTime:form.classesEndTime,
            classesStartTime:form.classesStartTime,
            endWorkTime:form.endWorkTime,
            startWorkTime:form.startWorkTime,
            workTypeId:form.workTypeId,
            workerName:form.workerName,
          }
            updateAttendance(params).then((res) => {
              if (res.code == 200) {
@@ -213,7 +223,6 @@
                  type: "success",
                });
                this[name]=false
                this.$emit('shutdown')
                this.cancelMethod();
              }
            });