From 3a77c6fbda3243c135f9a3b55ad205970fd9f6cb Mon Sep 17 00:00:00 2001
From: yubo <autumnal_wind@yeah.net>
Date: 星期日, 12 四月 2026 19:15:38 +0800
Subject: [PATCH] feat(user): 员工代码重构

---
 src/views/user/archivesEdit.vue | 3837 ++++++++++++++++++++---------------------------------------
 1 files changed, 1,298 insertions(+), 2,539 deletions(-)

diff --git a/src/views/user/archivesEdit.vue b/src/views/user/archivesEdit.vue
index ec6da03..ba29636 100644
--- a/src/views/user/archivesEdit.vue
+++ b/src/views/user/archivesEdit.vue
@@ -5,7 +5,7 @@
       width="100%"
       height="100vh"
       center
-      fullscreen="true"
+      fullscreen
       :close-on-click-modal="false"
       :visible.sync="isVisible"
     >
@@ -14,20 +14,22 @@
         <div class="menu dadetails">
           <div style="height: 22vh;">
 
-            <el-upload
-              class="avatar-uploader"
-              action="#"
-              :show-file-list="false"
-              :on-change="handlePictureCardPreview"
-              :auto-upload="false"
-            >
-              <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过4MB</div>
-              <img v-if="empBaseInfoImageUrl" :src="empBaseInfoImageUrl" class="avatar">
-              <i v-else class="el-icon-plus avatar-uploader-icon" />
-            </el-upload>
+            <!-- 头像显示区域 -->
+            <div class="avatar-wrapper">
+              <img
+                v-if="empBaseInfoImageUrl"
+                :src="empBaseInfoImageUrl"
+                class="avatar"
+                @click="openUploadChoice"
+              >
+              <div v-else class="avatar-uploader-placeholder" @click="openUploadChoice">
+                <i class="el-icon-plus avatar-uploader-icon" />
+                <div class="upload-tip">点击上传照片</div>
+              </div>
+            </div>
             <!-- <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1333074204,3035391839&fm=26&gp=0.jpg" class="jbxxImg">-->
             <div class="title-da">
-              编号:{{ empBaseInfoForm.empNumb }}
+              档案号:{{ empBaseInfoForm.archivesNumb }}
             </div>
           </div>
           <ul class="jbxx-ul" style="height: 68vh;overflow: auto">
@@ -153,7 +155,7 @@
               <div class="item-node" />
               <div>
                 <a href="javascript:void(0)" :class="item=='lzaj'?'light':''" @click="goAnchor('lzaj')">
-                  劳资案件
+                  仲裁案件
                 </a>
               </div>
             </li>
@@ -221,8 +223,12 @@
               <el-form ref="empBaseInfoForm" :model="empBaseInfoForm" class="formjbxx" label-width="150px">
                 <el-row style="width: 100%;">
                   <el-col :span="8">
-                    <el-form-item label="档案号" prop="archivesNumb">
-                      <el-input v-model="empBaseInfoForm.archivesNumb" style="width: 100%;" :disabled="readon ? false : true" />
+                    <el-form-item label="编号" prop="empNumb">
+                      <el-input
+                        v-model="empBaseInfoForm.empNumb"
+                        style="width: 100%;"
+                        :disabled="readon ? false : true"
+                      />
                     </el-form-item>
                   </el-col>
                   <el-col :span="8">
@@ -244,7 +250,11 @@
                 <el-row>
                   <el-col :span="8">
                     <el-form-item label="性别" prop="sex">
-                      <el-select v-model="empBaseInfoForm.sex" placeholder="请选择性别" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.sex"
+                        placeholder="请选择性别"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in sexOptions"
                           :key="dict.dicItemCode"
@@ -284,7 +294,11 @@
                 <el-row>
                   <el-col :span="8">
                     <el-form-item label="员工类别" prop="empType">
-                      <el-select v-model="empBaseInfoForm.empType" placeholder="请选择员工类型" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.empType"
+                        placeholder="请选择员工类型"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in empTypeOptions"
                           :key="dict.dicItemCode"
@@ -296,7 +310,12 @@
                   </el-col>
                   <el-col :span="8">
                     <el-form-item label="民族" prop="nation">
-                      <el-select v-model="empBaseInfoForm.nation" filterable placeholder="请选择民族" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.nation"
+                        filterable
+                        placeholder="请选择民族"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in nationOptions"
                           :key="dict.dicItemCode"
@@ -316,7 +335,11 @@
                 <el-row>
                   <el-col :span="8">
                     <el-form-item label="婚姻状态" prop="marriage">
-                      <el-select v-model="empBaseInfoForm.marriage" placeholder="请选择婚姻状态" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.marriage"
+                        placeholder="请选择婚姻状态"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in marriageOptions"
                           :key="dict.dicItemCode"
@@ -347,7 +370,11 @@
                 <el-row>
                   <el-col :span="8">
                     <el-form-item label="政治面貌" prop="politics">
-                      <el-select v-model="empBaseInfoForm.politics" placeholder="请选择政治面貌" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.politics"
+                        placeholder="请选择政治面貌"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in statusOptions"
                           :key="dict.dicItemCode"
@@ -370,7 +397,11 @@
                   </el-col>
                   <el-col :span="8">
                     <el-form-item label="最高学历" prop="education">
-                      <el-select v-model="empBaseInfoForm.education" placeholder="请选择最高学历" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.education"
+                        placeholder="请选择最高学历"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in educationOptions"
                           :key="dict.dicItemCode"
@@ -385,7 +416,11 @@
                 <el-row>
                   <el-col :span="8">
                     <el-form-item label="籍贯" prop="nativePlaceName">
-                      <el-select v-model="empBaseInfoForm.nativePlace" placeholder="请选择最高学历" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.nativePlace"
+                        placeholder="请选择籍贯"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in nativePlaceOptions"
                           :key="dict.dicItemCode"
@@ -420,7 +455,11 @@
                   </el-col>
                   <el-col :span="8">
                     <el-form-item label="档案情况" prop="archivesStatus">
-                      <el-select v-model="empBaseInfoForm.archivesStatus" placeholder="请选择档案情况" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.archivesStatus"
+                        placeholder="请选择档案情况"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in archivesStatusOptions"
                           :key="dict.dicItemCode"
@@ -464,8 +503,12 @@
                     </el-form-item>
                   </el-col>
                   <el-col :span="8">
-                    <el-form-item label="保险类型" prop="insuranceType">
-                      <el-select v-model="empBaseInfoForm.insuranceType" placeholder="请选择保险类型" :disabled="readon ? false : true">
+                    <el-form-item label="社保档位" prop="insuranceType">
+                      <el-select
+                        v-model="empBaseInfoForm.insuranceType"
+                        placeholder="请选择社保档位"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in insuranceTypeOptions"
                           :key="dict.dicItemCode"
@@ -495,7 +538,11 @@
                   </el-col>
                   <el-col :span="8">
                     <el-form-item label="工作证" prop="empCardStatus">
-                      <el-select v-model="empBaseInfoForm.empCardStatus" placeholder="请选择工作证" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.empCardStatus"
+                        placeholder="请选择工作证"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in empCardStatusOptions"
                           :key="dict.dicItemCode"
@@ -509,18 +556,22 @@
                 </el-row>
                 <el-row>
                   <el-col :span="8">
-                    <el-form-item label="家庭成员及关系" prop="family">
+                    <el-form-item label="家庭成员及关系1" prop="family">
                       <el-input v-model="empBaseInfoForm.family" :disabled="readon ? false : true" />
                     </el-form-item>
                   </el-col>
                   <el-col :span="8">
-                    <el-form-item label="紧急联系电话" prop="urgencyPhone">
+                    <el-form-item label="家庭成员及关系2" prop="urgencyPhone">
                       <el-input v-model="empBaseInfoForm.urgencyPhone" :disabled="readon ? false : true" />
                     </el-form-item>
                   </el-col>
                   <el-col :span="8">
                     <el-form-item label="员工手册" prop="handbookStatus">
-                      <el-select v-model="empBaseInfoForm.handbookStatus" placeholder="请选择员工手册" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.handbookStatus"
+                        placeholder="请选择员工手册"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in handbookStatusOptions"
                           :key="dict.dicItemCode"
@@ -532,7 +583,12 @@
                   </el-col>
                   <el-col :span="8">
                     <el-form-item label="相关证件" prop="certificateList">
-                      <el-select v-model="empBaseInfoForm.certificateList" multiple placeholder="请选择相关证件" :disabled="readon ? false : true">
+                      <el-select
+                        v-model="empBaseInfoForm.certificateList"
+                        multiple
+                        placeholder="请选择相关证件"
+                        :disabled="readon ? false : true"
+                      >
                         <el-option
                           v-for="dict in certificateListOptions"
                           :key="dict.dicItemCode"
@@ -540,6 +596,11 @@
                           :value="dict.dicItemCode"
                         />
                       </el-select>
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="8">
+                    <el-form-item label="年假天数" prop="annualLeave">
+                      <el-input v-model="empBaseInfoForm.annualLeave" disabled />
                     </el-form-item>
                   </el-col>
                 </el-row>
@@ -566,20 +627,23 @@
                 :highlight-current-row="true"
                 @selection-change="onworkExperienceDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="workExperienceId" label="工作单位" />
-                <el-table-column show-overflow-tooltip="true" prop="beginDate" label="开始日期" />
-                <el-table-column show-overflow-tooltip="true" prop="endDate" label="结束日期" />
-                <el-table-column show-overflow-tooltip="true" prop="workUnit" label="工作单位" />
-                <el-table-column show-overflow-tooltip="true" prop="jobContent" label="主要工作内容" />
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="workExperienceId" label="工作单位" />
+                <el-table-column show-overflow-tooltip prop="beginDate" label="开始日期" />
+                <el-table-column show-overflow-tooltip prop="endDate" label="结束日期" />
+                <el-table-column show-overflow-tooltip prop="workUnit" label="工作单位" />
+                <el-table-column show-overflow-tooltip prop="jobContent" label="主要工作内容" />
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editWorkExperience(scope.row,1)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'workExperienceDataselection')">删除</span>
+                    <span
+                      class="table-button"
+                      @click="singleDelete(scope.row, 'workExperienceDataselection')"
+                    >删除</span>
                   </template>
                 </el-table-column>
               </el-table>
@@ -588,7 +652,7 @@
                 :total="workExperienceDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initList"
+                @pagination="initList()"
               />
             </div>
           </div>
@@ -611,34 +675,46 @@
                 style="width: 100%;"
                 @selection-change="onphysicalExamDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editPhysicalExam(scope.row,2)">编辑</span>
                     <span class="table-button" @click="singleDelete(scope.row, 'physicalExamDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="physicalExamId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="hospital" label="体检医院" width="150" />
-                <el-table-column show-overflow-tooltip="true" prop="physicalExamDate" label="体检日期" width="140" />
-                <el-table-column show-overflow-tooltip="true" prop="physicalExamType" label="体检类型" width="140" :formatter="typeFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="bloodPressure" label="血压" width="140" />
-                <el-table-column show-overflow-tooltip="true" prop="transaminase" label="转氨酶" width="140" />
-                <el-table-column show-overflow-tooltip="true" prop="ecg" label="心电图" width="140" :formatter="ecgNameFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="conclusion" label="体检结论" />
-                <el-table-column show-overflow-tooltip="true" prop="reviewRecord" label="复查记录" width="140" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="physicalExamId" label="" />
+                <el-table-column show-overflow-tooltip prop="hospital" label="体检医院" width="150" />
+                <el-table-column show-overflow-tooltip prop="physicalExamDate" label="体检日期" width="140" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="physicalExamType"
+                  label="体检类型"
+                  width="140"
+                  :formatter="typeFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="bloodPressure" label="血压" width="140" />
+                <el-table-column show-overflow-tooltip prop="transaminase" label="转氨酶" width="140" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="ecg"
+                  label="心电图"
+                  width="140"
+                  :formatter="ecgNameFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="conclusion" label="体检结论" />
+                <el-table-column show-overflow-tooltip prop="reviewRecord" label="复查记录" width="140" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="physicalExamDatatotal>0"
                 :total="physicalExamDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initphysicalExamData"
+                @pagination="initphysicalExamData()"
               />
             </div>
           </div>
@@ -661,30 +737,36 @@
                 style="width: 100%;"
                 @selection-change="oncontractInfoDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editContractInfo(scope.row,3)">编辑</span>
                     <span class="table-button" @click="singleDelete(scope.row, 'contractInfoDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="contractId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="signingDate" label="合同签订日期" />
-                <el-table-column show-overflow-tooltip="true" prop="endDate" label="合同结束日期" />
-                <el-table-column show-overflow-tooltip="true" prop="contractPeriod" label="合同期限(年)" />
-                <el-table-column show-overflow-tooltip="true" prop="contractStatus" label="合同状态" :formatter="contractStatusFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="transactor" label="合同办理人" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="contractId" label="" />
+                <el-table-column show-overflow-tooltip prop="signingDate" label="合同签订日期" />
+                <el-table-column show-overflow-tooltip prop="endDate" label="合同结束日期" />
+                <el-table-column show-overflow-tooltip prop="contractPeriod" label="合同期限(年)" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="contractStatus"
+                  label="合同状态"
+                  :formatter="contractStatusFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="transactor" label="合同办理人" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="contractInfoDatatotal>0"
                 :total="contractInfoDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initcontractInfoData"
+                @pagination="initcontractInfoData()"
               />
             </div>
           </div>
@@ -702,26 +784,31 @@
                 :cell-style="{padding:'7px 0','text-align':'center'}"
                 style="width: 100%;"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" prop="newDeptName" label="现部门" />
-                <el-table-column show-overflow-tooltip="true" prop="newJobName" label="现岗位" />
-                <el-table-column show-overflow-tooltip="true" prop="empName" label="姓名" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="oldDeptName" label="原部门" />
-                <el-table-column show-overflow-tooltip="true" prop="oldJobName" label="原岗位" />
-                <el-table-column show-overflow-tooltip="true" prop="changeDate" label="调岗日期" />
-                <el-table-column show-overflow-tooltip="true" prop="changeType" label="调岗类型" :formatter="changeTypeFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="changeReason" label="调岗理由" />
+                <el-table-column show-overflow-tooltip prop="allDeptName" label="现部门" />
+                <el-table-column show-overflow-tooltip prop="newJobName" label="现岗位" />
+                <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="180" />
+                <el-table-column show-overflow-tooltip prop="oldDeptName" label="原部门" />
+                <el-table-column show-overflow-tooltip prop="oldJobName" label="原岗位" />
+                <el-table-column show-overflow-tooltip prop="changeDate" label="调岗日期" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="changeType"
+                  label="调岗类型"
+                  :formatter="changeTypeFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="changeReason" label="调岗理由" />
               </el-table>
               <pagination
                 v-show="jobChangeDatatotal>0"
                 :total="jobChangeDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initjobChangeData"
+                @pagination="initjobChangeData()"
               />
             </div>
           </div>
@@ -744,32 +831,32 @@
                 style="width: 100%;"
                 @selection-change="onleaveInfoDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editLeaveInfo(scope.row,5)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'onleaveInfoDataselection')">删除</span>
+                    <span class="table-button" @click="singleDelete(scope.row, 'leaveInfoDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="leaveId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="leaveDay" label="请假天数" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="leaveType" label="请假类型" :formatter="leaveTypeFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="returnDate" label="到岗时间" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="reporter" label="报备人" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="leaveId" label="" />
+                <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="180" />
+                <el-table-column show-overflow-tooltip prop="endTime" label="结束时间" width="180" />
+                <el-table-column show-overflow-tooltip prop="leaveDay" label="请假天数" width="100" />
+                <el-table-column show-overflow-tooltip prop="leaveType" label="请假类型" :formatter="leaveTypeFormat" />
+                <el-table-column show-overflow-tooltip prop="returnDate" label="到岗时间" width="180" />
+                <el-table-column show-overflow-tooltip prop="reporter" label="报备人" width="100" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="leaveInfoDatatotal>0"
                 :total="leaveInfoDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initleaveInfoData"
+                @pagination="initleaveInfoData()"
               />
             </div>
           </div>
@@ -792,29 +879,29 @@
                 style="width: 100%;"
                 @selection-change="onresignDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editResign(scope.row,5)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'onresignDataselection')">删除</span>
+                    <span class="table-button" @click="singleDelete(scope.row, 'resignDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="resignId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="applayDate" label="辞职申请日期" />
-                <el-table-column show-overflow-tooltip="true" prop="reason" label="辞职事由" />
-                <el-table-column show-overflow-tooltip="true" prop="reporter" label="汇报人" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="resignId" label="" />
+                <el-table-column show-overflow-tooltip prop="applayDate" label="辞职申请日期" />
+                <el-table-column show-overflow-tooltip prop="reason" label="辞职事由" />
+                <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="resignDatatotal>0"
                 :total="resignDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initresignData"
+                @pagination="initresignData()"
               />
             </div>
           </div>
@@ -837,33 +924,36 @@
                 style="width: 100%;"
                 @selection-change="ondimissionAttendDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editDimissionAttend(scope.row,6)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'dimissionAttendDataselection')">删除</span>
+                    <span
+                      class="table-button"
+                      @click="singleDelete(scope.row, 'dimissionAttendDataselection')"
+                    >删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="dimissionAttendId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="attendMonth" label="离职考勤月份" />
-                <el-table-column show-overflow-tooltip="true" prop="attendDays" label="出勤天数" width="150" />
-                <el-table-column show-overflow-tooltip="true" prop="overtimeDay" label="加班(天)" width="150" />
-                <el-table-column show-overflow-tooltip="true" prop="overtimeHour" label="加班(小时)" />
-                <el-table-column show-overflow-tooltip="true" prop="deduct" label="有无代扣款项" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="leaveDay" label="请假(天)" />
-                <el-table-column show-overflow-tooltip="true" prop="absenteeism" label="旷工(天)" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="dimissionAttendId" label="" />
+                <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" />
+                <el-table-column show-overflow-tooltip prop="attendDays" label="出勤天数" width="150" />
+                <el-table-column show-overflow-tooltip prop="overtimeDay" label="加班(天)" width="150" />
+                <el-table-column show-overflow-tooltip prop="overtimeHour" label="加班(小时)" />
+                <el-table-column show-overflow-tooltip prop="deduct" label="有无代扣款项" width="180" />
+                <el-table-column show-overflow-tooltip prop="leaveDay" label="请假(天)" />
+                <el-table-column show-overflow-tooltip prop="absenteeism" label="旷工(天)" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="dimissionAttendDatatotal>0"
                 :total="dimissionAttendDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initdimissionAttendData"
+                @pagination="initdimissionAttendData()"
               />
             </div>
           </div>
@@ -881,24 +971,31 @@
                 :cell-style="{padding:'7px 0','text-align':'center'}"
                 style="width: 100%;"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
-                  </template>EmpLeaveInfo
+                  </template>
+                  EmpLeaveInfo
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" prop="entryDate" label="入职日期" />
-                <el-table-column show-overflow-tooltip="true" prop="dimissionDate" label="离职日期" />
-                <el-table-column show-overflow-tooltip="true" prop="dimissionType" label="离职类型" :formatter="dimissionTypeFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="selfLeaveDay" label="自离天数" />
-                <el-table-column show-overflow-tooltip="true" prop="reporter" label="报备人" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column show-overflow-tooltip prop="deptName" label="部门/护卫点" />
+                <el-table-column show-overflow-tooltip prop="entryDate" label="入职日期" />
+                <el-table-column show-overflow-tooltip prop="dimissionDate" label="离职日期" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="dimissionType"
+                  label="离职类型"
+                  :formatter="dimissionTypeFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="selfLeaveDay" label="自离天数" />
+                <el-table-column show-overflow-tooltip prop="reporter" label="报备人" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="dimissionLogDatatotal>0"
                 :total="dimissionLogDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initdimissionLogData"
+                @pagination="initdimissionLogData()"
               />
             </div>
           </div>
@@ -921,30 +1018,30 @@
                 style="width: 100%;"
                 @selection-change="onunemploymentDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editUnemployment(scope.row,7)">编辑</span>
                     <span class="table-button" @click="singleDelete(scope.row, 'unemploymentDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="unemploymentId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="applayDate" label="失业金申请日期" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="applayReason" label="申报事由" />
-                <el-table-column show-overflow-tooltip="true" prop="reporter" label="汇报人" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="auditor" label="审核人" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="unemploymentId" label="" />
+                <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" width="180" />
+                <el-table-column show-overflow-tooltip prop="applayReason" label="申报事由" />
+                <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" width="180" />
+                <el-table-column show-overflow-tooltip prop="auditor" label="审核人" width="180" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="unemploymentDatatotal>0"
                 :total="unemploymentDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initunemploymentData"
+                @pagination="initunemploymentData()"
               />
             </div>
           </div>
@@ -967,32 +1064,47 @@
                 style="width: 100%;"
                 @selection-change="oninsuranceDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editInsurance(scope.row,8)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'oninsuranceDataselection')">删除</span>
+                    <span class="table-button" @click="singleDelete(scope.row, 'insuranceDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="insuranceId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="applayDate" label="社保申请日期" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="proposer" label="申请人" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="insuranceGaers" label="社保档位" :formatter="insuranceGaersFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="reportStatus" label="是否已报告" :formatter="reportStatusFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="applayStatus" label="状态" :formatter="applayStatusFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="auditor" label="审核人" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="insuranceId" label="" />
+                <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" width="180" />
+                <el-table-column show-overflow-tooltip prop="proposer" label="申请人" width="180" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="insuranceGaers"
+                  label="社保档位"
+                  :formatter="insuranceGaersFormat"
+                />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="reportStatus"
+                  label="是否已报告"
+                  :formatter="reportStatusFormat"
+                />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="applayStatus"
+                  label="状态"
+                  :formatter="applayStatusFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="auditor" label="审核人" width="180" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="insuranceDatatotal>0"
                 :total="insuranceDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initinsuranceData"
+                @pagination="initinsuranceData()"
               />
             </div>
           </div>
@@ -1015,40 +1127,55 @@
                 style="width: 100%;"
                 @selection-change="onaccidentCasesDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editAccidentCases(scope.row,9)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'accidentCasesDataselection')">删除</span>
+                    <span
+                      class="table-button"
+                      @click="singleDelete(scope.row, 'accidentCasesDataselection')"
+                    >删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="accidentId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredTime" label="受伤日期" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredAddress" label="受伤地点" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredPart" label="受伤部位" width="80" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredDescribe" label="受伤经过描述" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredDiacrisis" label="意外险诊断" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="hospitalName" label="就诊医院" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="treatmentName" label="就诊科室" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="hospitalizatioFlag" label="是否住院" width="80" :formatter="hospitalizatioFlagFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="bedNumb" label="床号" width="60" />
-                <el-table-column show-overflow-tooltip="true" prop="reprotTime" label="报案时间" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="submitTime" label="递交资料时间" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="sbumitBy" label="递交人" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="expensesFee" label="医疗总费用" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="innsureFee" label="保险赔付费用" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="settleStatus" label="是否结案" width="120" :formatter="settleStatusFormat" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="accidentId" label="" />
+                <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="100" />
+                <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" />
+                <el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="80" />
+                <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" />
+                <el-table-column show-overflow-tooltip prop="injuredDiacrisis" label="意外险诊断" />
+                <!--                <el-table-column show-overflow-tooltip prop="hospitalName" label="就诊医院" width="100" />-->
+                <!--                <el-table-column show-overflow-tooltip prop="treatmentName" label="就诊科室" width="100" />-->
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="hospitalizatioFlag"
+                  label="是否住院"
+                  width="80"
+                  :formatter="hospitalizatioFlagFormat"
+                />
+                <!--                <el-table-column show-overflow-tooltip prop="bedNumb" label="床号" width="60" />-->
+                <el-table-column show-overflow-tooltip prop="reprotTime" label="报案时间" width="100" />
+                <!--                <el-table-column show-overflow-tooltip prop="submitTime" label="递交资料时间" width="120" />-->
+                <!--                <el-table-column show-overflow-tooltip prop="sbumitBy" label="递交人" width="100" />-->
+                <el-table-column show-overflow-tooltip prop="expensesFee" label="医疗总费用" width="100" />
+                <el-table-column show-overflow-tooltip prop="innsureFee" label="保险赔付费用" width="120" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="settleStatus"
+                  label="是否结案"
+                  width="120"
+                  :formatter="settleStatusFormat"
+                />
               </el-table>
               <pagination
                 v-show="accidentCasesDatatotal>0"
                 :total="accidentCasesDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initaccidentCasesData"
+                @pagination="initaccidentCasesData()"
               />
             </div>
           </div>
@@ -1071,46 +1198,58 @@
                 style="width: 100%;"
                 @selection-change="onoccupationalDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editOccupational(scope.row,10)">编辑</span>
                     <span class="table-button" @click="singleDelete(scope.row, 'occupationalDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="occupationalId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredTime" label="受伤日期" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredAddress" label="受伤地点" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredPart" label="受伤部位" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredDescribe" label="受伤经过描述" width="140" />
-                <el-table-column show-overflow-tooltip="true" prop="injuredDiacrisis" label="工伤诊断" width="80" />
-                <el-table-column show-overflow-tooltip="true" prop="hospitalName" label="就诊医院" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="treatmentName" label="就诊科室" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="hospitalizatioFlag" label="是否住院" width="80" :formatter="hospitalizatioFlagFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="bedNumb" label="床号" width="80" />
-                <el-table-column show-overflow-tooltip="true" prop="reportTime" label="报案时间" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="submitTime" label="递交资料时间" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="sbumitBy" label="递交人" width="80" />
-                <el-table-column show-overflow-tooltip="true" prop="expensesFee" label="医疗总费用" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="compensated" label="已赔付医药费用" width="120" />
-                <el-table-column show-overflow-tooltip="true" prop="settleStatus" label="是否结案" width="120" :formatter="settleStatusFormat" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="occupationalId" label="" />
+                <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="120" />
+                <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="100" />
+                <el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="100" />
+                <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" />
+                <el-table-column show-overflow-tooltip prop="injuredDiacrisis" label="工伤诊断" width="80" />
+                <el-table-column show-overflow-tooltip prop="hospitalName" label="就诊医院" />
+                <el-table-column show-overflow-tooltip prop="treatmentName" label="就诊科室" width="100" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="hospitalizatioFlag"
+                  label="是否住院"
+                  width="80"
+                  :formatter="hospitalizatioFlagFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="bedNumb" label="床号" width="80" />
+                <el-table-column show-overflow-tooltip prop="reportTime" label="报案时间" width="100" />
+                <el-table-column show-overflow-tooltip prop="submitTime" label="递交资料时间" width="120" />
+                <el-table-column show-overflow-tooltip prop="sbumitBy" label="递交人" width="80" />
+                <el-table-column show-overflow-tooltip prop="expensesFee" label="医疗总费用" width="100" />
+                <el-table-column show-overflow-tooltip prop="compensated" label="已赔付医药费用" width="120" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="settleStatus"
+                  label="是否结案"
+                  width="120"
+                  :formatter="settleStatusFormat"
+                />
               </el-table>
               <pagination
                 v-show="occupationalDatatotal>0"
                 :total="occupationalDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initoccupationalData"
+                @pagination="initoccupationalData()"
               />
             </div>
           </div>
           <div ref="lzaj" class="lzaj">
             <div class="jbxxTitle">
-              劳资案件
+              仲裁案件
               <el-button class="filter-item" type="primary" @click.native="gzadd(11)">
                 {{ $t('table.add') }}
               </el-button>
@@ -1127,33 +1266,44 @@
                 style="width: 100%;"
                 @selection-change="onlaborTroubleDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editLaborTrouble(scope.row,11)">编辑</span>
                     <span class="table-button" @click="singleDelete(scope.row, 'laborTroubleDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="arbitrationId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="arbitrationDate" label="仲裁日期" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="arbitrationType" label="仲裁类型" :formatter="arbitrationTypeFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="arbitrationReason" label="仲裁事由" />
-                <el-table-column show-overflow-tooltip="true" prop="reporter" label="报备人" width="100" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
-                <el-table-column show-overflow-tooltip="true" prop="arbitrationPay" label="仲裁赔付(元)" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="arbitrationStatus" label="是否结案" width="100" :formatter="arbitrationStatusFormat" />
-                <el-table-column show-overflow-tooltip="true" prop="settleDate" label="案结日期" width="100" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="arbitrationId" label="" />
+                <el-table-column show-overflow-tooltip prop="arbitrationDate" label="仲裁日期" width="100" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="arbitrationType"
+                  label="仲裁类型"
+                  :formatter="arbitrationTypeFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="arbitrationReason" label="仲裁事由" />
+                <el-table-column show-overflow-tooltip prop="reporter" label="报备人" width="100" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
+                <el-table-column show-overflow-tooltip prop="arbitrationPay" label="仲裁赔付(元)" width="180" />
+                <el-table-column
+                  show-overflow-tooltip
+                  prop="arbitrationStatus"
+                  label="是否结案"
+                  width="100"
+                  :formatter="arbitrationStatusFormat"
+                />
+                <el-table-column show-overflow-tooltip prop="settleDate" label="案结日期" width="100" />
               </el-table>
               <pagination
                 v-show="laborTroubleDatatotal>0"
                 :total="laborTroubleDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initlaborTroubleData"
+                @pagination="initlaborTroubleData()"
               />
             </div>
           </div>
@@ -1176,29 +1326,29 @@
                 style="width: 100%;"
                 @selection-change="onbadRecordDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <span class="table-button" @click="editBadRecord(scope.row,12)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'onbadRecordDataselection')">删除</span>
+                    <span class="table-button" @click="singleDelete(scope.row, 'badRecordDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="badId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="badDate" label="不良记录日期" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="badContent" label="不良记录描述" />
-                <el-table-column show-overflow-tooltip="true" prop="reporter" label="汇报人" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="remark" label="备注" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="badId" label="" />
+                <el-table-column show-overflow-tooltip prop="badDate" label="不良记录日期" width="180" />
+                <el-table-column show-overflow-tooltip prop="badContent" label="不良记录描述" />
+                <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" width="180" />
+                <el-table-column show-overflow-tooltip prop="remark" label="备注" />
               </el-table>
               <pagination
                 v-show="badRecordDatatotal>0"
                 :total="badRecordDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initbadRecordData"
+                @pagination="initbadRecordData()"
               />
             </div>
           </div>
@@ -1221,12 +1371,12 @@
                 style="width: 100%;"
                 @selection-change="onremarkInfoDataselection"
               >
-                <el-table-column show-overflow-tooltip="true" type="index" label="序号" align="center" width="55">
+                <el-table-column show-overflow-tooltip type="index" label="序号" align="center" width="55">
                   <template slot-scope="scope">
                     <span v-text="getIndex(scope.$index)" />
                   </template>
                 </el-table-column>
-                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
+                <el-table-column show-overflow-tooltip fixed="right" label="操作" width="120">
                   <template slot-scope="scope">
                     <!--                  <el-button type="text" size="small" @click="editRemarkInfo(scope.row)">编辑</el-button>-->
                     <!--                  <el-button-->
@@ -1236,19 +1386,19 @@
                     <!--                  >删除-->
                     <!--                  </el-button>-->
                     <span class="table-button" @click="editRemarkInfo(scope.row,13)">编辑</span>
-                    <span class="table-button" @click="singleDelete(scope.row, 'onremarkInfoDataselection')">删除</span>
+                    <span class="table-button" @click="singleDelete(scope.row, 'remarkInfoDataselection')">删除</span>
                   </template>
                 </el-table-column>
-                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="remarkId" label="" />
-                <el-table-column show-overflow-tooltip="true" prop="remarkDate" label="备注日期" width="180" />
-                <el-table-column show-overflow-tooltip="true" prop="remarkContent" label="备注信息" />
+                <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="remarkId" label="" />
+                <el-table-column show-overflow-tooltip prop="remarkDate" label="备注日期" width="180" />
+                <el-table-column show-overflow-tooltip prop="remarkContent" label="备注信息" />
               </el-table>
               <pagination
                 v-show="remarkInfoDatatotal>0"
                 :total="remarkInfoDatatotal"
                 :page.sync="pagination.num"
                 :limit.sync="pagination.size"
-                @pagination="initremarkInfoData"
+                @pagination="initremarkInfoData()"
               />
             </div>
           </div>
@@ -1273,13 +1423,6 @@
             </div>
             <div class="jbxxCon">
               <div class="zs-main">
-                <!--                <el-row class="search-title">-->
-                <!--                  <el-col :span="18" class="title">-->
-                <!--                    &lt;!&ndash;                  <div class="zs-title">上传附件</div>&ndash;&gt;-->
-                <!--                    <p />-->
-                <!--                  </el-col>-->
-
-                <!--                </el-row>-->
                 <el-container style="background-color: #fff;">
                   <el-aside width="210px" style="background-color: #fff;text-align: center;padding-top: 0">
                     <h4 style="margin-top: 0">{{ empBaseInfoForm.empName }}:{{ empBaseInfoForm.deptName }}</h4>
@@ -1378,21 +1521,53 @@
                     <el-main style="background-color: #fff;margin-top: 5%;">
                       <el-row v-for="(data, index) in filesUploadData" :key="index">
                         <template v-for="(node, nodeIndex) in data.node">
-                          <el-col v-if="node.isUpload === false" :key="node.filesid" :span="3">
+                          <el-col v-if="node.isUpload === false" :key="node.accessoryid" :span="3">
                             <el-card
                               shadow="never"
                               @click.native="clickCard(index * 8 + nodeIndex)"
                             >
-                              <img
+                              <el-image
+                                v-if="'tif,bmp,jpg,png,gif'.indexOf(node.filesformat) == -1"
                                 :src="showFileImg(node.filesformat)"
                                 class="uploading-image"
+                                :preview-src-list="srcList"
+                                @click="clickImg(node)"
+                              />
+                              <el-tooltip
+                                v-if="'tif,bmp,jpg,png,gif'.indexOf(node.filesformat) == -1"
+                                class="item"
+                                effect="dark"
+                                :content="node.filesname"
+                                placement="bottom"
                               >
-                              <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom">
-                                <div style="padding-top: 14px;">
+                                <div style="padding-top: 14px;text-align: center">
                                   <el-checkbox
                                     v-model="checkedArr[index * 8 + nodeIndex].isChecked"
                                     class="myRedCheckBox"
                                   >{{ node.filesname }}
+                                  </el-checkbox>
+                                </div>
+                              </el-tooltip>
+                              <el-tooltip
+                                v-if="'tif,bmp,jpg,png,gif'.indexOf(node.filesformat) != -1"
+                                class="item"
+                                effect="dark"
+                                :content="node.filesname"
+                                placement="bottom"
+                              >
+                                <div style="padding-top: 14px;">
+                                  <el-image
+                                    style="width: 100px; height: 80px;margin-top: -10px;"
+                                    :src="getImg+node.accessoryid"
+                                    :preview-src-list="srcList"
+                                    @click="clickImg(node)"
+                                  />
+                                  <el-checkbox
+                                    v-model="checkedArr[index * 8 + nodeIndex].isChecked"
+                                    class="myRedCheckBox"
+                                  >
+
+                                    {{ node.filesname }}
                                   </el-checkbox>
                                 </div>
                               </el-tooltip>
@@ -1428,1305 +1603,211 @@
         </div>
       </div>
 
