|
@@ -382,7 +382,7 @@
|
|
|
<el-form-item label="民族" prop="ethnic"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.ethnic" placeholder="请选择民族" style="width:100%;">
|
|
|
+ <el-select v-model="inputForm.ethnic" filterable placeholder="请选择民族" style="width:100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('ethnic')"
|
|
|
:key="item.value"
|
|
@@ -607,7 +607,7 @@
|
|
|
<el-form-item label="工资卡开户银行" :prop="'rosterBankCardsDTOList[' + index_bank + '].payrollCardOpenBank'"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.rosterBankCardsDTOList[index_bank].payrollCardOpenBank" placeholder="请选择工资卡开户银行" style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.rosterBankCardsDTOList[index_bank].payrollCardOpenBank" filterable placeholder="请选择工资卡开户银行" style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('bank_name')"
|
|
|
:key="item.value"
|
|
@@ -1005,7 +1005,7 @@
|
|
|
<el-form-item label="证书类型" :prop="'rosterCertificateDTOList[' + index_certificate + '].certType'"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.rosterCertificateDTOList[index_certificate].certType" placeholder="请选择证书类型" style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.rosterCertificateDTOList[index_certificate].certType" filterable placeholder="请选择证书类型" style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('cert_type')"
|
|
|
:key="item.value"
|
|
@@ -1127,8 +1127,9 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="证书类型" :prop="'certDTOList[' + index_certDto + '].type'"
|
|
|
:rules="[
|
|
|
+ {required: true, message: '证书类型不能为空', trigger: 'change'}
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.certDTOList[index_certDto].type" @change="changeType(index_certDto)" placeholder="请选择证书类型" style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.certDTOList[index_certDto].type" filterable @change="changeType(index_certDto)" placeholder="请选择证书类型" style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('sys_cert_type')"
|
|
|
:key="item.value"
|
|
@@ -1141,6 +1142,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="证书编号" :prop="'certDTOList[' + index_certDto + '].no'"
|
|
|
:rules="[
|
|
|
+ {required: true, message: '证书编号不能为空', trigger: 'change'}
|
|
|
]">
|
|
|
<el-input v-model="inputForm.certDTOList[index_certDto].no" placeholder="请填写证书编号" clearable></el-input>
|
|
|
</el-form-item>
|
|
@@ -1181,6 +1183,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="到期日期" :prop="'certDTOList[' + index_certDto + '].expireDate'"
|
|
|
:rules="[
|
|
|
+ {required: true, message: '到期日期不能为空', trigger: 'blur'}
|
|
|
]">
|
|
|
<el-date-picker
|
|
|
placement="bottom-start"
|
|
@@ -1318,7 +1321,7 @@
|
|
|
<el-form-item label="民族" prop="ethnic"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.ethnic" placeholder="请选择民族" style="width:100%;">
|
|
|
+ <el-select v-model="inputForm.ethnic" filterable placeholder="请选择民族" style="width:100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('ethnic')"
|
|
|
:key="item.value"
|
|
@@ -1846,6 +1849,8 @@
|
|
|
companyId: '',
|
|
|
manageOfficeIds: ''
|
|
|
}
|
|
|
+ this.keydiv1 = Math.random()
|
|
|
+ this.keydiv2 = Math.random()
|
|
|
this.visible = false
|
|
|
},
|
|
|
queryAllPosition () {
|
|
@@ -2161,85 +2166,87 @@
|
|
|
// 给所属公司一个默认值
|
|
|
if (this.commonJS.isNotEmpty(this.companyList)) {
|
|
|
if (this.commonJS.isNotEmpty(this.companyList[0])) {
|
|
|
- this.inputForm.companyId = this.companyList[0].id
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.companyId)) {
|
|
|
+ this.inputForm.companyId = this.companyList[0].id
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// 切换为游客
|
|
|
- if (event === '2') {
|
|
|
- this.inputForm = {
|
|
|
- id: this.inputForm.id,
|
|
|
- name: this.inputForm.name,
|
|
|
- certificatesType: this.inputForm.certificatesType,
|
|
|
- idCard: this.inputForm.idCard,
|
|
|
- certificatesFront: this.inputForm.certificatesFront,
|
|
|
- certificatesBack: this.inputForm.certificatesBack,
|
|
|
- mobile: this.inputForm.mobile,
|
|
|
- sex: this.inputForm.sex,
|
|
|
- ethnic: this.inputForm.ethnic,
|
|
|
- bloodType: this.inputForm.bloodType,
|
|
|
- qq: this.inputForm.qq,
|
|
|
- wechat: this.inputForm.wechat,
|
|
|
- email: this.inputForm.email,
|
|
|
- remarks: this.inputForm.remarks,
|
|
|
- certificatesFrontLsUrl: this.inputForm.certificatesFrontLsUrl,
|
|
|
- certificatesBackLsUrl: this.inputForm.certificatesBackLsUrl,
|
|
|
- officeId: '',
|
|
|
- jobPositionId: '',
|
|
|
- positionId: '',
|
|
|
- rankId: '',
|
|
|
- jobNo: '',
|
|
|
- contractType: '',
|
|
|
- workerType: '',
|
|
|
- onboardingDate: '',
|
|
|
- seniority: '',
|
|
|
- contractCompany: '',
|
|
|
- birthDate: '',
|
|
|
- workPlace: '',
|
|
|
- contactAddress: '',
|
|
|
- employmentSituation: '',
|
|
|
- workingHour: '',
|
|
|
- accountType: '',
|
|
|
- accountAddr: '',
|
|
|
- origin: '',
|
|
|
- liveAddr: '',
|
|
|
- highestEducation: '',
|
|
|
- politicalFace: '',
|
|
|
- maritalStatus: '',
|
|
|
- emergencyContactName: '',
|
|
|
- emergencyContactTel: '',
|
|
|
- spouseName: '',
|
|
|
- childName: '',
|
|
|
- rosterContractDTO: {
|
|
|
- baseId: '',
|
|
|
- beginDate: '',
|
|
|
- endDate: '',
|
|
|
- workEmail: '',
|
|
|
- workMobile: '',
|
|
|
- probationPeriodEndDate: '',
|
|
|
- probationPeriodMonth: ''
|
|
|
- },
|
|
|
- rosterBankCardsDTOList: [],
|
|
|
- rosterEducateDTOList: [],
|
|
|
- rosterWorkDTOList: [],
|
|
|
- rosterFamilyDTOList: [],
|
|
|
- rosterCertificateDTOList: [],
|
|
|
- rosterFilesDTOList: [],
|
|
|
- headshot: '',
|
|
|
- headshotLsUrl: '',
|
|
|
- rosterLeadershipDTO: {
|
|
|
- baseId: '',
|
|
|
- debriefType: '',
|
|
|
- supervisorId: ''
|
|
|
- },
|
|
|
- personType: '',
|
|
|
- certDTOList: [],
|
|
|
- postIdList: [],
|
|
|
- roleIdList: [],
|
|
|
- companyId: '',
|
|
|
- manageOfficeIds: ''
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (event === '2') {
|
|
|
+ // this.inputForm = {
|
|
|
+ // id: this.inputForm.id,
|
|
|
+ // name: this.inputForm.name,
|
|
|
+ // certificatesType: this.inputForm.certificatesType,
|
|
|
+ // idCard: this.inputForm.idCard,
|
|
|
+ // certificatesFront: this.inputForm.certificatesFront,
|
|
|
+ // certificatesBack: this.inputForm.certificatesBack,
|
|
|
+ // mobile: this.inputForm.mobile,
|
|
|
+ // sex: this.inputForm.sex,
|
|
|
+ // ethnic: this.inputForm.ethnic,
|
|
|
+ // bloodType: this.inputForm.bloodType,
|
|
|
+ // qq: this.inputForm.qq,
|
|
|
+ // wechat: this.inputForm.wechat,
|
|
|
+ // email: this.inputForm.email,
|
|
|
+ // remarks: this.inputForm.remarks,
|
|
|
+ // certificatesFrontLsUrl: this.inputForm.certificatesFrontLsUrl,
|
|
|
+ // certificatesBackLsUrl: this.inputForm.certificatesBackLsUrl,
|
|
|
+ // officeId: '',
|
|
|
+ // jobPositionId: '',
|
|
|
+ // positionId: '',
|
|
|
+ // rankId: '',
|
|
|
+ // jobNo: '',
|
|
|
+ // contractType: '',
|
|
|
+ // workerType: '',
|
|
|
+ // onboardingDate: '',
|
|
|
+ // seniority: '',
|
|
|
+ // contractCompany: '',
|
|
|
+ // birthDate: '',
|
|
|
+ // workPlace: '',
|
|
|
+ // contactAddress: '',
|
|
|
+ // employmentSituation: '',
|
|
|
+ // workingHour: '',
|
|
|
+ // accountType: '',
|
|
|
+ // accountAddr: '',
|
|
|
+ // origin: '',
|
|
|
+ // liveAddr: '',
|
|
|
+ // highestEducation: '',
|
|
|
+ // politicalFace: '',
|
|
|
+ // maritalStatus: '',
|
|
|
+ // emergencyContactName: '',
|
|
|
+ // emergencyContactTel: '',
|
|
|
+ // spouseName: '',
|
|
|
+ // childName: '',
|
|
|
+ // rosterContractDTO: {
|
|
|
+ // baseId: '',
|
|
|
+ // beginDate: '',
|
|
|
+ // endDate: '',
|
|
|
+ // workEmail: '',
|
|
|
+ // workMobile: '',
|
|
|
+ // probationPeriodEndDate: '',
|
|
|
+ // probationPeriodMonth: ''
|
|
|
+ // },
|
|
|
+ // rosterBankCardsDTOList: [],
|
|
|
+ // rosterEducateDTOList: [],
|
|
|
+ // rosterWorkDTOList: [],
|
|
|
+ // rosterFamilyDTOList: [],
|
|
|
+ // rosterCertificateDTOList: [],
|
|
|
+ // rosterFilesDTOList: [],
|
|
|
+ // headshot: '',
|
|
|
+ // headshotLsUrl: '',
|
|
|
+ // rosterLeadershipDTO: {
|
|
|
+ // baseId: '',
|
|
|
+ // debriefType: '',
|
|
|
+ // supervisorId: ''
|
|
|
+ // },
|
|
|
+ // personType: '',
|
|
|
+ // certDTOList: [],
|
|
|
+ // postIdList: [],
|
|
|
+ // roleIdList: [],
|
|
|
+ // companyId: '',
|
|
|
+ // manageOfficeIds: ''
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.keydiv1 = Math.random()
|
|
|
this.keydiv2 = Math.random()
|
|
|
},
|