|
|
@ -384,6 +384,11 @@ |
|
|
|
<el-input v-model="peoForm.mobile" |
|
|
|
placeholder="请输入联系电话"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="证件号" |
|
|
|
prop="idCard"> |
|
|
|
<el-input v-model="peoForm.idCard" |
|
|
|
placeholder="请输入证件号"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<!-- 性别下拉框 --> |
|
|
|
<el-form-item label="性别" |
|
|
|
prop="gender"> |
|
|
@ -466,6 +471,11 @@ |
|
|
|
<el-input v-model="peoForm.mobile" |
|
|
|
placeholder="请输入联系电话"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="证件号" |
|
|
|
prop="mobile"> |
|
|
|
<el-input v-model="peoForm.idCard" |
|
|
|
placeholder="请输入证件号"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="性别" |
|
|
|
prop="gender"> |
|
|
|
<el-select v-model="peoForm.gender" |
|
|
@ -554,6 +564,11 @@ |
|
|
|
placeholder="联系电话" |
|
|
|
:disabled="true"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="证件号"> |
|
|
|
<el-input v-model="peoForm.idCard" |
|
|
|
placeholder="--" |
|
|
|
:disabled="true"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="组织/部门"> |
|
|
|
<el-input v-model="peoForm.zuzhi" |
|
|
|
placeholder="组织/部门" |
|
|
@ -985,6 +1000,7 @@ export default { |
|
|
|
peoForm: { |
|
|
|
name: "", |
|
|
|
mobile: "", |
|
|
|
idCard: "", |
|
|
|
gender: "", |
|
|
|
post: "", |
|
|
|
duty: [], |
|
|
@ -1091,6 +1107,7 @@ export default { |
|
|
|
rulesPeo: { |
|
|
|
name: [{ required: true, message: "姓名必填", trigger: "blur" }], |
|
|
|
mobile: [{ required: true, message: "联系电话必填", trigger: "blur" }], |
|
|
|
idCard: [{ required: true, message: "证件号必填", trigger: "blur" }], |
|
|
|
gender: [{ required: true, message: "性别必填", trigger: "blur" }], |
|
|
|
post: [{ required: true, message: "专兼职必填", trigger: "blur" }], |
|
|
|
duty: [{ required: true, message: "职责必填", trigger: "blur" }], |
|
|
@ -1400,6 +1417,7 @@ export default { |
|
|
|
orgType: this.peoForm.orgType, |
|
|
|
name: this.peoForm.name, |
|
|
|
mobile: this.peoForm.mobile, |
|
|
|
idCard: this.peoForm.idCard, |
|
|
|
gender: this.peoForm.gender, |
|
|
|
workType: this.peoForm.post, |
|
|
|
roles: this.peoForm.duty, |
|
|
@ -1459,6 +1477,7 @@ export default { |
|
|
|
roles: this.peoForm.duty, |
|
|
|
newRoles: this.peoForm.newRoles, |
|
|
|
agencyId: this.currentAgencyId, |
|
|
|
idCard: this.peoForm.idCard |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
@ -1530,12 +1549,14 @@ export default { |
|
|
|
this.insertForm.contacts = ""; |
|
|
|
this.insertForm.code = ""; |
|
|
|
this.insertForm.mobile = ""; |
|
|
|
this.insertForm.idCard = ""; |
|
|
|
this.insertForm.departmentName = ""; |
|
|
|
|
|
|
|
this.peoForm = { |
|
|
|
name: "", |
|
|
|
mobile: "", |
|
|
|
gender: "", |
|
|
|
idCard: "", |
|
|
|
post: "", |
|
|
|
duty: [], |
|
|
|
orgType: "", |
|
|
@ -1563,6 +1584,7 @@ export default { |
|
|
|
peoFormRest () { |
|
|
|
(this.peoForm.name = ""), |
|
|
|
(this.peoForm.mobile = ""), |
|
|
|
(this.peoForm.idCard = ""), |
|
|
|
(this.peoForm.gender = ""), |
|
|
|
(this.peoForm.post = ""), |
|
|
|
(this.peoForm.duty = ""); |
|
|
@ -1650,6 +1672,7 @@ export default { |
|
|
|
// 查看弹窗 |
|
|
|
cancelDetails () { |
|
|
|
this.details = false; |
|
|
|
this.peoFormRest(); |
|
|
|
}, |
|
|
|
/** 人员调动取消按钮 */ |
|
|
|
cancelTransfer () { |
|
|
@ -1823,6 +1846,7 @@ export default { |
|
|
|
this.peoForm.post = data.workType; |
|
|
|
// this.peoForm.gender = data.gender === 1 ? '男' : '女' |
|
|
|
this.peoForm.gender = data.gender; |
|
|
|
this.peoForm.idCard = data.idCard; |
|
|
|
// 已有的权限(职责) |
|
|
|
let existedDutyArr = []; |
|
|
|
data.roleList.forEach(function (sysDuty) { |
|
|
@ -1865,6 +1889,7 @@ export default { |
|
|
|
// this.peoForm.gender = data.gender === 1 ? '男' : '女' |
|
|
|
this.peoForm.gender = data.gender; |
|
|
|
this.peoForm.post = data.workType; |
|
|
|
this.peoForm.idCard = data.idCard; |
|
|
|
// 已有的权限(职责) |
|
|
|
let existedDutyArr = []; |
|
|
|
data.roleList.forEach(function (sysDuty) { |
|
|
@ -1926,13 +1951,14 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
|
|
|
|
debugger |
|
|
|
if (code === 0) { |
|
|
|
this.peoForm.name = data.name; |
|
|
|
this.peoForm.mobile = |
|
|
|
data.mobile.substr(0, 3) + "****" + data.mobile.substr(7); |
|
|
|
this.peoForm.activeTime = data.activeTime; |
|
|
|
this.peoForm.duty = data.roles; |
|
|
|
this.peoForm.idCard = data.idCard; |
|
|
|
this.peoForm.zuzhi = data.orgName; |
|
|
|
if (data.enableFlag === "enable") { |
|
|
|
this.peoForm.disableFlag = "已启用"; |
|
|
|