Ver Fonte

考勤 修复5407

zhonghuizhen há 9 meses atrás
pai
commit
928176d9f4

+ 22 - 1
src/views/business/attendance/makeUpEdit.vue

@@ -189,10 +189,31 @@ export default {
     this.init()
   },
   methods: {
-    init() {
+    async init() {
       const isEmpty = Object.keys(this.params).length === 0
       // 查阅状态初始化
       if (!isEmpty) {
+        //先校验该班次是否被申请过
+        const { first, second } = this.$store.getters.level || {}
+        const { userId } = this.$store.getters || {}
+        const riqi = this.params.bu_ka_ri_qi_ || this.params.buKaRiQi
+        const banci = this.params.bu_ka_ban_ci_ || this.params.buKaBanCi
+        const response = await this.$common.request('query', {
+            key: 'getUserReissueInfo',
+            params: [riqi, userId, second || first]
+        })
+        let shiFouShenQin = false
+        response.variables.data.forEach((el)=>{
+          debugger
+          if(el.bu_ka_ri_qi_ === riqi && el.bu_ka_ban_ci_ === banci){
+            shiFouShenQin = true
+          }
+        })
+        if(shiFouShenQin){
+          this.$message.warning('该异常班次已申请!')
+          return
+        }
+
         this.buKaBanCiOptions = [
           {
             label: this.params.bu_ka_ban_ci_ || this.params.buKaBanCi,

+ 1 - 1
src/views/business/attendance/makeUpRecords.vue

@@ -186,7 +186,7 @@ export default {
             },
             {
               key: 'edit',
-              label: '编辑',
+              label: '再次提交',
               type: 'primary',
               icon: 'ibps-icon-edit',
               hidden: function (row) {