From 99563684fb0432f5d755b9b99aaf95fa32634b96 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期日, 03 三月 2024 19:28:43 +0800
Subject: [PATCH] 入离职记录增加部门护卫点信息: - 信息录入:写入入职的部门信息 - 在职员工:关闭档案时写入离职时的部门信息 - 离职员工:打开档案时写入打开时的部门信息 - 档案导出:在职员工和离职员工模板导出档案时的入离职记录的部门信息导出 上传左边的标签面是动态生成,调整数据库中标签数据,使生成的标签和更改的要求一致

---
 src/views/user/outemployess.vue |   46 +++++++++++++++++++++++++++++++++++++---------
 1 files changed, 37 insertions(+), 9 deletions(-)

diff --git a/src/views/user/outemployess.vue b/src/views/user/outemployess.vue
index c87389d..b08233c 100644
--- a/src/views/user/outemployess.vue
+++ b/src/views/user/outemployess.vue
@@ -193,6 +193,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>
                   <!-- <tr>
                     <td class="td">员工状态:</td>
                     <td class="td-group">
@@ -430,9 +445,9 @@
                 <td>已发</td>
               </tr>
               <tr>
-                <td>家庭成员及关系</td>
+                <td>家庭成员及关系1</td>
                 <td />
-                <td>紧急联系电话</td>
+                <td>家庭成员及关系2</td>
                 <td />
                 <td>员工手册</td>
                 <td>已发</td>
@@ -1144,7 +1159,7 @@
             </td>
           </tr>
           <tr>
-            <td>家庭成员及关系</td>
+            <td>家庭成员及关系1</td>
             <td>
               <el-checkbox label="family"><span /></el-checkbox>
             </td>
@@ -1188,9 +1203,9 @@
           <tr>
             <td>相关证件</td>
             <td>
-              <el-checkbox label="certificateList"><span /></el-checkbox>
+              <el-checkbox label="certificateListName"><span /></el-checkbox>
             </td>
-            <td>紧急联系电话</td>
+            <td>家庭成员及关系2</td>
             <td>
               <el-checkbox label="urgencyPhone"><span /></el-checkbox>
             </td>
@@ -1258,7 +1273,8 @@
         insuranceType: [],
         empStatus: [],
         dimissionType: [],
-        empType: []
+        empType: [],
+        certificateList: []
       }, // 查询参数
       sort: {}, // 排序
       pagination: { // 分页参数
@@ -1288,7 +1304,7 @@
       archivesStatusOptions: [],
       sexOptions: [],
       empTypeOptions: [],
-      cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'insuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateList', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate', 'entryTypeName', 'dimissionTypeName', 'empNumb'],
+      cityOptions: ['archivesNumb', 'allDeptName', 'jobName', 'empName', 'certificateNumb', 'certificateValidity', 'sexName', 'nationName', 'age', 'marriageName', 'stature', 'birthdate', 'politicsName', 'empTypeName', 'educationName', 'nativePlaceName', 'censusAddress', 'currentAddress', 'guardNumb', 'returnReceipt', 'archivesStatusName', 'bankName', 'bankNumb', 'telePhone', 'entryDate', 'insuranceTypeName', 'socialNumb', 'introducer', 'seniority', 'empCardStatusName', 'certificateListName', 'urgencyPhone', 'handbookStatusName', 'family', 'empStatusName', 'dimissionDate', 'entryTypeName', 'dimissionTypeName', 'empNumb'],
       checkedCities: []
     }
   },
@@ -1314,6 +1330,9 @@
     })
     this.getDicts('EMPTYPE').then(response => {
       this.empTypeOptions = response.data
+    })
+    this.getDicts('certificateList').then(response => {
+      this.certificateListOptions = response.data
     })
   },
   methods: {
@@ -1499,6 +1518,7 @@
             var id = selection[0].empId
             var name = selection[0].empName
             var number = selection[0].certificateNumb
+            var deptName = selection[0].allDeptName
             const nowDate = new Date()
             const year = nowDate.getFullYear()
             const month = nowDate.getMonth() + 1
@@ -1507,9 +1527,10 @@
               empId: id,
               empName: name,
               certificateNumb: number,
-              openType: 5,
+              openType: 21,
               openDate: year + '-' + month + '-' + day,
-              remark: ''
+              remark: '',
+              allDeptName: deptName
             }
             this.dialogShowDkda = true
           } else {
@@ -1645,6 +1666,13 @@
       this.checkedCities = val ? this.cityOptions : []
       this.isIndeterminate = false
     },
+    selectAllCertificateList(val) {
+      if (val) {
+        this.queryParams.certificateList = this.dicListToArr(this.certificateListOptions)
+      } else {
+        this.queryParams.certificateList = []
+      }
+    },
     showDcyg(operate) {
       switch (operate) {
         case 0:

--
Gitblit v1.8.0