-      <el-dialog title="工作经历" append-to-body :visible.sync="dialogshowArr[1].show" width="50%">
-        <el-form
-          ref="workExperienceForm"
-          :model="workExperienceForm"
-          :rules="workExperienceRules"
-          label-position="right"
-          label-width="120px"
+      <work-experience-edit
+        :visible.sync="dialogshowArr[1].show"
+        :is-add="isAdd"
+        :edit-data="workExperienceEditData"
+        :sex-options="sexOptions"
+        @success="handleWorkExperienceSuccess"
+      />
+      <physical-exam-edit
+        :visible.sync="dialogshowArr[2].show"
+        :is-add="isAdd"
+        :edit-data="physicalExamEditData"
+        :sex-options="sexOptions"
+        :physical-exam-type-options="physicalExamTypeOptions"
+        :ecg-options="ecgOptions"
+        @success="handlePhysicalExamSuccess"
+      />
+      <contract-info-edit
+        :visible.sync="dialogshowArr[3].show"
+        :is-add="isAdd"
+        :edit-data="contractInfoEditData"
+        :sex-options="sexOptions"
+        :contract-status-options="contractStatusOptions"
+        @success="handleContractInfoSuccess"
+      />
+      <dimission-attend-edit
+        :visible.sync="dialogshowArr[4].show"
+        :is-add="isAdd"
+        :edit-data="dimissionAttendEditData"
+        :sex-options="sexOptions"
+        @success="handleDimissionAttendSuccess"
+      />
+      <leave-info-edit
+        :visible.sync="dialogshowArr[5].show"
+        :is-add="isAdd"
+        :edit-data="leaveInfoEditData"
+        :sex-options="sexOptions"
+        :leave-type-options="leaveTypeOptions"
+        @success="handleLeaveInfoSuccess"
+      />
+      <resign-edit
+        :visible.sync="dialogshowArr[6].show"
+        :is-add="isAdd"
+        :edit-data="resignEditData"
+        :sex-options="sexOptions"
+        @success="handleResignSuccess"
+      />
+      <unemployment-insurance-edit
+        :visible.sync="dialogshowArr[7].show"
+        :is-add="isAdd"
+        :edit-data="unemploymentEditData"
+        :sex-options="sexOptions"
+        @success="handleUnemploymentSuccess"
+      />
+      <social-security-edit
+        :visible.sync="dialogshowArr[8].show"
+        :is-add="isAdd"
+        :edit-data="socialSecurityEditData"
+        :sex-options="sexOptions"
+        :insurance-gaers-options="insuranceGaersOptions"
+        :applay-status-options="applayStatusOptions"
+        :report-status-options="reportStatusOptions"
+        @success="handleInsuranceSuccess"
+      />
+      <accident-insurance-edit
+        :visible.sync="dialogshowArr[9].show"
+        :is-add="isAdd"
+        :edit-data="accidentInsuranceEditData"
+        :sex-options="sexOptions"
+        :hospitalizatio-flag-options="hospitalizatioFlagOptions"
+        :settle-status-options="settleStatusOptions"
+        @success="handleAccidentCasesSuccess"
+      />
+      <work-injury-edit
+        :visible.sync="dialogshowArr[10].show"
+        :is-add="isAdd"
+        :edit-data="workInjuryEditData"
+        :sex-options="sexOptions"
+        :hospitalizatio-flag-options="hospitalizatioFlagOptions"
+        :settle-status-options="settleStatusOptions"
+        @success="handleOccupationalSuccess"
+      />
+      <arbitration-edit
+        :visible.sync="dialogshowArr[11].show"
+        :is-add="isAdd"
+        :edit-data="arbitrationEditData"
+        :sex-options="sexOptions"
+        :arbitration-type-options="arbitrationTypeOptions"
+        :settle-status-options="settleStatusOptions"
+        @success="handleLaborTroubleSuccess"
+      />
+      <bad-record-edit
+        :visible.sync="dialogshowArr[12].show"
+        :is-add="isAdd"
+        :edit-data="badRecordEditData"
+        :sex-options="sexOptions"
+        @success="handleBadRecordSuccess"
+      />
+      <remark-edit
+        :visible.sync="dialogshowArr[13].show"
+        :is-add="isAdd"
+        :edit-data="remarkEditData"
+        :sex-options="sexOptions"
+        @success="handleRemarkInfoSuccess"
+      />
+    </el-dialog>
+
+    <!-- 上传方式选择弹窗 -->
+    <el-dialog
+      title="选择上传方式"
+      :visible.sync="uploadChoiceDialogVisible"
+      width="400px"
+      :close-on-click-modal="false"
+    >
+      <div class="upload-choice-container">
+        <div class="upload-choice-item" @click="choiceCamera">
+          <i class="el-icon-camera" />
+          <span>拍照上传</span>
+        </div>
+        <div class="upload-choice-item" @click="choiceFile">
+          <i class="el-icon-folder-opened" />
+          <span>文件上传</span>
+        </div>
+      </div>
+    </el-dialog>
+
+    <!-- 摄像头拍照弹窗 -->
+    <el-dialog
+      title="拍照上传"
+      :visible.sync="cameraDialogVisible"
+      width="640px"
+      :close-on-click-modal="false"
+      @close="closeCamera"
+    >
+      <div class="camera-container">
+        <!-- 视频预览 -->
+        <video
+          v-show="!capturedImage"
+          ref="video"
+          class="camera-video"
+          autoplay
+          playsinline
+        />
+        <!-- 画布(用于拍照) -->
+        <canvas ref="canvas" style="display: none;" />
+
+        <!-- 拍照结果预览 -->
+        <img
+          v-if="capturedImage"
+          :src="capturedImage"
+          class="captured-image"
         >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="workExperienceForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="workExperienceForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="workExperienceForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="workExperienceForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="workExperienceForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="workExperienceForm.jobName" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="工作单位" prop="workUnit">
-                <el-input v-model="workExperienceForm.workUnit" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="开始日期" prop="beginDate">
-                <el-date-picker
-                  v-model="workExperienceForm.beginDate"
-                  type="date"
-                  value-format="yyyy-MM-dd"
-                  placeholder="年-月-日"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="结束日期" prop="endDate">
-                <el-date-picker
-                  v-model="workExperienceForm.endDate"
-                  type="date"
-                  value-format="yyyy-MM-dd"
-                  placeholder="年-月-日"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="主要工作内容" prop="jobContent">
-                <el-input v-model="workExperienceForm.jobContent" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putWorkExperience('workExperienceForm')">保 存</el-button>
+      </div>
 
-        </div>
-      </el-dialog>
-      <el-dialog title="体检信息" append-to-body :visible.sync="dialogshowArr[2].show" width="50%">
-        <el-form
-          ref="physicalExamForm"
-          :model="physicalExamForm"
-          :rules="physicalExamRules"
-          label-position="right"
-          label-width="120px"
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="closeCamera">取消</el-button>
+        <el-button
+          v-if="!capturedImage"
+          type="primary"
+          @click="takePhoto"
         >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="physicalExamForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="physicalExamForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="physicalExamForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="体检医院" prop="hospital">
-                <el-input v-model="physicalExamForm.hospital" />
-              </el-form-item>
-              <el-form-item label="体检类型" prop="physicalExamType">
-                <el-select
-                  v-model="physicalExamForm.physicalExamType"
-                  placeholder="请选择体检类型"
-                >
-                  <el-option
-                    v-for="dict in physicalExamTypeOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="转氨酶" prop="transaminase">
-                <el-input v-model="physicalExamForm.transaminase" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="physicalExamForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="physicalExamForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="physicalExamForm.jobName" />
-              </el-form-item>
-              <el-form-item label="体检日期" prop="physicalExamDate">
-                <el-date-picker
-                  v-model="physicalExamForm.physicalExamDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择体检日期"
-                />
-              </el-form-item>
-              <el-form-item label="血压" prop="bloodPressure">
-                <el-input v-model="physicalExamForm.bloodPressure" />
-              </el-form-item>
-              <el-form-item label="心电图" prop="ecg">
-                <el-select v-model="physicalExamForm.ecg" placeholder="ecg">
-                  <el-option
-                    v-for="dict in ecgOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="体检结论" prop="conclusion">
-                <el-input v-model="physicalExamForm.conclusion" />
-              </el-form-item>
-              <el-form-item label="复查记录" prop="reviewRecord">
-                <el-input v-model="physicalExamForm.reviewRecord" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注" prop="remark">
-                <el-input v-model="physicalExamForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putPhysicalExam('physicalExamForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="合同信息" append-to-body :visible.sync="dialogshowArr[3].show" width="50%">
-        <el-form
-          ref="contractInfoForm"
-          :model="contractInfoForm"
-          :rules="contractInfoRules"
-          label-position="right"
-          label-width="120px"
+          拍照
+        </el-button>
+        <el-button
+          v-if="capturedImage"
+          @click="retakePhoto"
         >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="contractInfoForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="contractInfoForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" this-emp-base-info-form="sex">
-                <el-select v-model="contractInfoForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="合同签订日期" prop="signingDate">
-                <el-date-picker
-                  v-model="contractInfoForm.signingDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择日期"
-                />
-              </el-form-item>
-              <el-form-item label="合同状态" prop="contractStatus">
-                <el-select
-                  v-model="contractInfoForm.contractStatus"
-                  placeholder="请选择合同状态"
-                >
-                  <el-option
-                    v-for="dict in contractStatusOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="合同办理人" prop="transactor">
-                <el-input v-model="contractInfoForm.transactor" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="contractInfoForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="contractInfoForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="contractInfoForm.jobName" />
-              </el-form-item>
-              <el-form-item label="合同结束日期" prop="endDate">
-                <el-date-picker
-                  v-model="contractInfoForm.endDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择日期"
-                />
-              </el-form-item>
-              <el-form-item label="合同期限(年)" prop="contractPeriod">
-                <el-input v-model="contractInfoForm.contractPeriod" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注" prop="remark">
-                <el-input v-model="contractInfoForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putContractInfo('contractInfoForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="离职当月考勤" append-to-body :visible.sync="dialogshowArr[4].show" width="50%">
-        <el-form
-          ref="dimissionAttendForm"
-          :model="dimissionAttendForm"
-          :rules="dimissionAttendRules"
-          label-position="right"
-          label-width="120px"
+          重拍
+        </el-button>
+        <el-button
+          v-if="capturedImage"
+          type="primary"
+          @click="confirmPhoto"
         >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="dimissionAttendForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="dimissionAttendForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="dimissionAttendForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="离职考勤月份" prop="attendMonth">
-                <el-date-picker
-                  v-model="dimissionAttendForm.attendMonth"
-                  value-format="yyyy-MM"
-                  type="month"
-                  placeholder="选择考勤月份"
-                />
-              </el-form-item>
-              <el-form-item label="加班(天)" prop="overtimeDay">
-                <el-input v-model="dimissionAttendForm.overtimeDay" />
-              </el-form-item>
-              <el-form-item label="有无代扣款项" prop="deduct">
-                <el-input v-model="dimissionAttendForm.deduct" />
-              </el-form-item>
-              <el-form-item label="旷工(天)" prop="absenteeism">
-                <el-input v-model="dimissionAttendForm.absenteeism" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="dimissionAttendForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="dimissionAttendForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="dimissionAttendForm.jobName" />
-              </el-form-item>
-              <el-form-item label="出勤天数" prop="attendDays">
-                <el-input v-model="dimissionAttendForm.attendDays" />
-              </el-form-item>
-
-              <el-form-item label="加班(小时)" prop="overtimeHour">
-                <el-input v-model="dimissionAttendForm.overtimeHour" />
-              </el-form-item>
-
-              <el-form-item label="请假(天)" prop="leaveDay">
-                <el-input v-model="dimissionAttendForm.leaveDay" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注" prop="remark">
-                <el-input v-model="dimissionAttendForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putDimissionAttend('dimissionAttendForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="请假记录" append-to-body :visible.sync="dialogshowArr[5].show" width="50%">
-        <el-form
-          ref="leaveInfoForm"
-          :model="leaveInfoForm"
-          :rules="leaveInfoRules"
-          label-position="right"
-          label-width="120px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="leaveInfoForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="leaveInfoForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="leaveInfoForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="请假开始时间" prop="beginTime">
-                <el-date-picker
-                  v-model="leaveInfoForm.beginTime"
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  format="yyyy-MM-dd HH:mm:ss"
-                  type="datetime"
-                  placeholder="选择请假开始时间"
-                />
-              </el-form-item>
-
-              <el-form-item label="请假类型" prop="leaveType">
-                <el-select v-model="leaveInfoForm.leaveType" placeholder="请选择请假类型">
-                  <el-option
-                    v-for="dict in leaveTypeOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-
-              <el-form-item label="报备人" prop="reporter">
-                <el-input v-model="leaveInfoForm.reporter" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="leaveInfoForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="leaveInfoForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="leaveInfoForm.jobName" />
-              </el-form-item>
-              <el-form-item label="请假结束时间" prop="endTime">
-                <el-date-picker
-                  v-model="leaveInfoForm.endTime"
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  format="yyyy-MM-dd HH:mm:ss"
-                  type="datetime"
-                  placeholder="选择请假结束时间"
-                />
-              </el-form-item>
-
-              <el-form-item label="请假天数" prop="leaveDay">
-                <el-input v-model="leaveInfoForm.leaveDay" />
-              </el-form-item>
-
-              <el-form-item label="到岗时间" prop="returnDate">
-                <el-date-picker
-                  v-model="leaveInfoForm.returnDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择到岗时间"
-                />
-              </el-form-item>
-
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注">
-                <el-input v-model="leaveInfoForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putLeaveInfo('leaveInfoForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="辞职申请" append-to-body :visible.sync="dialogshowArr[6].show" width="50%">
-        <el-form ref="resignForm" :model="resignForm" :rules="resignRules" label-position="right" label-width="120px">
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="resignForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="resignForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="resignForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="辞职申请日期" prop="applayDate">
-                <el-date-picker
-                  v-model="resignForm.applayDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择辞职申请日期"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="resignForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="resignForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="resignForm.jobName" />
-              </el-form-item>
-              <el-form-item label="报备人">
-                <el-input v-model="resignForm.reporter" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="辞职事由" prop="reason">
-                <el-input v-model="resignForm.reason" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注">
-                <el-input v-model="resignForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putResign('resignForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="失业金领取" append-to-body :visible.sync="dialogshowArr[7].show" width="50%">
-        <el-form
-          ref="unemploymentForm"
-          :model="unemploymentForm"
-          :rules="unemploymentRules"
-          label-position="right"
-          label-width="120px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="unemploymentForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="unemploymentForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="unemploymentForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="失业金申请日期" prop="applayDate" label-width="130px">
-                <el-date-picker
-                  v-model="unemploymentForm.applayDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择失业金申请日期"
-                />
-              </el-form-item>
-              <el-form-item label="申报事由" prop="applayReason">
-                <el-input v-model="unemploymentForm.applayReason" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="unemploymentForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="unemploymentForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="unemploymentForm.jobName" />
-              </el-form-item>
-              <el-form-item label="汇报人">
-                <el-input v-model="unemploymentForm.reporter" />
-              </el-form-item>
-              <el-form-item label="审批人">
-                <el-input v-model="unemploymentForm.auditor" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注">
-                <el-input v-model="unemploymentForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putUnemployment('unemploymentForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="社保申请" append-to-body :visible.sync="dialogshowArr[8].show" width="50%">
-        <el-form
-          ref="insuranceForm"
-          :model="insuranceForm"
-          :rules="insuranceRules"
-          label-position="right"
-          label-width="120px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="insuranceForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="insuranceForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="insuranceForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="社保申请日期" prop="applayDate">
-                <el-date-picker
-                  v-model="insuranceForm.applayDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择社保申请日期"
-                />
-              </el-form-item>
-              <el-form-item label="社保档位" prop="insuranceGaers">
-                <el-select v-model="insuranceForm.insuranceGaers" placeholder="请选择社保档位">
-                  <el-option
-                    v-for="dict in insuranceGaersOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="状态" prop="applayStatus">
-                <el-select v-model="insuranceForm.applayStatus" placeholder="请选择状态">
-                  <el-option
-                    v-for="dict in applayStatusOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="insuranceForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="insuranceForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="insuranceForm.jobName" />
-              </el-form-item>
-              <el-form-item label="申请人" prop="proposer">
-                <el-input v-model="insuranceForm.proposer" />
-              </el-form-item>
-              <el-form-item label="是否已经报告">
-                <el-select v-model="insuranceForm.reportStatus" placeholder="是否已经报告">
-                  <el-option
-                    v-for="dict in reportStatusOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="审批人">
-                <el-input v-model="insuranceForm.auditor" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注">
-                <el-input v-model="insuranceForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putInsurance('insuranceForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="意外险案件" append-to-body :visible.sync="dialogshowArr[9].show" width="50%">
-        <el-form
-          ref="accidentCasesForm"
-          :model="accidentCasesForm"
-          :rules="accidentCasesRules"
-          label-position="right"
-          label-width="120px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="accidentCasesForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="accidentCasesForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="accidentCasesForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="受伤时间" prop="injuredTime">
-                <el-date-picker
-                  v-model="accidentCasesForm.injuredTime"
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  type="datetime"
-                  placeholder="选择受伤时间"
-                />
-              </el-form-item>
-              <el-form-item label="受伤部位" prop="injuredPart">
-                <el-input v-model="accidentCasesForm.injuredPart" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="accidentCasesForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="accidentCasesForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="accidentCasesForm.jobName" />
-              </el-form-item>
-              <el-form-item label="受伤地点">
-                <el-input v-model="accidentCasesForm.injuredAddress" />
-              </el-form-item>
-              <el-form-item label="意外险诊断">
-                <el-input v-model="accidentCasesForm.injuredDiacrisis" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="受伤经过描述" prop="injuredDescribe">
-                <el-input v-model="accidentCasesForm.injuredDescribe" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="就诊医院" prop="hospitalName">
-                <el-input v-model="accidentCasesForm.hospitalName" />
-              </el-form-item>
-              <el-form-item label="是否住院" prop="hospitalizatioFlag">
-                <el-select v-model="accidentCasesForm.hospitalizatioFlag" placeholder="是否住院">
-                  <el-option
-                    v-for="dict in hospitalizatioFlagOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="报案时间">
-                <el-date-picker
-                  v-model="accidentCasesForm.reprotTime"
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  type="datetime"
-                  placeholder="选择报案时间"
-                />
-              </el-form-item>
-              <el-form-item label="递交人">
-                <el-input v-model="accidentCasesForm.sbumitBy" />
-              </el-form-item>
-              <el-form-item label="保险赔付费用" prop="innsureFee">
-                <el-input v-model="accidentCasesForm.innsureFee" />
-              </el-form-item>
-              <el-form-item label="人事处理时间">
-                <el-date-picker
-                  v-model="accidentCasesForm.hrDoDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择人事处理时间"
-                />
-              </el-form-item>
-
-              <el-form-item label="案结时间" prop="settleDate">
-                <el-date-picker
-                  v-model="accidentCasesForm.settleDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择案结时间"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="就诊科室">
-                <el-input v-model="accidentCasesForm.treatmentName" />
-              </el-form-item>
-              <el-form-item label="床号">
-                <el-input v-model="accidentCasesForm.bedNumb" />
-              </el-form-item>
-              <el-form-item label="递交资料时间">
-                <el-date-picker
-                  v-model="accidentCasesForm.submitTime"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择递交资料时间"
-                />
-              </el-form-item>
-              <el-form-item label="医疗总费用" prop="expensesFee">
-                <el-input v-model="accidentCasesForm.expensesFee" />
-              </el-form-item>
-              <el-form-item label="报单号">
-                <el-input v-model="accidentCasesForm.expenseReport" />
-              </el-form-item>
-              <el-form-item label="状态" prop="settleStatus">
-                <el-select v-model="accidentCasesForm.settleStatus" placeholder="">
-                  <el-option
-                    v-for="dict in settleStatusOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="工伤案件" append-to-body :visible.sync="dialogshowArr[10].show" width="50%">
-        <el-form
-          ref="occupationalForm"
-          :model="occupationalForm"
-          :rules="occupationalRules"
-          label-position="right"
-          label-width="140px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="occupationalForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="occupationalForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="occupationalForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="受伤时间" prop="injuredTime">
-                <el-date-picker
-                  v-model="occupationalForm.injuredTime"
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  type="datetime"
-                  placeholder="选择受伤时间"
-                />
-              </el-form-item>
-              <el-form-item label="受伤部位" prop="injuredPart">
-                <el-input v-model="occupationalForm.injuredPart" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="occupationalForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="occupationalForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="occupationalForm.jobName" />
-              </el-form-item>
-              <el-form-item label="受伤地点" prop="injuredAddress">
-                <el-input v-model="occupationalForm.injuredAddress" />
-              </el-form-item>
-              <el-form-item label="工伤诊断" prop="injuredDiacrisis">
-                <el-input v-model="occupationalForm.injuredDiacrisis" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="受伤经过描述" prop="injuredDescribe">
-                <el-input v-model="occupationalForm.injuredDescribe" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="就诊医院" prop="hospitalName">
-                <el-input v-model="occupationalForm.hospitalName" />
-              </el-form-item>
-              <el-form-item label="是否住院" prop="hospitalizatioFlag">
-                <el-select v-model="occupationalForm.hospitalizatioFlag" placeholder="是否住院">
-                  <el-option
-                    v-for="dict in hospitalizatioFlagOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="报案时间" prop="'reportTime">
-                <el-date-picker
-                  v-model="occupationalForm.reportTime"
-                  value-format="yyyy-MM-dd HH:mm:ss"
-                  type="datetime"
-                  placeholder="选择报案时间"
-                />
-              </el-form-item>
-              <el-form-item label="递交人" prop="'sbumitBy">
-                <el-input v-model="occupationalForm.sbumitBy" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="就诊科室" prop="'treatmentName">
-                <el-input v-model="occupationalForm.treatmentName" />
-              </el-form-item>
-              <el-form-item label="床号" prop="bedNumb">
-                <el-input v-model="occupationalForm.bedNumb" />
-              </el-form-item>
-              <el-form-item label="递交资料时间" prop="submitTime">
-                <el-date-picker
-                  v-model="occupationalForm.submitTime"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择递交资料时间"
-                />
-              </el-form-item>
-              <el-form-item label="人事处理时间" prop="hrDoDate">
-                <el-date-picker
-                  v-model="occupationalForm.hrDoDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择人事处理时间"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          社保赔偿费用
-          <el-divider />
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="医疗总费用" prop="expensesFee">
-                <el-input v-model="occupationalForm.expensesFee" />
-              </el-form-item>
-              <el-form-item label="一次性伤残补助金" prop="socialDisability">
-                <el-input v-model="occupationalForm.socialDisability" />
-              </el-form-item>
-              <el-form-item label="一次性医疗补助金" prop="socialSubsidy">
-                <el-input v-model="occupationalForm.socialSubsidy" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="剔除总额">
-                <el-input v-model="occupationalForm.eliminate" />
-              </el-form-item>
-              <el-form-item label="住院伙食补贴">
-                <el-input v-model="occupationalForm.socialAllowance" />
-              </el-form-item>
-              <el-form-item label="社保赔偿总费用">
-                <el-input v-model="occupationalForm.socialCompensation" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          公司赔偿费用
-          <el-divider />
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="已赔付医药费用" prop="compensated">
-                <el-input v-model="occupationalForm.compensated" />
-              </el-form-item>
-              <el-form-item label="一次性伤残补助金">
-                <el-input v-model="occupationalForm.companylDisability" />
-              </el-form-item>
-              <el-form-item label="一次性医疗补助金">
-                <el-input v-model="occupationalForm.companySubsidy" />
-              </el-form-item>
-              <el-form-item label="一次性就业补助金">
-                <el-input v-model="occupationalForm.jobSubsidy" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="其他赔偿报销">
-                <el-input v-model="occupationalForm.otherCompensated" />
-              </el-form-item>
-              <el-form-item label="工伤生活补贴">
-                <el-input v-model="occupationalForm.companyAllowance" />
-              </el-form-item>
-              <el-form-item label="公司赔偿总费用" prop="companyCompensation">
-                <el-input v-model="occupationalForm.companyCompensation" />
-              </el-form-item>
-              <el-form-item label="是否结案" prop="settleStatus">
-                <el-select v-model="occupationalForm.settleStatus" placeholder="">
-                  <el-option
-                    v-for="dict in settleStatusOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注">
-                <el-input v-model="occupationalForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putOccupational('occupationalForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="劳资案件" append-to-body :visible.sync="dialogshowArr[11].show" width="50%">
-        <el-form
-          ref="laborTroubleForm"
-          :model="laborTroubleForm"
-          :rules="laborTroubleRules"
-          label-position="right"
-          label-width="140px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="laborTroubleForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="laborTroubleForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="laborTroubleForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="仲裁日期" prop="arbitrationDate">
-                <el-date-picker
-                  v-model="laborTroubleForm.arbitrationDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择仲裁日期"
-                />
-              </el-form-item>
-              <el-form-item label="汇报人" prop="reporter">
-                <el-input v-model="laborTroubleForm.reporter" />
-              </el-form-item>
-              <el-form-item label="是否结案" prop="arbitrationStatus">
-                <el-select v-model="laborTroubleForm.arbitrationStatus" placeholder="">
-                  <el-option
-                    v-for="dict in settleStatusOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="laborTroubleForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="laborTroubleForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="laborTroubleForm.jobName" />
-              </el-form-item>
-              <el-form-item label="仲裁类型" prop="arbitrationType">
-                <el-select v-model="laborTroubleForm.arbitrationType" placeholder="请选择仲裁类型">
-                  <el-option
-                    v-for="dict in arbitrationTypeOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="仲裁赔付(元)" prop="'arbitrationPay">
-                <el-input
-                  v-model="laborTroubleForm.arbitrationPay"
-                  oninput="value=value.replace(/^\.+|[^\d.]/g,'')"
-                  @blur="arbitrationPayChange"
-                />
-              </el-form-item>
-              <el-form-item label="案结日期" prop="settleDate">
-                <el-date-picker
-                  v-model="laborTroubleForm.settleDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择案结日期"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="仲裁事由" prop="arbitrationReason">
-                <el-input v-model="laborTroubleForm.arbitrationReason" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注" prop="remark">
-                <el-input v-model="laborTroubleForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putLaborTrouble('laborTroubleForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="不良记录" append-to-body :visible.sync="dialogshowArr[12].show" width="50%">
-        <el-form
-          ref="badRecordForm"
-          :model="badRecordForm"
-          :rules="badRecordRules"
-          label-position="right"
-          label-width="140px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="badRecordForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="badRecordForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="badRecordForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="不良记录日期" prop="badDate">
-                <el-date-picker
-                  v-model="badRecordForm.badDate"
-                  type="date"
-                  value-format="yyyy-MM-dd"
-                  placeholder="选择不良记录日期"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="badRecordForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="badRecordForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="badRecordForm.jobName" />
-              </el-form-item>
-              <el-form-item label="汇报人" prop="reporter">
-                <el-input v-model="badRecordForm.reporter" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="不良记录描述" prop="badContent">
-                <el-input v-model="badRecordForm.badContent" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注">
-                <el-input v-model="badRecordForm.remark" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putBadRecord('badRecordForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
-      <el-dialog title="备注信息" append-to-body :visible.sync="dialogshowArr[13].show" width="50%">
-        <el-form
-          ref="remarkInfoForm"
-          :model="remarkInfoForm"
-          :rules="remarkInfoRules"
-          label-position="right"
-          label-width="140px"
-        >
-          <el-row>
-            <el-col :span="12">
-              <el-form-item label="姓名" prop="empName">
-                <el-input v-model="remarkInfoForm.empName" />
-              </el-form-item>
-              <el-form-item label="身份证号码" prop="certificateNumb">
-                <el-input
-                  v-model="remarkInfoForm.certificateNumb"
-                />
-              </el-form-item>
-              <el-form-item label="性别" prop="sex">
-                <el-select v-model="remarkInfoForm.sex" placeholder="请选择性别">
-                  <el-option
-                    v-for="dict in sexOptions"
-                    :key="dict.dicItemCode"
-                    :label="dict.dicItemName"
-                    :value="dict.dicItemCode"
-                  />
-                </el-select>
-              </el-form-item>
-              <el-form-item label="备注日期" prop="remarkDate">
-                <el-date-picker
-                  v-model="remarkInfoForm.remarkDate"
-                  value-format="yyyy-MM-dd"
-                  type="date"
-                  placeholder="选择备注日期"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="12">
-              <el-form-item label="员工编号" prop="empNumb">
-                <el-input v-model="remarkInfoForm.empNumb" />
-              </el-form-item>
-              <el-form-item label="部门(护卫点)" prop="allDeptName">
-                <el-input v-model="remarkInfoForm.allDeptName" />
-              </el-form-item>
-              <el-form-item label="岗位" prop="jobName">
-                <el-input v-model="remarkInfoForm.jobName" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="备注" prop="remarkContent">
-                <el-input v-model="remarkInfoForm.remarkContent" type="textarea" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putRemarkInfo('remarkInfoForm')">保 存</el-button>
-
-        </div>
-      </el-dialog>
+          确认使用
+        </el-button>
+      </div>
     </el-dialog>
   </div>
 </template>
 <script>
-import { calculateSeniority, toCardGetUserInfo } from '@/utils/myUtil'
+import { calculateSeniority, dateDifference, toCardGetUserInfo } from '@/utils/myUtil'
 import Treeselect from '@riophae/vue-treeselect'
 import '@riophae/vue-treeselect/dist/vue-treeselect.css'
 import Pagination from '@/components/Pagination'
 import { getToken } from '@/utils/auth'
 import { pages } from '@/settings'
+import dictMixin from '../../utils/dictMixin'
+import WorkExperienceEdit from './components/WorkExperienceEdit'
+import PhysicalExamEdit from './components/PhysicalExamEdit'
+import ContractInfoEdit from './components/ContractInfoEdit'
+import DimissionAttendEdit from './components/DimissionAttendEdit'
+import LeaveInfoEdit from './components/LeaveInfoEdit'
+import ResignEdit from './components/ResignEdit'
+import UnemploymentInsuranceEdit from './components/UnemploymentInsuranceEdit'
+import SocialSecurityEdit from './components/SocialSecurityEdit'
+import AccidentInsuranceEdit from './components/AccidentInsuranceEdit'
+import WorkInjuryEdit from './components/WorkInjuryEdit'
+import ArbitrationEdit from './components/ArbitrationEdit'
+import BadRecordEdit from './components/BadRecordEdit'
+import RemarkEdit from './components/RemarkEdit'
 
 export default {
   name: 'ArchivesEdit',
-  components: { Treeselect, Pagination },
+  components: { Treeselect, Pagination, WorkExperienceEdit, PhysicalExamEdit, ContractInfoEdit, DimissionAttendEdit, LeaveInfoEdit, ResignEdit, UnemploymentInsuranceEdit, SocialSecurityEdit, AccidentInsuranceEdit, WorkInjuryEdit, ArbitrationEdit, BadRecordEdit, RemarkEdit },
+  mixins: [dictMixin],
   props: {
     dialogVisible: {
       type: Boolean,
@@ -2775,6 +1856,19 @@
       },
       readon: false,
       workExperienceModal: true,
+      workExperienceEditData: {},
+      physicalExamEditData: {},
+      contractInfoEditData: {},
+      dimissionAttendEditData: {},
+      leaveInfoEditData: {},
+      resignEditData: {},
+      unemploymentEditData: {},
+      socialSecurityEditData: {},
+      accidentInsuranceEditData: {},
+      workInjuryEditData: {},
+      arbitrationEditData: {},
+      badRecordEditData: {},
+      remarkEditData: {},
       restaurJob: [{ value: '总经理', code: '2942725270000031' },
         { value: '总秘', code: '2942725270000032' },
         { value: '总助', code: '2942725270000033' },
@@ -2847,6 +1941,12 @@
         }
       ],
       empBaseInfoImageUrl: '',
+      // 上传方式选择弹窗
+      uploadChoiceDialogVisible: false,
+      // 摄像头相关
+      cameraDialogVisible: false,
+      capturedImage: '',
+      stream: null,
       rules: {
         archivesNumb: [{ required: true, message: '请输入档案号', trigger: 'blur' }, {
           max: 20,
@@ -2868,7 +1968,7 @@
           message: '长度不超过36个字符',
           trigger: 'blur'
         }],
-        insuranceType: [{ required: true, message: '请选择保险类型', trigger: 'change' }],
+        insuranceType: [{ required: true, message: '请选择社保档位', trigger: 'change' }],
         entryDate: [{ required: true, message: '请选择入职日期', trigger: 'change' }],
         seniority: [{ required: true, message: '请输入入司工龄', trigger: 'blur' }],
         archivesStatus: [{ required: true, message: '请选择档案情况', trigger: 'change' }],
@@ -2931,11 +2031,11 @@
         remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }]
       },
       contractInfoRules: {
-        signingDate: [{ required: true, message: '请选择合同签订时间', trigger: 'change' }],
+        signingDate: [{ required: true, message: '请选择合同签订时间', trigger: 'change', validator: this.startDate }],
         contractStatus: [{ required: true, message: '请选择合同状态', trigger: 'change' }],
         transactor: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }],
         beginDate: [{ required: true, message: '请选择合同开始日期', trigger: 'change' }],
-        endDate: [{ required: true, message: '请选择合同结束时间', trigger: 'change' }],
+        endDate: [{ required: true, message: '请选择合同结束时间', trigger: 'change', validator: this.endDate }],
         remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }]
       },
       dimissionAttendRules: {
@@ -2949,10 +2049,10 @@
           pattern: /^\d{1,2}(\.\d{1,1})?$/,
           message: '出勤天数精确到1位小数'
         }],
-        overtimeDay: [{ pattern: /^\d{1,2}(\.\d{1,1})?$/, message: '加班(天)精确到1位小数' }],
-        overtimeHour: [{ pattern: /^\d{1,2}(\.\d{1,1})?$/, message: '加班(小时)精确到1位小数' }],
-        leaveDay: [{ pattern: /^\d{1,2}(\.\d{1,1})?$/, message: '请假(天)精确到1位小数' }],
-        absenteeism: [{ pattern: /^\d{1,2}(\.\d{1,1})?$/, message: '旷工(天)精确到1位小数' }],
+        overtimeDay: [{ pattern: /^\d{1,3}(\.\d{1,1})?$/, message: '加班(天)精确到1位小数' }],
+        overtimeHour: [{ pattern: /^\d{1,3}(\.\d{1,1})?$/, message: '加班(小时)精确到1位小数' }],
+        leaveDay: [{ pattern: /^\d{1,3}(\.\d{1,1})?$/, message: '请假(天)精确到1位小数' }],
+        absenteeism: [{ pattern: /^\d{1,3}(\.\d{1,1})?$/, message: '旷工(天)精确到1位小数' }],
         remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }]
       },
       leaveInfoRules: {
@@ -3186,7 +2286,6 @@
         creator: '',
         modifyTime: '',
         modifier: '',
-
         empStatus: 0,
         version: ''
       },
@@ -3323,7 +2422,6 @@
         creator: '',
         modifyTime: '',
         modifier: '',
-
         version: '',
         empStatus: 0,
         remark: ''
@@ -3551,7 +2649,8 @@
         modifyTime: '',
         modifier: '',
         empStatus: 0,
-        version: ''
+        version: '',
+        annualLeave: ''
       },
       fsnumShow: false,
       badRecordForm: {
@@ -3595,30 +2694,8 @@
         { type: 'password' },
         { type: 'implicit' }
       ],
-      statusOptions: [],
-      empTypeOptions: [],
-      nationOptions: [],
-      marriageOptions: [],
-      educationOptions: [],
-      nativePlaceOptions: [],
-      archivesStatusOptions: [],
-      insuranceTypeOptions: [],
-      empCardStatusOptions: [],
-      handbookStatusOptions: [],
-      ecgOptions: [],
-      certificateListOptions: [],
-      physicalExamTypeOptions: [],
-      contractStatusOptions: [],
-      leaveTypeOptions: [],
-      insuranceGaersOptions: [],
-      applayStatusOptions: [],
-      reportStatusOptions: [],
-      hospitalizatioFlagOptions: [],
-      settleStatusOptions: [],
-      arbitrationTypeOptions: [],
-      changeTypeOptions: [],
-      dimissionTypeOptions: [],
-      sexOptions: []
+      srcList: [],
+      getImg: pages.getAccessoryImage
     }
   },
   computed: {
@@ -3630,85 +2707,45 @@
         this.close()
         this.reset()
       }
-    }
+    },
+    // 字典选项计算属性
+    statusOptions() { return this.getDictOptions('PLITICAL') },
+    empTypeOptions() { return this.getDictOptions('EMPTYPE') },
+    nationOptions() { return this.getDictOptions('NATION') },
+    marriageOptions() { return this.getDictOptions('MARRIAGE') },
+    educationOptions() { return this.getDictOptions('EDUCATION') },
+    nativePlaceOptions() { return this.getDictOptions('NATIVEPLACE') },
+    archivesStatusOptions() { return this.getDictOptions('archivesStatus') },
+    insuranceTypeOptions() { return this.getDictOptions('INSURANCETYPE') },
+    empCardStatusOptions() { return this.getDictOptions('empCardStatus') },
+    handbookStatusOptions() { return this.getDictOptions('handbookStatus') },
+    certificateListOptions() { return this.getDictOptions('certificateList') },
+    physicalExamTypeOptions() { return this.getDictOptions('PHYSICALEXAMTYPE') },
+    ecgOptions() { return this.getDictOptions('ECG') },
+    contractStatusOptions() { return this.getDictOptions('CONTRACTSTATUS') },
+    leaveTypeOptions() { return this.getDictOptions('LEAVETYPE') },
+    insuranceGaersOptions() { return this.getDictOptions('INSURANCETYPE') },
+    applayStatusOptions() { return this.getDictOptions('applayStatus') },
+    reportStatusOptions() { return this.getDictOptions('reportStatus') },
+    hospitalizatioFlagOptions() { return this.getDictOptions('hospitalizatioFlag') },
+    settleStatusOptions() { return this.getDictOptions('settleStatus') },
+    arbitrationTypeOptions() { return this.getDictOptions('ZCTYPE') },
+    changeTypeOptions() { return this.getDictOptions('changeType') },
+    dimissionTypeOptions() { return this.getDictOptions('LZTYPE') },
+    sexOptions() { return this.getDictOptions('sex') }
   },
   mounted() {
     this.initDept()
-    /* 政治面貌*/
-    this.getDicts('PLITICAL').then(response => {
-      this.statusOptions = response.data
-    })
-    this.getDicts('sex').then(response => {
-      this.sexOptions = response.data
-    })
-    this.getDicts('empType').then(response => {
-      this.empTypeOptions = response.data
-    })
-    this.getDicts('NATION').then(response => {
-      this.nationOptions = response.data
-    })
-    this.getDicts('MARRIAGE').then(response => {
-      this.marriageOptions = response.data
-    })
-    this.getDicts('EDUCATION').then(response => {
-      this.educationOptions = response.data
-    })
-    this.getDicts('NATIVEPLACE').then(response => {
-      this.nativePlaceOptions = response.data
-    })
-    this.getDicts('archivesStatus').then(response => {
-      this.archivesStatusOptions = response.data
-    })
-    this.getDicts('INSURANCETYPE').then(response => {
-      this.insuranceTypeOptions = response.data
-    })
-    this.getDicts('empCardStatus').then(response => {
-      this.empCardStatusOptions = response.data
-    })
-    this.getDicts('handbookStatus').then(response => {
-      this.handbookStatusOptions = response.data
-    })
-    this.getDicts('certificateList').then(response => {
-      this.certificateListOptions = response.data
-    })
-    this.getDicts('PHYSICALEXAMTYPE').then(response => {
-      this.physicalExamTypeOptions = response.data
-    })
-    this.getDicts('ECG').then(response => {
-      this.ecgOptions = response.data
-    })
-    this.getDicts('CONTRACTSTATUS').then(response => {
-      this.contractStatusOptions = response.data
-    })
-    this.getDicts('LEAVETYPE').then(response => {
-      this.leaveTypeOptions = response.data
-    })
-    this.getDicts('insuranceGaers').then(response => {
-      this.insuranceGaersOptions = response.data
-    })
-    this.getDicts('applayStatus').then(response => {
-      this.applayStatusOptions = response.data
-    })
-    this.getDicts('reportStatus').then(response => {
-      this.reportStatusOptions = response.data
-    })
-    this.getDicts('hospitalizatioFlag').then(response => {
-      this.hospitalizatioFlagOptions = response.data
-    })
-    this.getDicts('settleStatus').then(response => {
-      this.settleStatusOptions = response.data
-    })
-    this.getDicts('ZCTYPE').then(response => {
-      this.arbitrationTypeOptions = response.data
-    })
-    this.getDicts('changeType').then(response => {
-      this.changeTypeOptions = response.data
-    })
-    this.getDicts('LZTYPE').then(response => {
-      this.dimissionTypeOptions = response.data
-    })
+    // 字典数据已在登录时预加载,直接从 Vuex 获取
+    this.initDictTypes(['PLITICAL', 'sex', 'EMPTYPE', 'NATION', 'MARRIAGE', 'EDUCATION', 'NATIVEPLACE', 'archivesStatus', 'INSURANCETYPE', 'empCardStatus', 'handbookStatus', 'certificateList', 'PHYSICALEXAMTYPE', 'ECG', 'CONTRACTSTATUS', 'LEAVETYPE', 'applayStatus', 'reportStatus', 'hospitalizatioFlag', 'settleStatus', 'ZCTYPE', 'changeType', 'LZTYPE'])
   },
   methods: {
+    clickImg(node) {
+      this.srcList = []
+      if ('tif,bmp,jpg,png,gif'.indexOf(node.filesformat) >= 0) {
+        this.srcList.push(this.getImg + node.accessoryid)
+      }
+    },
     typeFormat(row, column) {
       return this.selectDictLabel(this.physicalExamTypeOptions, row.physicalExamType)
     },
@@ -3793,6 +2830,10 @@
     },
     showFileImg(type) {
       switch (type) {
+        case 'xls':
+          return require('../../assets/uploading/xls.png')
+        case 'xlsx':
+          return require('../../assets/uploading/xls.png')
         case 'txt':
           return require('../../assets/uploading/txt.png')
         case 'apk':
@@ -4108,39 +3149,191 @@
         certificateList = val.certificateList.split(',')
         val.certificateList = certificateList
       }
+      const remarks = ''
+      val.remark = remarks
+      this.readon = false
+
+      // 清空所有模块数据,确保切换员工后点击标签会重新加载
+      this.workExperienceData = []
+      this.physicalExamData = []
+      this.contractInfoData = []
+      this.jobChangeData = []
+      this.leaveInfoData = []
+      this.resignData = []
+      this.dimissionAttendData = []
+      this.dimissionLogData = []
+      this.unemploymentData = []
+      this.insuranceData = []
+      this.accidentCasesData = []
+      this.occupationalData = []
+      this.laborTroubleData = []
+      this.badRecordData = []
+      this.remarkInfoData = []
+
       this.empBaseInfoForm = { ...val }
       this.empBaseInfoImageUrl = pages.getEmpBaseInfoImage + this.empBaseInfoForm.empId
       this.fileDate.empId = this.empBaseInfoForm.empId
       this.labelfrom.empId = this.empBaseInfoForm.empId
-      this.remarkInfoForm = { ...val }
-      this.laborTroubleForm = { ...val }
-      this.occupationalForm = { ...val }
-      this.accidentCasesForm = { ...val }
-      this.insuranceForm = { ...val }
-      this.unemploymentForm = { ...val }
-      this.resignForm = { ...val }
-      this.leaveInfoForm = { ...val }
-      this.contractInfoForm = { ...val }
-      this.dimissionAttendForm = { ...val }
-      this.physicalExamForm = { ...val }
-      this.workExperienceForm = { ...val }
-      this.badRecordForm = { ...val }
+
+      this.remarkInfoForm.allDeptName = val.allDeptName
+      this.remarkInfoForm.certificateNumb = val.certificateNumb
+      this.remarkInfoForm.empId = val.empId
+      this.remarkInfoForm.empName = val.empName
+      this.remarkInfoForm.empNumb = val.empNumb
+      this.remarkInfoForm.deptName = val.deptName
+      this.remarkInfoForm.deptId = val.deptId
+      this.remarkInfoForm.jobId = val.jobId
+      this.remarkInfoForm.jobName = val.jobName
+      this.remarkInfoForm.sex = val.sex
+      this.remarkInfoForm.delFlag = 0
+      this.$set(this.remarkInfoForm, 'delFlag', 0)
+
+      this.laborTroubleForm.allDeptName = val.allDeptName
+      this.laborTroubleForm.certificateNumb = val.certificateNumb
+      this.laborTroubleForm.empId = val.empId
+      this.laborTroubleForm.empName = val.empName
+      this.laborTroubleForm.empNumb = val.empNumb
+      this.laborTroubleForm.deptName = val.deptName
+      this.laborTroubleForm.deptId = val.deptId
+      this.laborTroubleForm.jobId = val.jobId
+      this.laborTroubleForm.jobName = val.jobName
+      this.laborTroubleForm.sex = val.sex
+      this.$set(this.laborTroubleForm, 'delFlag', 0)
+
+      this.occupationalForm.allDeptName = val.allDeptName
+      this.occupationalForm.certificateNumb = val.certificateNumb
+      this.occupationalForm.empId = val.empId
+      this.occupationalForm.empName = val.empName
+      this.occupationalForm.empNumb = val.empNumb
+      this.occupationalForm.deptName = val.deptName
+      this.occupationalForm.deptId = val.deptId
+      this.occupationalForm.jobId = val.jobId
+      this.occupationalForm.jobName = val.jobName
+      this.occupationalForm.sex = val.sex
+      this.$set(this.occupationalForm, 'delFlag', 0)
+
+      this.insuranceForm.allDeptName = val.allDeptName
+      this.insuranceForm.certificateNumb = val.certificateNumb
+      this.insuranceForm.empId = val.empId
+      this.insuranceForm.empName = val.empName
+      this.insuranceForm.empNumb = val.empNumb
+      this.insuranceForm.deptName = val.deptName
+      this.insuranceForm.deptId = val.deptId
+      this.insuranceForm.jobId = val.jobId
+      this.insuranceForm.jobName = val.jobName
+      this.insuranceForm.sex = val.sex
+      this.$set(this.insuranceForm, 'delFlag', 0)
+
+      this.unemploymentForm.allDeptName = val.allDeptName
+      this.unemploymentForm.certificateNumb = val.certificateNumb
+      this.unemploymentForm.empId = val.empId
+      this.unemploymentForm.empName = val.empName
+      this.unemploymentForm.empNumb = val.empNumb
+      this.unemploymentForm.deptName = val.deptName
+      this.unemploymentForm.deptId = val.deptId
+      this.unemploymentForm.jobId = val.jobId
+      this.unemploymentForm.jobName = val.jobName
+      this.unemploymentForm.sex = val.sex
+      this.$set(this.unemploymentForm, 'delFlag', 0)
+
+      this.resignForm.allDeptName = val.allDeptName
+      this.resignForm.certificateNumb = val.certificateNumb
+      this.resignForm.empId = val.empId
+      this.resignForm.empName = val.empName
+      this.resignForm.empNumb = val.empNumb
+      this.resignForm.deptName = val.deptName
+      this.resignForm.deptId = val.deptId
+      this.resignForm.jobId = val.jobId
+      this.resignForm.jobName = val.jobName
+      this.resignForm.sex = val.sex
+      this.$set(this.resignForm, 'delFlag', 0)
+
+      this.leaveInfoForm.allDeptName = val.allDeptName
+      this.leaveInfoForm.certificateNumb = val.certificateNumb
+      this.leaveInfoForm.empId = val.empId
+      this.leaveInfoForm.empName = val.empName
+      this.leaveInfoForm.empNumb = val.empNumb
+      this.leaveInfoForm.deptName = val.deptName
+      this.leaveInfoForm.deptId = val.deptId
+      this.leaveInfoForm.jobId = val.jobId
+      this.leaveInfoForm.jobName = val.jobName
+      this.leaveInfoForm.sex = val.sex
+      this.$set(this.leaveInfoForm, 'delFlag', 0)
+
+      this.contractInfoForm.allDeptName = val.allDeptName
+      this.contractInfoForm.certificateNumb = val.certificateNumb
+      this.contractInfoForm.empId = val.empId
+      this.contractInfoForm.empName = val.empName
+      this.contractInfoForm.empNumb = val.empNumb
+      this.contractInfoForm.deptName = val.deptName
+      this.contractInfoForm.deptId = val.deptId
+      this.contractInfoForm.jobId = val.jobId
+      this.contractInfoForm.jobName = val.jobName
+      this.contractInfoForm.sex = val.sex
+      this.$set(this.contractInfoForm, 'delFlag', 0)
+
+      this.dimissionAttendForm.allDeptName = val.allDeptName
+      this.dimissionAttendForm.certificateNumb = val.certificateNumb
+      this.dimissionAttendForm.empId = val.empId
+      this.dimissionAttendForm.empName = val.empName
+      this.dimissionAttendForm.empNumb = val.empNumb
+      this.dimissionAttendForm.deptName = val.deptName
+      this.dimissionAttendForm.deptId = val.deptId
+      this.dimissionAttendForm.jobId = val.jobId
+      this.dimissionAttendForm.jobName = val.jobName
+      this.dimissionAttendForm.sex = val.sex
+      this.$set(this.dimissionAttendForm, 'delFlag', 0)
+
+      this.physicalExamForm.allDeptName = val.allDeptName
+      this.physicalExamForm.certificateNumb = val.certificateNumb
+      this.physicalExamForm.empId = val.empId
+      this.physicalExamForm.empName = val.empName
+      this.physicalExamForm.empNumb = val.empNumb
+      this.physicalExamForm.deptName = val.deptName
+      this.physicalExamForm.deptId = val.deptId
+      this.physicalExamForm.jobId = val.jobId
+      this.physicalExamForm.jobName = val.jobName
+      this.physicalExamForm.sex = val.sex
+      this.$set(this.physicalExamForm, 'delFlag', 0)
+
+      this.workExperienceForm.allDeptName = val.allDeptName
+      this.workExperienceForm.certificateNumb = val.certificateNumb
+      this.workExperienceForm.empId = val.empId
+      this.workExperienceForm.empName = val.empName
+      this.workExperienceForm.empNumb = val.empNumb
+      this.workExperienceForm.deptName = val.deptName
+      this.workExperienceForm.deptId = val.deptId
+      this.workExperienceForm.jobId = val.jobId
+      this.workExperienceForm.jobName = val.jobName
+      this.workExperienceForm.sex = val.sex
+      this.$set(this.workExperienceForm, 'delFlag', 0)
+
+      this.badRecordForm.allDeptName = val.allDeptName
+      this.badRecordForm.certificateNumb = val.certificateNumb
+      this.badRecordForm.empId = val.empId
+      this.badRecordForm.empName = val.empName
+      this.badRecordForm.empNumb = val.empNumb
+      this.badRecordForm.deptName = val.deptName
+      this.badRecordForm.deptId = val.deptId
+      this.badRecordForm.jobId = val.jobId
+      this.badRecordForm.jobName = val.jobName
+      this.badRecordForm.sex = val.sex
+      this.$set(this.badRecordForm, 'delFlag', 0)
+
+      this.accidentCasesForm.allDeptName = val.allDeptName
+      this.accidentCasesForm.certificateNumb = val.certificateNumb
+      this.accidentCasesForm.empId = val.empId
+      this.accidentCasesForm.empName = val.empName
+      this.accidentCasesForm.empNumb = val.empNumb
+      this.accidentCasesForm.deptName = val.deptName
+      this.accidentCasesForm.deptId = val.deptId
+      this.accidentCasesForm.jobId = val.jobId
+      this.accidentCasesForm.jobName = val.jobName
+      this.accidentCasesForm.sex = val.sex
+      this.$set(this.accidentCasesForm, 'delFlag', 0)
+
+      // 只加载附件数据(基本信息已在val中),其他模块懒加载
       this.initlabel()
-      this.initphysicalExamData()
-      this.initList() // 工作经历
-      this.initjobChangeData() // 调岗记录
-      this.initdimissionLogData() // 入离职记录
-      this.initcontractInfoData() // 合同信息
-      this.initleaveInfoData() // 请假记录
-      this.initresignData() // 辞职申请
-      this.initunemploymentData() // 失业金领取
-      this.initinsuranceData() // 社保申请
-      this.initremarkInfoData() // 备注
-      this.initlaborTroubleData() // 劳资案件
-      this.initoccupationalData() // 工伤案件
-      this.initbadRecordData() // 不良记录
-      this.initaccidentCasesData() // 意外险案件
-      this.initdimissionAttendData() // 考勤情况
     },
     initphysicalExamData(params = {}) {
       params.pageSize = this.pagination.size
@@ -4160,6 +3353,8 @@
       params.pageNum = this.pagination.num
       params.certificateNumb = this.empBaseInfoForm.certificateNumb
       params.delFlag = '0'
+      params.field = 'changeDate'
+      params.order = 'ascending'
       this.$get('hr/empJobChange/list', {
         ...params
       }).then((r) => {
@@ -4171,9 +3366,12 @@
     initdimissionLogData(params = {}) {
       params.pageSize = this.pagination.size
       params.pageNum = this.pagination.num
-      params.certificateNumb = this.empBaseInfoForm.certificateNumb
+      params.empStatus = this.empBaseInfoForm.empStatus
+      params.empId = this.empBaseInfoForm.empId
       params.dimissionType = ''
       params.delFlag = '0'
+      params.field = 'entryDate'
+      params.order = 'ascending'
       this.$get('hr/empDimissionlog/list', {
         ...params
       }).then((r) => {
@@ -4199,11 +3397,13 @@
       this.readon = true
     },
     gzupdate1() {
-      const empBaseInfoForm = this.empBaseInfoForm
-      if (empBaseInfoForm.imagePath.indexOf('data:image/jpeg') === -1) {
-        this.empBaseInfoForm.imagePath = ''
-      }
+      // const empBaseInfoForm = this.empBaseInfoForm
+      // if (empBaseInfoForm.imagePath.indexOf('data:image/jpeg') === -1) {
+      //   this.empBaseInfoForm.imagePath = ''
+      // }
       this.$put('hr/empBaseInfo', { ...this.empBaseInfoForm }).then(() => {
+        this.readon = false
+        this.$emit('success')
         this.$message({
           message: this.$t('tips.updateSuccess'),
           type: 'success'
@@ -4375,257 +3575,50 @@
         this.workExperienceData = data.rows
       })
     },
-    arbitrationPayChange(e) {
-      this.laborTroubleForm.arbitrationPay = e.target.value
+    handleLaborTroubleSuccess() {
+      this.isAdd = true
+      this.initlaborTroubleData()
+      this.dialogIsShow()
     },
-    putPhysicalExam(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empPhysicalExam', { ...this.physicalExamForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanPhysicalExam()
-              this.initphysicalExamData()
-            })
-          } else {
-            this.$put('hr/empPhysicalExam', { ...this.physicalExamForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanPhysicalExam()
-              this.initphysicalExamData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    handleBadRecordSuccess() {
+      this.isAdd = true
+      this.initbadRecordData()
+      this.dialogIsShow()
     },
-    cleanPhysicalExam() {
-      this.physicalExamForm.hospital = ''
-      this.physicalExamForm.physicalExamDate = ''
-      this.physicalExamForm.physicalExamType = ''
-      this.physicalExamForm.bloodPressure = ''
-      this.physicalExamForm.transaminase = ''
-      this.physicalExamForm.ecg = ''
-      this.physicalExamForm.conclusion = ''
-      this.physicalExamForm.reviewRecord = ''
-      this.physicalExamForm.remark = ''
+    handleRemarkInfoSuccess() {
+      this.isAdd = true
+      this.initremarkInfoData()
+      this.dialogIsShow()
     },
-    putContractInfo(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empContractInfo', { ...this.contractInfoForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanContractInfo()
-              this.initcontractInfoData()
-            })
-          } else {
-            this.$put('hr/empContractInfo', { ...this.contractInfoForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanContractInfo()
-              this.initcontractInfoData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    handlePhysicalExamSuccess() {
+      this.isAdd = true
+      this.initphysicalExamData()
+      this.dialogIsShow()
     },
-    cleanContractInfo() {
-      this.contractInfoForm.contractId = ''
-      this.contractInfoForm.beginDate = ''
-      this.contractInfoForm.endDate = ''
-      this.contractInfoForm.contractStatus = ''
-      this.contractInfoForm.contractPeriod = ''
-      this.contractInfoForm.transactor = ''
-      this.contractInfoForm.signingDate = ''
-      this.contractInfoForm.remark = ''
-      this.contractInfoForm.createTime = ''
-      this.contractInfoForm.creator = ''
-      this.contractInfoForm.modifyTime = ''
-      this.contractInfoForm.modifier = ''
-      this.contractInfoForm.version = ''
+    handleContractInfoSuccess() {
+      this.isAdd = true
+      this.initcontractInfoData()
+      this.dialogIsShow()
     },
-    putDimissionAttend(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empDimissionAttend', { ...this.dimissionAttendForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanDimissionAttend()
-              this.initdimissionAttendData()
-            })
-          } else {
-            this.$put('hr/empDimissionAttend', { ...this.dimissionAttendForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanDimissionAttend()
-              this.initdimissionAttendData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    handleDimissionAttendSuccess() {
+      this.isAdd = true
+      this.initdimissionAttendData()
+      this.dialogIsShow()
     },
-    cleanDimissionAttend() {
-      this.dimissionAttendForm.dimissionAttendId = ''
-      this.dimissionAttendForm.attendMonth = ''
-      this.dimissionAttendForm.overtimeHour = ''
-      this.dimissionAttendForm.overtimeDay = ''
-      this.dimissionAttendForm.leaveDay = ''
-      this.dimissionAttendForm.deduct = ''
-      this.dimissionAttendForm.absenteeism = ''
-      this.dimissionAttendForm.createTime = ''
-      this.dimissionAttendForm.creator = ''
-      this.dimissionAttendForm.modifyTime = ''
-      this.dimissionAttendForm.modifier = ''
-      this.dimissionAttendForm.version = ''
-      this.dimissionAttendForm.remark = ''
+    handleLeaveInfoSuccess() {
+      this.isAdd = true
+      this.initleaveInfoData()
+      this.dialogIsShow()
     },
-    putLeaveInfo(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empLeaveInfo', { ...this.leaveInfoForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanLeaveInfo()
-              this.initleaveInfoData()
-            })
-          } else {
-            this.$put('hr/empLeaveInfo', { ...this.leaveInfoForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanLeaveInfo()
-              this.initleaveInfoData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    handleResignSuccess() {
+      this.isAdd = true
+      this.initresignData()
+      this.dialogIsShow()
     },
-    cleanLeaveInfo() {
-      this.leaveInfoForm.leaveId = ''
-      this.leaveInfoForm.beginTime = ''
-      this.leaveInfoForm.endTime = ''
-      this.leaveInfoForm.leaveType = ''
-      this.leaveInfoForm.leaveDay = ''
-      this.leaveInfoForm.reporter = ''
-      this.leaveInfoForm.returnDate = ''
-      this.leaveInfoForm.createTime = ''
-      this.leaveInfoForm.creator = ''
-      this.leaveInfoForm.modifyTime = ''
-      this.leaveInfoForm.modifier = ''
-      this.leaveInfoForm.version = ''
-      this.leaveInfoForm.remark = ''
-    },
-    putResign(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empResign', { ...this.resignForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanResign()
-              this.initresignData()
-            })
-          } else {
-            this.$put('hr/empResign', { ...this.resignForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanResign()
-              this.initresignData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
-    },
-    cleanResign() {
-      this.resignForm.resignId = ''
-      this.resignForm.applayDate = ''
-      this.resignForm.reporter = ''
-      this.resignForm.reason = ''
-      this.resignForm.createTime = ''
-      this.resignForm.creator = ''
-      this.resignForm.modifyTime = ''
-      this.resignForm.modifier = ''
-      this.resignForm.version = ''
-      this.resignForm.remark = ''
-    },
-    putUnemployment(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empUnemployment', { ...this.unemploymentForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanUnemployment()
-              this.initunemploymentData()
-            })
-          } else {
-            this.$put('hr/empUnemployment', { ...this.unemploymentForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanUnemployment()
-              this.initunemploymentData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
-    },
-    cleanUnemployment() {
-      this.unemploymentForm.unemploymentId = ''
-      this.unemploymentForm.applayDate = ''
-      this.unemploymentForm.applayReason = ''
-      this.unemploymentForm.reporter = ''
-      this.unemploymentForm.auditor = ''
-      this.unemploymentForm.remark = ''
-      this.unemploymentForm.createTime = ''
-      this.unemploymentForm.creator = ''
-      this.unemploymentForm.modifyTime = ''
-      this.unemploymentForm.modifier = ''
-      this.unemploymentForm.version = ''
+    handleUnemploymentSuccess() {
+      this.isAdd = true
+      this.initunemploymentData()
+      this.dialogIsShow()
     },
     handlePictureCardPreview(file) {
       this.empBaseInfoImageUrl = URL.createObjectURL(file.raw) // 获取URL
@@ -4670,334 +3663,173 @@
       }
       xhr.send()
     },
-    putInsurance(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empInsurance', { ...this.insuranceForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanInsurance()
-              this.initinsuranceData()
-            })
-          } else {
-            this.$put('hr/empInsurance', { ...this.insuranceForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanInsurance()
-              this.initinsuranceData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    handleInsuranceSuccess() {
+      this.isAdd = true
+      this.initinsuranceData()
+      this.dialogIsShow()
     },
-    cleanInsurance() {
-      this.insuranceForm.insuranceId = ''
-      this.insuranceForm.applayDate = ''
-      this.insuranceForm.proposer = ''
-      this.insuranceForm.insuranceGaers = ''
-      this.insuranceForm.reportStatus = ''
-      this.insuranceForm.applayStatus = ''
-      this.insuranceForm.auditor = ''
-      this.insuranceForm.createTime = ''
-      this.insuranceForm.creator = ''
-      this.insuranceForm.modifyTime = ''
-      this.insuranceForm.modifier = ''
-      this.insuranceForm.version = ''
-      this.insuranceForm.remark = ''
+    handleAccidentCasesSuccess() {
+      this.isAdd = true
+      this.initaccidentCasesData()
+      this.dialogIsShow()
     },
-    putAccidentCases(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empAccidentCases', { ...this.accidentCasesForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanAccidentCases()
-              this.initaccidentCasesData()
-            })
-          } else {
-            this.$put('hr/empAccidentCases', { ...this.accidentCasesForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanAccidentCases()
-              this.initaccidentCasesData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
-    },
-    cleanAccidentCases() {
-      this.accidentCasesForm.accidentId = ''
-      this.accidentCasesForm.injuredTime = ''
-      this.accidentCasesForm.injuredAddress = ''
-      this.accidentCasesForm.injuredPart = ''
-      this.accidentCasesForm.injuredDiacrisis = ''
-      this.accidentCasesForm.injuredDescribe = ''
-      this.accidentCasesForm.hospitalName = ''
-      this.accidentCasesForm.treatmentName = ''
-      this.accidentCasesForm.hospitalizatioFlag = ''
-      this.accidentCasesForm.bedNumb = ''
-      this.accidentCasesForm.reprotTime = ''
-      this.accidentCasesForm.submitTime = ''
-      this.accidentCasesForm.sbumitBy = ''
-      this.accidentCasesForm.expensesFee = ''
-      this.accidentCasesForm.expenseReport = ''
-      this.accidentCasesForm.innsureFee = ''
-      this.accidentCasesForm.hrDoDate = ''
-      this.accidentCasesForm.settleDate = ''
-      this.accidentCasesForm.settleStatus = ''
-      this.accidentCasesForm.remark = ''
-      this.accidentCasesForm.createTime = ''
-      this.accidentCasesForm.creator = ''
-      this.accidentCasesForm.modifyTime = ''
-      this.accidentCasesForm.modifier = ''
-      this.accidentCasesForm.version = ''
-    },
-    putOccupational(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empOccupational', { ...this.occupationalForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanOccupational()
-              this.initoccupationalData()
-            })
-          } else {
-            this.$put('hr/empOccupational', { ...this.occupationalForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanOccupational()
-              this.initoccupationalData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    handleOccupationalSuccess() {
+      this.isAdd = true
+      this.initoccupationalData()
+      this.dialogIsShow()
     },
     getIndex($index) {
       return (this.pagination.num - 1) * this.pagination.size + $index + 1
     },
-    cleanOccupational() {
-      this.occupationalForm.occupationalId = ''
-      this.occupationalForm.injuredTime = ''
-      this.occupationalForm.injuredAddress = ''
-      this.occupationalForm.injuredPart = ''
-      this.occupationalForm.injuredDiacrisis = ''
-      this.occupationalForm.injuredDescribe = ''
-      this.occupationalForm.hospitalName = ''
-      this.occupationalForm.treatmentName = ''
-      this.occupationalForm.hospitalizatioFlag = ''
-      this.occupationalForm.bedNumb = ''
-      this.occupationalForm.reportTime = ''
-      this.occupationalForm.submitTime = ''
-      this.occupationalForm.sbumitBy = ''
-      this.occupationalForm.hrDoDate = ''
-      this.occupationalForm.expensesFee = ''
-      this.occupationalForm.eliminate = ''
-      this.occupationalForm.socialDisability = ''
-      this.occupationalForm.socialAllowance = ''
-      this.occupationalForm.socialSubsidy = ''
-      this.occupationalForm.socialCompensation = ''
-      this.occupationalForm.compensated = ''
-      this.occupationalForm.otherCompensated = ''
-      this.occupationalForm.companylDisability = ''
-      this.occupationalForm.companyAllowance = ''
-      this.occupationalForm.companySubsidy = ''
-      this.occupationalForm.companyCompensation = ''
-      this.occupationalForm.jobSubsidy = ''
-      this.occupationalForm.settleStatus = ''
-      this.occupationalForm.createTime = ''
-      this.occupationalForm.creator = ''
-      this.occupationalForm.modifyTime = ''
-      this.occupationalForm.modifier = ''
-      this.occupationalForm.version = ''
-      this.occupationalForm.remark = ''
+    // 打开上传方式选择弹窗
+    openUploadChoice() {
+      this.uploadChoiceDialogVisible = true
     },
-    putWorkExperience(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empWorkExperience', { ...this.workExperienceForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanWorkExperience()
-              this.initList()
-            })
-          } else {
-            this.$put('hr/empWorkExperience', { ...this.workExperienceForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanWorkExperience()
-              this.initList()
-            })
-          }
-          this.dialogIsShow()
-        }
+    // 选择拍照上传
+    choiceCamera() {
+      this.uploadChoiceDialogVisible = false
+      this.cameraDialogVisible = true
+      this.$nextTick(() => {
+        this.initCamera()
       })
     },
-    cleanWorkExperience() {
-      this.workExperienceForm.workUnit = ''
-      this.workExperienceForm.beginDate = ''
-      this.workExperienceForm.endDate = ''
-      this.workExperienceForm.jobContent = ''
-      this.workExperienceForm.createTime = ''
-      this.workExperienceForm.creator = ''
-      this.workExperienceForm.modifyTime = ''
-      this.workExperienceForm.modifier = ''
-      this.workExperienceForm.version = ''
-    },
-    putLaborTrouble(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empLaborTrouble', { ...this.laborTroubleForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanLaborTrouble()
-              this.initlaborTroubleData()
-            })
-          } else {
-            this.$put('hr/empLaborTrouble', { ...this.laborTroubleForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanLaborTrouble()
-              this.initlaborTroubleData()
-            })
-          }
-          this.dialogIsShow()
+    // 选择文件上传
+    choiceFile() {
+      this.uploadChoiceDialogVisible = false
+      // 创建隐藏的文件输入框
+      const input = document.createElement('input')
+      input.type = 'file'
+      input.accept = 'image/*'
+      input.onchange = (e) => {
+        const file = e.target.files[0]
+        if (file) {
+          this.handleFileUpload(file)
         }
+      }
+      input.click()
+    },
+    // 处理文件上传
+    handleFileUpload(file) {
+      // 验证文件类型
+      const isImage = file.type.startsWith('image/')
+      if (!isImage) {
+        this.$message.error('请上传图片文件')
+        return
+      }
+      // 验证文件大小(限制10MB)
+      const isLt10M = file.size / 1024 / 1024 < 10
+      if (!isLt10M) {
+        this.$message.error('图片大小不能超过10MB')
+        return
+      }
+      // 生成预览URL
+      const imageUrl = URL.createObjectURL(file)
+      this.empBaseInfoImageUrl = imageUrl
+      // 读取文件为Base64
+      const reader = new FileReader()
+      reader.onload = (e) => {
+        this.empBaseInfoForm.imagePath = e.target.result
+        this.$message.success('照片上传成功')
+      }
+      reader.readAsDataURL(file)
+    },
+    // 打开摄像头
+    openCamera() {
+      this.cameraDialogVisible = true
+      this.$nextTick(() => {
+        this.initCamera()
       })
     },
-    cleanLaborTrouble() {
-      this.laborTroubleForm.arbitrationId = ''
-      this.laborTroubleForm.arbitrationDate = ''
-      this.laborTroubleForm.arbitrationType = ''
-      this.laborTroubleForm.arbitrationReason = ''
-      this.laborTroubleForm.reporter = ''
-      this.laborTroubleForm.arbitrationPay = ''
-      this.laborTroubleForm.arbitrationStatus = ''
-      this.laborTroubleForm.settleDate = ''
-      this.laborTroubleForm.createTime = ''
-      this.laborTroubleForm.creator = ''
-      this.laborTroubleForm.modifyTime = ''
-      this.laborTroubleForm.modifier = ''
-      this.laborTroubleForm.version = ''
-      this.laborTroubleForm.remark = ''
-    },
-    putBadRecord(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empBadRecord', { ...this.badRecordForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanBadRecord()
-              this.initbadRecordData()
-            })
-          } else {
-            this.$put('hr/empBadRecord', { ...this.badRecordForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanBadRecord()
-              this.initbadRecordData()
-            })
-          }
-          this.dialogIsShow()
+    // 初始化摄像头
+    async initCamera() {
+      try {
+        // 请求摄像头权限
+        this.stream = await navigator.mediaDevices.getUserMedia({
+          video: {
+            width: { ideal: 640 },
+            height: { ideal: 480 },
+            facingMode: 'user' // 前置摄像头
+          },
+          audio: false
+        })
+
+        // 将视频流绑定到 video 元素
+        const video = this.$refs.video
+        if (video) {
+          video.srcObject = this.stream
         }
-      })
+      } catch (error) {
+        this.$message.error('无法访问摄像头,请检查摄像头权限设置')
+        console.error('摄像头初始化失败:', error)
+      }
     },
-    cleanBadRecord() {
-      this.badRecordForm.badId = ''
-      this.badRecordForm.badDate = ''
-      this.badRecordForm.reporter = ''
-      this.badRecordForm.badContent = ''
-      this.badRecordForm.createTime = ''
-      this.badRecordForm.creator = ''
-      this.badRecordForm.modifyTime = ''
-      this.badRecordForm.modifier = ''
-      this.badRecordForm.version = ''
-      this.badRecordForm.remark = ''
+    // 拍照
+    takePhoto() {
+      const video = this.$refs.video
+      const canvas = this.$refs.canvas
+
+      if (!video || !canvas) return
+
+      // 设置画布尺寸
+      canvas.width = video.videoWidth || 640
+      canvas.height = video.videoHeight || 480
+
+      // 绘制视频帧到画布
+      const ctx = canvas.getContext('2d')
+      ctx.drawImage(video, 0, 0, canvas.width, canvas.height)
+
+      // 转换为图片数据
+      this.capturedImage = canvas.toDataURL('image/jpeg', 0.9)
+
+      // 停止摄像头
+      this.stopCamera()
     },
-    putRemarkInfo(formName) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (this.isAdd) {
-            this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
-              this.buttonLoading = false
-              this.$message({
-                message: this.$t('tips.createSuccess'),
-                type: 'success'
-              })
-              this.cleanRemarkInfo()
-              this.initremarkInfoData()
-            })
-          } else {
-            this.$put('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
-              this.$message({
-                message: this.$t('tips.updateSuccess'),
-                type: 'success'
-              })
-              this.$emit('success')
-              this.cleanRemarkInfo()
-              this.initremarkInfoData()
-            })
-          }
-          this.dialogIsShow()
-        }
-      })
+    // 重拍
+    retakePhoto() {
+      this.capturedImage = ''
+      this.initCamera()
     },
-    cleanRemarkInfo() {
-      this.remarkInfoForm.remarkId = ''
-      this.remarkInfoForm.remarkContent = ''
-      this.remarkInfoForm.remarkDate = ''
-      this.remarkInfoForm.createTime = ''
-      this.remarkInfoForm.creator = ''
-      this.remarkInfoForm.modifyTime = ''
-      this.remarkInfoForm.modifier = ''
-      this.remarkInfoForm.version = ''
+    // 确认使用照片
+    confirmPhoto() {
+      if (this.capturedImage) {
+        // 设置图片预览
+        this.empBaseInfoImageUrl = this.capturedImage
+
+        // 设置表单数据(Base64格式)
+        this.empBaseInfoForm.imagePath = this.capturedImage
+
+        // 关闭弹窗
+        this.closeCamera()
+
+        this.$message.success('照片已保存')
+      }
+    },
+    // 关闭摄像头
+    closeCamera() {
+      this.stopCamera()
+      this.cameraDialogVisible = false
+      this.capturedImage = ''
+    },
+    // 停止摄像头流
+    stopCamera() {
+      if (this.stream) {
+        this.stream.getTracks().forEach(track => {
+          track.stop()
+        })
+        this.stream = null
+      }
+
+      const video = this.$refs.video
+      if (video) {
+        video.srcObject = null
+      }
+    },
+    handleWorkExperienceSuccess() {
+      this.isAdd = true
+      this.initList()
+      this.dialogIsShow()
     },
     dialogIsShow() {
-      debugger
       this.workExperienceModal = false
       this.isAdd = true
       this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex]
@@ -5055,398 +3887,113 @@
     },
     editWorkExperience(row) {
       this.isAdd = false
-      this.workExperienceForm.workExperienceId = row.workExperienceId
-      this.workExperienceForm.empId = row.empId
-      this.workExperienceForm.empNumb = row.empNumb
-      this.workExperienceForm.empName = row.empName
-      this.workExperienceForm.certificateNumb = row.certificateNumb
-      this.workExperienceForm.sex = row.sex
-      this.workExperienceForm.deptId = row.deptId
-      this.workExperienceForm.deptName = row.deptName
-      this.workExperienceForm.JobId = row.JobId
-      this.workExperienceForm.jobName = row.jobName
-      this.workExperienceForm.workUnit = row.workUnit
-      this.workExperienceForm.beginDate = row.beginDate
-      this.workExperienceForm.endDate = row.endDate
-      this.workExperienceForm.jobContent = row.jobContent
-      this.workExperienceForm.createTime = row.createTime
-      this.workExperienceForm.creator = row.creator
-      this.workExperienceForm.modifyTime = row.modifyTime
-      this.workExperienceForm.modifier = row.modifier
-      this.workExperienceForm.delFlag = row.delFlag
-      this.workExperienceForm.version = row.version
+      this.workExperienceEditData = { ...row }
       this.thisShowIndex = 1
       this.dialogshowArr[1].show = true
     },
     editPhysicalExam(row) {
       this.isAdd = false
-      this.physicalExamForm.physicalExamId = row.physicalExamId
-      this.physicalExamForm.empId = row.empId
-      this.physicalExamForm.empNumb = row.empNumb
-      this.physicalExamForm.empName = row.empName
-      this.physicalExamForm.certificateNumb = row.certificateNumb
-      this.physicalExamForm.sex = row.sex
-      this.physicalExamForm.deptId = row.deptId
-      this.physicalExamForm.deptName = row.deptName
-      this.physicalExamForm.JobId = row.JobId
-      this.physicalExamForm.jobName = row.jobName
-      this.physicalExamForm.hospital = row.hospital
-      this.physicalExamForm.physicalExamDate = row.physicalExamDate
-      this.physicalExamForm.physicalExamType = row.physicalExamType
-      this.physicalExamForm.bloodPressure = row.bloodPressure
-      this.physicalExamForm.transaminase = row.transaminase
-      this.physicalExamForm.ecg = row.ecg
-      this.physicalExamForm.conclusion = row.conclusion
-      this.physicalExamForm.reviewRecord = row.reviewRecord
-      this.physicalExamForm.remark = row.remark
-      this.physicalExamForm.createTime = row.createTime
-      this.physicalExamForm.creator = row.creator
-      this.physicalExamForm.modifyTime = row.modifyTime
-      this.physicalExamForm.modifier = row.modifier
-      this.physicalExamForm.delFlag = row.delFlag
-      this.physicalExamForm.version = row.version
+      this.physicalExamEditData = { ...row }
       this.thisShowIndex = 2
       this.dialogshowArr[2].show = true
     },
     editContractInfo(row) {
       this.isAdd = false
-
-      this.contractInfoForm.contractId = row.contractId
-      this.contractInfoForm.empId = row.empId
-      this.contractInfoForm.empNumb = row.empNumb
-      this.contractInfoForm.empName = row.empName
-      this.contractInfoForm.certificateNumb = row.certificateNumb
-      this.contractInfoForm.sex = row.sex
-      this.contractInfoForm.deptId = row.deptId
-      this.contractInfoForm.deptName = row.deptName
-      this.contractInfoForm.JobId = row.JobId
-      this.contractInfoForm.jobName = row.jobName
-      this.contractInfoForm.beginDate = row.beginDate
-      this.contractInfoForm.endDate = row.endDate
-      this.contractInfoForm.contractStatus = row.contractStatus
-      this.contractInfoForm.contractPeriod = row.contractPeriod
-      this.contractInfoForm.transactor = row.transactor
-      this.contractInfoForm.signingDate = row.signingDate
-      this.contractInfoForm.remark = row.remark
-      this.contractInfoForm.createTime = row.createTime
-      this.contractInfoForm.creator = row.creator
-      this.contractInfoForm.modifyTime = row.modifyTime
-      this.contractInfoForm.modifier = row.modifier
-      this.contractInfoForm.delFlag = row.delFlag
-      this.contractInfoForm.version = row.version
+      this.contractInfoEditData = { ...row }
       this.thisShowIndex = 3
       this.dialogshowArr[3].show = true
     },
     editDimissionAttend(row) {
       this.isAdd = false
-      this.dimissionAttendForm.dimissionAttendId = row.dimissionAttendId
-      this.dimissionAttendForm.empId = row.empId
-      this.dimissionAttendForm.empNumb = row.empNumb
-      this.dimissionAttendForm.empName = row.empName
-      this.dimissionAttendForm.sex = row.sex
-      this.dimissionAttendForm.certificateNumb = row.certificateNumb
-      this.dimissionAttendForm.deptId = row.deptId
-      this.dimissionAttendForm.deptName = row.deptName
-      this.dimissionAttendForm.JobId = row.JobId
-      this.dimissionAttendForm.jobName = row.jobName
-      this.dimissionAttendForm.attendMonth = row.attendMonth
-      this.dimissionAttendForm.overtimeHour = row.overtimeHour
-      this.dimissionAttendForm.overtimeDay = row.overtimeDay
-      this.dimissionAttendForm.leaveDay = row.leaveDay
-      this.dimissionAttendForm.deduct = row.deduct
-      this.dimissionAttendForm.absenteeism = row.absenteeism
-      this.dimissionAttendForm.createTime = row.createTime
-      this.dimissionAttendForm.creator = row.creator
-      this.dimissionAttendForm.modifyTime = row.modifyTime
-      this.dimissionAttendForm.modifier = row.modifier
-      this.dimissionAttendForm.delFlag = row.delFlag
-      this.dimissionAttendForm.version = row.version
-      this.dimissionAttendForm.remark = row.remark
+      this.dimissionAttendEditData = { ...row }
       this.thisShowIndex = 4
       this.dialogshowArr[4].show = true
     },
     editLeaveInfo(row) {
       this.isAdd = false
-
-      this.leaveInfoForm.leaveId = row.leaveId
-      this.leaveInfoForm.empId = row.empId
-      this.leaveInfoForm.empNumb = row.empNumb
-      this.leaveInfoForm.empName = row.empName
-      this.leaveInfoForm.sex = row.sex
-      this.leaveInfoForm.certificateNumb = row.certificateNumb
-      this.leaveInfoForm.deptId = row.deptId
-      this.leaveInfoForm.deptName = row.deptName
-      this.leaveInfoForm.JobId = row.JobId
-      this.leaveInfoForm.jobName = row.jobName
-      this.leaveInfoForm.beginTime = row.beginTime
-      this.leaveInfoForm.endTime = row.endTime
-      this.leaveInfoForm.leaveType = row.leaveType
-      this.leaveInfoForm.leaveDay = row.leaveDay
-      this.leaveInfoForm.reporter = row.reporter
-      this.leaveInfoForm.returnDate = row.returnDate
-      this.leaveInfoForm.createTime = row.createTime
-      this.leaveInfoForm.creator = row.creator
-      this.leaveInfoForm.modifyTime = row.modifyTime
-      this.leaveInfoForm.modifier = row.modifier
-      this.leaveInfoForm.delFlag = row.delFlag
-      this.leaveInfoForm.version = row.version
-      this.leaveInfoForm.remark = row.remark
+      this.leaveInfoEditData = { ...row }
       this.thisShowIndex = 5
       this.dialogshowArr[5].show = true
     },
     editResign(row) {
       this.isAdd = false
-
-      this.resignForm.resignId = row.resignId
-      this.resignForm.empId = row.empId
-      this.resignForm.empNumb = row.empNumb
-      this.resignForm.empName = row.empName
-      this.resignForm.sex = row.sex
-      this.resignForm.certificateNumb = row.certificateNumb
-      this.resignForm.deptId = row.deptId
-      this.resignForm.deptName = row.deptName
-      this.resignForm.JobId = row.JobId
-      this.resignForm.jobName = row.jobName
-      this.resignForm.applayDate = row.applayDate
-      this.resignForm.reporter = row.reporter
-      this.resignForm.reason = row.reason
-      this.resignForm.createTime = row.createTime
-      this.resignForm.creator = row.creator
-      this.resignForm.modifyTime = row.modifyTime
-      this.resignForm.modifier = row.modifier
-      this.resignForm.delFlag = row.delFlag
-      this.resignForm.version = row.version
-      this.resignForm.remark = row.remark
+      this.resignEditData = { ...row }
       this.thisShowIndex = 6
       this.dialogshowArr[6].show = true
     },
     editUnemployment(row) {
       this.isAdd = false
-
-      this.unemploymentForm.unemploymentId = row.unemploymentId
-      this.unemploymentForm.empId = row.empId
-      this.unemploymentForm.empNumb = row.empNumb
-      this.unemploymentForm.empName = row.empName
-      this.unemploymentForm.sex = row.sex
-      this.unemploymentForm.certificateNumb = row.certificateNumb
-      this.unemploymentForm.deptId = row.deptId
-      this.unemploymentForm.deptName = row.deptName
-      this.unemploymentForm.JobId = row.JobId
-      this.unemploymentForm.jobName = row.jobName
-      this.unemploymentForm.applayDate = row.applayDate
-      this.unemploymentForm.applayReason = row.applayReason
-      this.unemploymentForm.remark = row.remark
-      this.unemploymentForm.reporter = row.reporter
-      this.unemploymentForm.auditor = row.auditor
-      this.unemploymentForm.createTime = row.createTime
-      this.unemploymentForm.creator = row.creator
-      this.unemploymentForm.modifyTime = row.modifyTime
-      this.unemploymentForm.modifier = row.modifier
-      this.unemploymentForm.delFlag = row.delFlag
-      this.unemploymentForm.version = row.version
+      this.unemploymentEditData = { ...row }
       this.thisShowIndex = 7
       this.dialogshowArr[7].show = true
     },
     editInsurance(row) {
       this.isAdd = false
-      this.insuranceForm.insuranceId = row.insuranceId
-      this.insuranceForm.empId = row.empId
-      this.insuranceForm.empNumb = row.empNumb
-      this.insuranceForm.empName = row.empName
-      this.insuranceForm.sex = row.sex
-      this.insuranceForm.certificateNumb = row.certificateNumb
-      this.insuranceForm.deptId = row.deptId
-      this.insuranceForm.deptName = row.deptName
-      this.insuranceForm.JobId = row.JobId
-      this.insuranceForm.jobName = row.jobName
-      this.insuranceForm.applayDate = row.applayDate
-      this.insuranceForm.proposer = row.proposer
-      this.insuranceForm.insuranceGaers = row.insuranceGaers
-      this.insuranceForm.reportStatus = row.reportStatus
-      this.insuranceForm.applayStatus = row.applayStatus
-      this.insuranceForm.auditor = row.auditor
-      this.insuranceForm.createTime = row.createTime
-      this.insuranceForm.creator = row.creator
-      this.insuranceForm.modifyTime = row.modifyTime
-      this.insuranceForm.modifier = row.modifier
-      this.insuranceForm.delFlag = row.delFlag
-      this.insuranceForm.version = row.version
-      this.insuranceForm.remark = row.remark
+      this.socialSecurityEditData = { ...row }
       this.thisShowIndex = 8
       this.dialogshowArr[8].show = true
     },
     editAccidentCases(row) {
       this.isAdd = false
-
-      this.accidentCasesForm.accidentId = row.accidentId
-      this.accidentCasesForm.empId = row.empId
-      this.accidentCasesForm.empNumb = row.empNumb
-      this.accidentCasesForm.empName = row.empName
-      this.accidentCasesForm.sex = row.sex
-      this.accidentCasesForm.certificateNumb = row.certificateNumb
-      this.accidentCasesForm.deptId = row.deptId
-      this.accidentCasesForm.deptName = row.deptName
-      this.accidentCasesForm.JobId = row.JobId
-      this.accidentCasesForm.jobName = row.jobName
-      this.accidentCasesForm.injuredTime = row.injuredTime
-      this.accidentCasesForm.injuredAddress = row.injuredAddress
-      this.accidentCasesForm.injuredPart = row.injuredPart
-      this.accidentCasesForm.injuredDiacrisis = row.injuredDiacrisis
-      this.accidentCasesForm.injuredDescribe = row.injuredDescribe
-      this.accidentCasesForm.hospitalName = row.hospitalName
-      this.accidentCasesForm.treatmentName = row.treatmentName
-      this.accidentCasesForm.hospitalizatioFlag = row.hospitalizatioFlag
-      this.accidentCasesForm.bedNumb = row.bedNumb
-      this.accidentCasesForm.reprotTime = row.reprotTime
-      this.accidentCasesForm.submitTime = row.submitTime
-      this.accidentCasesForm.sbumitBy = row.sbumitBy
-      this.accidentCasesForm.expensesFee = row.expensesFee
-      this.accidentCasesForm.expenseReport = row.expenseReport
-      this.accidentCasesForm.innsureFee = row.innsureFee
-      this.accidentCasesForm.hrDoDate = row.hrDoDate
-      this.accidentCasesForm.settleDate = row.settleDate
-      this.accidentCasesForm.settleStatus = row.settleStatus
-      this.accidentCasesForm.remark = row.remark
-      this.accidentCasesForm.createTime = row.createTime
-      this.accidentCasesForm.creator = row.creator
-      this.accidentCasesForm.modifyTime = row.modifyTime
-      this.accidentCasesForm.modifier = row.modifier
-      this.accidentCasesForm.delFlag = row.delFlag
-      this.accidentCasesForm.version = row.version
+      this.accidentInsuranceEditData = { ...row }
       this.thisShowIndex = 9
       this.dialogshowArr[9].show = true
     },
     editOccupational(row) {
       this.isAdd = false
-
-      this.occupationalForm.occupationalId = row.occupationalId
-      this.occupationalForm.empId = row.empId
-      this.occupationalForm.empNumb = row.empNumb
-      this.occupationalForm.empName = row.empName
-      this.occupationalForm.sex = row.sex
-      this.occupationalForm.certificateNumb = row.certificateNumb
-      this.occupationalForm.deptId = row.deptId
-      this.occupationalForm.deptName = row.deptName
-      this.occupationalForm.JobId = row.JobId
-      this.occupationalForm.jobName = row.jobName
-      this.occupationalForm.injuredTime = row.injuredTime
-      this.occupationalForm.injuredAddress = row.injuredAddress
-      this.occupationalForm.injuredPart = row.injuredPart
-      this.occupationalForm.injuredDiacrisis = row.injuredDiacrisis
-      this.occupationalForm.injuredDescribe = row.injuredDescribe
-      this.occupationalForm.hospitalName = row.hospitalName
-      this.occupationalForm.treatmentName = row.treatmentName
-      this.occupationalForm.hospitalizatioFlag = row.hospitalizatioFlag
-      this.occupationalForm.bedNumb = row.bedNumb
-      this.occupationalForm.reportTime = row.reportTime
-      this.occupationalForm.submitTime = row.submitTime
-      this.occupationalForm.sbumitBy = row.sbumitBy
-      this.occupationalForm.hrDoDate = row.hrDoDate
-      this.occupationalForm.expensesFee = row.expensesFee
-      this.occupationalForm.eliminate = row.eliminate
-      this.occupationalForm.socialDisability = row.socialDisability
-      this.occupationalForm.socialAllowance = row.socialAllowance
-      this.occupationalForm.socialSubsidy = row.socialSubsidy
-      this.occupationalForm.socialCompensation = row.socialCompensation
-      this.occupationalForm.compensated = row.compensated
-      this.occupationalForm.otherCompensated = row.otherCompensated
-      this.occupationalForm.companylDisability = row.companylDisability
-      this.occupationalForm.companyAllowance = row.companyAllowance
-      this.occupationalForm.companySubsidy = row.companySubsidy
-      this.occupationalForm.companyCompensation = row.companyCompensation
-      this.occupationalForm.jobSubsidy = row.jobSubsidy
-      this.occupationalForm.settleStatus = row.settleStatus
-      this.occupationalForm.createTime = row.createTime
-      this.occupationalForm.creator = row.creator
-      this.occupationalForm.modifyTime = row.modifyTime
-      this.occupationalForm.modifier = row.modifier
-      this.occupationalForm.delFlag = row.delFlag
-      this.occupationalForm.version = row.version
-      this.occupationalForm.remark = row.remark
+      this.workInjuryEditData = { ...row }
       this.thisShowIndex = 10
       this.dialogshowArr[10].show = true
     },
     editLaborTrouble(row) {
       this.isAdd = false
-
-      this.laborTroubleForm.arbitrationId = row.arbitrationId
-      this.laborTroubleForm.empId = row.empId
-      this.laborTroubleForm.empNumb = row.empNumb
-      this.laborTroubleForm.empName = row.empName
-      this.laborTroubleForm.sex = row.sex
-      this.laborTroubleForm.certificateNumb = row.certificateNumb
-      this.laborTroubleForm.deptId = row.deptId
-      this.laborTroubleForm.deptName = row.deptName
-      this.laborTroubleForm.JobId = row.JobId
-      this.laborTroubleForm.jobName = row.jobName
-      this.laborTroubleForm.arbitrationDate = row.arbitrationDate
-      this.laborTroubleForm.arbitrationType = row.arbitrationType
-      this.laborTroubleForm.arbitrationReason = row.arbitrationReason
-      this.laborTroubleForm.reporter = row.reporter
-      this.laborTroubleForm.arbitrationPay = row.arbitrationPay
-      this.laborTroubleForm.arbitrationStatus = row.arbitrationStatus
-      this.laborTroubleForm.settleDate = row.settleDate
-      this.laborTroubleForm.createTime = row.createTime
-      this.laborTroubleForm.creator = row.creator
-      this.laborTroubleForm.modifyTime = row.modifyTime
-      this.laborTroubleForm.modifier = row.modifier
-      this.laborTroubleForm.delFlag = row.delFlag
-      this.laborTroubleForm.version = row.version
-      this.laborTroubleForm.remark = row.remark
+      this.arbitrationEditData = { ...row }
       this.thisShowIndex = 11
       this.dialogshowArr[11].show = true
     },
     editBadRecord(row) {
       this.isAdd = false
-      this.badRecordForm.badId = row.badId
-      this.badRecordForm.empId = row.empId
-      this.badRecordForm.empName = row.empName
-      this.badRecordForm.empNumb = row.empNumb
-      this.badRecordForm.sex = row.sex
-      this.badRecordForm.certificateNumb = row.certificateNumb
-      this.badRecordForm.deptId = row.deptId
-      this.badRecordForm.deptName = row.deptName
-      this.badRecordForm.JobId = row.JobId
-      this.badRecordForm.jobName = row.jobName
-      this.badRecordForm.badDate = row.badDate
-      this.badRecordForm.reporter = row.reporter
-      this.badRecordForm.badContent = row.badContent
-      this.badRecordForm.createTime = row.createTime
-      this.badRecordForm.creator = row.creator
-      this.badRecordForm.modifyTime = row.modifyTime
-      this.badRecordForm.modifier = row.modifier
-      this.badRecordForm.delFlag = row.delFlag
-      this.badRecordForm.version = row.version
-      this.badRecordForm.remark = row.remark
+      this.badRecordEditData = { ...row }
       this.thisShowIndex = 12
       this.dialogshowArr[12].show = true
     },
     editRemarkInfo(row) {
       this.isAdd = false
-      this.remarkInfoForm.remarkId = row.remarkId
-      this.remarkInfoForm.empId = row.empId
-      this.remarkInfoForm.empNumb = row.empNumb
-      this.remarkInfoForm.empName = row.empName
-      this.remarkInfoForm.sex = row.sex
-      this.remarkInfoForm.certificateNumb = row.certificateNumb
-      this.remarkInfoForm.JobId = row.JobId
-      this.remarkInfoForm.deptId = row.deptId
-      this.remarkInfoForm.deptName = row.deptName
-      this.remarkInfoForm.jobName = row.jobName
-      this.remarkInfoForm.remarkContent = row.remarkContent
-      this.remarkInfoForm.remarkDate = row.remarkDate
-      this.remarkInfoForm.createTime = row.createTime
-      this.remarkInfoForm.creator = row.creator
-      this.remarkInfoForm.modifyTime = row.modifyTime
-      this.remarkInfoForm.modifier = row.modifier
-      this.remarkInfoForm.delFlag = row.delFlag
-      this.remarkInfoForm.version = row.version
+      this.remarkEditData = { ...row }
       this.thisShowIndex = 13
       this.dialogshowArr[13].show = true
     },
     gzadd(index) {
       this.isAdd = true
       this.thisShowIndex = index
+      // 填充员工基本信息到编辑组件
+      const baseInfo = {
+        empId: this.empBaseInfoForm.empId,
+        empNumb: this.empBaseInfoForm.empNumb,
+        empName: this.empBaseInfoForm.empName,
+        sex: this.empBaseInfoForm.sex,
+        certificateNumb: this.empBaseInfoForm.certificateNumb,
+        deptId: this.empBaseInfoForm.deptId,
+        deptName: this.empBaseInfoForm.deptName,
+        allDeptName: this.empBaseInfoForm.allDeptName,
+        JobId: this.empBaseInfoForm.JobId,
+        jobName: this.empBaseInfoForm.jobName
+      }
+      switch (index) {
+        case 1: this.workExperienceEditData = { ...baseInfo }; break
+        case 2: this.physicalExamEditData = { ...baseInfo }; break
+        case 3: this.contractInfoEditData = { ...baseInfo }; break
+        case 4: this.dimissionAttendEditData = { ...baseInfo }; break
+        case 5: this.leaveInfoEditData = { ...baseInfo }; break
+        case 6: this.resignEditData = { ...baseInfo }; break
+        case 7: this.unemploymentEditData = { ...baseInfo }; break
+        case 8: this.socialSecurityEditData = { ...baseInfo }; break
+        case 9: this.accidentInsuranceEditData = { ...baseInfo }; break
+        case 10: this.workInjuryEditData = { ...baseInfo }; break
+        case 11: this.arbitrationEditData = { ...baseInfo }; break
+        case 12: this.badRecordEditData = { ...baseInfo }; break
+        case 13: this.remarkEditData = { ...baseInfo }; break
+      }
       this.dialogshowArr[index].show = true
     },
     gzdelete(tables, selection, Id) {
@@ -5522,9 +4069,9 @@
           message: this.$t('tips.deleteSuccess'),
           type: 'success'
         })
-        if (selection === 'onremarkInfoDataselection') {
+        if (selection === 'remarkInfoDataselection') {
           this.initremarkInfoData()
-        } else if (selection === 'onbadRecordDataselection') {
+        } else if (selection === 'badRecordDataselection') {
           this.initbadRecordData()
         } else if (selection === 'laborTroubleDataselection') {
           this.initlaborTroubleData()
@@ -5607,57 +4154,120 @@
     goAnchor: function(type) {
       let item = 1
       this.item = type
+      // 根据点击的菜单懒加载对应数据
       switch (type) {
         case 'jbxx':
           item = 0
+          // 基本信息 - 已加载
           break
         case 'gzjl':
           item = 1
+          // 工作经历 - 懒加载
+          if (!this.workExperienceData || this.workExperienceData.length === 0) {
+            this.initList()
+          }
           break
         case 'tjxx':
           item = 2
+          // 体检信息 - 懒加载
+          if (!this.physicalExamData || this.physicalExamData.length === 0) {
+            this.initphysicalExamData()
+          }
           break
         case 'htxx':
           item = 3
+          // 合同信息 - 懒加载
+          if (!this.contractInfoData || this.contractInfoData.length === 0) {
+            this.initcontractInfoData()
+          }
           break
         case 'tgjl':
           item = 4
+          // 调岗记录 - 懒加载
+          if (!this.jobChangeData || this.jobChangeData.length === 0) {
+            this.initjobChangeData()
+          }
           break
         case 'qjjl':
           item = 5
+          // 请假记录 - 懒加载
+          if (!this.leaveInfoData || this.leaveInfoData.length === 0) {
+            this.initleaveInfoData()
+          }
           break
         case 'czsq':
           item = 6
+          // 辞职申请 - 懒加载
+          if (!this.resignData || this.resignData.length === 0) {
+            this.initresignData()
+          }
           break
         case 'lzdykq':
           item = 7
+          // 考勤情况 - 懒加载
+          if (!this.dimissionAttendData || this.dimissionAttendData.length === 0) {
+            this.initdimissionAttendData()
+          }
           break
         case 'rlzjl':
           item = 8
+          // 入离职记录 - 懒加载
+          if (!this.dimissionLogData || this.dimissionLogData.length === 0) {
+            this.initdimissionLogData()
+          }
           break
         case 'syjlq':
           item = 9
+          // 失业金领取 - 懒加载
+          if (!this.unemploymentData || this.unemploymentData.length === 0) {
+            this.initunemploymentData()
+          }
           break
         case 'sbsq':
           item = 10
+          // 社保申请 - 懒加载
+          if (!this.insuranceData || this.insuranceData.length === 0) {
+            this.initinsuranceData()
+          }
           break
         case 'ywxaj':
           item = 11
+          // 意外险案件 - 懒加载
+          if (!this.accidentCasesData || this.accidentCasesData.length === 0) {
+            this.initaccidentCasesData()
+          }
           break
         case 'gsaj':
           item = 12
+          // 工伤案件 - 懒加载
+          if (!this.occupationalData || this.occupationalData.length === 0) {
+            this.initoccupationalData()
+          }
           break
         case 'lzaj':
           item = 13
+          // 仲裁案件 - 懒加载
+          if (!this.laborTroubleData || this.laborTroubleData.length === 0) {
+            this.initlaborTroubleData()
+          }
           break
         case 'bljl':
           item = 14
+          // 不良记录 - 懒加载
+          if (!this.badRecordData || this.badRecordData.length === 0) {
+            this.initbadRecordData()
+          }
           break
         case 'bz':
           item = 15
+          // 备注 - 懒加载
+          if (!this.remarkInfoData || this.remarkInfoData.length === 0) {
+            this.initremarkInfoData()
+          }
           break
         case 'jljt':
           item = 16
+          // 奖励津贴 - 懒加载
           break
       }
       this.$nextTick(() => {
@@ -5676,10 +4286,10 @@
     singleDelete(row, names) {
       let ids = ''
       let urls = ''
-      if (names === 'onremarkInfoDataselection') {
+      if (names === 'remarkInfoDataselection') {
         ids = row.remarkId
         urls = 'empRemarkInfo'
-      } else if (names === 'onbadRecordDataselection') {
+      } else if (names === 'badRecordDataselection') {
         ids = row.badId
         urls = 'empBadRecord'
       } else if (names === 'laborTroubleDataselection') {
@@ -5754,9 +4364,45 @@
       this.$emit('close')
     },
     reset() {
-      this.$refs.form.clearValidate()
-      this.$refs.form.resetFields()
+      if (undefined !== this.$refs.form) {
+        this.$refs.form.clearValidate()
+        this.$refs.form.resetFields()
+      }
+
       this.sysConfig = this.initSysConfig()
+    },
+    startDate(rule, value, callback) {
+      // 如果结束日期没选,cb
+      if (!this.contractInfoForm.endDate) {
+        callback()
+      } else {
+        // 结束日期有,进行判断
+        if (this.compareDate(value, this.contractInfoForm.endDate)) {
+          // 如果起始在结束之前
+          callback()
+        } else {
+          callback(new Error('开始日期不能在结束日期之后,请重新选择'))
+        }
+      }
+    },
+    // 验证合同结束日期
+    endDate(rule, value, callback) {
+      // 如果起始日期没选,cb
+      if (!this.contractInfoForm.signingDate) {
+        callback()
+      } else {
+        // 起始日期有,进行判断
+        if (this.compareDate(this.contractInfoForm.signingDate, value)) {
+          // 如果起始在结束之前
+          this.contractInfoForm.contractPeriod = dateDifference(this.contractInfoForm.signingDate, this.contractInfoForm.endDate, 'o')
+          callback()
+        } else {
+          callback(new Error('结束日期不能在开始始日期之前,请重新选择'))
+        }
+      }
+    },
+    compareDate(start, end) {
+      return new Date(end).getTime() > new Date(start).getTime()
     }
   }
 }
@@ -5793,7 +4439,7 @@
     height: 90vh;
     overflow-y: scroll;
 
-    .jbxxTitle,.jbxxTitle2 {
+    .jbxxTitle, .jbxxTitle2 {
       height: 30px;
       line-height: 30px;
       padding-left: 15px;
@@ -5808,7 +4454,7 @@
     }
 
     .jbxxTitle::before,
-    .jbxxTitle2::before{
+    .jbxxTitle2::before {
       content: '';
       position: absolute;
       left: -10px;
@@ -5991,7 +4637,7 @@
 .myRedCheckBox .el-checkbox__label {
   width: 90%;
   overflow: hidden;
-  text-overflow:ellipsis;
+  text-overflow: ellipsis;
   white-space: nowrap;
 }
 
@@ -6020,6 +4666,109 @@
   width: 150px;
   height: 150px;
   display: block;
+}
+
+// 头像包装器
+.avatar-wrapper {
+  text-align: center;
+  cursor: pointer;
+
+  .avatar {
+    width: 120px;
+    height: 150px;
+    border-radius: 4px;
+    object-fit: cover;
+    border: 1px dashed #d9d9d9;
+    margin: 0 auto;
+
+    &:hover {
+      border-color: #409eff;
+    }
+  }
+
+  .avatar-uploader-placeholder {
+    width: 120px;
+    height: 150px;
+    border: 1px dashed #d9d9d9;
+    border-radius: 4px;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    margin: 0 auto;
+    background-color: #fafafa;
+
+    &:hover {
+      border-color: #409eff;
+    }
+
+    .avatar-uploader-icon {
+      font-size: 28px;
+      color: #8c939d;
+    }
+
+    .upload-tip {
+      font-size: 12px;
+      color: #8c939d;
+      margin-top: 8px;
+    }
+  }
+}
+
+// 上传方式选择容器
+.upload-choice-container {
+  display: flex;
+  justify-content: space-around;
+  padding: 20px 0;
+
+  .upload-choice-item {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    width: 120px;
+    height: 120px;
+    border: 2px dashed #d9d9d9;
+    border-radius: 8px;
+    cursor: pointer;
+    transition: all 0.3s;
+
+    &:hover {
+      border-color: #409eff;
+      background-color: #f5f7fa;
+    }
+
+    i {
+      font-size: 40px;
+      color: #409eff;
+      margin-bottom: 10px;
+    }
+
+    span {
+      font-size: 14px;
+      color: #606266;
+    }
+  }
+}
+
+// 摄像头容器
+.camera-container {
+  text-align: center;
+
+  .camera-video {
+    width: 100%;
+    max-width: 600px;
+    height: auto;
+    border-radius: 4px;
+    background: #000;
+  }
+
+  .captured-image {
+    width: 100%;
+    max-width: 600px;
+    height: auto;
+    border-radius: 4px;
+  }
 }
 
 .avatar-uploader .el-upload-dragger .el-icon-upload {
@@ -6051,7 +4800,7 @@
   list-style: none;
   padding-left: 10px !important;
 
-  >li:last-of-type {
+  > li:last-of-type {
     > div:first-of-type {
       position: absolute;
       left: 4px;
@@ -6080,10 +4829,12 @@
       height: 35px;
       box-sizing: border-box;
       padding-left: 28px !important;
-       &:hover {
-         color: #a00515;
-         cursor: pointer;
-       }
+
+      &:hover {
+        color: #a00515;
+        cursor: pointer;
+      }
+
       .light {
         color: #a00515;
       }
@@ -6113,38 +4864,46 @@
 <style lang="scss">
 .da-dialog {
   button.el-dialog__headerbtn {
-      height: 30px;
-      width: 30px;
+    height: 30px;
+    width: 30px;
     background-color: #a00515;
     opacity: 0.8;
-      line-height: 30px;
-      border-radius: 50%;
+    line-height: 30px;
+    border-radius: 50%;
+
     i {
       color: #fff !important;
     }
+
     &:hover {
       opacity: 0.5;
     }
   }
+
   .el-pagination {
     width: 98%;
     text-align: right;
   }
+
   .el-aside {
     height: 750px;
     overflow: hidden;
   }
+
   li.el-timeline-item {
     padding-bottom: 1px;
     height: 35px;
   }
-.el-dialog__title {
-  font-weight: 700;
-}
+
+  .el-dialog__title {
+    font-weight: 700;
+  }
+
   .el-dialog__body {
     padding: 10px 20px;
   }
 }
+
 .el-dialog.is-fullscreen {
   overflow: hidden;
 }
@@ -6155,9 +4914,9 @@
     color: #333 !important;
   }
 }
+
 .pri-del-btn {
   background-color: rgb(64, 158, 255) !important;
   border-color: rgb(64, 158, 255) !important;
 }
 </style>
-

--
Gitblit v1.8.0