小小儁爺
2024-09-09 19a02db65a717d22138a623a425040dfba292eb8
1.递交
已修改2个文件
16 ■■■■ 文件已修改
src/views/attendanceModule/attendanceClockIn.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/attendanceModule/attendanceRecord.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/attendanceModule/attendanceClockIn.vue
@@ -121,7 +121,11 @@
      isDisabled: true
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
  },
  mounted() {
    window.addEventListener('resize', this.getHeight)
@@ -156,6 +160,7 @@
      const res = await AttendanceSave(data)
      if (res.code === '200') {
        await this.enterNative(this.form2.usercode)
        this.$message.success('打卡成功!')
      }
    },
    // 获取页面高度
src/views/attendanceModule/attendanceRecord.vue
@@ -351,7 +351,11 @@
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
    this.getAttendanceRecordSearch()
  },
  async mounted() {
@@ -514,11 +518,12 @@
      const data = {
        wkshop_code: this.form.wkshop_code,
        creatusercode: this.form.creatusercode,
        status: 'Y',
        status: this.form.status,
        creatdate: tempDate
      }
      const res = await AttendanceRecordSave(data)
      if (res.code === '200') {
        await this.getAttendanceRecordSearch()
        return this.$message.success('考勤核算成功!')
      }
    },