|
@@ -196,6 +196,7 @@ export default {
|
|
|
this.form1.shipperId=='' ||
|
|
|
this.form1.personnelShifts=='' ||
|
|
|
this.form1.personnelTeam=='' ||
|
|
|
+ this.form1.ConcatTelephone==''||
|
|
|
userInfo.orgName=='' ||
|
|
|
userInfo.orgCode=='' ||
|
|
|
userInfo.orgId=='' ||
|
|
@@ -218,7 +219,7 @@ export default {
|
|
|
//保存权限表中的用户主键Id
|
|
|
this.personnelSsoId = res.data.userId;
|
|
|
//再新增RMS_PERSONNEL表信息
|
|
|
- let rmsPersonnel = {
|
|
|
+ let map1 = {
|
|
|
personnelJobNumber : this.form1.personnelJobNumber,
|
|
|
personnelPost : this.form1.personnelPost,
|
|
|
personnelName : this.form1.personnelName,
|
|
@@ -226,21 +227,21 @@ export default {
|
|
|
// personnelWorkshopid : this.form1.personnelWorkshopid,
|
|
|
personnelShifts : this.form1.personnelShifts,
|
|
|
personnelTeam : this.form1.personnelTeam,
|
|
|
- personnelSsoId : this.personnelSsoId
|
|
|
+ personnelSsoId : this.personnelSsoId,
|
|
|
+ //联系电话
|
|
|
+ ConcatTelephone : this.form1.ConcatTelephone,
|
|
|
+ userId: getCookie("userId"),
|
|
|
}
|
|
|
// console.log("rmsPersonnel",rmsPersonnel)
|
|
|
- this.axios.post('/api/v1/rms/addPersonnel',rmsPersonnel)
|
|
|
+ this.axios.post('/api/v1/rms/addPersonnel',map1)
|
|
|
.then((res)=>{
|
|
|
- // console.log("Personnel",res)
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
message: "新增成功!",
|
|
|
});
|
|
|
// this.$refs.table.refreshData();
|
|
|
-
|
|
|
//最后新增角色赋权表
|
|
|
-
|
|
|
this.axios.post('pass/v1/sysuserroles/addUserroles?userId='
|
|
|
+this.personnelSsoId+'&userCode='+this.form1.personnelJobNumber+'&roleId='+this.value3)
|
|
|
.then((res)=>{
|