Commit b7280d88 authored by 5359's avatar 5359

历史注册用户调整

parent 34b778b8
......@@ -139,7 +139,9 @@ export default {
let params = {
// name: "北京骏马机械有限公司",
name: vm.userInfo.name,
ctino: vm.userInfo.idNo
ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName
// ctino: ""
};
vm.hlsPopup.showLoading("请稍等");
......@@ -213,6 +215,8 @@ export default {
// name: "北京骏马机械有限公司",
name: vm.userInfo.name,
ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName,
tenant_name: vm.searchCondition.input
};
vm.hlsPopup.showLoading("请稍等");
......
......@@ -154,7 +154,10 @@ export default {
let params = {
// name: "北京骏马机械有限公司",
name: vm.userInfo.name,
ctino: vm.userInfo.idNo
ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, params).then(function(res) {
......@@ -174,6 +177,8 @@ export default {
// name: "北京骏马机械有限公司",
name: vm.userInfo.name,
ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName,
tenant_name: vm.searchCondition.input
};
vm.hlsPopup.showLoading("请稍等");
......
......@@ -272,11 +272,21 @@
<input type="text" class="edit" v-model="legalRepresentativeCardNumber1" readonly />
</div>
</div>
<button
<!--<button-->
<!--class="next_step"-->
<!--style="width:120px;height:30px;border-radius:15px;background-color:#09bb07;color:#FFFFFF;margin:100px 0 0 -60px;position:relative;left:50%;"-->
<!--@click="logout()"-->
<!--&gt;注销</button>-->
<div class="button_all">
<div v-if="isManagerFlag=='Y'"
class="next_step"
@click="goAutohrized()"
>授权管理</div>
<div
class="next_step"
style="width:120px;height:30px;border-radius:15px;background-color:#09bb07;color:#FFFFFF;margin:100px 0 0 -60px;position:relative;left:50%;"
@click="logout()"
>注销</button>
>注销</div>
</div>
</div>
</list-item>
</h-content>
......@@ -387,6 +397,19 @@ export default {
}
});
},
// 进入授权管理
goAutohrized(){
if(this.agentType=="1"){
window.localStorage.setItem('AuthSocialCode',this.socialCode);
}else{
window.localStorage.setItem('AuthSocialCode',this.socialCode1);
}
this.$router.push({
name: 'AuthorizedAgent',
params: {
},
})
},
// 调用微信接口的基础配置
wxConfig() {
let clientUrl = "";
......@@ -432,22 +455,13 @@ export default {
});
}
},
// 进入授权管理
goAutohrized(){
this.$router.push({
name: 'AuthorizedAgent',
params: {
id: vm.socialCode
},
})
},
created() {
this.wxConfig();
var data = this.$route.params.userInfo;
var agentType = data.agentType;
// console.log(data);
if (agentType == 1) {
// this.agentType = data.dealerFlag;
this.agentType = agentType;
this.organizationName = data.name;
this.socialCode = data.idNo;
this.legalRepresentativeName = data.legalName;
......@@ -455,11 +469,10 @@ export default {
this.legalPhoneNumber = data.mobile;
this.attachmentId = data.attachmentId;
this.orgAttachmentId = data.orgAttachmentId;
window.localStorage.setItem('isManagerFlag', data.isManagerFlag)
window.localStorage.setItem('managerAuthFlag', data.managerAuthFlag)
vm.isManagerFlag = data.isManagerFlag
vm.managerAuthFlag = data.managerAuthFlag
window.localStorage.setItem('isManagerFlag', data.isManagerFlag);
window.localStorage.setItem('managerAuthFlag', data.managerAuthFlag);
this.isManagerFlag = data.isManagerFlag;
this.managerAuthFlag = data.managerAuthFlag;
this.cardUp =
......@@ -475,7 +488,7 @@ export default {
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
} else if (agentType == 2) {
// this.agentType = data.dealerFlag;
this.agentType = agentType;
this.staffType = "组织其他员工";
this.jbName = data.agentName;
this.jbPhoneNumber = data.mobile;
......@@ -486,6 +499,10 @@ export default {
this.legalRepresentativeCardNumber1 = data.legalIdNo;
this.attachmentId1 = data.attachmentId;
this.orgAttachmentId1 = data.orgAttachmentId;
window.localStorage.setItem('isManagerFlag', data.isManagerFlag);
window.localStorage.setItem('managerAuthFlag', data.managerAuthFlag);
this.isManagerFlag = data.isManagerFlag;
this.managerAuthFlag = data.managerAuthFlag;
this.cardUp1 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment