孔祥富
2021-03-01 e9e7c2b4498042c43e5978f483abbbbdc6cd1480
src/views/user/Informationinput.vue
@@ -16,7 +16,7 @@
            <span :class="thisShowIndex===3?'selectedTimeline':''">合同信息</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[4].show, 4)">
            <span :class="thisShowIndex===4?'selectedTimeline':''">考勤情况</span>
            <span :class="thisShowIndex===4?'selectedTimeline':''">离职当月考勤</span>
          </el-timeline-item>
          <el-timeline-item @click.native="isShow(showArr[5].show, 5)">
            <span :class="thisShowIndex===5?'selectedTimeline':''">请假记录</span>
@@ -208,17 +208,17 @@
              <el-button type="text" size="small" @click="editLeaveInfo(scope.row)">编辑</el-button>
            </template>
          </el-table-column>
          <el-table-column prop="empNumb" label="员工编号" width="180" />
          <el-table-column prop="empNumb" label="员工编号" width="120" />
          <el-table-column prop="deptName" label="护卫点" width="180" />
          <el-table-column prop="jobName" label="岗位名称" width="180" />
          <el-table-column prop="empName" label="员工姓名" width="180" />
          <el-table-column prop="jobName" label="岗位名称" width="120" />
          <el-table-column prop="empName" label="员工姓名" width="120" />
          <el-table-column prop="certificateNumb" label="身份证号码" width="180" />
          <el-table-column prop="beginTime" label="开始时间" width="180" />
          <el-table-column prop="endTime" label="结束时间" width="180" />
          <el-table-column prop="leaveDay" label="请假天数" width="180" />
          <el-table-column prop="leaveType" label="请假类型" width="180" />
          <el-table-column prop="returnDate" label="到岗时间" width="180" />
          <el-table-column prop="reporter" label="报备人" width="180" />
          <el-table-column prop="beginTime" label="开始时间" width="150" />
          <el-table-column prop="endTime" label="结束时间" width="150" />
          <el-table-column prop="leaveDay" label="请假天数" width="100" />
          <el-table-column prop="leaveTypeName" label="请假类型" width="120" />
          <el-table-column prop="returnDate" label="到岗时间" width="150" />
          <el-table-column prop="reporter" label="报备人" width="120" />
          <el-table-column prop="remark" label="备注" width="180" />
        </el-table>
        <el-table v-show="showArr[6].show" ref="resignTable" :data="resignData" style="width: 100%;">
@@ -384,7 +384,7 @@
          <el-table-column prop="certificateNumb" label="身份证号码" width="180" />
          <el-table-column prop="arbitrationDate" label="仲裁日期" width="180" />
          <el-table-column prop="arbitrationDate" label="仲裁日期" width="180" />
          <el-table-column prop="arbitrationType" label="仲裁类型" width="180" />
          <el-table-column prop="arbitrationTypeName" label="仲裁类型" width="180" />
          <el-table-column prop="arbitrationReason" label="仲裁事由" width="180" />
          <el-table-column prop="reporter" label="报备人" width="180" />
          <el-table-column prop="remark" label="备注" width="180" />
@@ -464,6 +464,7 @@
            :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>
@@ -850,6 +851,7 @@
              >
                <el-option label="普通体检" value="1" />
                <el-option label="员工体检" value="2" />
                <el-option label="入职体检" value="03" />
              </el-select>
            </el-form-item>
            <el-form-item label="转氨酶" prop="transaminase">
@@ -1087,8 +1089,20 @@
            <el-form-item label="请假类型" prop="leaveType">
              <el-select v-model="leaveInfoForm.leaveType" placeholder="请选择请假类型">
                <el-option label="事假" value="1" />
                <el-option label="病假" value="2" />
                <el-option label="事假" value="05" />
                <el-option label="病假" value="06" />
                <el-option label="公假" value="07" />
                <el-option label="婚假" value="08" />
                <el-option label="孕假" value="09" />
                <el-option label="产假" value="10" />
                <el-option label="陪产假" value="11" />
                <el-option label="探亲假" value="12" />
                <el-option label="探配偶假" value="13" />
                <el-option label="丧假" value="14" />
                <el-option label="工伤假" value="15" />
                <el-option label="节育假" value="16" />
                <el-option label="年休假" value="17" />
                <el-option label="其它假" value="18" />
              </el-select>
            </el-form-item>
