|
|
@ -156,14 +156,35 @@ |
|
|
|
prop="idNo" |
|
|
|
min-width="180" |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
label="手机号" |
|
|
|
align="center" |
|
|
|
prop="phone" |
|
|
|
min-width="150" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="所属单位" |
|
|
|
align="center" |
|
|
|
prop="belowUnit" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
label="职务" |
|
|
|
align="center" |
|
|
|
prop="post" |
|
|
|
:formatter="postFormatter" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="工种分类" |
|
|
|
align="center" |
|
|
|
prop="trades" |
|
|
|
:formatter="tradesFormatter" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- <el-table-column |
|
|
|
label="所属单位统一社会信用代码" |
|
|
|
align="center" |
|
|
|
prop="socialCreditCode" |
|
|
@ -189,7 +210,7 @@ |
|
|
|
label="籍贯" |
|
|
|
align="center" |
|
|
|
prop="nativePlace" |
|
|
|
min-width="120" |
|
|
|
min-width="120" --> |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="操作" |
|
|
@ -237,7 +258,22 @@ |
|
|
|
> |
|
|
|
<el-row> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="180px"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="姓名" prop="name"> |
|
|
|
<el-input v-model="form.name" placeholder="请输入姓名" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="身份证号码" prop="idNo"> |
|
|
|
<el-input v-model="form.idNo" placeholder="请输入身份证号码" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="手机号码" prop="phone"> |
|
|
|
<el-input v-model="form.phone" placeholder="请输入手机号码" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="所属施工单位" prop="belowUnit"> |
|
|
|
<!-- <el-input |
|
|
|
v-model="form.belowUnit" |
|
|
@ -261,7 +297,103 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="职务" prop="post"> |
|
|
|
<el-select |
|
|
|
v-model="form.post" |
|
|
|
placeholder="请选择职务" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in postOptions" |
|
|
|
:key="dict.dictLabel + dict.id" |
|
|
|
:label="dict.dictLabel" |
|
|
|
:value="dict.dictValue" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24" v-if="form.post == '2'"> |
|
|
|
<el-form-item label="工种分类" prop="trades"> |
|
|
|
<el-select |
|
|
|
v-model="form.trades" |
|
|
|
placeholder="请选择工种分类" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in tradesOptions" |
|
|
|
:key="dict.dictLabel + dict.id" |
|
|
|
:label="dict.dictLabel" |
|
|
|
:value="dict.dictValue" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="入场时间" prop="admissionTime"> |
|
|
|
<!-- <el-input v-model="form.admissionTime" placeholder="请输入入场时间" /> --> |
|
|
|
<el-date-picker |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 100%" |
|
|
|
v-model="form.admissionTime" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择入场时间" |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="退场时间" prop="exitTime"> |
|
|
|
<!-- <el-input v-model="form.exitTime" placeholder="请输入退场时间" /> --> |
|
|
|
<el-date-picker |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 100%" |
|
|
|
v-model="form.exitTime" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择退场时间" |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="劳动合同" prop="employmentContracts"> |
|
|
|
<MyUpload :fileList="fileList1" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item |
|
|
|
label="社保" |
|
|
|
prop="socialSecurity" |
|
|
|
v-if="form.post == '3'" |
|
|
|
> |
|
|
|
<MyUpload :fileList="fileList2" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item |
|
|
|
label="任命文件" |
|
|
|
prop="appointmentDocuments" |
|
|
|
v-if="form.post == '3'" |
|
|
|
> |
|
|
|
<MyUpload :fileList="fileList3" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<!-- <el-col :span="24"> |
|
|
|
<el-form-item |
|
|
|
label="所属单位统一社会信用代码" |
|
|
|
prop="socialCreditCode" |
|
|
@ -273,16 +405,6 @@ |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="身份证号码" prop="idNo"> |
|
|
|
<el-input v-model="form.idNo" placeholder="请输入身份证号码" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="姓名" prop="name"> |
|
|
|
<el-input v-model="form.name" placeholder="请输入姓名" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="出生日期" prop="birthday"> |
|
|
|
<el-date-picker |
|
|
@ -306,7 +428,7 @@ |
|
|
|
<el-form-item label="籍贯" prop="nativePlace"> |
|
|
|
<el-input v-model="form.nativePlace" placeholder="请输入籍贯" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
</el-form> |
|
|
|
</el-row> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@ -368,6 +490,8 @@ export default { |
|
|
|
proCode: null, |
|
|
|
proNo: null, |
|
|
|
owerDept: null, |
|
|
|
post: null, |
|
|
|
trades: null, |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
|
params: { |
|
|
@ -412,10 +536,24 @@ export default { |
|
|
|
proCode: this.proCode, |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 职务字典 |
|
|
|
postOptions: [], |
|
|
|
// 工种分类字典 |
|
|
|
tradesOptions: [], |
|
|
|
fileList1: [], |
|
|
|
fileList2: [], |
|
|
|
fileList3: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getList(); |
|
|
|
this.getDicts("roster_positions_for_migrant_workers").then((response) => { |
|
|
|
this.postOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("job_classification").then((response) => { |
|
|
|
this.tradesOptions = response.data; |
|
|
|
}); |
|
|
|
|
|
|
|
listInfo(this.firmInfoQuery).then((response) => { |
|
|
|
this.firmInfo = response.data.enterpriseInfoList.filter( |
|
|
|
(item) => item.enterpriseType == "1" |
|
|
@ -438,6 +576,12 @@ export default { |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}, |
|
|
|
postFormatter(row) { |
|
|
|
return this.selectDictLabel(this.postOptions, row.post); |
|
|
|
}, |
|
|
|
tradesFormatter(row) { |
|
|
|
return this.selectDictLabel(this.tradesOptions, row.trades); |
|
|
|
}, |
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
|
this.open = false; |
|
|
@ -445,6 +589,9 @@ export default { |
|
|
|
}, |
|
|
|
// 表单重置 |
|
|
|
reset() { |
|
|
|
this.fileList1 = []; |
|
|
|
this.fileList2 = []; |
|
|
|
this.fileList3 = []; |
|
|
|
this.form = { |
|
|
|
id: null, |
|
|
|
socialCreditCode: null, |
|
|
@ -525,6 +672,15 @@ export default { |
|
|
|
const id = row.id || this.ids; |
|
|
|
getRealName(id).then((response) => { |
|
|
|
this.form = response.data; |
|
|
|
if (this.form.employmentContracts) { |
|
|
|
this.fileList1 = JSON.parse(this.form.employmentContracts); |
|
|
|
} |
|
|
|
if (this.form.socialSecurity) { |
|
|
|
this.fileList2 = JSON.parse(this.form.socialSecurity); |
|
|
|
} |
|
|
|
if (this.form.appointmentDocuments) { |
|
|
|
this.fileList3 = JSON.parse(this.form.appointmentDocuments); |
|
|
|
} |
|
|
|
this.open = true; |
|
|
|
this.title = "修改农民工人员实名制信息"; |
|
|
|
}); |
|
|
@ -533,8 +689,15 @@ export default { |
|
|
|
submitForm() { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.form.proNo = this.proNo; |
|
|
|
this.form.proCode = this.proCode; |
|
|
|
if (this.fileList1.length) { |
|
|
|
this.form.employmentContracts = JSON.stringify(this.fileList1); |
|
|
|
} |
|
|
|
if (this.fileList2.length) { |
|
|
|
this.form.socialSecurity = JSON.stringify(this.fileList2); |
|
|
|
} |
|
|
|
if (this.fileList3.length) { |
|
|
|
this.form.appointmentDocuments = JSON.stringify(this.fileList3); |
|
|
|
} |
|
|
|
if (this.form.id != null) { |
|
|
|
updateRealName(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
@ -544,6 +707,8 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.form.proNo = this.proNo; |
|
|
|
this.form.proCode = this.proCode; |
|
|
|
addRealName(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("新增成功"); |
|
|
|