| | |
| | | </el-aside> |
| | | <el-main> |
| | | <el-row> |
| | | <el-col span="24"> <el-button type="success" @click.native="dialogIsShow()">新增</el-button> |
| | | <el-button type="info">删除</el-button><el-button type="primary">导入员工信息</el-button></el-col> |
| | | <el-col :span="24"> |
| | | <el-button type="success" @click.native="dialogIsShow()">新增</el-button> |
| | | <el-button type="info" @click.native="butDelete()">删除</el-button> |
| | | <el-button type="primary">导入员工信息</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-table |
| | | v-show="showArr[0].show" |
| | |
| | | <el-table-column prop="prop17" label="档案编号" width="180" /> |
| | | <el-table-column prop="prop18" label="档案情况" width="180" /> |
| | | <el-row> |
| | | <el-col span="24" class="button-from"> <el-button type="info">提交</el-button> |
| | | <el-col :span="24" class="button-from"> <el-button type="info">提交</el-button> |
| | | <el-button type="warning">暂存</el-button> |
| | | <el-button type="danger">取消</el-button> </el-col> |
| | | </el-row> |
| | |
| | | <el-table-column prop="prop13" label="案结日期" width="180" /> |
| | | </el-table> |
| | | |
| | | <el-table v-show="showArr[12].show" :data="badRecordData" style="width: 100%"> |
| | | <el-table v-show="showArr[12].show" ref="badRecordTable" :data="badRecordData" style="width: 100%"> |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | fixed="left" |
| | | label="操作" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> <el-col span="24"> <el-form-item label="相关证件" prop="region"> |
| | | <el-row> <el-col :span="24"> <el-form-item label="相关证件" prop="region"> |
| | | <el-select v-model="baseicInformationForm.name" placeholder="请选择相关证件"> |
| | | <el-option label="高中毕业证" value="1" /> |
| | | <el-option label="专科毕业证" value="2" /> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> <el-col span="24"> |
| | | <el-row> <el-col :span="24"> |
| | | <el-form-item label="工作单位"> |
| | | <el-input v-model="jobContentForm.name" /> |
| | | </el-form-item> |
| | | </el-col></el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="主要工作内容"> |
| | | <el-input v-model="jobContentForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> <el-col span="24"> |
| | | <el-row> <el-col :span="24"> |
| | | <el-form-item label="体检结论"> |
| | | <el-input v-model="physicalForm.name" /> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | </el-col></el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="physicalForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="contractData.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="attendanceForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="leaveForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row><el-col span="24"> |
| | | <el-row><el-col :span="24"> |
| | | <el-form-item label="辞职事由"> |
| | | <el-input v-model="resignForm.name" /> |
| | | </el-form-item> |
| | | </el-col> </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="resignForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="unemploymentForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="socialSecurityForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="受伤经过描述"> |
| | | <el-input v-model="socialSecurityForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="受伤经过描述"> |
| | | <el-input v-model="socialSecurityForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="socialSecurityForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-form-item></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="仲裁事由"> |
| | | <el-input v-model="socialSecurityForm.name" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="socialSecurityForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | <el-date-picker |
| | | v-model="badRecordFrom.badDate" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="选择不良记录日期" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="badRecordFrom.name" /> |
| | | </el-form-item> |
| | | <el-form-item label="汇报人"> |
| | | <el-input v-model="badRecordFrom.name" /> |
| | | <el-input v-model="badRecordFrom.reporter" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="不良记录描述"> |
| | | <el-input v-model="badRecordFrom.name" /> |
| | | <el-input v-model="badRecordFrom.badContent" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="badRecordFrom.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="socialSecurityForm.name" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | dialogshowArr: [{ show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }], |
| | | // eslint-disable-next-line no-undef |
| | | showArr: [{ show: true }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }, { show: false }], |
| | | isAdd: false, |
| | | physicalData: [{ |
| | | name: '王小虎', |
| | | userNumb: '12321222', |
| | |
| | | archives: '' |
| | | }, |
| | | badRecordFrom: { |
| | | badId: 0, |
| | | empId: 0, |
| | | badId: '', |
| | | empId: '', |
| | | badDate: '', |
| | | reporter: '', |
| | | badContent: '', |
| | | createTime: '', |
| | | creator: '', |
| | | modifyTime: '', |
| | | modifier: '', |
| | | delFlag: 0, |
| | | version: 0, |
| | | remark: '' |
| | | } |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | dialogIsShow() { |
| | | this.isAdd = true |
| | | this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex].show |
| | | }, |
| | | isShow(tableShow, index) { |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | cleanBadRecord() { |
| | | this.badRecordFrom.badId = '' |
| | | this.badRecordFrom.empId = '' |
| | | this.badRecordFrom.badDate = '' |
| | | this.badRecordFrom.reporter = '' |
| | | this.badRecordFrom.badContent = '' |
| | | this.badRecordFrom.creator = '' |
| | | this.badRecordFrom.remark = '' |
| | | }, |
| | | putBadRecord() { |
| | | this.$put('hr/empBadRecord', { ...this.badRecordFrom }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | if (this.isAdd) { |
| | | this.$post('hr/empBadRecord', { ...this.badRecordFrom }).then(() => { |
| | | this.buttonLoading = false |
| | | this.$message({ |
| | | message: this.$t('tips.createSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.cleanBadRecord() |
| | | this.getBadRecord() |
| | | }) |
| | | this.$emit('success') |
| | | }) |
| | | } else { |
| | | this.$put('hr/empBadRecord', { ...this.badRecordFrom }).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.updateSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.$emit('success') |
| | | this.cleanBadRecord() |
| | | this.getBadRecord() |
| | | }) |
| | | } |
| | | this.dialogIsShow() |
| | | }, |
| | | badRecordEdit(row) { |
| | | this.badRecordFrom = row |
| | | this.isAdd = false |
| | | this.badRecordFrom.badId = row.badId |
| | | this.badRecordFrom.empId = row.empId |
| | | this.badRecordFrom.badDate = row.badDate |
| | | this.badRecordFrom.reporter = row.reporter |
| | | this.badRecordFrom.badContent = row.badContent |
| | | this.badRecordFrom.creator = row.creator |
| | | this.badRecordFrom.remark = row.remark |
| | | this.dialogshowArr[12].show = true |
| | | }, |
| | | butDelete() { |
| | | if (this.thisShowIndex === 12) { |
| | | var selected = this.$refs.badRecordTable.selection |
| | | if (selected.length > 0) { |
| | | const badIds = [] |
| | | selected.forEach((j) => { |
| | | badIds.push(j.badId) |
| | | }) |
| | | this.$delete(`hr/empBadRecord/` + badIds).then(() => { |
| | | this.$message({ |
| | | message: this.$t('tips.deleteSuccess'), |
| | | type: 'success' |
| | | }) |
| | | this.getBadRecord() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |