| | |
| | | v-show="showArr[0].show" |
| | | ref="empBaseInfoTable" |
| | | :data="basicInformationData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | v-show="showArr[1].show" |
| | | ref="workExperienceTable" |
| | | :data="workExperienceData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="empNumb" label="员工编号" width="180" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="180" /> |
| | | <el-table-column prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column prop="certificateNumb" label="证件号码" width="180" /> |
| | | <el-table-column prop="workUnit" label="工作单位" width="180" /> |
| | | <el-table-column prop="beginDate" label="开始日期" width="180" /> |
| | | <el-table-column prop="endDate" label="结束日期" width="180" /> |
| | | <el-table-column prop="jobContent" label="主要工作内容" width="180" /> |
| | | <el-table-column prop="workUnit" label="工作单位" width="240" /> |
| | | <el-table-column prop="beginDate" label="开始日期" width="100" /> |
| | | <el-table-column prop="endDate" label="结束日期" width="100" /> |
| | | <el-table-column prop="jobContent" label="主要工作内容" width="300" /> |
| | | </el-table> |
| | | <el-table |
| | | v-show="showArr[2].show" |
| | | ref="physicalExamTable" |
| | | :data="physicalExamData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="empNumb" label="员工编号" width="180" /> |
| | | <el-table-column prop="deptName" label="护卫点" width="180" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="180" /> |
| | | <el-table-column prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column prop="deptName" label="护卫点" width="150" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column prop="certificateNumb" label="身份证号码" width="180" /> |
| | | <el-table-column prop="jobName" label="岗位" width="180" /> |
| | | <el-table-column prop="hospital" label="体检医院" width="180" /> |
| | | <el-table-column prop="physicalExamDate" label="体检日期" width="180" /> |
| | | <el-table-column prop="physicalExamType" label="体检类型" width="180" /> |
| | | <el-table-column prop="bloodPressure" label="血压" width="180" /> |
| | | <el-table-column prop="transaminase" label="转氨酶" width="180" /> |
| | | <el-table-column prop="ecg" label="心电图" width="180" /> |
| | | <el-table-column prop="jobName" label="岗位" width="120" /> |
| | | <el-table-column prop="hospital" label="体检医院" width="150" /> |
| | | <el-table-column prop="physicalExamDate" label="体检日期" width="120" /> |
| | | <el-table-column prop="physicalExamTypeName" label="体检类型" width="100" /> |
| | | <el-table-column prop="bloodPressure" label="血压" width="120" /> |
| | | <el-table-column prop="transaminase" label="转氨酶" width="120" /> |
| | | <el-table-column prop="ecgName" label="心电图" width="120" /> |
| | | <el-table-column prop="conclusion" label="体检结论" width="180" /> |
| | | <el-table-column prop="reviewRecord" label="复查记录" width="180" /> |
| | | <el-table-column prop="remark" label="备注" width="180" /> |
| | |
| | | v-show="showArr[3].show" |
| | | ref="contractInfoTable" |
| | | :data="contractInfoData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | v-show="showArr[4].show" |
| | | ref="dimissionAttendTable" |
| | | :data="dimissionAttendData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | <el-table-column prop="absenteeism" label="旷工(天)" width="180" /> |
| | | <el-table-column prop="remark" label="备注" width="180" /> |
| | | </el-table> |
| | | <el-table v-show="showArr[5].show" ref="leaveInfoTable" :data="leaveInfoData" style="width: 100%;height: 70%;"> |
| | | <el-table v-show="showArr[5].show" ref="leaveInfoTable" :data="leaveInfoData" style="width: 100%;"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | | <template slot-scope="scope"> |
| | |
| | | <el-table-column prop="reporter" label="报备人" width="180" /> |
| | | <el-table-column prop="remark" label="备注" width="180" /> |
| | | </el-table> |
| | | <el-table v-show="showArr[6].show" ref="resignTable" :data="resignData" style="width: 100%;height: 70%;"> |
| | | <el-table v-show="showArr[6].show" ref="resignTable" :data="resignData" style="width: 100%;"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | | <template slot-scope="scope"> |
| | |
| | | v-show="showArr[7].show" |
| | | ref="unemploymentTable" |
| | | :data="unemploymentData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | <el-table-column prop="auditor" label="审核人" width="180" /> |
| | | <el-table-column prop="remark" label="备注" width="180" /> |
| | | </el-table> |
| | | <el-table v-show="showArr[8].show" ref="insuranceTable" :data="insuranceData" style="width: 100%;height: 70%;"> |
| | | <el-table v-show="showArr[8].show" ref="insuranceTable" :data="insuranceData" style="width: 100%;"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | | <template slot-scope="scope"> |
| | |
| | | v-show="showArr[9].show" |
| | | ref="accidentCasesTable" |
| | | :data="accidentCasesData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | v-show="showArr[10].show" |
| | | ref="occupationalTable" |
| | | :data="occupationalData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | v-show="showArr[11].show" |
| | | ref="laborTroubleTable" |
| | | :data="laborTroubleData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | v-show="showArr[12].show" |
| | | ref="badRecordTable" |
| | | :data="badRecordData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | v-show="showArr[13].show" |
| | | ref="remarkInfoTable" |
| | | :data="remarkInfoData" |
| | | style="width: 100%;height: 70%;" |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column fixed="left" label="操作" width="100"> |
| | |
| | | <el-form ref="empBaseInfoForm" :model="empBaseInfoForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="档案号"> |
| | | <el-form-item label="档案号" prop="archivesNumb"> |
| | | <el-input v-model="empBaseInfoForm.archivesNumb" /> |
| | | </el-form-item> |
| | | <el-form-item label="员工编号" prop="empNumb"> |
| | | <el-input v-model="empBaseInfoForm.empNumb" /> |
| | | </el-form-item> |
| | | <el-form-item label="身份证号码"> |
| | | <el-form-item label="身份证号码" prop="certificateNumb"> |
| | | <el-input |
| | | v-model="empBaseInfoForm.certificateNumb" |
| | | @input="generateUserInfo(0,empBaseInfoForm.certificateNumb)" |
| | |
| | | <el-option label="临时工" value="2" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="民族"> |
| | | <el-form-item label="民族" prop="nation"> |
| | | <el-select v-model="empBaseInfoForm.nation" placeholder="请选择民族"> |
| | | <el-option label="汉族" value="01" /> |
| | | <el-option label="蒙古族" value="02" /> |
| | |
| | | <el-option label="外国民族" value="98" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="婚姻状态"> |
| | | <el-form-item label="婚姻状态" prop="marriage"> |
| | | <el-select v-model="empBaseInfoForm.marriage" placeholder="请选择婚姻状态"> |
| | | <el-option label="未婚" value="1" /> |
| | | <el-option label="已婚" value="2" /> |
| | |
| | | <el-option label="其它" value="9" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="身高(cm)"> |
| | | <el-form-item label="身高(cm)" prop="stature"> |
| | | <el-input v-model="empBaseInfoForm.stature" /> |
| | | </el-form-item> |
| | | <el-form-item label="政治面貌"> |
| | | <el-form-item label="政治面貌" prop="politics"> |
| | | <el-select v-model="empBaseInfoForm.politics" placeholder="请选择政治面貌"> |
| | | <el-option label="中共党员" value="01" /> |
| | | <el-option label="预备党员" value="02" /> |
| | |
| | | <el-option label="群众" value="13" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="最高学历"> |
| | | <el-form-item label="最高学历" prop="education"> |
| | | <el-select v-model="empBaseInfoForm.education" placeholder="请选择最高学历"> |
| | | <el-option label="博士" value="10" /> |
| | | <el-option label="硕士" value="11" /> |
| | |
| | | <el-option label="无学历" value="91" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="籍贯"> |
| | | <el-form-item label="籍贯" prop="nativePlaceName"> |
| | | <el-autocomplete |
| | | v-model="empBaseInfoForm.nativePlaceName" |
| | | class="inline-input" |
| | |
| | | @select="placeNameSelect" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="现住址"> |
| | | <el-form-item label="现住址" prop="currentAddress"> |
| | | <el-input v-model="empBaseInfoForm.currentAddress" /> |
| | | </el-form-item> |
| | | <el-form-item label="电话号码"> |
| | | <el-form-item label="电话号码" prop="telePhone"> |
| | | <el-input v-model="empBaseInfoForm.telePhone" /> |
| | | </el-form-item> |
| | | <el-form-item label="招聘介绍人"> |
| | | <el-form-item label="招聘介绍人" prop="introducer"> |
| | | <el-input v-model="empBaseInfoForm.introducer" /> |
| | | </el-form-item> |
| | | <el-form-item label="银行名称"> |
| | | <el-form-item label="银行名称" prop="bankName"> |
| | | <el-input v-model="empBaseInfoForm.bankName" /> |
| | | </el-form-item> |
| | | <el-form-item label="保险类型"> |
| | | <el-form-item label="保险类型" prop="insuranceType"> |
| | | <el-select v-model="empBaseInfoForm.insuranceType" placeholder="请选择保险类型"> |
| | | <el-option label="(深户)五险一档" value="1" /> |
| | | <el-option label="(非深户)五险一档" value="2" /> |
| | |
| | | <el-option label="(非深户)四险一档" value="5" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="家庭成员及关系"> |
| | | <el-form-item label="家庭成员及关系" prop="family"> |
| | | <el-input v-model="empBaseInfoForm.family" /> |
| | | </el-form-item> |
| | | <el-form-item label="紧急联系电话"> |
| | | <el-form-item label="紧急联系电话" prop="urgencyPhone"> |
| | | <el-input v-model="empBaseInfoForm.urgencyPhone" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-option label="女" value="2" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="身份证有效期"> |
| | | <el-input v-model="empBaseInfoForm.certificateValidity" /> |
| | | <el-form-item label="身份证有效期" prop="certificateValidity"> |
| | | <el-date-picker |
| | | v-model="empBaseInfoForm.certificateValidity" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="选择日期" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="年龄"> |
| | | <el-form-item label="年龄" prop="age"> |
| | | <el-input v-model="empBaseInfoForm.age" /> |
| | | </el-form-item> |
| | | <el-form-item label="出生日期"> |
| | | <el-form-item label="出生日期" prop="birthdate"> |
| | | <el-date-picker |
| | | v-model="empBaseInfoForm.birthdate" |
| | | type="date" |
| | |
| | | placeholder="选择日期" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="入职日期"> |
| | | <el-form-item label="入职日期" prop="entryDate"> |
| | | <el-date-picker |
| | | v-model="empBaseInfoForm.entryDate" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="选择日期" |
| | | @input="calculateSeniority" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="入司工龄"> |
| | | <el-form-item label="入司工龄" prop="seniority"> |
| | | <el-input v-model="empBaseInfoForm.seniority" /> |
| | | </el-form-item> |
| | | <el-form-item label="户籍地址"> |
| | | <el-form-item label="户籍地址" prop="censusAddress"> |
| | | <el-input v-model="empBaseInfoForm.censusAddress" /> |
| | | </el-form-item> |
| | | <el-form-item label="保安员证号"> |
| | | <el-form-item label="保安员证号" prop="guardNumb"> |
| | | <el-input v-model="empBaseInfoForm.guardNumb" /> |
| | | </el-form-item> |
| | | <el-form-item label="保安员回执"> |
| | | <el-form-item label="保安员回执" prop="returnReceipt"> |
| | | <el-input v-model="empBaseInfoForm.returnReceipt" /> |
| | | </el-form-item> |
| | | <el-form-item label="档案情况"> |
| | | <el-form-item label="档案情况" prop="archivesStatus"> |
| | | <el-select v-model="empBaseInfoForm.archivesStatus" placeholder="请选择档案情况"> |
| | | <el-option label="未移交" value="0" /> |
| | | <el-option label="已移交" value="1" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="银行账号"> |
| | | <el-form-item label="银行账号" prop="bankNumb"> |
| | | <el-input v-model="empBaseInfoForm.bankNumb" /> |
| | | </el-form-item> |
| | | <el-form-item label="社保电脑号"> |
| | | <el-form-item label="社保电脑号" prop="socialNumb"> |
| | | <el-input v-model="empBaseInfoForm.socialNumb" /> |
| | | </el-form-item> |
| | | <el-form-item label="员工手册"> |
| | | <el-form-item label="员工手册" prop="handbookStatus"> |
| | | <el-select v-model="empBaseInfoForm.handbookStatus" placeholder="请选择员工手册"> |
| | | <el-option label="未发" value="0" /> |
| | | <el-option label="已发" value="1" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工作证"> |
| | | <el-form-item label="工作证" prop="empCardStatus"> |
| | | <el-select v-model="empBaseInfoForm.empCardStatus" placeholder="请选择工作证"> |
| | | <el-option label="未发" value="0" /> |
| | | <el-option label="已发" value="1" /> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="相关证件"> |
| | | <el-form-item label="相关证件" prop="certificateList"> |
| | | <el-select v-model="empBaseInfoForm.certificateList" placeholder="请选择相关证件"> |
| | | <el-option label="高中毕业证" value="1" /> |
| | | <el-option label="专科毕业证" value="2" /> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="工作经历" :visible.sync="dialogshowArr[1].show" width="50%"> |
| | | <el-form :model="workExperienceForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <el-form ref="workExperienceForm" :model="workExperienceForm" :rules="workExperienceRules" label-position="right" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="姓名" prop="empName"> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="开始日期"> |
| | | <el-form-item label="开始日期" prop="beginDate"> |
| | | <el-date-picker |
| | | v-model="workExperienceForm.beginDate" |
| | | type="date" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="结束日期"> |
| | | <el-form-item label="结束日期" prop="endDate"> |
| | | <el-date-picker |
| | | v-model="workExperienceForm.endDate" |
| | | type="date" |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="主要工作内容"> |
| | | <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()">保 存</el-button> |
| | | <el-button type="primary" @click="putWorkExperience('workExperienceForm')">保 存</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="putWorkExperienceContinue()" |
| | | @click="putWorkExperienceContinue('workExperienceForm')" |
| | | >保存并继续新增 |
| | | </el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="体检信息" :visible.sync="dialogshowArr[2].show" width="50%"> |
| | | <el-form :model="physicalExamForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <el-form ref="physicalExamForm" :model="physicalExamForm" :rules="physicalExamRules" label-position="right" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="姓名" prop="empName"> |
| | |
| | | <el-form-item label="体检医院" prop="hospital"> |
| | | <el-input v-model="physicalExamForm.hospital" /> |
| | | </el-form-item> |
| | | <el-form-item label="体检类型"> |
| | | <el-form-item label="体检类型" prop="physicalExamType"> |
| | | <el-select |
| | | v-model="physicalExamForm.physicalExamType" |
| | | placeholder="请选择体检类型" |
| | |
| | | <el-option label="员工体检" value="2" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="转氨酶"> |
| | | <el-form-item label="转氨酶" prop="transaminase"> |
| | | <el-input v-model="physicalExamForm.transaminase" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | placeholder="选择体检日期" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="血压"> |
| | | <el-form-item label="血压" prop="bloodPressure"> |
| | | <el-input v-model="physicalExamForm.bloodPressure" /> |
| | | </el-form-item> |
| | | <el-form-item label="心电图"> |
| | | <el-select v-model="physicalExamForm.name" placeholder="ecg"> |
| | | <el-form-item label="心电图" prop="ecg"> |
| | | <el-select v-model="physicalExamForm.ecg" placeholder="ecg"> |
| | | <el-option label="正常" value="1" /> |
| | | <el-option label="异常" value="0" /> |
| | | </el-select> |
| | |
| | | <el-form-item label="体检结论" prop="conclusion"> |
| | | <el-input v-model="physicalExamForm.conclusion" /> |
| | | </el-form-item> |
| | | <el-form-item label="复查记录"> |
| | | <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="备注"> |
| | | <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()">保 存</el-button> |
| | | <el-button type="primary" @click="putPhysicalExam('physicalExamForm')">保 存</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="putPhysicalExamContinue()" |
| | | @click="putPhysicalExamContinue('physicalExamForm')" |
| | | >保存并继续新增 |
| | | </el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="合同信息" :visible.sync="dialogshowArr[3].show" width="50%"> |
| | | <el-form :model="contractInfoForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <el-form ref="contractInfoForm" :model="contractInfoForm" :rules="contractInfoRules" label-position="right" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="姓名" prop="empName"> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putContractInfo()">保 存</el-button> |
| | | <el-button type="primary" @click="putContractInfo('contractInfoForm')">保 存</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="putContractInfoContinue()" |
| | | @click="putContractInfoContinue('contractInfoForm')" |
| | | >保存并继续新增 |
| | | </el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="离职当月考勤" :visible.sync="dialogshowArr[4].show" width="50%"> |
| | | <el-form :model="dimissionAttendForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <el-form ref="dimissionAttendForm" :model="dimissionAttendForm" :rules="dimissionAttendRules" label-position="right" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="姓名" prop="empName"> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putDimissionAttend()">保 存</el-button> |
| | | <el-button type="primary" @click="putDimissionAttendContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putDimissionAttend('dimissionAttendForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putDimissionAttendContinue('dimissionAttendForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="请假记录" :visible.sync="dialogshowArr[5].show" width="50%"> |
| | | <el-form :model="leaveInfoForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <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-form-item> |
| | | |
| | | <el-form-item label="请假天数"> |
| | | <el-form-item label="请假天数" prop="leaveDay"> |
| | | <el-input v-model="leaveInfoForm.leaveDay" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="到岗时间"> |
| | | <el-form-item label="到岗时间" prop="returnDate"> |
| | | <el-date-picker |
| | | v-model="leaveInfoForm.returnDate" |
| | | value-format="yyyy-MM-dd" |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putLeaveInfo()">保 存</el-button> |
| | | <el-button type="primary" @click="putLeaveInfoContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putLeaveInfo('leaveInfoForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putLeaveInfoContinue('leaveInfoForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="辞职申请" :visible.sync="dialogshowArr[6].show" width="50%"> |
| | | <el-form :model="resignForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <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-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putResign()">保 存</el-button> |
| | | <el-button type="primary" @click="putResignContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putResign('resignForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putResignContinue('resignForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="失业金领取" :visible.sync="dialogshowArr[7].show" width="50%"> |
| | | <el-form :model="unemploymentForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <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-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putUnemployment()">保 存</el-button> |
| | | <el-button type="primary" @click="putUnemploymentContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putUnemployment('unemploymentForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putUnemploymentContinue('unemploymentForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="社保申请" :visible.sync="dialogshowArr[8].show" width="50%"> |
| | | <el-form :model="insuranceForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <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-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putInsurance()">保 存</el-button> |
| | | <el-button type="primary" @click="putInsuranceContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putInsurance('insuranceForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putInsuranceContinue('insuranceForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="意外险案件" :visible.sync="dialogshowArr[9].show" width="50%"> |
| | | <el-form :model="accidentCasesForm" :rules="rules" label-position="right" label-width="120px"> |
| | | <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-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putAccidentCases()">保 存</el-button> |
| | | <el-button type="primary" @click="putAccidentCasesContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putAccidentCasesContinue('accidentCasesForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="工伤案件" :visible.sync="dialogshowArr[10].show" width="50%"> |
| | | <el-form :model="occupationalForm" :rules="rules" label-position="right" label-width="140px"> |
| | | <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-form-item label="受伤地点" prop="injuredAddress"> |
| | | <el-input v-model="occupationalForm.injuredAddress" /> |
| | | </el-form-item> |
| | | <el-form-item label="工伤诊断"> |
| | | <el-form-item label="工伤诊断" prop="injuredDiacrisis"> |
| | | <el-input v-model="occupationalForm.injuredDiacrisis" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-option label="已住院" value="1" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="报案时间"> |
| | | <el-form-item label="报案时间" prop="'reportTime"> |
| | | <el-date-picker |
| | | v-model="occupationalForm.reportTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | |
| | | placeholder="选择报案时间" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="递交人"> |
| | | <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="就诊科室"> |
| | | <el-form-item label="就诊科室" prop="'treatmentName"> |
| | | <el-input v-model="occupationalForm.treatmentName" /> |
| | | </el-form-item> |
| | | <el-form-item label="床号"> |
| | | <el-form-item label="床号" prop="bedNumb"> |
| | | <el-input v-model="occupationalForm.bedNumb" /> |
| | | </el-form-item> |
| | | <el-form-item label="递交资料时间"> |
| | | <el-form-item label="递交资料时间" prop="submitTime"> |
| | | <el-date-picker |
| | | v-model="occupationalForm.submitTime" |
| | | value-format="yyyy-MM-dd" |
| | |
| | | placeholder="选择递交资料时间" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="人事处理时间"> |
| | | <el-form-item label="人事处理时间" prop="hrDoDate"> |
| | | <el-date-picker |
| | | v-model="occupationalForm.hrDoDate" |
| | | value-format="yyyy-MM-dd" |
| | |
| | | <el-form-item label="医疗总费用" prop="expensesFee"> |
| | | <el-input v-model="occupationalForm.expensesFee" /> |
| | | </el-form-item> |
| | | <el-form-item label="一次性伤残补助金"> |
| | | <el-form-item label="一次性伤残补助金" prop="socialDisability"> |
| | | <el-input v-model="occupationalForm.socialDisability" /> |
| | | </el-form-item> |
| | | <el-form-item label="一次性医疗补助金"> |
| | | <el-form-item label="一次性医疗补助金" prop="socialSubsidy"> |
| | | <el-input v-model="occupationalForm.socialSubsidy" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putOccupational()">保 存</el-button> |
| | | <el-button type="primary" @click="putOccupationalContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putOccupational('occupationalForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putOccupationalContinue('occupationalForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="劳资案件" :visible.sync="dialogshowArr[11].show" width="50%"> |
| | | <el-form :model="laborTroubleForm" :rules="rules" label-position="right" label-width="140px"> |
| | | <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"> |
| | |
| | | placeholder="选择仲裁日期" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="汇报人"> |
| | | <el-form-item label="汇报人" prop="reporter"> |
| | | <el-input v-model="laborTroubleForm.reporter" /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="arbitrationStatus"> |
| | |
| | | <el-form-item label="岗位" prop="jobName"> |
| | | <el-input v-model="laborTroubleForm.jobName" /> |
| | | </el-form-item> |
| | | <el-form-item label="仲裁类型"> |
| | | <el-input v-model="laborTroubleForm.arbitrationType" /> |
| | | <el-form-item label="仲裁类型" prop="arbitrationType"> |
| | | <el-select v-model="laborTroubleForm.arbitrationType" placeholder="请选择仲裁类型"> |
| | | <el-option label="劳资纠纷" value="01" /> |
| | | <el-option label="民事纠纷" value="02" /> |
| | | <el-option label="合同纠纷" value="03" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="仲裁赔付(元)"> |
| | | <el-input v-model="laborTroubleForm.arbitrationPay" /> |
| | | <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="案结日期"> |
| | | <el-form-item label="案结日期" prop="settleDate"> |
| | | <el-date-picker |
| | | v-model="laborTroubleForm.settleDate" |
| | | value-format="yyyy-MM-dd" |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <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()">保 存</el-button> |
| | | <el-button type="primary" @click="putLaborTroubleContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putLaborTrouble('laborTroubleForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putLaborTroubleContinue('laborTroubleForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="不良记录" :visible.sync="dialogshowArr[12].show" width="50%"> |
| | | <el-form :model="badRecordForm" :rules="rules" label-position="right" label-width="140px"> |
| | | <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-form-item label="岗位" prop="jobName"> |
| | | <el-input v-model="badRecordForm.jobName" /> |
| | | </el-form-item> |
| | | <el-form-item label="汇报人"> |
| | | <el-form-item label="汇报人" prop="reporter"> |
| | | <el-input v-model="badRecordForm.reporter" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="putBadRecord()">保 存</el-button> |
| | | <el-button type="primary" @click="putBadRecordContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putBadRecord('badRecordForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putBadRecordContinue('badRecordForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="备注信息" :visible.sync="dialogshowArr[13].show" width="50%"> |
| | | <el-form ref="remarkInfoForm" :model="remarkInfoForm" :rules="rules" label-position="right" label-width="140px"> |
| | | <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-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="选择员工" :visible.sync="dialogShowXzyg" width="90%"> |
| | | <el-dialog title="选择员工" :visible.sync="dialogShowXzyg"> |
| | | <Selectuser @selectedUser="selectedUser" @cancleChooseUser="cancleChooseUser" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { toCardGetUserInfo } from '@/utils/myUtil' |
| | | import { calculateSeniority, toCardGetUserInfo, dateDifference } from '@/utils/myUtil' |
| | | import Treeselect from '@riophae/vue-treeselect' |
| | | import '@riophae/vue-treeselect/dist/vue-treeselect.css' |
| | | import Pagination from '@/components/Pagination' |
| | |
| | | tableDataName: '', |
| | | inputForName: '', |
| | | rules: { |
| | | archivesNumb: [{ required: true, message: '请输入档案号', trigger: 'blur' }], |
| | | archivesNumb: [{ required: true, message: '请输入档案号', trigger: 'blur' }, { |
| | | max: 20, |
| | | message: this.$t('rules.noMoreThan20'), |
| | | trigger: 'blur' |
| | | }], |
| | | empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' }, |
| | | { min: 2, max: 50, message: '长度在 2 到 50 个字符', trigger: 'blur' }], |
| | | { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }], |
| | | empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' }, |
| | | { min: 2, max: 50, message: '长度在 2 到 50 个字符', trigger: 'blur' }], |
| | | { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }], |
| | | deptName: [ |
| | | { required: true, message: '请选择护卫点', trigger: 'input' } |
| | | ], |
| | | certificateNumb: [{ required: true, message: '请输入身份证号', trigger: 'blur' }], |
| | | jobName: [{ required: true, message: '请选择岗位', trigger: 'change' }], |
| | | nativePlaceName: [{ required: true, message: '请选择籍贯', trigger: 'change' }], |
| | | bankName: [{ required: true, message: '请输入银行名称', trigger: 'blur' }], |
| | | bankName: [{ required: true, message: '请输入银行名称', trigger: 'blur' }, { max: 36, message: '长度不超过36个字符', trigger: 'blur' }], |
| | | insuranceType: [{ required: true, message: '请选择保险类型', trigger: 'change' }], |
| | | entryDate: [{ required: true, message: '请选择入职日期', trigger: 'change' }], |
| | | seniority: [{ required: true, message: '请输入入司工龄', trigger: 'blur' }], |
| | | archivesStatus: [{ required: true, message: '请选择档案情况', trigger: 'change' }], |
| | | bankNumb: [{ required: true, message: '请输入银行账号', trigger: 'blur' }], |
| | | bankNumb: [{ required: true, message: '请输入银行账号', trigger: 'blur' }, { max: 32, message: '长度不超过32个字符', trigger: 'blur' }], |
| | | empType: [{ required: true, message: '请选择员工类型', trigger: 'change' }], |
| | | workUnit: [{ required: true, message: '请输入工作单位', trigger: 'blur' }], |
| | | beginDate: [{ required: true, message: '请选择开始日期', trigger: 'change' }], |
| | | endDate: [{ required: true, message: '请选择结束日期', trigger: 'change' }], |
| | | hospital: [{ required: true, message: '请输入体检医院', trigger: 'blur' }], |
| | | censusAddress: [{ max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | currentAddress: [{ max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | guardNumb: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | telePhone: [{ max: 30, message: '长度不超过30个字符', trigger: 'blur' }], |
| | | returnReceipt: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | introducer: [{ max: 32, message: '长度不超过32个字符', trigger: 'blur' }], |
| | | socialNumb: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | family: [{ max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | certificateValidity: [{ required: true, message: '请选择身份证有效期', trigger: 'change' }], |
| | | urgencyPhone: [{ max: 30, message: '长度不超过30个字符', trigger: 'blur' }] |
| | | }, |
| | | workExperienceRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | workUnit: [{ required: true, message: '请输入工作单位', trigger: 'blur' }, { max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | beginDate: [{ required: true, validator: this.startDate }], |
| | | endDate: [{ required: true, validator: this.endDate }], |
| | | jobContent: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | physicalExamRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | physicalExamDate: [{ required: true, message: '请选择体检日期', trigger: 'change' }], |
| | | conclusion: [{ required: true, message: '请输入体检结论', trigger: 'blur' }], |
| | | hospital: [{ required: true, message: '请输入体检医院', trigger: 'blur' }, { max: 64, message: '长度不超过64个字符', trigger: 'blur' }], |
| | | physicalExamType: [{ required: true, message: '请选择体检类型', trigger: 'change' }], |
| | | bloodPressure: [{ required: true, message: '请输入血压', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | transaminase: [{ required: true, message: '请输入转氨酶', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | ecg: [{ required: true, message: '请选择心电图', trigger: 'change' }, { max: 16, message: '长度不超过16个字符', trigger: 'blur' }], |
| | | conclusion: [{ required: true, message: '请输入体检结论', trigger: 'blur' }, { max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | reviewRecord: [{ max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | contractInfoRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | signingDate: [{ required: true, message: '请选择合同签订日期', trigger: 'change' }], |
| | | 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' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | dimissionAttendRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | attendMonth: [{ required: true, message: '请选择出勤月份', trigger: 'change' }], |
| | | deduct: [{ required: true, message: '请输入代扣填款项', trigger: 'blur' }], |
| | | attendDays: [{ required: true, message: '请输入出勤天数', trigger: 'blur' }], |
| | | beginTime: [{ required: true, message: '请选择请假开始时间', trigger: 'change' }], |
| | | attendDays: [{ required: true, message: '请输入出勤天数', trigger: 'blur' }] |
| | | }, |
| | | leaveInfoRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | beginTime: [{ required: true, validator: this.startDate }], |
| | | leaveType: [{ required: true, message: '请选择请假类型', trigger: 'change' }], |
| | | endTime: [{ required: true, validator: this.endDate }], |
| | | returnDate: [{ required: true, message: '请选择到岗时间', trigger: 'change' }], |
| | | reporter: [{ required: true, message: '请输入报备人', trigger: 'blur' }], |
| | | endTime: [{ required: true, message: '请选择请假结束时间', trigger: 'change' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | resignRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | applayDate: [{ required: true, message: '请选择申请日期', trigger: 'change' }], |
| | | reason: [{ required: true, message: '请输入辞职事由', trigger: 'blur' }], |
| | | applayReason: [{ required: true, message: '请输入申报事由', trigger: 'blur' }], |
| | | reason: [{ required: true, message: '请输入事由', trigger: 'blur' }, { max: 256, message: '长度不超过256个字符', trigger: 'blur' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }], |
| | | reporter: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }] |
| | | }, |
| | | unemploymentRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | applayDate: [{ required: true, message: '请选择申请日期', trigger: 'change' }], |
| | | applayReason: [{ required: true, message: '请输入申报事由', trigger: 'blur' }, { max: 128, message: '长度不超过128个字符', trigger: 'blur' }], |
| | | reporter: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | auditor: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | insuranceRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | applayDate: [{ required: true, message: '请选择申请日期', trigger: 'change' }], |
| | | proposer: [{ required: true, message: '请输入申请人', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | insuranceGaers: [{ required: true, message: '请选择社保档位', trigger: 'change' }], |
| | | applayStatus: [{ required: true, message: '请选择申请状态', trigger: 'change' }], |
| | | proposer: [{ required: true, message: '请输入申请人', trigger: 'blur' }], |
| | | auditor: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }], |
| | | applayStatus: [{ required: true, message: '请选择申请状态', trigger: 'change' }] |
| | | }, |
| | | accidentCasesRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | injuredTime: [{ required: true, message: '请选择受伤时间', trigger: 'blur' }], |
| | | injuredPart: [{ required: true, message: '请输入受伤部位', trigger: 'blur' }], |
| | | injuredDescribe: [{ required: true, message: '请输入受伤经过描述', trigger: 'blur' }], |
| | | hospitalName: [{ required: true, message: '请输入就诊医院', trigger: 'blur' }], |
| | | injuredPart: [{ required: true, message: '请输入受伤部位', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | injuredAddress: [{ required: true, message: '请输入受伤地点', trigger: 'blur' }, { max: 64, message: '长度不超过64个字符', trigger: 'blur' }], |
| | | injuredDescribe: [{ required: true, message: '请输入受伤经过描述', trigger: 'blur' }, { max: 512, message: '长度不超过512个字符', trigger: 'blur' }], |
| | | hospitalName: [{ required: true, message: '请输入就诊医院', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | hospitalizatioFlag: [{ required: true, message: '请选择是否住院', trigger: 'blur' }], |
| | | innsureFee: [{ required: true, message: '请输入保险赔付费用', trigger: 'blur' }], |
| | | expensesFee: [{ required: true, message: '请输入医疗总费用', trigger: 'blur' }], |
| | | settleDate: [{ required: true, message: '请选择案结时间', trigger: 'change' }], |
| | | injuredDiacrisis: [{ max: 256, message: '长度不超过256个字符', trigger: 'blur' }], |
| | | sbumitBy: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | expenseReport: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | occupationalRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | injuredTime: [{ required: true, message: '请选择受伤时间', trigger: 'blur' }], |
| | | injuredPart: [{ required: true, message: '请输入受伤部位', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | injuredDescribe: [{ required: true, message: '请输入受伤经过描述', trigger: 'blur' }, { max: 512, message: '长度不超过512个字符', trigger: 'blur' }], |
| | | hospitalName: [{ required: true, message: '请输入就诊医院', trigger: 'blur' }, { max: 40, message: '长度不超过40个字符', trigger: 'blur' }], |
| | | hospitalizatioFlag: [{ required: true, message: '请选择是否住院', trigger: 'blur' }], |
| | | innsureFee: [{ required: true, message: '请输入保险赔付费用', trigger: 'blur' }], |
| | | settleDate: [{ required: true, message: '请选择案结时间', trigger: 'change' }], |
| | |
| | | settleStatus: [{ required: true, message: '请选择结案状态', trigger: 'change' }], |
| | | injuredAddress: [{ required: true, message: '请输入受伤地点', trigger: 'blur' }], |
| | | compensated: [{ required: true, message: '请输入已赔付医药费用', trigger: 'blur' }], |
| | | companyCompensation: [{ required: true, message: '请输入公司赔偿总费用', trigger: 'blur' }], |
| | | companyCompensation: [{ required: true, message: '请输入公司赔偿总费用', trigger: 'blur' }] |
| | | }, |
| | | laborTroubleRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | arbitrationType: [{ required: true, message: '请选择仲裁类型', trigger: 'change' }], |
| | | arbitrationDate: [{ required: true, message: '请选择仲裁日期', trigger: 'change' }], |
| | | arbitrationReason: [{ required: true, message: '请输入仲裁事由', trigger: 'blur' }], |
| | | arbitrationReason: [{ required: true, message: '请输入仲裁事由', trigger: 'blur' }, { max: 1024, message: '长度不超过1024个字符', trigger: 'blur' }], |
| | | arbitrationStatus: [{ required: true, message: '请选择结案状态', trigger: 'change' }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }], |
| | | reporter: [{ max: 40, message: '长度不超过40个字符', trigger: 'blur' }] |
| | | }, |
| | | badRecordRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | badDate: [{ required: true, message: '请选择不良记录日期', trigger: 'change' }], |
| | | badContent: [{ required: true, message: '请输入不良记录描述', trigger: 'blur' }], |
| | | badContent: [{ required: true, message: '请输入不良记录描述', trigger: 'blur' }, { |
| | | max: 512, |
| | | message: '长度不超过512个字符', |
| | | trigger: 'blur' |
| | | }], |
| | | reporter: [{ |
| | | max: 50, |
| | | message: '长度不超过50个字符', |
| | | trigger: 'blur' |
| | | }], |
| | | remark: [{ max: 512, message: '长度不超过512个字符', trigger: 'blur' }] |
| | | }, |
| | | remarkInfoRules: { |
| | | empName: [{ required: true, message: '请选择员工', trigger: 'change' }], |
| | | remarkDate: [{ required: true, message: '请选择备注日期', trigger: 'change' }], |
| | | remarkContent: [{ required: true, message: '请输入备注内容', trigger: 'blur' }] |
| | | remarkContent: [{ required: true, message: '请输入备注内容', trigger: 'blur' }, |
| | | { max: 512, message: this.$t('rules.noMoreThan512'), trigger: 'blur' }] |
| | | }, |
| | | restaurants: [{ value: '北京市', code: '110000' }, |
| | | { value: '天津市', code: '120000' }, |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | laborTroubleForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | }, |
| | | occupationalForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | }, |
| | | accidentCasesForm: { |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | insuranceForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | }, |
| | | unemploymentForm: { |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | resignForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | }, |
| | | leaveInfoForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | }, |
| | | contractInfoForm: { |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | dimissionAttendForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | }, |
| | | physicalExamForm: { |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | workExperienceForm: { |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | empBaseInfoForm: { |
| | |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: '', |
| | | empStatus: 0, |
| | | version: '' |
| | | }, |
| | | badRecordForm: { |
| | |
| | | modifier: '', |
| | | delFlag: '', |
| | | version: '', |
| | | empStatus: 0, |
| | | remark: '' |
| | | } |
| | | } |
| | |
| | | } |
| | | break |
| | | } |
| | | }, |
| | | startDate(rule, value, callback) { |
| | | if (!value) { |
| | | callback(new Error('开始日期不能为空!')) |
| | | } else { |
| | | switch (this.thisShowIndex) { |
| | | case 1: |
| | | // 如果结束日期没选,cb |
| | | if (!this.workExperienceForm.endDate) { |
| | | callback() |
| | | } else { |
| | | // 结束日期有,进行判断 |
| | | if (this.compareDate(value, this.workExperienceForm.endDate)) { |
| | | // 如果起始在结束之前 |
| | | callback() |
| | | } else { |
| | | callback(new Error('开始日期不能在结束日期之后,请重新选择')) |
| | | } |
| | | } |
| | | break |
| | | case 5: |
| | | // 如果结束日期没选,cb |
| | | if (!this.leaveInfoForm.endTime) { |
| | | callback() |
| | | } else { |
| | | // 结束日期有,进行判断 |
| | | if (this.compareDate(value, this.leaveInfoForm.endTime)) { |
| | | // 如果起始在结束之前 |
| | | callback() |
| | | } else { |
| | | callback(new Error('开始时间不能在结束时间之后,请重新选择')) |
| | | } |
| | | } |
| | | break |
| | | } |
| | | } |
| | | }, |
| | | endDate(rule, value, callback) { |
| | | if (!value) { |
| | | callback(new Error('结束日期不能为空!')) |
| | | } else { |
| | | switch (this.thisShowIndex) { |
| | | case 1: |
| | | // 如果起始日期没选,cb |
| | | if (!this.workExperienceForm.beginDate) { |
| | | callback() |
| | | } else { |
| | | // 起始日期有,进行判断 |
| | | if (this.compareDate(this.workExperienceForm.beginDate, value)) { |
| | | // 如果起始在结束之前 |
| | | this.leaveInfoForm.leaveDay = dateDifference(this.leaveInfoForm.beginTime, this.leaveInfoForm.endTime, 'd') |
| | | callback() |
| | | } else { |
| | | callback(new Error('结束日期不能在开始始日期之前,请重新选择')) |
| | | } |
| | | } |
| | | break |
| | | case 5: |
| | | // 如果起始日期没选,cb |
| | | if (!this.leaveInfoForm.beginTime) { |
| | | callback() |
| | | } else { |
| | | // 起始日期有,进行判断 |
| | | if (this.compareDate(this.leaveInfoForm.beginTime, value)) { |
| | | // 如果起始在结束之前 |
| | | this.leaveInfoForm.leaveDay = dateDifference(this.leaveInfoForm.beginTime, this.leaveInfoForm.endTime, 'd') |
| | | callback() |
| | | } else { |
| | | callback(new Error('结束日期不能在开始始日期之前,请重新选择')) |
| | | } |
| | | } |
| | | break |
| | | } |
| | | } |
| | | }, |
| | | compareDate(start, end) { |
| | | return new Date(end).getTime() > new Date(start).getTime() |
| | | }, |
| | | deleteFrom() { |
| | | this.butDelete() |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putWorkExperience() { |
| | | 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.selectWorkExperience() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empWorkExperience', { ...this.workExperienceForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanWorkExperience() |
| | | this.selectWorkExperience() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | 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.selectWorkExperience() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empWorkExperience', { ...this.workExperienceForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanWorkExperience() |
| | | this.selectWorkExperience() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putWorkExperienceContinue() { |
| | | 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.selectWorkExperience() |
| | | }) |
| | | } |
| | | putWorkExperienceContinue(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.selectWorkExperience() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanWorkExperience() { |
| | | this.workExperienceForm.workUnit = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putPhysicalExam() { |
| | | 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.selectPhysicalExam() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empPhysicalExam', { ...this.physicalExamForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanPhysicalExam() |
| | | this.selectPhysicalExam() |
| | | }) |
| | | } |
| | | 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.selectPhysicalExam() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empPhysicalExam', { ...this.physicalExamForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanPhysicalExam() |
| | | this.selectPhysicalExam() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putPhysicalExamContinue() { |
| | | 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.selectPhysicalExam() |
| | | }) |
| | | } |
| | | putPhysicalExamContinue(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.selectPhysicalExam() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanPhysicalExam() { |
| | | this.physicalExamForm.hospital = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putContractInfo() { |
| | | 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.selectContractInfo() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empContractInfo', { ...this.contractInfoForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanContractInfo() |
| | | this.selectContractInfo() |
| | | }) |
| | | } |
| | | 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.selectContractInfo() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empContractInfo', { ...this.contractInfoForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanContractInfo() |
| | | this.selectContractInfo() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putContractInfoContinue() { |
| | | 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.selectContractInfo() |
| | | }) |
| | | } |
| | | putContractInfoContinue(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.selectContractInfo() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanContractInfo() { |
| | | this.contractInfoForm.contractId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putDimissionAttend() { |
| | | 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.selectDimissionAttend() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empDimissionAttend', { ...this.dimissionAttendForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanDimissionAttend() |
| | | this.selectDimissionAttend() |
| | | }) |
| | | } |
| | | 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.selectDimissionAttend() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empDimissionAttend', { ...this.dimissionAttendForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanDimissionAttend() |
| | | this.selectDimissionAttend() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putDimissionAttendContinue() { |
| | | 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.selectDimissionAttend() |
| | | }) |
| | | } |
| | | putDimissionAttendContinue(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.selectDimissionAttend() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanDimissionAttend() { |
| | | this.dimissionAttendForm.dimissionAttendId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putLeaveInfo() { |
| | | 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.selectLeaveInfo() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empLeaveInfo', { ...this.leaveInfoForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanLeaveInfo() |
| | | this.selectLeaveInfo() |
| | | }) |
| | | } |
| | | 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.selectLeaveInfo() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empLeaveInfo', { ...this.leaveInfoForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanLeaveInfo() |
| | | this.selectLeaveInfo() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putLeaveInfoContinue() { |
| | | 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.selectLeaveInfo() |
| | | }) |
| | | } |
| | | putLeaveInfoContinue(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.selectLeaveInfo() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanLeaveInfo() { |
| | | this.leaveInfoForm.leaveId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putResign() { |
| | | 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.selectResign() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empResign', { ...this.resignForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanResign() |
| | | this.selectResign() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | 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.selectResign() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empResign', { ...this.resignForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanResign() |
| | | this.selectResign() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putResignContinue() { |
| | | 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.selectResign() |
| | | }) |
| | | } |
| | | putResignContinue(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.selectResign() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanResign() { |
| | | this.resignForm.resignId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putUnemployment() { |
| | | 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.selectUnemployment() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empUnemployment', { ...this.unemploymentForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanUnemployment() |
| | | this.selectUnemployment() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | 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.selectUnemployment() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empUnemployment', { ...this.unemploymentForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanUnemployment() |
| | | this.selectUnemployment() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putUnemploymentContinue() { |
| | | 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.selectUnemployment() |
| | | }) |
| | | } |
| | | putUnemploymentContinue(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.selectUnemployment() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanUnemployment() { |
| | | this.unemploymentForm.unemploymentId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putInsurance() { |
| | | 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.selectInsurance() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empInsurance', { ...this.insuranceForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanInsurance() |
| | | this.selectInsurance() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | 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.selectInsurance() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empInsurance', { ...this.insuranceForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanInsurance() |
| | | this.selectInsurance() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putInsuranceContinue() { |
| | | 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.selectInsurance() |
| | | }) |
| | | } |
| | | putInsuranceContinue(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.selectInsurance() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanInsurance() { |
| | | this.insuranceForm.insuranceId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putAccidentCases() { |
| | | 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.selectAccidentCases() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empAccidentCases', { ...this.accidentCasesForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanAccidentCases() |
| | | this.selectAccidentCases() |
| | | }) |
| | | } |
| | | 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.selectAccidentCases() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empAccidentCases', { ...this.accidentCasesForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanAccidentCases() |
| | | this.selectAccidentCases() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putAccidentCasesContinue() { |
| | | 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.selectAccidentCases() |
| | | }) |
| | | } |
| | | putAccidentCasesContinue(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.selectAccidentCases() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanAccidentCases() { |
| | | this.accidentCasesForm.accidentId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putOccupational() { |
| | | 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.selectOccupational() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empOccupational', { ...this.occupationalForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanOccupational() |
| | | this.selectOccupational() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | 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.selectOccupational() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empOccupational', { ...this.occupationalForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanOccupational() |
| | | this.selectOccupational() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putOccupationalContinue() { |
| | | 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.selectOccupational() |
| | | }) |
| | | } |
| | | putOccupationalContinue(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.selectOccupational() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanOccupational() { |
| | | this.occupationalForm.occupationalId = '' |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putLaborTrouble() { |
| | | 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.selectLaborTrouble() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empLaborTrouble', { ...this.laborTroubleForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanLaborTrouble() |
| | | this.selectLaborTrouble() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | arbitrationPayChange(e) { |
| | | this.laborTroubleForm.arbitrationPay = e.target.value |
| | | }, |
| | | putLaborTroubleContinue() { |
| | | 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.selectLaborTrouble() |
| | | }) |
| | | } |
| | | 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.selectLaborTrouble() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empLaborTrouble', { ...this.laborTroubleForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanLaborTrouble() |
| | | this.selectLaborTrouble() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putLaborTroubleContinue(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.selectLaborTrouble() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanLaborTrouble() { |
| | | this.laborTroubleForm.arbitrationId = '' |
| | |
| | | this.badRecordForm.version = '' |
| | | this.badRecordForm.remark = '' |
| | | }, |
| | | putBadRecord() { |
| | | 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.selectBadRecord() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empBadRecord', { ...this.badRecordForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanBadRecord() |
| | | this.selectBadRecord() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | 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.selectBadRecord() |
| | | }) |
| | | } else { |
| | | this.$put('hr/empBadRecord', { ...this.badRecordForm }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanBadRecord() |
| | | this.selectBadRecord() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putBadRecordContinue() { |
| | | 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.selectBadRecord() |
| | | }) |
| | | } |
| | | putBadRecordContinue(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.selectBadRecord() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | editBadRecord(row) { |
| | | this.isAdd = false |
| | |
| | | this.empBaseInfoForm.sex = userinfo.sex |
| | | break |
| | | } |
| | | }, |
| | | calculateSeniority(val) { |
| | | this.empBaseInfoForm.seniority = calculateSeniority(val) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss"> |
| | | <style lang="scss" scoped> |
| | | .el-container { |
| | | height: 770px; |
| | | |
| | |
| | | margin-top: 2%; |
| | | } |
| | | |
| | | .el-select { |
| | | width: 100%; |
| | | } |
| | | |
| | | .commonBtn { |
| | | background-color: rgb(163, 44, 48); |
| | | color: white; |
| | |
| | | color: rgb(163, 44, 48); |
| | | } |
| | | |
| | | .el-date-editor.el-input, |
| | | .el-date-editor.el-input__inner { |
| | | width: 100%; |
| | | } |
| | | |
| | | .info-card { |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | .el-header, |
| | | .el-footer { |
| | | .el-select { |
| | | width: 100%; |
| | | } |
| | | |
| | | .el-autocomplete { |
| | | width: 100%; |
| | | } |
| | | |
| | | .el-header, .el-footer { |
| | | background-color: #e9eef3; |
| | | color: #333; |
| | | text-align: center; |
| | | line-height: 60px; |
| | | } |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .el-autocomplete { |
| | | |
| | | .el-date-editor.el-input, |
| | | .el-date-editor.el-input__inner { |
| | | width: 100%; |
| | | } |
| | | </style> |