Commit 0acff547 authored by 胡's avatar

feat: 阶段性更新,基本完成多绑定

parent d7409fe3
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"3.1.8"' currentVersion: '"3.2.6"'
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
class="box" class="box"
v-for="item of list" v-for="item of list"
:key="item.bp_id" :key="item.bp_id"
@click="doCheck(item.user_bp_bind_id)" @click="doCheck(item.bp_id)"
> >
<div class="name"> <div class="name">
<img <img
...@@ -65,14 +65,18 @@ export default { ...@@ -65,14 +65,18 @@ export default {
let query = await this.hlsHttp.post(url, params); let query = await this.hlsHttp.post(url, params);
if (query.result == 'S') { if (query.result == 'S') {
this.hlsPopup.hideLoading(); this.hlsPopup.hideLoading();
// 自己添加认证文字 // 自己添加认证文字
let register = { let register = {
NP_NO: "个人认证未通过", NP_NO: "个人待认证",
NP_YES: "个人认证通过", NP_YES: "个人认证通过",
ORG_YES: "企业认证通过", ORG_YES: "企业认证通过",
ORG_NO: "企业认证未通过", ORG_NO: "企业待认证",
ORG_L_NO: "法人待认证",
ORG_L_YES: "法人认证通过",
ORG_AUTH_NO: "授权人待认证",
ORG_AUTH_YES: "授权人认证通过"
} }
query.lists = query.lists.map(item => { query.lists = query.lists.map(item => {
...@@ -106,7 +110,7 @@ export default { ...@@ -106,7 +110,7 @@ export default {
}, },
doCheck(id) { doCheck(id) {
this.list = this.list.map(item => { this.list = this.list.map(item => {
item.checked = item.user_bp_bind_id == id; item.checked = item.bp_id == id;
return item; return item;
}) })
}, },
......
...@@ -264,8 +264,9 @@ export default { ...@@ -264,8 +264,9 @@ export default {
// }, // },
// }, // },
mounted() { mounted() {
this.getList()
this.getMultipleRole(); this.getMultipleRole();
this.getHead(); this.getHead();
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next((vm) => { next((vm) => {
...@@ -286,6 +287,48 @@ export default { ...@@ -286,6 +287,48 @@ export default {
next() next()
}, },
methods: { methods: {
// 获取用户列表,并缓存
async getList() {
let url = process.env.basePath + 'user_bp_query';
let params = { app_user_id: window.localStorage.getItem('app_user_id') };
try {
hlsPopup.showLoading('请稍等');
let query = await this.hlsHttp.post(url, params);
if (query.result == 'S') {
this.hlsPopup.hideLoading();
// 自己添加认证文字
let register = {
NP_NO: "个人待认证",
NP_YES: "个人认证通过",
ORG_YES: "企业认证通过",
ORG_NO: "企业待认证",
ORG_L_NO: "法人待认证",
ORG_L_YES: "法人认证通过",
ORG_AUTH_NO: "授权人待认证",
ORG_AUTH_YES: "授权人认证通过"
}
query.lists = query.lists.map(item => {
item.bp_identity_name = register[item.bp_identity];
return item;
})
window.localStorage.setItem('bind-user-list', JSON.stringify(query.lists));
// window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify(query.lists.length ? query.lists[0] : {}));
this.bindUserList = query.lists;
} else {
this.hlsPopup.hideLoading();
this.hlsPopup.showLongCenter(res.message);
}
} catch (error) {
this.hlsPopup.hideLoading();
}
},
changeUser() { changeUser() {
this.hlsPopup.selectList({ this.hlsPopup.selectList({
list: this.bindUserList.map(item => ({ code_name: item.bp_name, code: item.bp_id })), list: this.bindUserList.map(item => ({ code_name: item.bp_name, code: item.bp_id })),
......
This diff is collapsed.
...@@ -63,6 +63,7 @@ export default { ...@@ -63,6 +63,7 @@ export default {
name = 'EnterpriseNew' name = 'EnterpriseNew'
bpClass = 'ORG' bpClass = 'ORG'
} }
window.localStorage.setItem('handleUser', JSON.stringify({}));
this.$router.push({ this.$router.push({
name: name, name: name,
params: { params: {
......
...@@ -286,7 +286,7 @@ export default { ...@@ -286,7 +286,7 @@ export default {
houseAttachmentId: '', houseAttachmentId: '',
carAttachmentId: '', carAttachmentId: '',
propertyInfo: { propertyInfo: {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
right_person: '', right_person: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
right_others: '', right_others: '',
}, },
hauseInfo: { hauseInfo: {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
house_owner: '', house_owner: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
land_use_limit: '', land_use_limit: '',
}, },
carInfo: { carInfo: {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
vehicle_identify_num: '', vehicle_identify_num: '',
address: '', address: '',
brand_model_number: '', brand_model_number: '',
...@@ -336,14 +336,14 @@ export default { ...@@ -336,14 +336,14 @@ export default {
}, },
computed: { computed: {
isApproved () { isApproved () {
return window.localStorage.user_bp_status === 'APPROVED' return JSON.parse(window.localStorage.getItem('handleUser')).bp_status === 'APPROVED'
}, },
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'true') { if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'true') {
vm.propertyInfo = { vm.propertyInfo = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
right_person: '', right_person: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -369,7 +369,7 @@ export default { ...@@ -369,7 +369,7 @@ export default {
land_number: '', land_number: '',
land_get_method: '', land_get_method: '',
land_use_limit: '', land_use_limit: '',
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.carInfo = { vm.carInfo = {
vehicle_identify_num: '', vehicle_identify_num: '',
...@@ -384,7 +384,7 @@ export default { ...@@ -384,7 +384,7 @@ export default {
regist_date: '', regist_date: '',
words_result_num: '', words_result_num: '',
success: '', success: '',
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id
} }
vm.houseImgUpload = '' vm.houseImgUpload = ''
vm.carImgUpload = '' vm.carImgUpload = ''
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
vm.isUploadHouse = false, // 房产证修改标识 vm.isUploadHouse = false, // 房产证修改标识
vm.isUploadCar = false, // 行驶证修改标识 vm.isUploadCar = false, // 行驶证修改标识
vm.isUploadEstate = false, // 不动产权证修改标识 vm.isUploadEstate = false, // 不动产权证修改标识
vm.bp_type = window.localStorage.bp_type vm.bp_type = JSON.parse(window.localStorage.getItem('handleUser')).bp_type
setTimeout(() => { setTimeout(() => {
vm.loadItemList(true) vm.loadItemList(true)
vm.getCarInfo() vm.getCarInfo()
...@@ -407,7 +407,7 @@ export default { ...@@ -407,7 +407,7 @@ export default {
}, 0) }, 0)
} else if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'false') { } else if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'false') {
vm.propertyInfo = { vm.propertyInfo = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
right_person: '', right_person: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -433,7 +433,7 @@ export default { ...@@ -433,7 +433,7 @@ export default {
land_number: '', land_number: '',
land_get_method: '', land_get_method: '',
land_use_limit: '', land_use_limit: '',
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.carInfo = { vm.carInfo = {
vehicle_identify_num: '', vehicle_identify_num: '',
...@@ -448,7 +448,7 @@ export default { ...@@ -448,7 +448,7 @@ export default {
regist_date: '', regist_date: '',
words_result_num: '', words_result_num: '',
success: '', success: '',
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.houseImgUpload = '' vm.houseImgUpload = ''
vm.carImgUpload = '' vm.carImgUpload = ''
...@@ -462,7 +462,7 @@ export default { ...@@ -462,7 +462,7 @@ export default {
vm.isUploadHouse = false, // 房产证修改标识 vm.isUploadHouse = false, // 房产证修改标识
vm.isUploadCar = false, // 行驶证修改标识 vm.isUploadCar = false, // 行驶证修改标识
vm.isUploadEstate = false, // 不动产权证修改标识 vm.isUploadEstate = false, // 不动产权证修改标识
vm.bp_type = window.localStorage.bp_type vm.bp_type = JSON.parse(window.localStorage.getItem('handleUser')).bp_type
vm.loadItemList(false) vm.loadItemList(false)
} }
}) })
...@@ -529,7 +529,7 @@ export default { ...@@ -529,7 +529,7 @@ export default {
let url = process.env.basePath + 'bp_vehicleLicense_query' let url = process.env.basePath + 'bp_vehicleLicense_query'
let flag = await vm.getEstateInfo() let flag = await vm.getEstateInfo()
let param = { let param = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
// hlsPopup.showLoading('请稍候') // hlsPopup.showLoading('请稍候')
if (flag) { if (flag) {
...@@ -549,7 +549,7 @@ export default { ...@@ -549,7 +549,7 @@ export default {
let url = process.env.basePath + 'bp_real_estate_query' let url = process.env.basePath + 'bp_real_estate_query'
let flag = await vm.getHouseInfo() let flag = await vm.getHouseInfo()
let param = { let param = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
// hlsPopup.showLoading('请稍候') // hlsPopup.showLoading('请稍候')
if (flag) { if (flag) {
...@@ -597,7 +597,7 @@ export default { ...@@ -597,7 +597,7 @@ export default {
// vm.hlsPopup.hideLoading() // vm.hlsPopup.hideLoading()
// if (res.result === 'S') { // if (res.result === 'S') {
this.$router.push({ this.$router.push({
name: 'NPBankInfo', name: 'NPBankInfo',
}) })
// } else { // } else {
// hlsPopup.showError(res.message) // hlsPopup.showError(res.message)
...@@ -608,7 +608,7 @@ export default { ...@@ -608,7 +608,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_house_info_query' let url = process.env.basePath + 'bp_house_info_query'
let param = { let param = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
...@@ -991,7 +991,7 @@ export default { ...@@ -991,7 +991,7 @@ export default {
loadItemList (flag) { loadItemList (flag) {
let vm = this let vm = this
vm.dowload_list = [] vm.dowload_list = []
let bpId = window.localStorage.getItem('bp_id') let bpId = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
if (bpId === 'undefined') { if (bpId === 'undefined') {
bpId = null bpId = null
} }
......
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
return { return {
backImg: null, backImg: null,
showModalValue: false, showModalValue: false,
bp_identity: window.localStorage.bp_identity, bp_identity: JSON.parse(window.localStorage.getItem('handleUser')).bp_identity,
bankList: [], bankList: [],
isClear: false, isClear: false,
certification_status: '', certification_status: '',
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
}, },
computed: { computed: {
isApproved () { isApproved () {
return window.localStorage.user_bp_status === 'APPROVED' return JSON.parse(window.localStorage.getItem('handleUser')).bp_status === 'APPROVED'
}, },
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
...@@ -154,13 +154,13 @@ export default { ...@@ -154,13 +154,13 @@ export default {
vm.getBankInfo() vm.getBankInfo()
vm.checkElectonic() vm.checkElectonic()
}) })
}, },
methods: { methods: {
successCall () { successCall () {
this.hideModal() this.hideModal()
this.getBankInfo() this.getBankInfo()
this.bank.bank_account_num = '' this.bank.bank_account_num = ''
this.bank.bank_account_name = '' this.bank.bank_account_name = ''
this.bank.bank_full_name = '' this.bank.bank_full_name = ''
this.bank.bank_branch_name = '' this.bank.bank_branch_name = ''
}, },
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
this.showModalValue = false this.showModalValue = false
this.isClear = true this.isClear = true
this.bank.bank_account_num = '' this.bank.bank_account_num = ''
this.bank.bank_account_name = window.localStorage.bp_name this.bank.bank_account_name = ''
this.bank.bank_card_type = '' this.bank.bank_card_type = ''
this.bank.bank_full_name = '' this.bank.bank_full_name = ''
this.bank.bank_branch_name = '' this.bank.bank_branch_name = ''
...@@ -176,10 +176,11 @@ export default { ...@@ -176,10 +176,11 @@ export default {
showModal () { showModal () {
this.showModalValue = true this.showModalValue = true
this.bankImg = '' this.bankImg = ''
this.bank.bank_account_name = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
}, },
async checkElectonic () { async checkElectonic () {
let vm = this let vm = this
let id = window.localStorage.getItem('bp_id') let id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
let url = process.env.basePath + 'bp_elec_check' let url = process.env.basePath + 'bp_elec_check'
let param = { let param = {
bp_id: id, bp_id: id,
...@@ -213,7 +214,7 @@ export default { ...@@ -213,7 +214,7 @@ export default {
// 只有自然人需要认证 // 只有自然人需要认证
let url = process.env.basePath + 'bp_query' let url = process.env.basePath + 'bp_query'
let param = { let param = {
bp_id: window.localStorage.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then((result) => { vm.hlsHttp.post(url, param).then((result) => {
...@@ -260,9 +261,9 @@ export default { ...@@ -260,9 +261,9 @@ export default {
let url = $config.basePath + 'bp_bind_submit' let url = $config.basePath + 'bp_bind_submit'
let param = { let param = {
master: { master: {
bp_id: window.localStorage.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bp_class: 'ORG', bp_class: 'ORG',
bp_type: window.localStorage.getItem('bp_type'), bp_type: JSON.parse(window.localStorage.getItem('handleUser')).bp_type,
business_num: window.localStorage.getItem('business_num'), business_num: window.localStorage.getItem('business_num'),
}, },
} }
...@@ -290,6 +291,7 @@ export default { ...@@ -290,6 +291,7 @@ export default {
let url = $config.basePath + 'auth_user_sign' let url = $config.basePath + 'auth_user_sign'
let param = { let param = {
phone: window.localStorage.user_phone, phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
...@@ -309,7 +311,7 @@ export default { ...@@ -309,7 +311,7 @@ export default {
content: '您确认添加吗?', content: '您确认添加吗?',
onConfirm: data => { onConfirm: data => {
if (data === 1) { if (data === 1) {
let bpName = window.localStorage.getItem('bp_name') let bpName = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
if ( if (
this.bank.bank_account_num === '' || this.bank.bank_account_num === '' ||
this.bank.bank_account_name === '' || this.bank.bank_account_name === '' ||
...@@ -327,7 +329,7 @@ export default { ...@@ -327,7 +329,7 @@ export default {
let url = process.env.basePath + 'bp_bank_save' let url = process.env.basePath + 'bp_bank_save'
let param = { let param = {
master: { master: {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bank_lists: this.bankList, bank_lists: this.bankList,
}, },
} }
...@@ -359,11 +361,10 @@ export default { ...@@ -359,11 +361,10 @@ export default {
this.showModalValue = true this.showModalValue = true
}, },
getBankInfo () { getBankInfo () {
let vm = this let vm = this
let id = window.localStorage.getItem('bp_id')
let url = process.env.basePath + 'bp_bank_query' let url = process.env.basePath + 'bp_bank_query'
let param = { let param = {
bp_id: id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp vm.hlsHttp
...@@ -405,7 +406,7 @@ export default { ...@@ -405,7 +406,7 @@ export default {
let url = process.env.basePath + 'bp_bank_delete' let url = process.env.basePath + 'bp_bank_delete'
let param = { let param = {
'master': { 'master': {
'bp_id': window.localStorage.getItem('user_id'), 'bp_id': JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
'bank_account_num': e, 'bank_account_num': e,
}, },
} }
......
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
searchLecens: false, searchLecens: false,
inputNum: false, // 填写业务经办 inputNum: false, // 填写业务经办
isSave: false, isSave: false,
isAGENT: this.$route.params.isAGENT, isAGENT: JSON.parse(window.localStorage.getItem('handleUser')).isAGENT,
isMultiRole: false, // 能否选择多角色 isMultiRole: false, // 能否选择多角色
isSelected: false, isSelected: false,
hasMultiRole: false, // 是否有第二个角色 hasMultiRole: false, // 是否有第二个角色
...@@ -396,7 +396,7 @@ export default { ...@@ -396,7 +396,7 @@ export default {
academic_background_n: '', academic_background_n: '',
marital_status_n: '', marital_status_n: '',
bp_type: '', bp_type: '',
bp_class: this.$route.params.bp_class, bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class,
bp_name: '', bp_name: '',
province_name: '', province_name: '',
province_id: '', province_id: '',
...@@ -420,7 +420,7 @@ export default { ...@@ -420,7 +420,7 @@ export default {
working_place_sp: '', working_place_sp: '',
address_sp: '', address_sp: '',
user_phone: window.localStorage.user_phone, user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id
}, },
idCardFront: '', // 身份证正面图片 idCardFront: '', // 身份证正面图片
idCardBack: '', // 身份证反面图片 idCardBack: '', // 身份证反面图片
...@@ -496,13 +496,13 @@ export default { ...@@ -496,13 +496,13 @@ export default {
next(vm => { next(vm => {
vm.isAddNewType = false vm.isAddNewType = false
if (['/tab/my-info', '/tab/function-center', '/Setting', '/myBindUser'].includes(from.fullPath)) { if (['/tab/my-info', '/tab/function-center', '/Setting', '/myBindUser'].includes(from.fullPath)) {
if (vm.$route.params.status === 'APPROVED') { if (JSON.parse(window.localStorage.getItem('handleUser')).status === 'APPROVED') {
vm.isApproved = true vm.isApproved = true
} else { } else {
vm.isApproved = false vm.isApproved = false
} }
vm.isMultiRole = vm.$route.params.isMultiRole vm.isMultiRole = JSON.parse(window.localStorage.getItem('handleUser')).isMultiRole
vm.multipleRole = JSON.parse(window.localStorage.now_user_bp_bind_id).bp_type vm.multipleRole = JSON.parse(window.localStorage.getItem('handleUser')).bp_type
// window.localStorage.getItem('multipleRole') // window.localStorage.getItem('multipleRole')
vm.list = {} vm.list = {}
vm.multiBpType = {} vm.multiBpType = {}
...@@ -516,7 +516,7 @@ export default { ...@@ -516,7 +516,7 @@ export default {
academic_background_n: '', academic_background_n: '',
marital_status_n: '', marital_status_n: '',
bp_type: '', bp_type: '',
bp_class: vm.$route.params.bp_class, bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class,
bp_name: '', bp_name: '',
province_name: '', province_name: '',
province_id: '', province_id: '',
...@@ -597,7 +597,7 @@ export default { ...@@ -597,7 +597,7 @@ export default {
academic_background_n: '', academic_background_n: '',
marital_status_n: '', marital_status_n: '',
bp_type: '', bp_type: '',
bp_class: vm.$route.params.bp_class, bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class,
bp_name: '', bp_name: '',
province_name: '', province_name: '',
province_id: '', province_id: '',
...@@ -778,18 +778,17 @@ export default { ...@@ -778,18 +778,17 @@ export default {
async verified(flag) { async verified(flag) {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片 this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片 this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片
let res = await this.saveWord() let bpId = await this.saveWord()
if (res) { if (bpId) {
// 查询资料清单 // 查询资料清单
this.loadItemList(flag) this.loadItemList(flag)
} }
}, },
loadItemList(flag) { // flag用来判断是否需要加载图片文件 loadItemList(flag) { // flag用来判断是否需要加载图片文件
let vm = this let vm = this
let bpId = JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id let bpId = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
if (bpId === 'undefined') { if (bpId === 'undefined') bpId = null;
bpId = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
...@@ -824,8 +823,9 @@ export default { ...@@ -824,8 +823,9 @@ export default {
vm.cddItemList.push(item) vm.cddItemList.push(item)
} }
}) })
// 查询图片 // 查询图片
if (flag) { if (flag) {
console.log(listTemp);
listTemp.forEach((item, index) => { listTemp.forEach((item, index) => {
if (item.cdd_item !== 'HOUSE_CARD' || item.cdd_item !== 'REAL_EST_CERTIFICATE' || item.cdd_item !== 'CAR_CARD' || item.cdd_item !== 'ASSETS_CARD' || item.cdd_item !== 'FAMILY_REGISTER' || item.cdd_item !== 'MARITAL STATUS') { if (item.cdd_item !== 'HOUSE_CARD' || item.cdd_item !== 'REAL_EST_CERTIFICATE' || item.cdd_item !== 'CAR_CARD' || item.cdd_item !== 'ASSETS_CARD' || item.cdd_item !== 'FAMILY_REGISTER' || item.cdd_item !== 'MARITAL STATUS') {
vm.load_picture(item.check_id, index, item.cdd_item) vm.load_picture(item.check_id, index, item.cdd_item)
...@@ -982,7 +982,7 @@ export default { ...@@ -982,7 +982,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.$router.push({ vm.$router.push({
name: 'NPInvoiceInfo', name: 'NPInvoiceInfo'
}) })
} else { } else {
hlsPopup.showError(res.message) hlsPopup.showError(res.message)
...@@ -1005,7 +1005,8 @@ export default { ...@@ -1005,7 +1005,8 @@ export default {
// window.localStorage.setItem('bp_id', res.bp_id) // window.localStorage.setItem('bp_id', res.bp_id)
// window.localStorage.setItem('bp_name', vm.baseInfo.bp_name) // window.localStorage.setItem('bp_name', vm.baseInfo.bp_name)
// window.localStorage.setItem('bp_type', vm.baseInfo.bp_type) // window.localStorage.setItem('bp_type', vm.baseInfo.bp_type)
vm.bindCheck() window.localStorage.setItem('handleUser', JSON.stringify({...JSON.parse(window.localStorage.getItem('handleUser')), bp_id: res.bp_id, bp_name: vm.baseInfo.bp_name, bp_type: vm.baseInfo.bp_type}));
await vm.bindCheck()
return res.bp_id return res.bp_id
} else { } else {
hlsPopup.hideLoading() hlsPopup.hideLoading()
...@@ -1076,7 +1077,7 @@ export default { ...@@ -1076,7 +1077,7 @@ export default {
vm.hlsPopup.showLongCenter('配偶手机号码有误!') vm.hlsPopup.showLongCenter('配偶手机号码有误!')
} else { } else {
let bpId = await vm.saveProtocol() let bpId = await vm.saveProtocol()
return true return bpId;
} }
}, },
// 图片上传入口 // 图片上传入口
...@@ -1518,7 +1519,7 @@ export default { ...@@ -1518,7 +1519,7 @@ export default {
list: vm.typeList, list: vm.typeList,
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.baseInfo.bp_type = obj.bp_type vm.baseInfo.bp_type = obj.bp_type
vm.baseInfo.bp_type_n = obj.bp_type_n vm.baseInfo.bp_type_n = obj.bp_type_n
}, },
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_invoice_query' let url = process.env.basePath + 'bp_invoice_query'
let param = { let param = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
vm.invoiceInfo = res.info vm.invoiceInfo = res.info
if (res.info.invoice_title == '' || res.info.invoice_title == null || res.info.invoice_title == undefined) { if (res.info.invoice_title == '' || res.info.invoice_title == null || res.info.invoice_title == undefined) {
vm.invoiceInfo.invoice_title = window.localStorage.bp_name vm.invoiceInfo.invoice_title = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
} }
vm.addRows(vm.invoiceInfo.invoice_adds) vm.addRows(vm.invoiceInfo.invoice_adds)
vm.addRowsLive(vm.invoiceInfo.open_bank) vm.addRowsLive(vm.invoiceInfo.open_bank)
...@@ -145,9 +145,9 @@ export default { ...@@ -145,9 +145,9 @@ export default {
}, },
save () { save () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_invoice_save' let url = process.env.basePath + 'bp_invoice_save'
let name = ((window.localStorage.bp_type === 'TENANT' || window.localStorage.bp_type === 'GUTA') && !window.localStorage.getItem('multipleRole')) || ((window.localStorage.multipleRole === 'TENANT' || window.localStorage.multipleRole === 'GUTA') && window.localStorage.getItem('multipleRole')) ? 'AccessoryInfo' : 'NPBankInfo' let name = ['TENANT', 'GUTA'].includes(JSON.parse(window.localStorage.getItem('handleUser')).bp_type) ? 'AccessoryInfo' : 'NPBankInfo';
vm.invoiceInfo.bp_id = window.localStorage.getItem('bp_id') vm.invoiceInfo.bp_id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id;
vm.invoiceInfo.bp_class = 'NP' vm.invoiceInfo.bp_class = 'NP'
let param = { let param = {
master: vm.invoiceInfo, master: vm.invoiceInfo,
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.$router.push({ vm.$router.push({
name: name, name: name
}) })
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
...@@ -249,8 +249,9 @@ export default { ...@@ -249,8 +249,9 @@ export default {
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.$set(vm.invoiceInfo, 'invoice_kind', obj.bp_type) vm.invoiceInfo = {...vm.invoiceInfo, invoice_kind: obj.bp_type, invoice_kind_n: obj.bp_type_n};
vm.$set(vm.invoiceInfo, 'invoice_kind_n', obj.bp_type_n) // vm.$set(vm.invoiceInfo, 'invoice_kind', obj.bp_type)
// vm.$set(vm.invoiceInfo, 'invoice_kind_n', obj.bp_type_n)
/* vm.invoiceInfo.invoice_kind = obj.bp_type /* vm.invoiceInfo.invoice_kind = obj.bp_type
vm.invoiceInfo.invoice_kind_n = obj.bp_type_n */ vm.invoiceInfo.invoice_kind_n = obj.bp_type_n */
}, },
...@@ -262,9 +263,10 @@ export default { ...@@ -262,9 +263,10 @@ export default {
list: vm.taxpayerList, list: vm.taxpayerList,
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.$set(vm.invoiceInfo, 'taxpayer_type', obj.bp_type) vm.invoiceInfo = {...vm.invoiceInfo, taxpayer_type: obj.bp_type, taxpayer_type_n: obj.bp_type_n}
vm.$set(vm.invoiceInfo, 'taxpayer_type_n', obj.bp_type_n) // vm.$set(vm.invoiceInfo, 'taxpayer_type', obj.bp_type)
// vm.$set(vm.invoiceInfo, 'taxpayer_type_n', obj.bp_type_n)
/* vm.invoiceInfo.taxpayer_type = obj.bp_type /* vm.invoiceInfo.taxpayer_type = obj.bp_type
vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n */ vm.invoiceInfo.taxpayer_type_n = obj.bp_type_n */
}, },
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
isApproved: false, isApproved: false,
backImg: null, backImg: null,
getBankList: [], getBankList: [],
bp_identity: window.localStorage.bp_identity, bp_identity: JSON.parse(window.localStorage.getItem('handleUser')).bp_identity,
bank_lists: { bank_lists: {
bank_account_num: '', // 卡号 bank_account_num: '', // 卡号
bank_account_name: '', // 账户姓名 bank_account_name: '', // 账户姓名
...@@ -163,13 +163,11 @@ export default { ...@@ -163,13 +163,11 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_attachment_check' let url = process.env.basePath + 'bp_attachment_check'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
if (window.localStorage.getItem('authFlag') === 'true') { if (window.localStorage.getItem('authFlag') === 'true') {
console.log(11111111111)
vm.handSubmit() vm.handSubmit()
} else { } else {
console.log(2222222222)
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
...@@ -186,7 +184,7 @@ export default { ...@@ -186,7 +184,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_bank_query' let url = process.env.basePath + 'bp_bank_query'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -201,7 +199,7 @@ export default { ...@@ -201,7 +199,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_elec_check' let url = process.env.basePath + 'bp_elec_check'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -258,7 +256,7 @@ export default { ...@@ -258,7 +256,7 @@ export default {
let url = process.env.basePath + 'bp_bank_delete' let url = process.env.basePath + 'bp_bank_delete'
let param = { let param = {
'master': { 'master': {
'bp_id': this.$route.params.bp_id, 'bp_id': JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
'bank_account_num': e, 'bank_account_num': e,
}, },
} }
...@@ -310,7 +308,7 @@ export default { ...@@ -310,7 +308,7 @@ export default {
// 只有自然人需要认证 // 只有自然人需要认证
let url = process.env.basePath + 'bp_query' let url = process.env.basePath + 'bp_query'
let param = { let param = {
bp_id: window.localStorage.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then((result) => { vm.hlsHttp.post(url, param).then((result) => {
...@@ -357,9 +355,9 @@ export default { ...@@ -357,9 +355,9 @@ export default {
let url = $config.basePath + 'bp_bind_submit' let url = $config.basePath + 'bp_bind_submit'
let param = { let param = {
master: { master: {
bp_id: window.localStorage.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bp_class: 'ORG', bp_class: 'ORG',
bp_type: window.localStorage.getItem('bp_type'), bp_type: JSON.parse(window.localStorage.getItem('handleUser')).bp_type,
business_num: window.localStorage.getItem('business_num'), business_num: window.localStorage.getItem('business_num'),
}, },
} }
...@@ -387,6 +385,7 @@ export default { ...@@ -387,6 +385,7 @@ export default {
let url = $config.basePath + 'auth_user_sign' let url = $config.basePath + 'auth_user_sign'
let param = { let param = {
phone: window.localStorage.user_phone, phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
...@@ -494,7 +493,7 @@ export default { ...@@ -494,7 +493,7 @@ export default {
let url = $config.basePath + 'bp_bank_save' let url = $config.basePath + 'bp_bank_save'
let param = { let param = {
master: { master: {
bp_id: this.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bank_lists: [this.bank_lists], bank_lists: [this.bank_lists],
}, },
} }
......
...@@ -459,8 +459,8 @@ export default { ...@@ -459,8 +459,8 @@ export default {
authidCardFrontUpload: '', authidCardFrontUpload: '',
authidCardBackUpload: '', authidCardBackUpload: '',
licenseImgUpload: '', licenseImgUpload: '',
isAGENT: this.$route.params.isAGENT, // 是否为经销商 isAGENT: JSON.parse(window.localStorage.getItem('handleUser')).isAGENT, // 是否为经销商
isMultiRole: this.$route.params.isMultiRole, // 担保人/承租人为true isMultiRole: JSON.parse(window.localStorage.getItem('handleUser')).isMultiRole, // 担保人/承租人为true
img_url: {}, img_url: {},
typeList: [], typeList: [],
backList: [], backList: [],
...@@ -519,7 +519,7 @@ export default { ...@@ -519,7 +519,7 @@ export default {
organization_code: '', organization_code: '',
registered_capital: '', registered_capital: '',
// business_license_num: '', // business_license_num: '',
bp_class: this.$route.params.bp_class, bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class,
}, },
authMsg: { authMsg: {
auth_person_name: '', auth_person_name: '',
...@@ -618,7 +618,7 @@ export default { ...@@ -618,7 +618,7 @@ export default {
vm.getBpType() vm.getBpType()
vm.getProvince() vm.getProvince()
vm.isAddNewType = false vm.isAddNewType = false
if (from.fullPath === '/tab/my-info' || from.fullPath === '/tab/function-center') { /* || from.fullPath === '/margin-first-pay' */ if (['/myBindUser', '/tab/my-info', '/tab/function-center'].includes(from.fullPath)) { /* || from.fullPath === '/margin-first-pay' */
vm.bp_type_flag = false vm.bp_type_flag = false
vm.licenseImgUpload = '' vm.licenseImgUpload = ''
vm.laImgUpload = '' vm.laImgUpload = ''
...@@ -631,11 +631,11 @@ export default { ...@@ -631,11 +631,11 @@ export default {
id_card_date_to: '', // 法定代表人身份证有效期到 id_card_date_to: '', // 法定代表人身份证有效期到
} }
vm.hasPeople = false vm.hasPeople = false
if (vm.$route.params.status === 'APPROVED') { if (JSON.parse(window.localStorage.getItem('handleUser')).bp_status === 'APPROVED') {
vm.isApproved = true vm.isApproved = true
window.localStorage.setItem('isApproved', vm.isApproved) window.localStorage.setItem('isApproved', vm.isApproved)
} }
vm.isMultiRole = vm.$route.params.isMultiRole vm.isMultiRole = JSON.parse(window.localStorage.getItem('handleUser')).isMultiRole;
window.localStorage.setItem('from', true) window.localStorage.setItem('from', true)
vm.baseInfo = { vm.baseInfo = {
agent_username: '', agent_username: '',
...@@ -658,7 +658,7 @@ export default { ...@@ -658,7 +658,7 @@ export default {
organization_code: '', organization_code: '',
registered_capital: '', registered_capital: '',
// business_license_num: '', // business_license_num: '',
bp_class: vm.$route.params.bp_class, bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class,
} }
vm.authMsg = { vm.authMsg = {
auth_person_name: '', auth_person_name: '',
...@@ -671,7 +671,7 @@ export default { ...@@ -671,7 +671,7 @@ export default {
} }
vm.multiBpTypeSelectList = []// 选择的角色 vm.multiBpTypeSelectList = []// 选择的角色
vm.multiRoleList = []// 查询的角色 vm.multiRoleList = []// 查询的角色
vm.bp_id = vm.$route.params.bp_id vm.bp_id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
vm.idCardFrontUpload = '' vm.idCardFrontUpload = ''
vm.idCardBackUpload = '' vm.idCardBackUpload = ''
vm.authidCardFrontUpload = '' vm.authidCardFrontUpload = ''
...@@ -749,7 +749,7 @@ export default { ...@@ -749,7 +749,7 @@ export default {
organization_code: '', organization_code: '',
registered_capital: '', registered_capital: '',
// business_license_num: '', // business_license_num: '',
bp_class: vm.$route.params.bp_class, bp_class: JSON.parse(window.localStorage.getItem('handleUser')).bp_class,
} }
vm.authMsg = { vm.authMsg = {
auth_person_name: '', auth_person_name: '',
...@@ -850,8 +850,8 @@ export default { ...@@ -850,8 +850,8 @@ export default {
let flag = vm.checkHasmultiple() let flag = vm.checkHasmultiple()
let param = { let param = {
master: { master: {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bp_type: window.localStorage.getItem('bp_type'), bp_type: JSON.parse(window.localStorage.getItem('handleUser')).bp_type,
}, },
} }
if (flag) { if (flag) {
...@@ -878,7 +878,7 @@ export default { ...@@ -878,7 +878,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_role_check' let url = process.env.basePath + 'bp_role_check'
let param = { let param = {
bp_id: window.localStorage.getItem('bp_id'), bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
let res = await vm.hlsHttp.post(url, param) let res = await vm.hlsHttp.post(url, param)
if (res.result === 'S') { if (res.result === 'S') {
...@@ -933,7 +933,7 @@ export default { ...@@ -933,7 +933,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_cdd_check_update' let url = process.env.basePath + 'prj_cdd_check_update'
let param = { let param = {
document_id: window.localStorage.bp_id, document_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
tab_group: 'HLS_ORG_AUTH', tab_group: 'HLS_ORG_AUTH',
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
...@@ -980,7 +980,7 @@ export default { ...@@ -980,7 +980,7 @@ export default {
} }
}, },
handSubmit () { handSubmit () {
let bp_id = this.from ? this.$route.params.bp_id : this.bp_id let bp_id = this.from ? JSON.parse(window.localStorage.getItem('handleUser')).bp_id : this.bp_id
if (bp_id) { if (bp_id) {
this.hlsPopup.showConfirm({ this.hlsPopup.showConfirm({
title: '提示', title: '提示',
...@@ -991,7 +991,7 @@ export default { ...@@ -991,7 +991,7 @@ export default {
let param = { let param = {
master: { master: {
// bp_id: window.localStorage.getItem('user_id'), // bp_id: window.localStorage.getItem('user_id'),
bp_id: this.from ? this.$route.params.bp_id : this.bp_id, bp_id: this.from ? JSON.parse(window.localStorage.getItem('handleUser')).bp_id : this.bp_id,
company_id: '2145', company_id: '2145',
}, },
} }
...@@ -1031,14 +1031,21 @@ export default { ...@@ -1031,14 +1031,21 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.$router.push({ window.localStorage.setItem('handleUser', JSON.stringify({
name: 'Invoice', ...JSON.parse( window.localStorage.getItem('handleUser')),
params: {
bp_id: vm.bp_id, bp_id: vm.bp_id,
organization_code: vm.baseInfo.organization_code, organization_code: vm.baseInfo.organization_code,
from: vm.from, from: vm.from,
bp_name: vm.baseInfo.bp_name, bp_name: vm.baseInfo.bp_name
}, }));
vm.$router.push({
name: 'Invoice',
// params: {
// bp_id: vm.bp_id,
// organization_code: vm.baseInfo.organization_code,
// from: vm.from,
// bp_name: vm.baseInfo.bp_name,
// },
}) })
} else { } else {
hlsPopup.showError(res.message) hlsPopup.showError(res.message)
...@@ -1311,7 +1318,7 @@ export default { ...@@ -1311,7 +1318,7 @@ export default {
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
let url = $config.basePath + 'bp_org_bind_save' let url = $config.basePath + 'bp_org_bind_save'
let param = { let param = {
master: vm.saveInfo, master: {...vm.saveInfo, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id, user_phone: window.localStorage.getItem('user_phone')},
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -1319,8 +1326,12 @@ export default { ...@@ -1319,8 +1326,12 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
// vm.hlsPopup.showSuccess('保存成功,请去维护附件信息') // vm.hlsPopup.showSuccess('保存成功,请去维护附件信息')
vm.bp_id = res.bp_id vm.bp_id = res.bp_id
window.localStorage.setItem('bp_type', vm.baseInfo.bp_type) // window.localStorage.setItem('bp_type', vm.baseInfo.bp_type)
window.localStorage.setItem('bp_id', res.bp_id) // window.localStorage.setItem('bp_id', res.bp_id)
window.localStorage.setItem('handleUser', JSON.stringify({...JSON.parse(window.localStorage.getItem('handleUser')), bp_id: res.bp_id, bp_type: vm.baseInfo.bp_type}));
vm.loadCheckIdAndSaveAtt(res.bp_id) vm.loadCheckIdAndSaveAtt(res.bp_id)
} else { } else {
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
...@@ -1729,7 +1740,7 @@ export default { ...@@ -1729,7 +1740,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'bp_org_info_query' let url = process.env.basePath + 'bp_org_info_query'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -1773,7 +1784,7 @@ export default { ...@@ -1773,7 +1784,7 @@ export default {
let url = process.env.basePath + 'bp_type_save' let url = process.env.basePath + 'bp_type_save'
let param = { let param = {
master: { master: {
bp_id: window.localStorage.getItem('bp_id'), bp_id:JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
bp_type: vm.multiBpType.bp_type, bp_type: vm.multiBpType.bp_type,
}, },
} }
...@@ -1984,7 +1995,7 @@ export default { ...@@ -1984,7 +1995,7 @@ export default {
vm.authidCardBackAttachmentId = res.lists[0].attachment_id vm.authidCardBackAttachmentId = res.lists[0].attachment_id
break break
case 'ORG_CODE': case 'ORG_CODE':
if (!vm.licenseImgUrlFlag) { if (!vm.licenseImgUrlFlag) {
vm.licenseImg = res.lists[0].url vm.licenseImg = res.lists[0].url
} }
vm.licenseAttachmentId = res.lists[0].attachment_id vm.licenseAttachmentId = res.lists[0].attachment_id
...@@ -2006,7 +2017,7 @@ export default { ...@@ -2006,7 +2017,7 @@ export default {
// 附件查询 // 附件查询
loadItemList (flag, type) { loadItemList (flag, type) {
let vm = this let vm = this
let bpId = vm.from ? window.localStorage.bp_id : vm.bp_id let bpId = vm.from ? JSON.parse(window.localStorage.getItem('handleUser')).bp_id : vm.bp_id
if (bpId === 'undefined') { if (bpId === 'undefined') {
bpId = null bpId = null
} }
......
...@@ -372,7 +372,7 @@ export default { ...@@ -372,7 +372,7 @@ export default {
dowload_list: [], // 下载图片列表 dowload_list: [], // 下载图片列表
upload_list: [], // 上传图片列表 upload_list: [], // 上传图片列表
carInfo: { // 行驶证 carInfo: { // 行驶证
bp_id: this.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
vehicle_identify_num: '', vehicle_identify_num: '',
address: '', address: '',
brand_model_number: '', brand_model_number: '',
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
success: '', success: '',
}, },
hauseInfo: { // 房产证 hauseInfo: { // 房产证
bp_id: this.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
house_owner: '', house_owner: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -403,7 +403,7 @@ export default { ...@@ -403,7 +403,7 @@ export default {
land_use_limit: '', land_use_limit: '',
}, },
propertyInfo: { // 不动产证 propertyInfo: { // 不动产证
bp_id: this.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
right_person: '', right_person: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -419,8 +419,9 @@ export default { ...@@ -419,8 +419,9 @@ export default {
}, },
watch: {}, watch: {},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'Invoice' && window.localStorage.from === 'true') { if (from.name === 'Invoice' && JSON.parse(window.localStorage.getItem('handleUser')).from) {
console.log('1--');
vm.carFlag = false, // 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的 vm.carFlag = false, // 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm.houseFlag = false, // 房产证查看标识,为false则用查询出来的,为true则用拍照出来的 vm.houseFlag = false, // 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm.propertyFlag = false, // 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的 vm.propertyFlag = false, // 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
...@@ -431,7 +432,7 @@ export default { ...@@ -431,7 +432,7 @@ export default {
vm.houseImg = '', vm.houseImg = '',
vm.propertyImg = '', // 不动产识别图片 vm.propertyImg = '', // 不动产识别图片
vm.propertyInfo = { // 不动产证 vm.propertyInfo = { // 不动产证
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
right_person: '', right_person: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -444,7 +445,7 @@ export default { ...@@ -444,7 +445,7 @@ export default {
right_others: '', right_others: '',
} }
vm.hauseInfo = { // 房产证 vm.hauseInfo = { // 房产证
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
house_owner: '', house_owner: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -460,7 +461,7 @@ export default { ...@@ -460,7 +461,7 @@ export default {
land_use_limit: '', land_use_limit: '',
} }
vm.carInfo = { // 行驶证 vm.carInfo = { // 行驶证
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
vehicle_identify_num: '', vehicle_identify_num: '',
address: '', address: '',
brand_model_number: '', brand_model_number: '',
...@@ -481,12 +482,13 @@ export default { ...@@ -481,12 +482,13 @@ export default {
vm.dowload_list = [] vm.dowload_list = []
vm.cddItemList = [] vm.cddItemList = []
vm.isApproved = window.localStorage.isApproved vm.isApproved = window.localStorage.isApproved
vm.bp_id = vm.$route.params.bp_id vm.bp_id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
vm.loadItemList(true) vm.loadItemList(true)
vm.houseQuery() vm.houseQuery()
// vm.carQuery() // vm.carQuery()
// vm.propertyQuery() // 不动产权证查询 // vm.propertyQuery() // 不动产权证查询
} else if (from.name === 'Invoice' && window.localStorage.from === 'false') { } else if (from.name === 'Invoice' && !JSON.parse(window.localStorage.getItem('handleUser')).from) {
console.log('2--');
vm.carFlag = false, // 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的 vm.carFlag = false, // 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm.houseFlag = false, // 房产证查看标识,为false则用查询出来的,为true则用拍照出来的 vm.houseFlag = false, // 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm.propertyFlag = false, // 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的 vm.propertyFlag = false, // 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
...@@ -497,7 +499,7 @@ export default { ...@@ -497,7 +499,7 @@ export default {
vm.houseImg = '', vm.houseImg = '',
vm.propertyImg = '', // 不动产识别图片 vm.propertyImg = '', // 不动产识别图片
vm.propertyInfo = { // 不动产证 vm.propertyInfo = { // 不动产证
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
right_person: '', right_person: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -510,7 +512,7 @@ export default { ...@@ -510,7 +512,7 @@ export default {
right_others: '', right_others: '',
} }
vm.hauseInfo = { // 房产证 vm.hauseInfo = { // 房产证
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
house_owner: '', house_owner: '',
public_situation: '', public_situation: '',
house_located: '', house_located: '',
...@@ -526,7 +528,7 @@ export default { ...@@ -526,7 +528,7 @@ export default {
land_use_limit: '', land_use_limit: '',
} }
vm.carInfo = { // 行驶证 vm.carInfo = { // 行驶证
bp_id: vm.$route.params.bp_id, bp_id: JSON.parse(window.localStorage.getItem('handleUser')).bp_id,
vehicle_identify_num: '', vehicle_identify_num: '',
address: '', address: '',
brand_model_number: '', brand_model_number: '',
...@@ -547,7 +549,7 @@ export default { ...@@ -547,7 +549,7 @@ export default {
vm.dowload_list = [] vm.dowload_list = []
vm.cddItemList = [] vm.cddItemList = []
vm.isApproved = window.localStorage.isApproved vm.isApproved = window.localStorage.isApproved
vm.bp_id = vm.$route.params.bp_id vm.bp_id = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
vm.loadItemList(false) vm.loadItemList(false)
} }
}) })
...@@ -934,7 +936,7 @@ export default { ...@@ -934,7 +936,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
vm.dowload_list = [] vm.dowload_list = []
let bpId = window.localStorage.getItem('bp_id') let bpId = JSON.parse(window.localStorage.getItem('handleUser')).bp_id
if (bpId === 'undefined') { if (bpId === 'undefined') {
bpId = null bpId = null
} }
......
...@@ -119,9 +119,9 @@ export default { ...@@ -119,9 +119,9 @@ export default {
open_bank: '', open_bank: '',
open_account: '', open_account: '',
} }
vm.invoiceInfo.invoice_title = vm.$route.params.bp_name vm.invoiceInfo.invoice_title = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
vm.invoiceInfo.organization_code = vm.$route.params.organization_code vm.invoiceInfo.organization_code = JSON.parse(window.localStorage.getItem('handleUser')).organization_code
vm.bp_id = vm.$route.params.bp_id vm.bp_id =JSON.parse(window.localStorage.getItem('handleUser')).bp_id
vm.invoiceQuery() // 开票信息查询 vm.invoiceQuery() // 开票信息查询
} }
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
console.log('invoiceInfo', res.info) console.log('invoiceInfo', res.info)
vm.invoiceInfo = res.info vm.invoiceInfo = res.info
vm.invoiceInfo.invoice_title = vm.$route.params.bp_name vm.invoiceInfo.invoice_title = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
// Object.assign(vm.invoiceInfo, res.info) // Object.assign(vm.invoiceInfo, res.info)
vm.addRows(vm.invoiceInfo.invoice_adds) vm.addRows(vm.invoiceInfo.invoice_adds)
vm.addRowsLive(vm.invoiceInfo.open_bank) vm.addRowsLive(vm.invoiceInfo.open_bank)
...@@ -294,8 +294,10 @@ export default { ...@@ -294,8 +294,10 @@ export default {
// }, // },
// }) // })
let vm = this let vm = this
let url = process.env.basePath + 'bp_invoice_save' let url = process.env.basePath + 'bp_invoice_save'
let name = ((window.localStorage.bp_type === 'TENANT' || window.localStorage.bp_type === 'GUTA') && !window.localStorage.getItem('multipleRole')) || ((window.localStorage.multipleRole === 'TENANT' || window.localStorage.multipleRole === 'GUTA') && window.localStorage.getItem('multipleRole')) ? 'Enclosure' : 'BankInfo' let name = ['TENANT', 'GUTA'].includes(JSON.parse(window.localStorage.getItem('handleUser')).bp_type)
? 'Enclosure' : 'BankInfo'
let param = { let param = {
bp_id: vm.bp_id, bp_id: vm.bp_id,
bp_class: 'ORG', bp_class: 'ORG',
......
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