luoyb
2024-04-22 a7977aac3851fa49a83f0a389221e6b3825dcb0b
src/views/user/Informationinput.vue
@@ -3,53 +3,53 @@
    <el-container>
      <el-aside width="175px">
        <el-timeline style="padding-left: 15px">
          <el-timeline-item @click.native="isShow(showArr[0].show, 0)">
          <el-timeline-item v-show="timelineShow('empBaseinfo:list')" @click.native="isShow(showArr[0].show, 0)">
            <span :class="thisShowIndex===0?'selectedTimeline':''">基本信息</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[1].show, 1)">
          <el-timeline-item v-show="timelineShow('empWorkexperience:list')" @click.native="isShow(showArr[1].show, 1)">
            <span :class="thisShowIndex===1?'selectedTimeline':''">工作经历</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[2].show, 2)">
          <el-timeline-item v-show="timelineShow('empPhysicalexam:list')" @click.native="isShow(showArr[2].show, 2)">
            <span :class="thisShowIndex===2?'selectedTimeline':''">体检信息</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[3].show, 3)">
          <el-timeline-item v-show="timelineShow('empContractinfo:list')" @click.native="isShow(showArr[3].show, 3)">
            <span :class="thisShowIndex===3?'selectedTimeline':''">合同信息</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[4].show, 4)">
          <el-timeline-item v-show="timelineShow('empDimissionattend:list')" @click.native="isShow(showArr[4].show, 4)">
            <span :class="thisShowIndex===4?'selectedTimeline':''">离职当月考勤</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[5].show, 5)">
          <el-timeline-item v-show="timelineShow('empLeaveinfo:list')" @click.native="isShow(showArr[5].show, 5)">
            <span :class="thisShowIndex===5?'selectedTimeline':''">请假记录</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[6].show, 6)">
          <el-timeline-item v-show="timelineShow('empResign:list')" @click.native="isShow(showArr[6].show, 6)">
            <span :class="thisShowIndex===6?'selectedTimeline':''">辞职申请</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[7].show, 7)">
          <el-timeline-item v-show="timelineShow('empUnemployment:list')" @click.native="isShow(showArr[7].show, 7)">
            <span :class="thisShowIndex===7?'selectedTimeline':''">失业金领取</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[8].show, 8)">
          <el-timeline-item v-show="timelineShow('empInsurance:list')" @click.native="isShow(showArr[8].show, 8)">
            <span :class="thisShowIndex===8?'selectedTimeline':''">社保申请</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[9].show, 9)">
          <el-timeline-item v-show="timelineShow('empAccidentcases:list')" @click.native="isShow(showArr[9].show, 9)">
            <span :class="thisShowIndex===9?'selectedTimeline':''">意外险案件</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[10].show, 10)">
          <el-timeline-item v-show="timelineShow('empOccupational:list')" @click.native="isShow(showArr[10].show, 10)">
            <span :class="thisShowIndex===10?'selectedTimeline':''">工伤案件</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[11].show, 11)">
            <span :class="thisShowIndex===11?'selectedTimeline':''">劳资案件</span>
          <el-timeline-item v-show="timelineShow('empLabortrouble:list')" @click.native="isShow(showArr[11].show, 11)">
            <span :class="thisShowIndex===11?'selectedTimeline':''">仲裁案件</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[12].show, 12)">
          <el-timeline-item v-show="timelineShow('empBadrecord:list')" @click.native="isShow(showArr[12].show, 12)">
            <span :class="thisShowIndex===12?'selectedTimeline':''">不良记录</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[13].show, 13)">
          <el-timeline-item v-show="timelineShow('empRemarkinfo:list')" @click.native="isShow(showArr[13].show, 13)">
            <span :class="thisShowIndex===13?'selectedTimeline':''">备注信息</span>
          </el-timeline-item>
        </el-timeline>
      </el-aside>
      <el-main>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-button class="commonBtn" @click.native="dialogIsShow('0')">新增</el-button>
            <el-button class="commonBtn" style="background-color: #409EFF" @click.native="butDelete()">删除</el-button>
            <el-button class="commonBtn" style="float: right" @click.native="showDryg(0)">导入员工信息</el-button>
@@ -115,7 +115,7 @@
          <el-table-column
            prop="insuranceType"
            show-overflow-tooltip
            label="保险类型"
            label="社保档位"
            width="80"
            :formatter="insuranceTypeFormat"
          />
@@ -409,7 +409,7 @@
          <el-table-column prop="reportStatus " label="是否已报告" width="100" :formatter="reportStatusFormat" />
          <el-table-column prop="applayStatus" label="状态" width="80" :formatter="applayStatusFormat" />
          <el-table-column prop="auditor" label="审核人" width="80" />
          <el-table-column prop="remark" label="备注" />
          <el-table-column prop="remark" label="备注" width="300" />
        </el-table>
        <el-table
          v-show="showArr[9].show"
@@ -625,7 +625,7 @@
          :limit.sync="pagination.size"
          @pagination="search"
        />
        <el-col :span="24">
        <el-col>
          <div style="width: 250px;margin: 20px auto 0;">
            <el-button class="nomalBtn" @click="deleteFrom()">取消</el-button>
            <el-button class="commonBtn" @click="submitTo()">提交</el-button>
@@ -650,7 +650,6 @@
                :headers="headers()"
                :on-success="importHandleAvatarSuccess"
                :on-error="importHandleAvatarError"
                :file-list="fileList"
                :auto-upload="false"
              >
                <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
@@ -773,11 +772,11 @@
                <el-form-item label="招聘介绍人" prop="introducer">
                  <el-input v-model="empBaseInfoForm.introducer" />
                </el-form-item>
                <el-form-item label="银行名称" prop="bankName">
                <el-form-item label="银行名称">
                  <el-input v-model="empBaseInfoForm.bankName" />
                </el-form-item>
                <el-form-item label="保险类型" prop="insuranceType">
                  <el-select v-model="empBaseInfoForm.insuranceType" placeholder="请选择保险类型">
                <el-form-item label="社保档位" prop="insuranceType">
                  <el-select v-model="empBaseInfoForm.insuranceType" placeholder="请选择社保档位">
                    <el-option
                      v-for="dict in insuranceTypeOptions"
                      :key="dict.dicItemCode"
@@ -786,10 +785,10 @@
                    />
                  </el-select>
                </el-form-item>
                <el-form-item label="家庭成员及关系" prop="family">
                <el-form-item label="家庭成员及关系1" prop="family">
                  <el-input v-model="empBaseInfoForm.family" />
                </el-form-item>
                <el-form-item label="紧急联系电话" prop="urgencyPhone">
                <el-form-item label="家庭成员及关系2" prop="urgencyPhone">
                  <el-input v-model="empBaseInfoForm.urgencyPhone" />
                </el-form-item>
              </el-col>
@@ -800,7 +799,7 @@
                <el-form-item label="姓名" prop="empName">
                  <el-input v-model="empBaseInfoForm.empName" />
                </el-form-item>
                <el-form-item label="部门(护卫点)" required message="请选择部门(护卫点)" prop="deptId">
                <el-form-item label="部门(护卫点)" required message="请选择部门(护卫点)" prop="allDeptName">
                  <treeselect
                    v-model="empBaseInfoForm.deptId"
                    :multiple="false"
@@ -880,7 +879,7 @@
                    />
                  </el-select>
                </el-form-item>
                <el-form-item label="银行账号" prop="bankNumb">
                <el-form-item label="银行账号">
                  <el-input v-model="empBaseInfoForm.bankNumb" />
                </el-form-item>
                <el-form-item label="社保电脑号" prop="socialNumb">
@@ -907,9 +906,9 @@
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="24">
              <el-col>
                <el-form-item label="相关证件" prop="certificateList">
                  <el-select v-model="empBaseInfoForm.certificateList" placeholder="请选择相关证件">
                  <el-select v-model="empBaseInfoForm.certificateList" multiple placeholder="请选择相关证件">
                    <el-option
                      v-for="dict in certificateListOptions"
                      :key="dict.dicItemCode"
@@ -956,8 +955,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="workExperienceForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="workExperienceForm.deptName" />
            <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" />
@@ -965,7 +964,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="工作单位" prop="workUnit">
              <el-input v-model="workExperienceForm.workUnit" />
            </el-form-item>
@@ -994,7 +993,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="主要工作内容" prop="jobContent">
              <el-input v-model="workExperienceForm.jobContent" type="textarea" />
            </el-form-item>
@@ -1057,8 +1056,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="physicalExamForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="physicalExamForm.deptName" />
            <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" />
