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("请稍等");
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
v-model="staffType" v-model="staffType"
@change="getRadioVal" @change="getRadioVal"
value="已授权" value="已授权"
/>已授权 />已授权
<input <input
type="radio" type="radio"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
v-model="staffType" v-model="staffType"
@change="getRadioVal" @change="getRadioVal"
value="未授权" value="未授权"
/>未授权 />未授权
</div> </div>
<!-- 法定代表人 --> <!-- 法定代表人 -->
...@@ -28,19 +28,19 @@ ...@@ -28,19 +28,19 @@
<div class="info_title"> <div class="info_title">
<div class="list_left" style="width:30%;"> <div class="list_left" style="width:30%;">
<img v-if="!item.choose" @click.stop="changeChoose(item)" <img v-if="!item.choose" @click.stop="changeChoose(item)"
src="../../../assets/userRegister/unchoose.png" src="../../../assets/userRegister/unchoose.png"
alt alt
style="width:15px;height:15px;margin-right:5px;" style="width:15px;height:15px;margin-right:5px;"
/> />
<img v-if="item.choose" @click.stop="changeChoose(item)" <img v-if="item.choose" @click.stop="changeChoose(item)"
src="../../../assets/userRegister/choosed.png" src="../../../assets/userRegister/choosed.png"
alt alt
style="width:15px;height:15px;margin-right:5px;" style="width:15px;height:15px;margin-right:5px;"
/> />
<div class="left">经办人<span>{{index+1}}</span></div> <div class="left">经办人<span>{{index+1}}</span></div>
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" readonly /> <input type="text" class="edit" readonly/>
</div> </div>
</div> </div>
<div class="info_all"> <div class="info_all">
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="item.name" readonly /> <input type="text" class="edit" v-model="item.agentName" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="item.idNo" readonly /> <input type="text" class="edit" v-model="item.agentIdNo" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
手机号码: 手机号码:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="item.mobile" readonly /> <input type="text" class="edit" v-model="item.mobile" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -92,10 +92,10 @@ ...@@ -92,10 +92,10 @@
/> />
是否授权: 是否授权:
</div> </div>
<div v-if="item.authFlag == 'Y'" class="list_right" style="width:61%;"> <div v-if="item.managerAuthFlag == 'Y'" class="list_right" style="width:61%;">
已授权 已授权
</div> </div>
<div v-if="item.authFlag == 'N'" class="list_right" style="width:61%;"> <div v-if="item.managerAuthFlag == 'N'" class="list_right" style="width:61%;">
未授权 未授权
</div> </div>
</div> </div>
...@@ -103,14 +103,16 @@ ...@@ -103,14 +103,16 @@
</div> </div>
<div v-if="authorizedList.length && showButton" class="button_all"> <div v-if="authorizedList.length && showButton" class="button_all">
<div <div
class="next_step" class="next_step"
@click="managerTransfer" @click="managerTransfer"
>管理转移</div> >管理转移
<div </div>
class="next_step" <div
@click="autohrized('N')" class="next_step"
>取消授权</div> @click="autohrized('N')"
>取消授权
</div>
</div> </div>
</div> </div>
...@@ -120,19 +122,19 @@ ...@@ -120,19 +122,19 @@
<div class="info_title"> <div class="info_title">
<div class="list_left" style="width:30%;"> <div class="list_left" style="width:30%;">
<img v-if="!item.choose" @click.stop="changeChoose(item)" <img v-if="!item.choose" @click.stop="changeChoose(item)"
src="../../../assets/userRegister/unchoose.png" src="../../../assets/userRegister/unchoose.png"
alt alt
style="width:15px;height:15px;margin-right:5px;" style="width:15px;height:15px;margin-right:5px;"
/> />
<img v-if="item.choose" @click.stop="changeChoose(item)" <img v-if="item.choose" @click.stop="changeChoose(item)"
src="../../../assets/userRegister/choosed.png" src="../../../assets/userRegister/choosed.png"
alt alt
style="width:15px;height:15px;margin-right:5px;" style="width:15px;height:15px;margin-right:5px;"
/> />
<div class="left">经办人<span>{{index+1}}</span></div> <div class="left">经办人<span>{{index+1}}</span></div>
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" readonly /> <input type="text" class="edit" readonly/>
</div> </div>
</div> </div>
<div class="info_all"> <div class="info_all">
...@@ -146,7 +148,7 @@ ...@@ -146,7 +148,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="item.name" readonly /> <input type="text" class="edit" v-model="item.agentName" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -159,7 +161,7 @@ ...@@ -159,7 +161,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="item.idNo" readonly /> <input type="text" class="edit" v-model="item.agentIdNo" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -172,7 +174,7 @@ ...@@ -172,7 +174,7 @@
手机号码: 手机号码:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="item.mobile" readonly /> <input type="text" class="edit" v-model="item.mobile" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -184,21 +186,22 @@ ...@@ -184,21 +186,22 @@
/> />
是否授权: 是否授权:
</div> </div>
<div v-if="item.authFlag == 'Y'" class="list_right" style="width:61%;"> <div v-if="item.managerAuthFlag == 'Y'" class="list_right" style="width:61%;">
已授权 已授权
</div> </div>
<div v-if="item.authFlag == 'N'" class="list_right" style="width:61%;"> <div v-if="item.managerAuthFlag == 'N'" class="list_right" style="width:61%;">
未授权 未授权
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div v-if="unAuthorizedList.length && showButton" class="button_all"> <div v-if="unAuthorizedList.length && showButton" class="button_all">
<div <div
class="next_step" class="next_step"
@click="autohrized('Y')" @click="autohrized('Y')"
>授权</div> >授权
</div>
</div> </div>
</div> </div>
</list-item> </list-item>
...@@ -207,353 +210,345 @@ ...@@ -207,353 +210,345 @@
</template> </template>
<script> <script>
// import { Grid, GridItem } from "vux"; // import { Grid, GridItem } from "vux";
import {getUrlParam} from "@/scripts/utils";
import { getUrlParam } from "@/scripts/utils"; export default {
export default { data() {
data() { return {
return { staffType: "已授权",
staffType: "已授权", authorizedList: [], //已授权数组
authorizedList:[], //已授权数组 unAuthorizedList: [],//未授权数组,
unAuthorizedList:[],//未授权数组, id: null,
id:null, choosedList: [],//已选择数组
choosedList:[],//已选择数组 obj: {},
obj:{}, showButton: true,
showButton:true,
};
}; },
}, components: {
components: { // Grid,
// Grid, // GridItem
// GridItem },
}, activated: function () {
activated: function() {}, },
updated: function() {}, updated: function () {
created() { },
let vm = this created() {
let vm = this
},
},
beforeRouteEnter: function (to, form, next) { beforeRouteEnter: function (to, form, next) {
next(vm => { next(vm => {
vm.id = vm.$route.params.id vm.id = window.localStorage.AuthSocialCode;
vm.init() vm.init()
}) })
}, },
methods: { methods: {
// tab切换 // tab切换
getRadioVal() { getRadioVal() {
// console.log(this.staffType); // console.log(this.staffType);
}, },
changeChoose(item){ changeChoose(item) {
let vm = this let vm = this
vm.$set(item,'choose',!item.choose) vm.$set(item, 'choose', !item.choose)
console.log(item);
}, },
//管理转移 //管理转移
managerTransfer(){ managerTransfer() {
let vm = this
let vm=this vm.choosedList = []
vm.choosedList =[] vm.authorizedList.forEach(function (value) {
vm.authorizedList.forEach(function (value) { vm.obj = {};
if(value.choose){ if (value.choose) {
vm.obj.openId =value.openId vm.obj.openId = value.openId
vm.choosedList.push(vm.obj) vm.choosedList.push(vm.obj)
} }
}) })
if(vm.choosedList.length==1){
let url = process.env.rootPath + '/auth/api/individual/assignment'
let param = {
"oldOpenId":window.localStorage.openId,
"openId":vm.choosedList[0].openId
}
vm.hlsPopup.showLoading('请稍等')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if(res.code=='000000'){
hlsPopup.showLongCenter('管理员转让成功!')
vm.obj={}
vm.choosedList = []
vm.showButton =false
this.$router.push({ if (vm.choosedList.length == 1) {
name: 'CompanyRegister' let url = process.env.rootPath + '/auth/api/individual/assignment'
}) let param = {
"oldOpenId": window.localStorage.openId,
"openId": vm.choosedList[0].openId
}
vm.hlsPopup.showLoading('请稍等')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.code == '000000') {
hlsPopup.showLongCenter('管理员转让成功!')
vm.obj = {}
vm.choosedList = []
vm.showButton = false
this.$router.push({
}else { name: 'CompanyRegister'
hlsPopup.showLongCenter(res.message) })
}
})
}else{ } else {
hlsPopup.showLongCenter('请选择经办人且只能转移给一人!') hlsPopup.showLongCenter(res.message)
} }
})
} else {
hlsPopup.showLongCenter('请选择经办人且只能转移给一人!')
}
}, },
//授权 //授权
autohrized(flag){ autohrized(flag) {
let vm = this
let vm = this vm.choosedList = [];
vm.choosedList = []; if (flag == 'N') { //已经授权的 取消授权
vm.authorizedList.forEach(function (value) {
if(flag=='N'){ //已经授权的 取消授权 vm.obj = {};
vm.authorizedList.forEach(function (value) { if (value.choose) {
if(value.choose){ vm.obj.openId = value.openId
vm.obj.openId =value.openId vm.obj.managerAuthFlag = 'N'
vm.obj.authFlag = 'N' vm.choosedList.push(vm.obj);
vm.choosedList.push(vm.obj) }
} })
}) } else if (flag == 'Y') { //未授权的 授权
}else if(flag=='Y'){ //未授权的 授权 vm.unAuthorizedList.forEach(function (value) {
vm.unAuthorizedList.forEach(function (value) { vm.obj = {};
if(value.choose){ if (value.choose) {
vm.obj.openId =value.openId vm.obj.openId = value.openId
vm.obj.authFlag = 'Y' vm.obj.managerAuthFlag = 'Y'
vm.choosedList.push(vm.obj) vm.choosedList.push(vm.obj);
} }
}) })
} }
if (vm.choosedList.length > 0) {
if(vm.choosedList.length>0){ let url = process.env.rootPath + '/auth/api/individual/authorize'
let url = process.env.rootPath + '/auth/api/individual/authorize' let param = vm.choosedList
let param = vm.choosedList vm.hlsPopup.showLoading('请稍等')
vm.hlsPopup.showLoading('请稍等')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.code == '000000') {
if(res.code=='000000'){
hlsPopup.showLongCenter('操作成功!') hlsPopup.showLongCenter('操作成功!')
vm.obj={} vm.obj = {}
vm.choosedList = [] vm.choosedList = []
vm.init() vm.init()
}else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
} else {
}else{ hlsPopup.showLongCenter('请选择经办人!')
hlsPopup.showLongCenter('请选择经办人!') }
}
}, },
//数据初始化查询 //数据初始化查询
init(){ init() {
let vm = this let vm = this
let url = process.env.rootPath + '/auth/api/individual/info/query' let url = process.env.rootPath + '/auth/api/individual/info/query'
//91430722MA4L61HD37 let param = {
let param = { idNo: vm.id
idNo:vm.id, }
managerAuthFlag:window.localStorage.managerAuthFlag vm.hlsPopup.showLoading('请稍等')
} vm.$post(url, param).then(function (res) {
vm.hlsPopup.showLoading('请稍等') vm.hlsPopup.hideLoading()
vm.$post(url,param).then(function (res) {
vm.hlsPopup.hideLoading() if (res.success) {
vm.authorizedList = [];
if(res.success){ vm.unAuthorizedList = [];
res.rows.forEach(function (value) { res.rows.forEach(function (value) {
// 是否被选中标志 // 是否被选中标志
vm.$set(value, 'choose', false)
vm.$set(value,'choose',false) if (value.managerAuthFlag == 'Y') {
if(value.authFlag =='Y'){
vm.authorizedList.push(value) vm.authorizedList.push(value)
}else if(value.authFlag =='N'){ } else if (value.managerAuthFlag == 'N') {
vm.unAuthorizedList.push(value) vm.unAuthorizedList.push(value)
} }
}) })
}
} })
})
} }
}, },
}; };
</script> </script>
<style lang="less" type="text/less" scoped> <style lang="less" type="text/less" scoped>
@import "../../../styles/vue-1px.less"; @import "../../../styles/vue-1px.less";
.authorizedAgent { .authorizedAgent {
.reg-content { .reg-content {
padding: 20px; padding: 20px;
font-size: 14px;
.repre-type {
padding: 10px;
border-bottom: 1px solid #d0d0d0;
color: #11111187;
font-size: 16px;
font-weight: 700;
}
.info_all{
width: 100%;
border: 1px solid #d0d0d0;;
}
.info_title {
width: 94%;
margin-left: 3%;
font-size: 14px; font-size: 14px;
display: flex; .repre-type {
display: -webkit-flex; padding: 10px;
.list_left { border-bottom: 1px solid #d0d0d0;
width: 35%; color: #11111187;
// margin-left: 3%; font-size: 16px;
height: 50px; font-weight: 700;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
-webkit-align-items: center;
-webkit-justify-content: space-around;
}
.list_right {
// width: auto;
// margin-right: 3%;
height: 50px;
color: #636363;
line-height: 50px;
// float: right;
} }
.edit { .info_all {
width: 100%; width: 100%;
// height: 50px; border: 1px solid #d0d0d0;;
color: #898989;
font-family: "微软雅黑";
font-size: 14px;
border: none;
} }
.list_left2 { .info_title {
width: 97%; width: 94%;
margin-left: 3%; margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px; font-size: 14px;
color: #636363; display: flex;
line-height: 50px; display: -webkit-flex;
// float: left; .list_left {
width: 35%;
// margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
-webkit-align-items: center;
-webkit-justify-content: space-around;
}
.list_right {
// width: auto;
// margin-right: 3%;
height: 50px;
color: #636363;
line-height: 50px;
// float: right;
}
.edit {
width: 100%;
// height: 50px;
color: #898989;
font-family: "微软雅黑";
font-size: 14px;
border: none;
}
.list_left2 {
width: 97%;
margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
}
} }
} .info_list {
.info_list { width: 94%;
width: 94%; margin-left: 3%;
margin-left: 3%; // height: 50px;
// height: 50px; // border-bottom: 1px solid #f2f2f2;
// border-bottom: 1px solid #f2f2f2;
font-size: 14px;
border-bottom: 1px solid #d0d0d0;
display: flex;
display: -webkit-flex;
.list_left {
width: 35%;
// margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px; font-size: 14px;
color: #636363; border-bottom: 1px solid #d0d0d0;
line-height: 50px; display: flex;
// float: left; display: -webkit-flex;
.list_left {
width: 35%;
// margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
}
.list_right {
// width: auto;
// margin-right: 3%;
height: 50px;
color: #636363;
line-height: 50px;
// float: right;
}
.edit {
width: 100%;
// height: 50px;
color: #898989;
font-family: "微软雅黑";
font-size: 14px;
border: none;
}
.list_left2 {
width: 97%;
margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
}
} }
.list_right { .info_list:last-child {
// width: auto; border: none
// margin-right: 3%;
height: 50px;
color: #636363;
line-height: 50px;
// float: right;
} }
.edit { .button_all {
width: 100%; width: 100%;
// height: 50px;
color: #898989;
font-family: "微软雅黑";
font-size: 14px; font-size: 14px;
border: none; display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
-webkit-align-items: center;
-webkit-justify-content: space-around;
.next_step {
// width:30%;
height: 30px;
line-height: 30px;
text-align: center;
border-radius: 15px;
background-color: #09bb07;
color: #FFFFFF;
}
} }
.list_left2 { .uppic {
width: 97%; height: 100%;
margin-left: 3%; width: 100%;
height: 50px; margin: 0 auto;
font-family: "微软雅黑"; opacity: 0;
font-size: 14px; z-index: 1000;
color: #636363; position: absolute;
line-height: 50px;
// float: left;
} }
} .pic {
.info_list:last-child{ width: 100%;
border:none height: 100%;
} position: absolute;
.button_all{ }
width: 100%; .bus-license {
font-size: 14px; width: 140px;
display: -webkit-flex; height: 100px;
display: flex; margin: 10px auto;
align-items: center; border: 1px solid #b2b2b2;
justify-content: space-around; border-radius: 8px;
-webkit-align-items: center; position: relative;
-webkit-justify-content: space-around; }
.next_step{ .next_step {
// width:30%; width: 120px;
height:30px; height: 30px;
line-height: 30px; border-radius: 15px;
text-align: center; background-color: #999999;
border-radius:15px; color: #ffffff;
background-color:#09bb07; margin-top: 50px;
color:#FFFFFF;
} }
}
.uppic {
height: 100%;
width: 100%;
margin: 0 auto;
opacity: 0;
z-index: 1000;
position: absolute;
}
.pic {
width: 100%;
height: 100%;
position: absolute;
}
.bus-license {
width: 140px;
height: 100px;
margin: 10px auto;
border: 1px solid #b2b2b2;
border-radius: 8px;
position: relative;
}
.next_step {
width: 120px;
height: 30px;
border-radius: 15px;
background-color: #999999;
color: #ffffff;
margin-top: 50px;
} }
} }
}
// iPhoneX适配 // iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) { @media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios { .platform-ios {
#home { #home {
}
} }
} }
}
// iPhoneX Max适配 // iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) { @media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
.platform-ios { .platform-ios {
#home { .platform-ios {
#home {
}
} }
} }
} }
}
</style> </style>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName" readonly/> <input type="text" class="edit" v-model="organizationName"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus =='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus =='SUCCESS'">
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode" readonly/> <input type="text" class="edit" v-model="socialCode"/>
</div> </div>
</div> </div>
<div class="info_list" style="border-bottom:none;"> <div class="info_list" style="border-bottom:none;">
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName" readonly/> <input type="text" class="edit" v-model="legalRepresentativeName"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="faceAuthStatus =='SUCCESS'"> <div class="info_list" v-if="faceAuthStatus =='SUCCESS'">
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
法定代表人身份证号码: 法定代表人身份证号码:
</div> </div>
<div class="list_right" style="width:46%;"> <div class="list_right" style="width:46%;">
<input type="text" class="edit" v-model="legalRepresentativeCardNumber" readonly/> <input type="text" class="edit" v-model="legalRepresentativeCardNumber"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="jbName" readonly/> <input type="text" class="edit" v-model="jbName"/>
</div> </div>
</div> </div>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:59%;"> <div class="list_right" style="width:59%;">
<input type="text" class="edit" v-model="jbIdNumber" readonly/> <input type="text" class="edit" v-model="jbIdNumber"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName1" readonly/> <input type="text" class="edit" v-model="organizationName1"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus =='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus =='SUCCESS'">
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode1" readonly/> <input type="text" class="edit" v-model="socialCode1"/>
</div> </div>
</div> </div>
<div class="info_list" style="border-bottom:none;"> <div class="info_list" style="border-bottom:none;">
...@@ -489,7 +489,7 @@ ...@@ -489,7 +489,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName" readonly/> <input type="text" class="edit" v-model="organizationName"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -502,7 +502,7 @@ ...@@ -502,7 +502,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode" readonly/> <input type="text" class="edit" v-model="socialCode"/>
</div> </div>
</div> </div>
<!-- <div class="info_list" style="border-bottom:none;"> <!-- <div class="info_list" style="border-bottom:none;">
...@@ -530,7 +530,7 @@ ...@@ -530,7 +530,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName" readonly/> <input type="text" class="edit" v-model="legalRepresentativeName"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -543,7 +543,7 @@ ...@@ -543,7 +543,7 @@
法定代表人身份证号码: 法定代表人身份证号码:
</div> </div>
<div class="list_right" style="width:46%;"> <div class="list_right" style="width:46%;">
<input type="text" class="edit" v-model="legalRepresentativeCardNumber" readonly/> <input type="text" class="edit" v-model="legalRepresentativeCardNumber"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -556,7 +556,7 @@ ...@@ -556,7 +556,7 @@
手机号码: 手机号码:
</div> </div>
<div class="list_right" style="width:70%;"> <div class="list_right" style="width:70%;">
<input type="text" class="edit" v-model="legalPhoneNumber" readonly/> <input type="text" class="edit" v-model="legalPhoneNumber"/>
</div> </div>
</div> </div>
<!-- <div style="margin: 10px 0 0 14px;color:#636363"> <!-- <div style="margin: 10px 0 0 14px;color:#636363">
...@@ -608,7 +608,7 @@ ...@@ -608,7 +608,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="jbName" readonly/> <input type="text" class="edit" v-model="jbName"/>
</div> </div>
</div> </div>
...@@ -622,7 +622,7 @@ ...@@ -622,7 +622,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="jbIdNumber" readonly/> <input type="text" class="edit" v-model="jbIdNumber"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -635,7 +635,7 @@ ...@@ -635,7 +635,7 @@
手机号码: 手机号码:
</div> </div>
<div class="list_right" style="width:70%;"> <div class="list_right" style="width:70%;">
<input type="text" class="edit" v-model="jbPhoneNumber" readonly/> <input type="text" class="edit" v-model="jbPhoneNumber"/>
</div> </div>
</div> </div>
<!-- <div style="margin: 10px 0 0 14px;color:#636363"> <!-- <div style="margin: 10px 0 0 14px;color:#636363">
...@@ -668,7 +668,7 @@ ...@@ -668,7 +668,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName1" readonly/> <input type="text" class="edit" v-model="organizationName1"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -681,7 +681,7 @@ ...@@ -681,7 +681,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode1" readonly/> <input type="text" class="edit" v-model="socialCode1"/>
</div> </div>
</div> </div>
<!-- <div class="info_list" style="border-bottom:none;"> <!-- <div class="info_list" style="border-bottom:none;">
...@@ -709,7 +709,7 @@ ...@@ -709,7 +709,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName1" readonly/> <input type="text" class="edit" v-model="legalRepresentativeName1"/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -722,7 +722,7 @@ ...@@ -722,7 +722,7 @@
法定代表人身份证号码: 法定代表人身份证号码:
</div> </div>
<div class="list_right" style="width:46%;"> <div class="list_right" style="width:46%;">
<input type="text" class="edit" v-model="legalRepresentativeCardNumber1" readonly/> <input type="text" class="edit" v-model="legalRepresentativeCardNumber1"/>
</div> </div>
</div> </div>
<button <button
...@@ -1051,7 +1051,7 @@ ...@@ -1051,7 +1051,7 @@
!vm.organizationName || !vm.organizationName ||
!vm.socialCode || !vm.socialCode ||
!vm.legalRepresentativeName || !vm.legalRepresentativeName ||
// !vm.legalRepresentativeCardNumber || !vm.legalRepresentativeCardNumber ||
!vm.legalPhoneNumber !vm.legalPhoneNumber
// || // ||
// !vm.cardUp || // !vm.cardUp ||
...@@ -1060,10 +1060,10 @@ ...@@ -1060,10 +1060,10 @@
vm.hlsPopup.showLongCenter("必输字端不能为空!"); vm.hlsPopup.showLongCenter("必输字端不能为空!");
return; return;
} }
// if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber)) { if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber)) {
// vm.hlsPopup.showLongCenter("法定代表人身份证号有误"); vm.hlsPopup.showLongCenter("法定代表人身份证号有误");
// return; return;
// } else { } else {
sessionStorage.setItem("organizationName_leg", vm.organizationName); sessionStorage.setItem("organizationName_leg", vm.organizationName);
sessionStorage.setItem("cardUp_leg", vm.cardUp); sessionStorage.setItem("cardUp_leg", vm.cardUp);
sessionStorage.setItem("busLic_leg", vm.busLic); sessionStorage.setItem("busLic_leg", vm.busLic);
...@@ -1107,7 +1107,7 @@ ...@@ -1107,7 +1107,7 @@
vm.$vux.toast.text(res.message, "middle"); vm.$vux.toast.text(res.message, "middle");
} }
}); });
// } }
}, },
next_step_oth() { next_step_oth() {
let vm = this; let vm = this;
...@@ -1115,7 +1115,7 @@ ...@@ -1115,7 +1115,7 @@
!vm.organizationName1 || !vm.organizationName1 ||
!vm.socialCode1 || !vm.socialCode1 ||
!vm.legalRepresentativeName1 || !vm.legalRepresentativeName1 ||
// !vm.legalRepresentativeCardNumber1 || !vm.legalRepresentativeCardNumber1 ||
!vm.jbName || !vm.jbName ||
!vm.jbPhoneNumber || !vm.jbPhoneNumber ||
!vm.jbIdNumber !vm.jbIdNumber
...@@ -1125,10 +1125,10 @@ ...@@ -1125,10 +1125,10 @@
vm.hlsPopup.showLongCenter("必输字端不能为空!"); vm.hlsPopup.showLongCenter("必输字端不能为空!");
return; return;
} }
// if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber1)) { if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber1)) {
// vm.hlsPopup.showLongCenter("身份证号有误"); vm.hlsPopup.showLongCenter("身份证号有误");
// return; return;
// } else { } else {
sessionStorage.setItem("organizationName_oth", vm.organizationName1); sessionStorage.setItem("organizationName_oth", vm.organizationName1);
sessionStorage.setItem("cardUp_oth", vm.cardUp1); sessionStorage.setItem("cardUp_oth", vm.cardUp1);
sessionStorage.setItem("busLic_oth", vm.busLic1); sessionStorage.setItem("busLic_oth", vm.busLic1);
...@@ -1171,7 +1171,7 @@ ...@@ -1171,7 +1171,7 @@
vm.$vux.toast.text(res.message, "middle"); vm.$vux.toast.text(res.message, "middle");
} }
}); });
// } }
}, },
UrlSearch() { UrlSearch() {
var name, value; var name, value;
...@@ -1263,14 +1263,14 @@ ...@@ -1263,14 +1263,14 @@
}, 100); }, 100);
}, },
// 进入授权管理 // 进入授权管理
goAutohrized(){ // goAutohrized(){
this.$router.push({ // this.$router.push({
name: 'AuthorizedAgent', // name: 'AuthorizedAgent',
params: { // params: {
id: vm.socialCode // id: vm.socialCode
}, // },
}) // })
}, // },
// 查询用户信息 // 查询用户信息
getUserInfo() { getUserInfo() {
var Request = new this.UrlSearch(); //实例化 var Request = new this.UrlSearch(); //实例化
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
class="next_step" class="next_step"
@click="logout()" @click="logout()"
>注销</div> >注销</div>
</div> </div>
</div> </div>
...@@ -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" <!--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%;" <!--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> <!--&gt;注销</button>-->
<div class="button_all">
<div v-if="isManagerFlag=='Y'"
class="next_step"
@click="goAutohrized()"
>授权管理</div>
<div
class="next_step"
@click="logout()"
>注销</div>
</div>
</div> </div>
</list-item> </list-item>
</h-content> </h-content>
...@@ -311,7 +321,7 @@ export default { ...@@ -311,7 +321,7 @@ export default {
orgAttachmentId: "", orgAttachmentId: "",
attachmentId1: "", attachmentId1: "",
orgAttachmentId1: "", orgAttachmentId1: "",
isManagerFlag:"", isManagerFlag:"",
managerAuthFlag:"", managerAuthFlag:"",
// agentType: "" // agentType: ""
...@@ -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