@@ -1299,8 +1313,8 @@
            </el-form-item>
            <el-form-item label="状态" prop="applayStatus">
              <el-select v-model="insuranceForm.applayStatus" placeholder="请选择状态">
                <el-option label="未申请" value="1" />
                <el-option label="已申请" value="2" />
                <el-option label="未申请" value="0" />
                <el-option label="已申请" value="1" />
              </el-select>
            </el-form-item>
          </el-col>
@@ -1319,8 +1333,8 @@
            </el-form-item>
            <el-form-item label="是否已经报告">
              <el-select v-model="insuranceForm.reportStatus" placeholder="是否已经报告">
                <el-option label="未报告" value="1" />
                <el-option label="已报告" value="2" />
                <el-option label="未报告" value="0" />
                <el-option label="已报告" value="1" />
              </el-select>
            </el-form-item>
            <el-form-item label="审批人">
@@ -2558,14 +2572,14 @@
        empId: '',
        customerId: '',
        archivesNumb: '',
        deptId: '',
        deptId: '1',
        deptName: '',
        empNumb: '',
        empName: '',
        sex: '1',
        JobId: '',
        jobName: '',
        empType: '1',
        empType: '01',
        certificateType: '',
        certificateNumb: '',
        nation: '01',
@@ -2670,10 +2684,10 @@
        // var suffixIndex=fileName.lastIndexOf(".")
        // var suffix=fileName.substring(suffixIndex+1).toUpperCase()
        var suffix = fileName.substring(fileName.lastIndexOf('.') + 1).toUpperCase()
        if (suffix === 'JPG' || suffix === 'JPEG' || suffix === 'PNG') {
        if (suffix === 'JPG' || suffix === 'PNG') {
          this.preView(this.empBaseInfoImageUrl)
        } else {
          this.$message.error('文件类型不正确,请重新上传!')
          this.$message.error('只能上传jpg/png文件,且不超过4MB,请重新上传!')
        }
      } else {
        this.$message.error('图片大小超过4M,请重新上传')
@@ -2833,6 +2847,11 @@
              })
              this.selectEmpBase()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 1:
@@ -2848,6 +2867,11 @@
                type: 'success'
              })
              this.selectWorkExperience()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
@@ -2865,6 +2889,11 @@
              })
              this.selectPhysicalExam()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 3:
@@ -2880,6 +2909,11 @@
                type: 'success'
              })
              this.selectContractInfo()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
@@ -2913,6 +2947,11 @@
              })
              this.selectLeaveInfo()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 6:
@@ -2928,6 +2967,11 @@
                type: 'success'
              })
              this.selectResign()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
@@ -2945,6 +2989,11 @@
              })
              this.selectUnemployment()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 8:
@@ -2960,6 +3009,11 @@
                type: 'success'
              })
              this.selectInsurance()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
@@ -2977,6 +3031,11 @@
              })
              this.selectAccidentCases()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 10:
@@ -2992,6 +3051,11 @@
                type: 'success'
              })
              this.selectOccupational()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
@@ -3009,6 +3073,11 @@
              })
              this.selectLaborTrouble()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 12:
@@ -3025,6 +3094,11 @@
              })
              this.selectBadRecord()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
        case 13:
@@ -3040,6 +3114,11 @@
                type: 'success'
              })
              this.selectBadRecord()
            })
          } else {
            this.$message({
              message: '请先选中需要删除的记录',
              type: 'error'
            })
          }
          break
@@ -3174,6 +3253,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 1:
@@ -3192,6 +3276,11 @@
              this.tableDataName = 'workExperienceData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3212,6 +3301,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 3:
@@ -3230,6 +3324,11 @@
              this.tableDataName = 'contractInfoData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3250,6 +3349,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 5:
@@ -3268,6 +3372,11 @@
              this.tableDataName = 'leaveInfoData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3288,6 +3397,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 7:
@@ -3306,6 +3420,11 @@
              this.tableDataName = 'unemploymentData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3326,6 +3445,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 9:
@@ -3344,6 +3468,11 @@
              this.tableDataName = 'accidentCasesData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3364,6 +3493,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 11:
@@ -3382,6 +3516,11 @@
              this.tableDataName = 'laborTroubleData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3402,6 +3541,11 @@
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
        case 13:
@@ -3420,6 +3564,11 @@
              this.tableDataName = 'remarkInfoData'
              this.queryParams.delFlag = 2
              this.search()
            })
          } else {
            this.$message({
              message: '请先选中需要提交的记录',
              type: 'error'
            })
          }
          break
@@ -3508,6 +3657,7 @@
      this.empBaseInfoForm.education = row.education
      this.empBaseInfoForm.seniority = row.seniority
      this.empBaseInfoForm.nativePlace = row.nativePlace
      this.empBaseInfoForm.nativePlaceName = row.nativePlaceName
      this.empBaseInfoForm.censusAddress = row.censusAddress
      this.empBaseInfoForm.currentAddress = row.currentAddress
      this.empBaseInfoForm.guardNumb = row.guardNumb
@@ -3810,15 +3960,6 @@
    },
    cleanContractInfo() {
      this.contractInfoForm.contractId = ''
      this.contractInfoForm.empId = ''
      this.contractInfoForm.empNumb = ''
      this.contractInfoForm.empName = ''
      this.contractInfoForm.certificateNumb = ''
      this.contractInfoForm.sex = ''
      this.contractInfoForm.deptId = ''
      this.contractInfoForm.deptName = ''
      this.contractInfoForm.JobId = ''
      this.contractInfoForm.jobName = ''
      this.contractInfoForm.beginDate = ''
      this.contractInfoForm.endDate = ''
      this.contractInfoForm.contractStatus = ''
@@ -3915,15 +4056,6 @@
    },
    cleanDimissionAttend() {
      this.dimissionAttendForm.dimissionAttendId = ''
      this.dimissionAttendForm.empId = ''
      this.dimissionAttendForm.empNumb = ''
      this.dimissionAttendForm.empName = ''
      this.dimissionAttendForm.sex = ''
      this.dimissionAttendForm.certificateNumb = ''
      this.dimissionAttendForm.deptId = ''
      this.dimissionAttendForm.deptName = ''
      this.dimissionAttendForm.JobId = ''
      this.dimissionAttendForm.jobName = ''
      this.dimissionAttendForm.attendMonth = ''
      this.dimissionAttendForm.overtimeHour = ''
      this.dimissionAttendForm.overtimeDay = ''
@@ -4018,15 +4150,6 @@
    },
    cleanLeaveInfo() {
      this.leaveInfoForm.leaveId = ''
      this.leaveInfoForm.empId = ''
      this.leaveInfoForm.empNumb = ''
      this.leaveInfoForm.empName = ''
      this.leaveInfoForm.sex = ''
      this.leaveInfoForm.certificateNumb = ''
      this.leaveInfoForm.deptId = ''
      this.leaveInfoForm.deptName = ''
      this.leaveInfoForm.JobId = ''
      this.leaveInfoForm.jobName = ''
      this.leaveInfoForm.beginTime = ''
      this.leaveInfoForm.endTime = ''
      this.leaveInfoForm.leaveType = ''
@@ -4123,15 +4246,6 @@
    },
    cleanResign() {
      this.resignForm.resignId = ''
      this.resignForm.empId = ''
      this.resignForm.empNumb = ''
      this.resignForm.empName = ''
      this.resignForm.sex = ''
      this.resignForm.certificateNumb = ''
      this.resignForm.deptId = ''
      this.resignForm.deptName = ''
      this.resignForm.JobId = ''
      this.resignForm.jobName = ''
      this.resignForm.applayDate = ''
      this.resignForm.reporter = ''
      this.resignForm.reason = ''
@@ -4222,15 +4336,6 @@
    },
    cleanUnemployment() {
      this.unemploymentForm.unemploymentId = ''
      this.unemploymentForm.empId = ''
      this.unemploymentForm.empNumb = ''
      this.unemploymentForm.empName = ''
      this.unemploymentForm.sex = ''
      this.unemploymentForm.certificateNumb = ''
      this.unemploymentForm.deptId = ''
      this.unemploymentForm.deptName = ''
      this.unemploymentForm.JobId = ''
      this.unemploymentForm.jobName = ''
      this.unemploymentForm.applayDate = ''
      this.unemploymentForm.applayReason = ''
      this.unemploymentForm.reporter = ''
@@ -4323,15 +4428,6 @@
    },
    cleanInsurance() {
      this.insuranceForm.insuranceId = ''
      this.insuranceForm.empId = ''
      this.insuranceForm.empNumb = ''
      this.insuranceForm.empName = ''
      this.insuranceForm.sex = ''
      this.insuranceForm.certificateNumb = ''
      this.insuranceForm.deptId = ''
      this.insuranceForm.deptName = ''
      this.insuranceForm.JobId = ''
      this.insuranceForm.jobName = ''
      this.insuranceForm.applayDate = ''
      this.insuranceForm.proposer = ''
      this.insuranceForm.insuranceGaers = ''
@@ -4428,15 +4524,6 @@
    },
    cleanAccidentCases() {
      this.accidentCasesForm.accidentId = ''
      this.accidentCasesForm.empId = ''
      this.accidentCasesForm.empNumb = ''
      this.accidentCasesForm.empName = ''
      this.accidentCasesForm.sex = ''
      this.accidentCasesForm.certificateNumb = ''
      this.accidentCasesForm.deptId = ''
      this.accidentCasesForm.deptName = ''
      this.accidentCasesForm.JobId = ''
      this.accidentCasesForm.jobName = ''
      this.accidentCasesForm.injuredTime = ''
      this.accidentCasesForm.injuredAddress = ''
      this.accidentCasesForm.injuredPart = ''
@@ -4557,15 +4644,6 @@
    },
    cleanOccupational() {
      this.occupationalForm.occupationalId = ''
      this.occupationalForm.empId = ''
      this.occupationalForm.empNumb = ''
      this.occupationalForm.empName = ''
      this.occupationalForm.sex = ''
      this.occupationalForm.certificateNumb = ''
      this.occupationalForm.deptId = ''
      this.occupationalForm.deptName = ''
      this.occupationalForm.JobId = ''
      this.occupationalForm.jobName = ''
      this.occupationalForm.injuredTime = ''
      this.occupationalForm.injuredAddress = ''
      this.occupationalForm.injuredPart = ''
@@ -4706,15 +4784,6 @@
    },
    cleanLaborTrouble() {
      this.laborTroubleForm.arbitrationId = ''
      this.laborTroubleForm.empId = ''
      this.laborTroubleForm.empNumb = ''
      this.laborTroubleForm.empName = ''
      this.laborTroubleForm.sex = ''
      this.laborTroubleForm.certificateNumb = ''
      this.laborTroubleForm.deptId = ''
      this.laborTroubleForm.deptName = ''
      this.laborTroubleForm.JobId = ''
      this.laborTroubleForm.jobName = ''
      this.laborTroubleForm.arbitrationDate = ''
      this.laborTroubleForm.arbitrationType = ''
      this.laborTroubleForm.arbitrationReason = ''
@@ -4767,15 +4836,6 @@
    },
    cleanBadRecord() {
      this.badRecordForm.badId = ''
      this.badRecordForm.empId = ''
      this.badRecordForm.empName = ''
      this.badRecordForm.empNumb = ''
      this.badRecordForm.sex = ''
      this.badRecordForm.certificateNumb = ''
      this.badRecordForm.deptId = ''
      this.badRecordForm.deptName = ''
      this.badRecordForm.JobId = ''
      this.badRecordForm.jobName = ''
      this.badRecordForm.badDate = ''
      this.badRecordForm.reporter = ''
      this.badRecordForm.badContent = ''
@@ -4909,15 +4969,6 @@
    },
    cleanRemarkInfo() {
      this.remarkInfoForm.remarkId = ''
      this.remarkInfoForm.empId = ''
      this.remarkInfoForm.empNumb = ''
      this.remarkInfoForm.empName = ''
      this.remarkInfoForm.sex = ''
      this.remarkInfoForm.certificateNumb = ''
      this.remarkInfoForm.JobId = ''
      this.remarkInfoForm.deptId = ''
      this.remarkInfoForm.deptName = ''
      this.remarkInfoForm.jobName = ''
      this.remarkInfoForm.remarkContent = ''
      this.remarkInfoForm.remarkDate = ''
      this.remarkInfoForm.createTime = ''