@@ -1087,7 +1086,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="体检结论" prop="conclusion">
              <el-input v-model="physicalExamForm.conclusion" />
            </el-form-item>
@@ -1102,7 +1101,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注" prop="remark">
              <el-input v-model="physicalExamForm.remark" type="textarea" />
            </el-form-item>
@@ -1139,7 +1138,15 @@
              />
            </el-form-item>
            <el-form-item label="性别" prop="sex">
              <el-input v-model="contractInfoForm.sex" />
              <!--              <el-input v-model="contractInfoForm.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
@@ -1170,8 +1177,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="contractInfoForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="contractInfoForm.deptName" />
            <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" />
@@ -1190,7 +1197,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注" prop="remark">
              <el-input v-model="contractInfoForm.remark" type="textarea" />
            </el-form-item>
@@ -1251,8 +1258,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="dimissionAttendForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="dimissionAttendForm.deptName" />
            <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" />
@@ -1271,7 +1278,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注" prop="remark">
              <el-input v-model="dimissionAttendForm.remark" type="textarea" />
            </el-form-item>
@@ -1335,8 +1342,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="leaveInfoForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="leaveInfoForm.deptName" />
            <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" />
@@ -1367,7 +1374,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注">
              <el-input v-model="leaveInfoForm.remark" type="textarea" />
            </el-form-item>
@@ -1408,8 +1415,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="resignForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="resignForm.deptName" />
            <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" />
@@ -1420,14 +1427,14 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <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-col>
            <el-form-item label="备注">
              <el-input v-model="resignForm.remark" type="textarea" />
            </el-form-item>
@@ -1477,8 +1484,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="unemploymentForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="unemploymentForm.deptName" />
            <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" />
@@ -1493,7 +1500,7 @@
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注">
              <el-input v-model="unemploymentForm.remark" type="textarea" />
            </el-form-item>
@@ -1560,8 +1567,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="insuranceForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="insuranceForm.deptName" />
            <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" />
@@ -1585,7 +1592,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注">
              <el-input v-model="insuranceForm.remark" type="textarea" />
            </el-form-item>
@@ -1635,8 +1642,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="accidentCasesForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="accidentCasesForm.deptName" />
            <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" />
@@ -1651,7 +1658,7 @@
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="受伤经过描述" prop="injuredDescribe">
              <el-input v-model="accidentCasesForm.injuredDescribe" type="textarea" />
            </el-form-item>
@@ -1782,8 +1789,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="occupationalForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="occupationalForm.deptName" />
            <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" />
@@ -1798,7 +1805,7 @@
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="受伤经过描述" prop="injuredDescribe">
              <el-input v-model="occupationalForm.injuredDescribe" type="textarea" />
            </el-form-item>
@@ -1923,7 +1930,7 @@
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注">
              <el-input v-model="occupationalForm.remark" type="textarea" />
            </el-form-item>
@@ -1936,7 +1943,7 @@
        <el-button @click="dialogIsShow()">取 消</el-button>
      </div>
    </el-dialog>
    <el-dialog title="劳资案件" :visible.sync="dialogshowArr[11].show" width="50%">
    <el-dialog title="仲裁案件" :visible.sync="dialogshowArr[11].show" width="50%">
      <el-form
        ref="laborTroubleForm"
        :model="laborTroubleForm"
@@ -1983,8 +1990,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="laborTroubleForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="laborTroubleForm.deptName" />
            <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" />
@@ -2017,14 +2024,14 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <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-col>
            <el-form-item label="备注" prop="remark">
              <el-input v-model="laborTroubleForm.remark" type="textarea" />
            </el-form-item>
@@ -2071,8 +2078,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="badRecordForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="badRecordForm.deptName" />
            <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" />
@@ -2083,14 +2090,14 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <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-col>
            <el-form-item label="备注">
              <el-input v-model="badRecordForm.remark" type="textarea" />
            </el-form-item>
@@ -2137,8 +2144,8 @@
            <el-form-item label="编号" prop="empNumb">
              <el-input v-model="remarkInfoForm.empNumb" />
            </el-form-item>
            <el-form-item label="部门(护卫点)" prop="deptName">
              <el-input v-model="remarkInfoForm.deptName" />
            <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" />
@@ -2146,7 +2153,7 @@
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
          <el-col>
            <el-form-item label="备注" prop="remarkContent">
              <el-input v-model="remarkInfoForm.remarkContent" type="textarea" />
            </el-form-item>
@@ -2214,7 +2221,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' }],
@@ -2292,10 +2299,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: {
@@ -2618,6 +2625,7 @@
        JobId: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        jobName: '',
        remarkContent: '',
        remarkDate: '',
@@ -2639,6 +2647,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        arbitrationDate: '',
@@ -2667,6 +2676,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        injuredTime: '',
@@ -2715,6 +2725,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        injuredTime: '',
@@ -2754,6 +2765,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        applayDate: '',
@@ -2781,6 +2793,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        applayDate: '',
@@ -2806,6 +2819,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        applayDate: '',
@@ -2830,6 +2844,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        beginTime: '',
@@ -2857,6 +2872,7 @@
        sexName: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        beginDate: '',
@@ -2883,6 +2899,7 @@
        sexName: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        certificateNumb: '',
@@ -2912,6 +2929,7 @@
        sexName: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        hospital: '',
@@ -2941,6 +2959,7 @@
        sexName: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        workUnit: '',
@@ -2960,7 +2979,7 @@
        empId: '',
        customerId: '',
        archivesNumb: '',
        deptId: '',
        deptId: null,
        deptName: '',
        allDeptName: '',
        empNumb: '',
@@ -3018,6 +3037,7 @@
        certificateNumb: '',
        deptId: '',
        deptName: '',
        allDeptName: '',
        JobId: '',
        jobName: '',
        badDate: '',
@@ -3055,10 +3075,12 @@
      arbitrationTypeOptions: [],
      changeTypeOptions: [],
      dimissionTypeOptions: [],
      sexOptions: []
      sexOptions: [],
      permissions: {}
    }
  },
  mounted() {
    this.permissions = JSON.parse(localStorage.getItem('PERMISSIONS'))
    this.getDicts('PLITICAL').then(response => {
      this.statusOptions = response.data
    })
@@ -3107,7 +3129,7 @@
    this.getDicts('LEAVETYPE').then(response => {
      this.leaveTypeOptions = response.data
    })
    this.getDicts('insuranceGaers').then(response => {
    this.getDicts('INSURANCETYPE').then(response => {
      this.insuranceGaersOptions = response.data
    })
    this.getDicts('applayStatus').then(response => {
@@ -3137,6 +3159,14 @@
    this.initJob()
  },
  methods: {
    timelineShow(name) {
      for (const v of this.permissions) {
        if (v === name) {
          return true
        }
      }
      return false
    },
    importHandleAvatarError() {
      this.$notify.error({
        title: '错误',
@@ -3839,7 +3869,7 @@
              // 起始日期有,进行判断
              if (this.compareDate(this.contractInfoForm.signingDate, value)) {
                // 如果起始在结束之前
                this.contractInfoForm.contractPeriod = dateDifference(this.contractInfoForm.signingDate, this.contractInfoForm.endDate, 'y')
                this.contractInfoForm.contractPeriod = dateDifference(this.contractInfoForm.signingDate, this.contractInfoForm.endDate, 'o')
                callback()
              } else {
                callback(new Error('结束日期不能在开始始日期之前,请重新选择'))
@@ -3854,7 +3884,7 @@
              // 起始日期有,进行判断
              if (this.compareDate(this.leaveInfoForm.beginTime, value)) {
                // 如果起始在结束之前
                this.leaveInfoForm.leaveDay = dateDifference(this.leaveInfoForm.beginTime, this.leaveInfoForm.endTime, 'd')
                // this.leaveInfoForm.leaveDay = dateDifference(this.leaveInfoForm.beginTime, this.leaveInfoForm.endTime, 'd')
                callback()
              } else {
                callback(new Error('结束日期不能在开始始日期之前,请重新选择'))
@@ -4221,7 +4251,7 @@
      this.empBaseInfoForm.empId = ''
      this.empBaseInfoForm.customerId = ''
      this.empBaseInfoForm.archivesNumb = ''
      this.empBaseInfoForm.deptId = ''
      this.empBaseInfoForm.deptId = null
      this.empBaseInfoForm.deptName = ''
      this.empBaseInfoForm.allDeptName = ''
      this.empBaseInfoForm.empNumb = ''
@@ -4271,6 +4301,11 @@
    },
    editEmpBase(row) {
      this.isAdd = false
      let certificateList = []
      if (row.certificateList && typeof row.certificateList === 'string') {
        certificateList = row.certificateList.split(',')
        row.certificateList = certificateList
      }
      this.empBaseInfoForm.empId = row.empId
      this.empBaseInfoForm.customerId = row.customerId
      this.empBaseInfoForm.archivesNumb = row.archivesNumb
@@ -4321,6 +4356,7 @@
      this.empBaseInfoForm.version = row.version
      this.dialogshowArr[0].show = true
      this.empBaseInfoImageUrl = pages.getEmpBaseInfoImage + row.empId
      this.empBaseInfoForm.insuranceType = row.insuranceType
    },
    putEmpBase(formName) {
      this.$refs[formName].validate((valid) => {
@@ -4366,6 +4402,9 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    selectWorkExperience() {
      this.tableUrl = 'hr/empWorkExperience/list'
@@ -4419,12 +4458,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanWorkExperience() {
      this.workExperienceForm.empId = ''
      this.workExperienceForm.archivesNumb = ''
      this.workExperienceForm.deptId = ''
      this.workExperienceForm.deptName = ''
      this.workExperienceForm.allDeptName = ''
      this.workExperienceForm.empNumb = ''
      this.workExperienceForm.empName = ''
      this.workExperienceForm.sex = ''
@@ -4452,6 +4495,7 @@
      this.workExperienceForm.sexName = row.sex
      this.workExperienceForm.deptId = row.deptId
      this.workExperienceForm.deptName = row.deptName
      this.workExperienceForm.allDeptName = row.allDeptName
      this.workExperienceForm.JobId = row.JobId
      this.workExperienceForm.jobName = row.jobName
      this.workExperienceForm.workUnit = row.workUnit
@@ -4516,12 +4560,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanPhysicalExam() {
      this.physicalExamForm.empId = ''
      this.physicalExamForm.archivesNumb = ''
      this.physicalExamForm.deptId = ''
      this.physicalExamForm.deptName = ''
      this.physicalExamForm.allDeptName = ''
      this.physicalExamForm.empNumb = ''
      this.physicalExamForm.empName = ''
      this.physicalExamForm.sex = ''
@@ -4548,6 +4596,7 @@
      this.physicalExamForm.sex = row.sex
      this.physicalExamForm.deptId = row.deptId
      this.physicalExamForm.deptName = row.deptName
      this.physicalExamForm.allDeptName = row.allDeptName
      this.physicalExamForm.JobId = row.JobId
      this.physicalExamForm.jobName = row.jobName
      this.physicalExamForm.hospital = row.hospital
@@ -4618,12 +4667,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanContractInfo() {
      this.contractInfoForm.empId = ''
      this.contractInfoForm.archivesNumb = ''
      this.contractInfoForm.deptId = ''
      this.contractInfoForm.deptName = ''
      this.contractInfoForm.allDeptName = ''
      this.contractInfoForm.empNumb = ''
      this.contractInfoForm.empName = ''
      this.contractInfoForm.sex = ''
@@ -4656,6 +4709,7 @@
      this.contractInfoForm.sex = row.sex
      this.contractInfoForm.deptId = row.deptId
      this.contractInfoForm.deptName = row.deptName
      this.contractInfoForm.allDeptName = row.allDeptName
      this.contractInfoForm.JobId = row.JobId
      this.contractInfoForm.jobName = row.jobName
      this.contractInfoForm.beginDate = row.beginDate
@@ -4724,12 +4778,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanDimissionAttend() {
      this.dimissionAttendForm.empId = ''
      this.dimissionAttendForm.archivesNumb = ''
      this.dimissionAttendForm.deptId = ''
      this.dimissionAttendForm.deptName = ''
      this.dimissionAttendForm.allDeptName = ''
      this.dimissionAttendForm.empNumb = ''
      this.dimissionAttendForm.empName = ''
      this.dimissionAttendForm.sex = ''
@@ -4761,6 +4819,7 @@
      this.dimissionAttendForm.certificateNumb = row.certificateNumb
      this.dimissionAttendForm.deptId = row.deptId
      this.dimissionAttendForm.deptName = row.deptName
      this.dimissionAttendForm.allDeptName = row.allDeptName
      this.dimissionAttendForm.JobId = row.JobId
      this.dimissionAttendForm.jobName = row.jobName
      this.dimissionAttendForm.attendMonth = row.attendMonth
@@ -4828,12 +4887,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanLeaveInfo() {
      this.leaveInfoForm.empId = ''
      this.leaveInfoForm.archivesNumb = ''
      this.leaveInfoForm.deptId = ''
      this.leaveInfoForm.deptName = ''
      this.leaveInfoForm.allDeptName = ''
      this.leaveInfoForm.empNumb = ''
      this.leaveInfoForm.empName = ''
      this.leaveInfoForm.sex = ''
@@ -4866,6 +4929,7 @@
      this.leaveInfoForm.certificateNumb = row.certificateNumb
      this.leaveInfoForm.deptId = row.deptId
      this.leaveInfoForm.deptName = row.deptName
      this.leaveInfoForm.allDeptName = row.allDeptName
      this.leaveInfoForm.JobId = row.JobId
      this.leaveInfoForm.jobName = row.jobName
      this.leaveInfoForm.beginTime = row.beginTime
@@ -4934,12 +4998,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanResign() {
      this.resignForm.empId = ''
      this.resignForm.archivesNumb = ''
      this.resignForm.deptId = ''
      this.resignForm.deptName = ''
      this.resignForm.allDeptName = ''
      this.resignForm.empNumb = ''
      this.resignForm.empName = ''
      this.resignForm.sex = ''
@@ -4969,6 +5037,7 @@
      this.resignForm.certificateNumb = row.certificateNumb
      this.resignForm.deptId = row.deptId
      this.resignForm.deptName = row.deptName
      this.resignForm.allDeptName = row.allDeptName
      this.resignForm.JobId = row.JobId
      this.resignForm.jobName = row.jobName
      this.resignForm.applayDate = row.applayDate
@@ -5034,12 +5103,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanUnemployment() {
      this.unemploymentForm.empId = ''
      this.unemploymentForm.archivesNumb = ''
      this.unemploymentForm.deptId = ''
      this.unemploymentForm.deptName = ''
      this.unemploymentForm.allDeptName = ''
      this.unemploymentForm.empNumb = ''
      this.unemploymentForm.empName = ''
      this.unemploymentForm.sex = ''
@@ -5070,6 +5143,7 @@
      this.unemploymentForm.certificateNumb = row.certificateNumb
      this.unemploymentForm.deptId = row.deptId
      this.unemploymentForm.deptName = row.deptName
      this.unemploymentForm.allDeptName = row.allDeptName
      this.unemploymentForm.JobId = row.JobId
      this.unemploymentForm.jobName = row.jobName
      this.unemploymentForm.applayDate = row.applayDate
@@ -5136,12 +5210,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanInsurance() {
      this.insuranceForm.empId = ''
      this.insuranceForm.archivesNumb = ''
      this.insuranceForm.deptId = ''
      this.insuranceForm.deptName = ''
      this.insuranceForm.allDeptName = ''
      this.insuranceForm.empNumb = ''
      this.insuranceForm.empName = ''
      this.insuranceForm.sex = ''
@@ -5174,6 +5252,7 @@
      this.insuranceForm.certificateNumb = row.certificateNumb
      this.insuranceForm.deptId = row.deptId
      this.insuranceForm.deptName = row.deptName
      this.insuranceForm.allDeptName = row.allDeptName
      this.insuranceForm.JobId = row.JobId
      this.insuranceForm.jobName = row.jobName
      this.insuranceForm.applayDate = row.applayDate
@@ -5241,12 +5320,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanAccidentCases() {
      this.accidentCasesForm.empId = ''
      this.accidentCasesForm.archivesNumb = ''
      this.accidentCasesForm.deptId = ''
      this.accidentCasesForm.deptName = ''
      this.accidentCasesForm.allDeptName = ''
      this.accidentCasesForm.empNumb = ''
      this.accidentCasesForm.empName = ''
      this.accidentCasesForm.sex = ''
@@ -5291,6 +5374,7 @@
      this.accidentCasesForm.certificateNumb = row.certificateNumb
      this.accidentCasesForm.deptId = row.deptId
      this.accidentCasesForm.deptName = row.deptName
      this.accidentCasesForm.allDeptName = row.allDeptName
      this.accidentCasesForm.JobId = row.JobId
      this.accidentCasesForm.jobName = row.jobName
      this.accidentCasesForm.injuredTime = row.injuredTime
@@ -5371,12 +5455,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanOccupational() {
      this.occupationalForm.empId = ''
      this.occupationalForm.archivesNumb = ''
      this.occupationalForm.deptId = ''
      this.occupationalForm.deptName = ''
      this.occupationalForm.allDeptName = ''
      this.occupationalForm.empNumb = ''
      this.occupationalForm.empName = ''
      this.occupationalForm.sex = ''
@@ -5430,6 +5518,7 @@
      this.occupationalForm.certificateNumb = row.certificateNumb
      this.occupationalForm.deptId = row.deptId
      this.occupationalForm.deptName = row.deptName
      this.occupationalForm.allDeptName = row.allDeptName
      this.occupationalForm.JobId = row.JobId
      this.occupationalForm.jobName = row.jobName
      this.occupationalForm.injuredTime = row.injuredTime
@@ -5521,12 +5610,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanLaborTrouble() {
      this.laborTroubleForm.empId = ''
      this.laborTroubleForm.archivesNumb = ''
      this.laborTroubleForm.deptId = ''
      this.laborTroubleForm.deptName = ''
      this.laborTroubleForm.allDeptName = ''
      this.laborTroubleForm.empNumb = ''
      this.laborTroubleForm.empName = ''
      this.laborTroubleForm.sex = ''
@@ -5559,6 +5652,7 @@
      this.laborTroubleForm.certificateNumb = row.certificateNumb
      this.laborTroubleForm.deptId = row.deptId
      this.laborTroubleForm.deptName = row.deptName
      this.laborTroubleForm.allDeptName = row.allDeptName
      this.laborTroubleForm.JobId = row.JobId
      this.laborTroubleForm.jobName = row.jobName
      this.laborTroubleForm.arbitrationDate = row.arbitrationDate
@@ -5589,6 +5683,7 @@
      this.badRecordForm.archivesNumb = ''
      this.badRecordForm.deptId = ''
      this.badRecordForm.deptName = ''
      this.badRecordForm.allDeptName = ''
      this.badRecordForm.empNumb = ''
      this.badRecordForm.empName = ''
      this.badRecordForm.sex = ''
@@ -5651,6 +5746,9 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    editBadRecord(row) {
      this.isAdd = false
@@ -5662,6 +5760,7 @@
      this.badRecordForm.certificateNumb = row.certificateNumb
      this.badRecordForm.deptId = row.deptId
      this.badRecordForm.deptName = row.deptName
      this.badRecordForm.allDeptName = row.allDeptName
      this.badRecordForm.JobId = row.JobId
      this.badRecordForm.jobName = row.jobName
      this.badRecordForm.badDate = row.badDate
@@ -5726,12 +5825,16 @@
          }
        }
      })
      setTimeout(() => {
        this.$refs[formName].clearValidate()
      }, 1500)
    },
    cleanRemarkInfo() {
      this.remarkInfoForm.empId = ''
      this.remarkInfoForm.archivesNumb = ''
      this.remarkInfoForm.deptId = ''
      this.remarkInfoForm.deptName = ''
      this.remarkInfoForm.allDeptName = ''
      this.remarkInfoForm.empNumb = ''
      this.remarkInfoForm.empName = ''
      this.remarkInfoForm.sex = ''
@@ -5759,6 +5862,7 @@
      this.remarkInfoForm.JobId = row.JobId
      this.remarkInfoForm.deptId = row.deptId
      this.remarkInfoForm.deptName = row.deptName
      this.remarkInfoForm.allDeptName = row.allDeptName
      this.remarkInfoForm.jobName = row.jobName
      this.remarkInfoForm.remarkContent = row.remarkContent
      this.remarkInfoForm.remarkDate = row.remarkDate
@@ -5827,6 +5931,7 @@
        this[this.inputForName].certificateNumb = data.certificateNumb
        this[this.inputForName].deptId = data.deptId
        this[this.inputForName].deptName = data.deptName
        this[this.inputForName].allDeptName = data.allDeptName
        this[this.inputForName].JobId = data.jobId
        this[this.inputForName].jobName = data.jobName
        this[this.inputForName].sex = data.sex === '1' ? '男' : '女'