Commit b7280d88 authored by 5359's avatar 5359

历史注册用户调整

parent 34b778b8
...@@ -139,7 +139,9 @@ export default { ...@@ -139,7 +139,9 @@ export default {
let params = { let params = {
// name: "北京骏马机械有限公司", // name: "北京骏马机械有限公司",
name: vm.userInfo.name, name: vm.userInfo.name,
ctino: vm.userInfo.idNo ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName
// ctino: "" // ctino: ""
}; };
vm.hlsPopup.showLoading("请稍等"); vm.hlsPopup.showLoading("请稍等");
...@@ -213,6 +215,8 @@ export default { ...@@ -213,6 +215,8 @@ export default {
// name: "北京骏马机械有限公司", // name: "北京骏马机械有限公司",
name: vm.userInfo.name, name: vm.userInfo.name,
ctino: vm.userInfo.idNo, ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName,
tenant_name: vm.searchCondition.input tenant_name: vm.searchCondition.input
}; };
vm.hlsPopup.showLoading("请稍等"); vm.hlsPopup.showLoading("请稍等");
......
...@@ -154,7 +154,10 @@ export default { ...@@ -154,7 +154,10 @@ export default {
let params = { let params = {
// name: "北京骏马机械有限公司", // name: "北京骏马机械有限公司",
name: vm.userInfo.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.hlsPopup.showLoading("请稍等");
vm.$post(url, params).then(function(res) { vm.$post(url, params).then(function(res) {
...@@ -174,6 +177,8 @@ export default { ...@@ -174,6 +177,8 @@ export default {
// name: "北京骏马机械有限公司", // name: "北京骏马机械有限公司",
name: vm.userInfo.name, name: vm.userInfo.name,
ctino: vm.userInfo.idNo, ctino: vm.userInfo.idNo,
agentIdNo: vm.userInfo.agentIdNo,
agentName: vm.userInfo.agentName,
tenant_name: vm.searchCondition.input tenant_name: vm.searchCondition.input
}; };
vm.hlsPopup.showLoading("请稍等"); vm.hlsPopup.showLoading("请稍等");
......
...@@ -272,11 +272,21 @@ ...@@ -272,11 +272,21 @@
<input type="text" class="edit" v-model="legalRepresentativeCardNumber1" readonly /> <input type="text" class="edit" v-model="legalRepresentativeCardNumber1" readonly />
</div> </div>
</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" 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()" @click="logout()"
>注销</button> >注销</div>
</div>
</div> </div>
</list-item> </list-item>
</h-content> </h-content>
...@@ -387,6 +397,19 @@ export default { ...@@ -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() { wxConfig() {
let clientUrl = ""; let clientUrl = "";
...@@ -432,22 +455,13 @@ export default { ...@@ -432,22 +455,13 @@ export default {
}); });
} }
}, },
// 进入授权管理
goAutohrized(){
this.$router.push({
name: 'AuthorizedAgent',
params: {
id: vm.socialCode
},
})
},
created() { created() {
this.wxConfig(); this.wxConfig();
var data = this.$route.params.userInfo; var data = this.$route.params.userInfo;
var agentType = data.agentType; var agentType = data.agentType;
// console.log(data); // console.log(data);
if (agentType == 1) { if (agentType == 1) {
// this.agentType = data.dealerFlag; this.agentType = agentType;
this.organizationName = data.name; this.organizationName = data.name;
this.socialCode = data.idNo; this.socialCode = data.idNo;
this.legalRepresentativeName = data.legalName; this.legalRepresentativeName = data.legalName;
...@@ -455,11 +469,10 @@ export default { ...@@ -455,11 +469,10 @@ export default {
this.legalPhoneNumber = data.mobile; this.legalPhoneNumber = data.mobile;
this.attachmentId = data.attachmentId; this.attachmentId = data.attachmentId;
this.orgAttachmentId = data.orgAttachmentId; this.orgAttachmentId = data.orgAttachmentId;
window.localStorage.setItem('isManagerFlag', data.isManagerFlag);
window.localStorage.setItem('isManagerFlag', data.isManagerFlag) window.localStorage.setItem('managerAuthFlag', data.managerAuthFlag);
window.localStorage.setItem('managerAuthFlag', data.managerAuthFlag) this.isManagerFlag = data.isManagerFlag;
vm.isManagerFlag = data.isManagerFlag this.managerAuthFlag = data.managerAuthFlag;
vm.managerAuthFlag = data.managerAuthFlag
this.cardUp = this.cardUp =
...@@ -475,7 +488,7 @@ export default { ...@@ -475,7 +488,7 @@ export default {
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl; window.localStorage.access_token_rl;
} else if (agentType == 2) { } else if (agentType == 2) {
// this.agentType = data.dealerFlag; this.agentType = agentType;
this.staffType = "组织其他员工"; this.staffType = "组织其他员工";
this.jbName = data.agentName; this.jbName = data.agentName;
this.jbPhoneNumber = data.mobile; this.jbPhoneNumber = data.mobile;
...@@ -486,6 +499,10 @@ export default { ...@@ -486,6 +499,10 @@ export default {
this.legalRepresentativeCardNumber1 = data.legalIdNo; this.legalRepresentativeCardNumber1 = data.legalIdNo;
this.attachmentId1 = data.attachmentId; this.attachmentId1 = data.attachmentId;
this.orgAttachmentId1 = data.orgAttachmentId; 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 = this.cardUp1 =
process.env.rootPath + process.env.rootPath +
"/app/fileViewSvc?attachment_id=" + "/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