| | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="备注信息" :visible.sync="dialogshowArr[13].show" width="50%"> |
| | | <el-form :model="remarkInfoForm" :rules="rules" label-position="right" label-width="140px"> |
| | | <el-form ref="remarkInfoForm" :model="remarkInfoForm" :rules="rules" label-position="right" label-width="140px"> |
| | | <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="putRemarkInfo()">保 存</el-button> |
| | | <el-button type="primary" @click="putRemarkInfoContinue()">保存并继续新增</el-button> |
| | | <el-button type="primary" @click="putRemarkInfo('remarkInfoForm')">保 存</el-button> |
| | | <el-button type="primary" @click="putRemarkInfoContinue('remarkInfoForm')">保存并继续新增</el-button> |
| | | <el-button @click="dialogIsShow()">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | this.queryParams.delFlag = 2 |
| | | this.search() |
| | | }, |
| | | putRemarkInfo() { |
| | | putRemarkInfo(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | if (this.isAdd) { |
| | | this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => { |
| | | this.buttonLoading = false |
| | |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | } |
| | | }) |
| | | }, |
| | | putRemarkInfoContinue() { |
| | | putRemarkInfoContinue(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | if (this.isAdd) { |
| | | this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => { |
| | | this.buttonLoading = false |
| | |
| | | this.selectRemarkInfo() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | cleanRemarkInfo() { |
| | | this.remarkInfoForm.remarkId = '' |
| | |
| | | this.inputForName = 'remarkInfoForm' |
| | | break |
| | | } |
| | | console.log(this[this.inputForName]) |
| | | this[this.inputForName].empId = data.empId |
| | | this[this.inputForName].empName = data.empName |
| | | this[this.inputForName].empNumb = data.empNumb |
| | | this[this.inputForName].certificateNumb = data.certificateNumb |
| | | this[this.inputForName].deptId = data.deptId |
| | | this[this.inputForName].deptName = data.deptName |
| | | this[this.inputForName].JobId = data.jobId |
| | | this[this.inputForName].jobName = data.jobName |
| | | this[this.inputForName].sex = data.sex === '0' ? '男' : '女' |
| | | } |
| | |
| | | this.empBaseInfoForm.age = userinfo.age |
| | | this.empBaseInfoForm.birthdate = userinfo.birth |
| | | this.empBaseInfoForm.sex = userinfo.sex |
| | | break |
| | | case 1: |
| | | this.workExperienceForm.age = userinfo.age |
| | | this.workExperienceForm.birthdate = userinfo.birth |
| | | this.workExperienceForm.sex = userinfo.sex |
| | | break |
| | | case 2: |
| | | this.physicalExamForm.age = userinfo.age |
| | | this.physicalExamForm.birthdate = userinfo.birth |
| | | this.physicalExamForm.sex = userinfo.sex |
| | | break |
| | | } |
| | | } |