From b0026c942ad030fc3baac0f7a4fad8f16cab39cd Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期五, 23 四月 2021 00:14:03 +0800
Subject: [PATCH] fix(bug修复): 离职当月考勤的出勤数据可以到3位

---
 src/views/user/inemployees.vue |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/views/user/inemployees.vue b/src/views/user/inemployees.vue
index 40c3a3e..2692e2a 100644
--- a/src/views/user/inemployees.vue
+++ b/src/views/user/inemployees.vue
@@ -201,6 +201,21 @@
                     </el-checkbox-group>
                   </td>
                 </tr>
+                <tr>
+                  <td class="td">相关证件:</td>
+                  <td class="td-group">
+                    <el-checkbox-group v-model="queryParams.certificateList" class="fj-checkbox">
+                      <el-checkbox label="" @change="selectAllCertificateList">全部</el-checkbox>
+                      <el-checkbox
+                        v-for="data in certificateListOptions"
+                        :key="data.dicItemName"
+                        :label="data.dicItemCode"
+                      >
+                        {{ data.dicItemName }}
+                      </el-checkbox>
+                    </el-checkbox-group>
+                  </td>
+                </tr>
               </table>
             </el-col>
           </el-row>
@@ -973,7 +988,8 @@
         empCardStatus: [],
         handbookStatus: [],
         entryType: [],
-        empType: []
+        empType: [],
+        certificateList: []
       }, // 查询参数
       sort: {}, // 排序
       pagination: { // 分页参数
@@ -1336,7 +1352,8 @@
         handbookStatus: [],
         baseKey: '',
         empType: [],
-        entryType: []
+        entryType: [],
+        certificateList: []
       }
       this.search()
     },
@@ -2051,6 +2068,13 @@
         this.queryParams.entryType = []
       }
     },
+    selectAllCertificateList(val) {
+      if (val) {
+        this.queryParams.certificateList = this.dicListToArr(this.certificateListOptions)
+      } else {
+        this.queryParams.certificateList = []
+      }
+    },
     headers() {
       const token = getToken()
       if (token) {

--
Gitblit v1.8.0