BAOLH
2025-04-16 9fe3e7cb3ef9569e064b98680c30a4d8f494cdd6
企微申请对接初版提交(优化)
6 files modified
100 ■■■■■ changed files
eladmin-web-master/src/components/ApprovalLine/index.vue 1 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue 20 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceCardReplacement/index.vue 19 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceGoOut/index.vue 20 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceLeave/index.vue 20 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceOvertime/index.vue 20 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ApprovalLine/index.vue
@@ -135,7 +135,6 @@
      const that = this
      if (that.eventData.processList) {
        const processList = JSON.parse(that.eventData.processList)
        console.log(processList)
        return processList[0].NodeList ? processList[0].NodeList.map((item, index) => {
          if (item.NodeType && item.NodeType === 2) {
            if (index === 0) {
eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue
@@ -141,7 +141,7 @@
              />
            </el-select>
          </el-form-item>
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)">
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)">
            <el-select
              v-model="form.approvalUserId"
              filterable
@@ -705,15 +705,25 @@
      // 角色级别:普通用户
      roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY,
      // 角色级别: 总经理
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL,
      // 企微审核判断
      wecomApprovalVisible: false
    }
  },
  computed: {
    ...mapGetters(['user'])
  },
  created() {
    this.getUsers()
    this.getApprovalUsers()
    const that = this
    that.getUsers()
    that.getApprovalUsers()
    that.$on('dictReady', () => {
      const dictData = { ...that.dict }
      const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom')
      if (filterData.length > 0) {
        that.wecomApprovalVisible = true
      }
    })
  },
  methods: {
    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
@@ -733,7 +743,7 @@
        this.form.userId = this.user.id
      }
      if (this.dict[this.dictApprovalSiteType].length > 0) {
      if (this.wecomApprovalVisible) {
        this.form.approvalUserId = 0
      }
    },
eladmin-web-master/src/views/attendance/attendanceCardReplacement/index.vue
@@ -92,7 +92,7 @@
              />
            </el-select>
          </el-form-item>
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)">
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)">
            <el-select v-model="form.approvalUserId" clearable filterable placeholder="请选择" style="width: 370px;" :disabled="form.approvalStatus == dictCardApproveStatusAgree || form.approvalStatus == dictCardApproveStatusRefuse || form.wecomSpNo !== null">
              <el-option
                v-for="item in approvalUsers"
@@ -331,7 +331,10 @@
      // 角色级别:普通用户
      roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY,
      // 角色级别: 总经理
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL }
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL,
      // 企微审核判断
      wecomApprovalVisible: false
    }
  },
  computed: {
    ...mapGetters([
@@ -352,6 +355,16 @@
  //     }
  //   }
  // },
  created() {
    const that = this
    that.$on('dictReady', () => {
      const dictData = { ...that.dict }
      const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom')
      if (filterData.length > 0) {
        that.wecomApprovalVisible = true
      }
    })
  },
  methods: {
    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
    [CRUD.HOOK.beforeRefresh]() {
@@ -371,7 +384,7 @@
        this.form.userId = this.user.id
      }
      if (this.dict[this.dictApprovalSiteType].length > 0) {
      if (this.wecomApprovalVisible) {
        this.form.approvalUserId = 0
      }
    },
eladmin-web-master/src/views/attendance/attendanceGoOut/index.vue
@@ -177,7 +177,7 @@
              />
            </el-select>
          </el-form-item>
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)">
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)">
            <el-select
              v-model="form.approvalUserId"
              filterable
@@ -705,15 +705,25 @@
      // 角色级别:普通用户
      roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY,
      // 角色级别: 总经理
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL,
      // 企微审核判断
      wecomApprovalVisible: false
    }
  },
  computed: {
    ...mapGetters(['user'])
  },
  created() {
    this.getUsers()
    this.getApprovalUsers()
    const that = this
    that.getUsers()
    that.getApprovalUsers()
    that.$on('dictReady', () => {
      const dictData = { ...that.dict }
      const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom')
      if (filterData.length > 0) {
        that.wecomApprovalVisible = true
      }
    })
  },
  methods: {
    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
@@ -732,7 +742,7 @@
        this.form.userId = this.user.id
      }
      if (this.dict[this.dictApprovalSiteType].length > 0) {
      if (this.wecomApprovalVisible) {
        this.form.approvalUserId = 0
      }
    },
eladmin-web-master/src/views/attendance/attendanceLeave/index.vue
@@ -103,7 +103,7 @@
              />
            </el-select>
          </el-form-item>
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)">
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)">
            <el-select v-model="form.approvalUserId" filterable clearable placeholder="请选择" style="width: 340px;" :disabled="form.approvalStatus == dictAppRovalStatusPassed || form.approvalStatus == dictAppRovalStatusReturn || form.wecomSpNo !== null">
              <el-option
                v-for="item in approvalUsers"
@@ -397,7 +397,9 @@
      successLoading: false,
      userRolesLevelMin: null,
      // 角色级别: 总经理
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL
      roleLevelGenerl: constant.ROLE_LEVEL_GENERAL,
      // 企微审核判断
      wecomApprovalVisible: false
    }
  },
  computed: {
@@ -406,9 +408,17 @@
    ])
  },
  created() {
    this.getUsers()
    this.getApprovalUsers()
    const that = this
    that.getUsers()
    that.getApprovalUsers()
    // this.getUserTimes()
    that.$on('dictReady', () => {
      const dictData = { ...that.dict }
      const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom')
      if (filterData.length > 0) {
        that.wecomApprovalVisible = true
      }
    })
  },
  methods: {
    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
@@ -426,7 +436,7 @@
        // 表单赋值
        this.form.userId = this.user.id
      }
      if (this.dict[this.dictApprovalSiteType].length > 0) {
      if (this.wecomApprovalVisible) {
        this.form.approvalUserId = 0
      }
    },
eladmin-web-master/src/views/attendance/attendanceOvertime/index.vue
@@ -68,7 +68,7 @@
              />
            </el-select>
          </el-form-item>
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)">
          <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)">
            <el-select v-model="form.approvalUserId" filterable clearable placeholder="请选择" style="width: 340px;" :disabled="form.approvalStatus == dictAppRovalStatusPassed || form.approvalStatus == dictAppRovalStatusReturn || form.wecomSpNo !== null">
              <el-option
                v-for="item in approvalUsers"
@@ -320,7 +320,9 @@
      dictAppRovalStatusReturn: constant.OVERTIME_RETURN,
      dictApprovalSiteType: constant.APPROVAL_SITE_TYPE,
      successLoading: false,
      makeUpCardVisible: false
      makeUpCardVisible: false,
      // 企微审核判断
      wecomApprovalVisible: false
    }
  },
  computed: {
@@ -329,8 +331,16 @@
    ])
  },
  created() {
    this.getUsers()
    this.getApprovalUsers()
    const that = this
    that.getUsers()
    that.getApprovalUsers()
    that.$on('dictReady', () => {
      const dictData = { ...that.dict }
      const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom')
      if (filterData.length > 0) {
        that.wecomApprovalVisible = true
      }
    })
  },
  methods: {
    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
@@ -349,7 +359,7 @@
        this.form.userId = this.user.id
      }
      if (this.dict[this.dictApprovalSiteType].length > 0) {
      if (this.wecomApprovalVisible) {
        this.form.approvalUserId = 0
      }
    },