Commit ee8afd7e authored by 胡's avatar

feat

parent 7f34e61b
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.1.5"'
currentVersion: '"3.1.7"'
}
......@@ -63,4 +63,8 @@ export default {
//-webkit-overflow-scrolling: touch;
//overflow-scrolling: touch;
}
.weui-dialog {
top: 30%;
}
</style>
......@@ -65,9 +65,9 @@ export default {
let query = await this.hlsHttp.post(url, params);
if (query.result == 'S') {
this.hlsPopup.hideLoading();
this.hlsPopup.hideLoading();
// 认证
// 自己添加认证文字
let register = {
NP_NO: "个人认证未通过",
NP_YES: "个人认证通过",
......@@ -80,17 +80,21 @@ export default {
return item;
})
query.bp_identity_name =
window.localStorage.setItem('bind-user-list', JSON.stringify(query.lists));
this.list = query.lists;
// 一个都没有,直接跳过
if (!this.list.length) {
window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify({}));
this.$router.push('tab');
}
// 如果只有一个,就不用选,直接跳
if (this.list.length === 1) {
this.list[0].checked = true;
this.next();
}
} else {
this.hlsPopup.hideLoading();
this.hlsPopup.showLongCenter(res.message);
......
......@@ -638,7 +638,8 @@ export default {
let param = {
master: {
project_id: window.localStorage.project_id,
phone: window.localStorage.getItem('user_phone'),
// phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
},
}
vm.hlsPopup.showLoading('请稍候')
......
......@@ -69,7 +69,8 @@ export default {
let vm = this
let url = process.env.basePath + 'con_repayment_list_query'
let param = {
user_phone: window.localStorage.getItem('user_phone'),
// user_phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagesize: 10,
pagenum: vm.pagenum,
}
......
......@@ -1071,7 +1071,8 @@ export default {
let vm = this
let url = process.env.basePath + 'linked_contract_query'
let param = {
user_phone: window.localStorage.getItem('user_phone'),
// user_phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
......
......@@ -110,7 +110,8 @@ export default {
'&index' +
`'${randomString}'`
let param = {
user_phone: window.localStorage.getItem('user_phone'),
// user_phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
car_start_status: vm.status,
searchInput: vm.keyWord,
}
......@@ -170,7 +171,8 @@ export default {
'&index' +
`'${randomString}'`
let param = {
user_phone: window.localStorage.getItem('user_phone'),
// user_phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagesize: 10,
pagenum: vm.status === 'APPROVED' ? vm.pagenumApproved : vm.pagenumNew,
searchInput: vm.keyWord,
......
......@@ -144,7 +144,8 @@ export default {
pagenum: vm.submitPagenum,
searchInput: vm.searchInput,
confirm_status: 'SUBMIT',
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,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
......@@ -169,7 +170,8 @@ export default {
pagenum: vm.approvedPagenum,
searchInput: vm.searchInput,
confirm_status: 'APPROVED',
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,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
......@@ -197,7 +199,8 @@ export default {
vm.submitPagenum++
let url = $config.basePath + 'prj_confirm_list_query'
let param = {
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,
pagesize: 10,
pagenum: vm.submitPagenum,
confirm_status: 'SUBMIT',
......@@ -231,7 +234,8 @@ export default {
vm.approvedPagenum++
let url = $config.basePath + 'prj_confirm_list_query'
let param = {
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,
pagesize: 10,
pagenum: vm.approvedPagenum,
confirm_status: 'APPROVED',
......@@ -268,7 +272,8 @@ export default {
vm.submitPagenum = 1
let url = $config.basePath + 'prj_confirm_list_query'
let param = {
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,
pagesize: 10,
pagenum: vm.submitPagenum,
confirm_status: 'SUBMIT',
......@@ -293,7 +298,8 @@ export default {
let url = $config.basePath + 'prj_confirm_list_query'
vm.approvedPagenum = 1
let param = {
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,
pagesize: 10,
pagenum: vm.approvedPagenum,
confirm_status: 'APPROVED',
......
......@@ -171,7 +171,7 @@ export default {
// },
methods: {
userQuery () {
// let vm = this
let vm = this
// let url = $config.basePath + 'user_query'
// let param = {
// phone: window.localStorage.getItem('user_phone'),
......
......@@ -187,7 +187,8 @@ export default {
this.todoList = []
let param = {
document_name: '',
phone: window.localStorage.getItem('user_phone'),
// phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagenum: this.pageNum,
pagesize: 10,
}
......@@ -211,7 +212,8 @@ export default {
this.doneList = []
let param = {
document_name: '',
phone: window.localStorage.getItem('user_phone'),
// phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagenum: this.pageNum_1,
pagesize: 10,
}
......@@ -239,7 +241,8 @@ export default {
param = {
document_name: this.searchInput,
pagenum: this.pageNum,
phone: window.localStorage.getItem('user_phone'),
// phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagesize: 10,
}
} else if (this.selected === 'done') {
......@@ -248,7 +251,8 @@ export default {
param = {
document_name: this.searchInput,
pagenum: this.pageNum_1,
phone: window.localStorage.getItem('user_phone'),
// phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagesize: 10,
}
}
......
......@@ -137,7 +137,8 @@ export default {
let vm = this
let url = process.env.basePath + 'prj_confirm_list_query'
let param = {
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,
}
vm.hlsPopup.showLoading('数据加载中,请稍候!')
vm.hlsHttp.post(url, param).then(function (res) {
......
......@@ -155,16 +155,16 @@ export default {
currentVersion: process.env.currentVersion,
// multipleRole: '',
upLoadObj: defaultImg, // 上传的图片
flag: true,
// flag: true,
// isAGENT: false,
popSetect: false, // true:待提交或者审核未通过
popSetectBox: false, // 弹出选择框
elecStatusDesceibe: '',
// popSetect: false, // true:待提交或者审核未通过
// popSetectBox: false, // 弹出选择框
// elecStatusDesceibe: '',
user_bp_status: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_status,
user_bp_class: '',
bp_id: '',
// user_bp_class: '',
// bp_id: '',
user_phone: window.localStorage.getItem('user_phone'),
user_bp_name: '',
// user_bp_name: '',
user_bp_type: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')).bp_type,
// signCount: '0',
// carNum: '0',
......@@ -173,14 +173,15 @@ export default {
// confirmCount: '0',
productCount: '0',
// carCount: '9',
description: '',
bp_identity: '',
bp_type_n: '',
approveBtn: false,
elecStatus: false,
authFlag: false,
// description: '',
// bp_identity: '',
// bp_type_n: '',
// approveBtn: false,
// elecStatus: false,
// authFlag: false,
roleSwitchFlag: false, // 选择角色模态框显示标志
multiRoleList: [], // 查到的多角色
app_user_id: window.localStorage.getItem('app_user_id'),
// type: [
// {
// bp_type: '0',
......@@ -204,66 +205,67 @@ export default {
return this.bindUserList;
}
},
watch: {
// user_bp_type (newVal, oldVal) {
// if (newVal === 'AGENT') {
// this.isAGENT = true
// } else {
// this.isAGENT = false
// }
// },
bp_identity(newVal, oldVal) {
switch (newVal) {
case 'NP_NO': {
this.elecStatusDesceibe = '个人待认证'
this.elecStatus = false
break
}
case 'NP_YES': {
this.elecStatusDesceibe = '个人认证通过'
this.elecStatus = true
break
}
case 'ORG_NO': {
this.elecStatusDesceibe = '企业待认证'
this.elecStatus = false
break
}
case 'ORG_YES': {
this.elecStatusDesceibe = '企业认证通过'
this.elecStatus = true
break
}
case 'ORG_L_NO': {
this.elecStatusDesceibe = '法人待认证'
this.elecStatus = false
break
}
case 'ORG_L_YES': {
this.elecStatusDesceibe = '法人认证通过'
this.elecStatus = true
break
}
case 'ORG_AUTH_NO': {
this.elecStatusDesceibe = '授权人待认证'
this.elecStatus = false
break
}
case 'ORG_AUTH_YES': {
this.elecStatusDesceibe = '授权人认证通过'
this.elecStatus = true
break
}
default: {
this.elecStatusDesceibe = '用户未绑定'
this.elecStatus = false
break
}
}
},
},
// watch: {
// user_bp_type (newVal, oldVal) {
// if (newVal === 'AGENT') {
// this.isAGENT = true
// } else {
// this.isAGENT = false
// }
// },
// bp_identity(newVal, oldVal) {
// switch (newVal) {
// case 'NP_NO': {
// this.elecStatusDesceibe = '个人待认证'
// this.elecStatus = false
// break
// }
// case 'NP_YES': {
// this.elecStatusDesceibe = '个人认证通过'
// this.elecStatus = true
// break
// }
// case 'ORG_NO': {
// this.elecStatusDesceibe = '企业待认证'
// this.elecStatus = false
// break
// }
// case 'ORG_YES': {
// this.elecStatusDesceibe = '企业认证通过'
// this.elecStatus = true
// break
// }
// case 'ORG_L_NO': {
// this.elecStatusDesceibe = '法人待认证'
// this.elecStatus = false
// break
// }
// case 'ORG_L_YES': {
// this.elecStatusDesceibe = '法人认证通过'
// this.elecStatus = true
// break
// }
// case 'ORG_AUTH_NO': {
// this.elecStatusDesceibe = '授权人待认证'
// this.elecStatus = false
// break
// }
// case 'ORG_AUTH_YES': {
// this.elecStatusDesceibe = '授权人认证通过'
// this.elecStatus = true
// break
// }
// default: {
// this.elecStatusDesceibe = '用户未绑定'
// this.elecStatus = false
// break
// }
// }
// },
// },
mounted() {
this.getMultipleRole();
this.getHead();
},
beforeRouteEnter(to, from, next) {
next((vm) => {
......@@ -441,7 +443,7 @@ export default {
// },
// 进入我的还款
goReimburse() {
if (this.bp_id) {
if (this.nowBind.bp_id) {
this.$router.push({
name: 'ReimburseMyselfList',
})
......@@ -662,15 +664,18 @@ export default {
let vm = this
this.hlsPopup.showActionSheet({
buttonArray:
vm.user_bp_type === 'MANAGER' ? ['修改头像'] : ['修改头像', '用户信息', '角色切换'],
vm.user_bp_type === 'MANAGER' ? ['修改头像'] : ['修改头像', '角色切换'],
// '角色切换'
callback: (index) => {
if (index === 0) {
this.imgUploadShow(vm.app_user_id)
} else if (index === 1) {
this.changePageHead(this.nowBind);
} else if (index === 2) {
console.log(vm.user_bp_type);
console.log(vm.user_bp_status);
}
// else if (index === 2) {
// this.changePageHead(this.nowBind);
// }
else if (index === 1) {
// console.log(vm.user_bp_type);
// console.log(vm.user_bp_status);
if (
(vm.user_bp_type === 'TENANT' ||
vm.user_bp_type === 'GUTA' ||
......@@ -699,7 +704,11 @@ export default {
}
vm.hlsHttp.post(url, param).then(function (res) {
if (res.result === 'S') {
vm.multiRoleList = res.lists
let obj = {
bp_type: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_type,
bp_type_n: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_type_n,
}
vm.multiRoleList = [...res.lists, obj]
}
})
},
......@@ -1182,9 +1191,13 @@ export default {
align-items: center;
span {
font-size: 85%;
font-size: 15px;
color: orange;
margin: 0;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
div {
......
......@@ -9,7 +9,7 @@
<scroll ref="scrollLists" :updateData="[prolists]" :pullUp="false">
<div class="scroll-box">
<div class="box" v-for="item of list" :key="item.bp_id">
<div class="box" v-for="item of list" :key="item.bp_id" @click.stop="changePageHead(item)">
<div class="name">
<img
v-if="item.bp_class === 'NP'"
......@@ -20,10 +20,10 @@
<span>{{ item.bp_name }}</span>
</div>
<div class="flag">
<div @click="face(item)">{{ item.bp_identity_name }}</div>
<div @click.stop="face(item)">{{ item.bp_identity_name }}</div>
<div
:class="['normal', { unbind: item.bp_status === 'APPROVED' }]"
@click="doStatus(item)"
@click.stop="doStatus(item)"
>{{ item.bp_status === 'APPROVED' ? '× 解绑' : item.bp_status_n }}</div>
</div>
</div>
......@@ -279,10 +279,9 @@ export default {
background-color: #fff;
border-radius: 8px;
line-height: 60px;
font-size: 80%;
font-size: 16px;
color: rgb(58, 58, 58);
margin-bottom: 0.15rem;
margin-bottom: 0.15rem;
img {
height: 20px;
vertical-align: text-bottom;
......@@ -312,7 +311,7 @@ export default {
border: 1px solid #1d3fff;
line-height: 19.5px;
text-align: center;
font-size: 0.12rem;
font-size: 13px;
padding: 0 4px;
color: #1d3fff;
}
......
......@@ -15,10 +15,10 @@
</item>
</list-item>
<list-item :item-height="50" class="list">
<item v-if="bpId!=='undefined'" v-show="user_bp_type!='MANAGER'" @click.native="changePageHead()">
<!-- <item v-if="bpId!=='undefined'" v-show="user_bp_type!='MANAGER'" @click.native="changePageHead()">
<div slot="name" style="color:#656464;">修改信息</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item>
</item> -->
<item v-if="user_bp_type!='MANAGER'" @click.native="changeRole()">
<div slot="name" style="color:#656464;">角色切换</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
......@@ -33,10 +33,10 @@
</div>
<div slot="right-icon" style="float:right;color:#383F45;opacity:0.4;">当前版本&nbsp;&nbsp;{{ currentVersion }}</div>
</item>
<item v-if="user_bp_type!='MANAGER'" @click.native="unBind()">
<!-- <item v-if="user_bp_type!='MANAGER'" @click.native="unBind()">
<div slot="name" style="color:#656464;">解除绑定</div>
<div class="arrow_right"><img src="@/assets/myinfo/arrow_right.png"></div>
</item>
</item> -->
</list-item>
</div>
</h-content>
......@@ -67,7 +67,7 @@ export default {
bp_id: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_id,
user_bp_name: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_name,
user_bp_class: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_class,
isMultiRole: window.localStorage.getItem('multipleRole'),
isMultiRole: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_type,
roleSwitchFlag: false,
user_bp_type: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_type,
bp_type_n: '',
......@@ -75,8 +75,10 @@ export default {
version_url: '',
update_content: '',
multiRoleList: [],
multipleRole: window.localStorage.getItem('multipleRole'),
// multipleRole: JSON.parse(window.localStorage.getItem("now_user_bp_bind_id")).bp_type,
bpId: window.localStorage.bp_id,
nowBind: JSON.parse(window.localStorage.getItem('now_user_bp_bind_id')),
}
},
computed: {
......@@ -99,7 +101,7 @@ export default {
},
beforeRouteEnter (to, from, next) {
next(vm => {
console.log(vm.currentVersion)
// console.log(vm.currentVersion)
vm.getVersion()
})
},
......@@ -107,17 +109,22 @@ export default {
// 选择角色后确定
roleConfirm (role) {
this.roleSwitchFlag = false
if (role.bp_type === 'TENANT') {
window.localStorage.setItem('multipleRole', 'TENANT')
this.multipleRole = 'TENANT'
} else if (role.bp_type === 'GUTA') {
window.localStorage.setItem('multipleRole', 'GUTA')
this.multipleRole = 'GUTA'
} else if (role.bp_type === 'AGENT') {
window.localStorage.setItem('multipleRole', 'AGENT')
this.multipleRole = 'AGENT'
}
console.log('选择后的角色为:' + role)
// if (role.bp_type === 'TENANT') {
// window.localStorage.setItem('multipleRole', 'TENANT')
// this.multipleRole = 'TENANT'
// } else if (role.bp_type === 'GUTA') {
// window.localStorage.setItem('multipleRole', 'GUTA')
// this.multipleRole = 'GUTA'
// } else if (role.bp_type === 'AGENT') {
// window.localStorage.setItem('multipleRole', 'AGENT')
// this.multipleRole = 'AGENT'
// }
this.nowBind = { ...this.nowBind, bp_type: role.bp_type, bp_type_n: role.bp_type_n };
window.localStorage.setItem('now_user_bp_bind_id', JSON.stringify(this.nowBind));
// console.log('选择后的角色为:' + role)
},
// 选择角色后取消
roleCancle () {
......@@ -174,8 +181,7 @@ export default {
}
})
},
getMultipleRole () {
let vm = this
getMultipleRole () {
let url = process.env.basePath + 'bp_role_query'
let param = {
master: {
......
......@@ -94,7 +94,8 @@ export default {
let vm = this
let url = process.env.basePath + 'initial_payment_query'
let param = {
phone: window.localStorage.getItem('user_phone'),
// phone: window.localStorage.getItem('user_phone'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
......
<!-- 自然人绑定 -->
<template>
<h-view id="np-base-info">
<h-header :proportion="[5,1,1]" class="bar-custom">
<h-header :proportion="[5, 1, 1]" class="bar-custom">
<div slot="left" class="h-header-btn" @click="$routeGo()">
<img src="@/assets/userBind/arrow.png" >
<img src="@/assets/userBind/arrow.png" />
<span>基本信息</span>
</div>
</h-header>
......@@ -19,44 +19,58 @@
readonly
onfocus="this.blur()"
@click="selectIdTypeOnly()"
>
/>
</item>
<item v-if="isApproved&&!isMultiRole">
<item v-if="isApproved && !isMultiRole">
<div slot="name" class="required">客户类型</div>
<span slot="content">{{ baseInfo.bp_type_n }}</span>
</item>
<item v-if="isApproved&&isMultiRole&&!hasMultiRole" :showArrow="true" @click.native="selectIdType">
<item
v-if="isApproved && isMultiRole && !hasMultiRole"
:showArrow="true"
@click.native="selectIdType"
>
<div slot="name" class="required">客户类型</div>
<div slot="content" class="typeBP">
<span>{{ baseInfo.bp_type_n }}</span>
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>
<span v-for="(item,index) in multiBpTypeSelectList" :key="item.bp_type">
{{ item.bp_type_n }}
<img v-if="item.bp_type_n" src="@/assets/userBind/deleteTag.png" @click.stop @click="deleteBP(item)" >
<img
v-if="item.bp_type_n"
src="@/assets/userBind/deleteTag.png"
@click.stop
@click="deleteBP(item)"
/>
</span>
</div>
</item>
<item v-if="isApproved&&isMultiRole&&hasMultiRole" :showArrow="true">
<item v-if="isApproved && isMultiRole && hasMultiRole" :showArrow="true">
<div slot="name" class="required">客户类型</div>
<div slot="content" class="typeBP">
<span>{{ baseInfo.bp_type_n }}</span>
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>
</div>
</item>
<item v-if="(((isPaople&&from)||(isPaople&&isSelected)))||(multipleRole==='GUTA'||multipleRole==='TENANT')||searchPeople" :proportion="[3,7]">
<item
v-if="(((isPaople && from) || (isPaople && isSelected))) || (multipleRole === 'GUTA' || multipleRole === 'TENANT') || searchPeople"
:proportion="[3, 7]"
>
<div slot="name" class="required">业务经办人</div>
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" >
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" />
<!-- <div slot="content" class="add-people"><input v-model="baseInfo.agent_username"><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div> -->
<!-- <div slot="content" class="add-people"><div class="people-list"><span v-for="(item,index) in peopleList" :key="index">{{ item }}</span></div>
<div><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div></div> -->
<div><img src="@/assets/contractCreate/add1.png" @click="inputNum=true"></div></div>-->
</item>
<item v-if="(((isLesons&&from)||(isLesons&&isSelected)))||multipleRole==='AGENT'||searchLecens">
<item
v-if="(((isLesons && from) || (isLesons && isSelected))) || multipleRole === 'AGENT' || searchLecens"
>
<div slot="name" class="required">营业执照</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" >
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" />
</item>
<item v-if="(isMatter&&from)||(isMatter&&isSelected)">
<item v-if="(isMatter && from) || (isMatter && isSelected)">
<div slot="name" class="required">办事处代码</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" >
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入办事处代码" />
</item>
<button v-if="isAddNewType" class="type-save" @click="addNewRole">新增角色</button>
</list-item>
......@@ -65,11 +79,11 @@
<span>身份证照片上传</span>
<div class="upload-box">
<div v-if="!idCardFront" @click="ocrShow('idCard', 'front')">
<img src="@/assets/userBind/front.png" >
<img src="@/assets/userBind/front.png" />
<p>正面</p>
</div>
<div v-if="idCardFront && !isApproved" @click="ocrShow('idCard', 'front')">
<img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" >
<img :src="idCardFront" style="width: 100%;height: 100%;margin: 0" />
</div>
<div v-if="isApproved && idCardFront">
<img
......@@ -77,14 +91,14 @@
:src="idCardFront"
style="width: 100%;height: 100%;margin: 0"
@click="showBigPicture(idCardFront)"
>
/>
</div>
<div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">
<img src="@/assets/userBind/back.png" >
<img src="@/assets/userBind/back.png" />
<p>反面</p>
</div>
<div v-if="idCardBack && !isApproved" @click="ocrShow('idCard', 'back')">
<img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" >
<img :src="idCardBack" style="width: 100%;height: 100%;margin: 0" />
</div>
<div v-if="isApproved && idCardBack">
<img
......@@ -92,7 +106,7 @@
:src="idCardBack"
style="width: 100%;height: 100%;margin: 0"
@click="showBigPicture(idCardBack)"
>
/>
</div>
</div>
</div>
......@@ -105,7 +119,7 @@
readonly
placeholder="上传身份证自动填充"
class="auto"
>
/>
</item>
<item>
<div slot="name" class="required">身份证号码</div>
......@@ -115,7 +129,7 @@
readonly
placeholder="上传身份证自动填充"
class="auto"
>
/>
</item>
<item>
<div slot="name" class="required">户籍地址</div>
......@@ -139,7 +153,7 @@
readonly
placeholder="上传身份证自动填充"
class="auto"
>
/>
<!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> -->
</item>
<item>
......@@ -150,11 +164,11 @@
readonly
placeholder="上传身份证自动填充"
class="auto"
>
/>
</item>
<item>
<div slot="name" class="required">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" readonly placeholder="请输入手机号码" >
<input slot="content" v-model="baseInfo.cell_phone" readonly placeholder="请输入手机号码" />
</item>
<item :showArrow="true">
<div slot="name" class="required">业务办理省</div>
......@@ -166,7 +180,7 @@
readonly
onfocus="this.blur()"
@click="selectProvince()"
>
/>
</item>
<item :showArrow="true">
<div slot="name" class="required">业务办理市</div>
......@@ -178,7 +192,7 @@
readonly
onfocus="this.blur()"
@click="selectCity()"
>
/>
</item>
<item :showArrow="true">
<div slot="name" class="required">业务办理区/县</div>
......@@ -190,7 +204,7 @@
readonly
onfocus="this.blur()"
@click="selectDistrict()"
>
/>
</item>
<item>
<div slot="name" class="required">联系地址</div>
......@@ -206,7 +220,7 @@
</item>
<item>
<div slot="name" class="required">资产信息</div>
<input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" >
<input slot="content" v-model="baseInfo.capital" placeholder="请输入资产信息" />
</item>
<item :showArrow="true">
<div slot="name" class="required">学历</div>
......@@ -217,10 +231,10 @@
readonly
onfocus="this.blur()"
@click="selectBackType"
>
/>
</item>
<item
v-if="((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA')&&!multipleRole)||multipleRole=== 'TENANT' || multipleRole === 'GUTA'"
v-if="((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA') && !multipleRole) || multipleRole === 'TENANT' || multipleRole === 'GUTA'"
:showArrow="true"
>
<div slot="name" class="required">婚姻状况</div>
......@@ -231,11 +245,11 @@
readonly
onfocus="this.blur()"
@click="selectMarital"
>
/>
</item>
</list-item>
<div
v-if="(hasSP && (((baseInfo.bp_type === 'TENANT'||baseInfo.bp_type === 'GUTA')&&!multipleRole)||multipleRole=== 'TENANT' || multipleRole === 'GUTA'))"
v-if="(hasSP && (((baseInfo.bp_type === 'TENANT' || baseInfo.bp_type === 'GUTA') && !multipleRole) || multipleRole === 'TENANT' || multipleRole === 'GUTA'))"
>
<!-- 主承租人活担保人为已婚显示-->
<div class="userInfo">配偶信息</div>
......@@ -243,11 +257,11 @@
<span>身份证照片上传</span>
<div class="upload-box">
<div v-if="!idCardFrontSp" @click="ocrShow('idCardSp', 'front')">
<img src="@/assets/userBind/front.png" >
<img src="@/assets/userBind/front.png" />
<p>正面</p>
</div>
<div v-if="idCardFrontSp && !isApproved" @click="ocrShow('idCardSp', 'front')">
<img :src="idCardFrontSp" style="width: 100%;height: 100%;margin: 0" >
<img :src="idCardFrontSp" style="width: 100%;height: 100%;margin: 0" />
</div>
<div v-if="isApproved && idCardFrontSp">
<img
......@@ -255,14 +269,14 @@
:src="idCardFrontSp"
style="width: 100%;height: 100%;margin: 0"
@click="showBigPicture(idCardFrontSp)"
>
/>
</div>
<div v-if="!idCardBackSp" @click="ocrShow('idCardSp', 'back')">
<img src="@/assets/userBind/back.png" >
<img src="@/assets/userBind/back.png" />
<p>反面</p>
</div>
<div v-if="idCardBackSp && !isApproved" @click="ocrShow('idCardSp', 'back')">
<img :src="idCardBackSp" style="width: 100%;height: 100%;margin: 0" >
<img :src="idCardBackSp" style="width: 100%;height: 100%;margin: 0" />
</div>
<div v-if="isApproved && idCardBackSp">
<img
......@@ -270,23 +284,18 @@
:src="idCardBackSp"
style="width: 100%;height: 100%;margin: 0"
@click="showBigPicture(idCardBackSp)"
>
/>
</div>
</div>
</div>
<list-item :item-height="44">
<item>
<div slot="name" class="required">姓名</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly placeholder="上传身份证自动填充" >
<input slot="content" v-model="baseInfo.bp_name_sp" readonly placeholder="上传身份证自动填充" />
</item>
<item>
<div slot="name" class="required">配偶身份证号</div>
<input
slot="content"
v-model="baseInfo.id_card_no_sp"
readonly
placeholder="上传身份证自动填充"
>
<input slot="content" v-model="baseInfo.id_card_no_sp" readonly placeholder="上传身份证自动填充" />
</item>
<item>
<div slot="name" class="required">身份证有效期从</div>
......@@ -295,7 +304,7 @@
v-model="baseInfo.id_card_date_from_sp"
readonly
placeholder="上传身份证自动填充"
>
/>
</item>
<item>
<div slot="name" class="required">身份证有效期到</div>
......@@ -304,19 +313,19 @@
v-model="baseInfo.id_card_date_to_sp"
readonly
placeholder="上传身份证自动填充"
>
/>
</item>
<item>
<div slot="name" class="required">手机号码</div>
<input slot="content" v-model="baseInfo.spouse_phone" placeholder="请输入手机号码" >
<input slot="content" v-model="baseInfo.spouse_phone" placeholder="请输入手机号码" />
</item>
<item>
<div slot="name" class="required">工作单位</div>
<input slot="content" v-model="baseInfo.working_place_sp" placeholder="请输入工作单位" >
<input slot="content" v-model="baseInfo.working_place_sp" placeholder="请输入工作单位" />
</item>
<item>
<div slot="name" class="required">联系地址</div>
<input slot="content" v-model="baseInfo.address_sp" placeholder="请输入联系地址" >
<input slot="content" v-model="baseInfo.address_sp" placeholder="请输入联系地址" />
</item>
</list-item>
</div>
......@@ -329,7 +338,7 @@
ref="inputtNum"
@roleCancle="roleCancle"
@roleConfirm="roleConfirm"
/> -->
/>-->
</h-view>
</template>
<script>
......@@ -338,7 +347,7 @@ export default {
components: {
InputNum,
},
data () {
data() {
return {
list: {},
idCardFrontUpload: '',
......@@ -411,6 +420,7 @@ export default {
working_place_sp: '',
address_sp: '',
user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id
},
idCardFront: '', // 身份证正面图片
idCardBack: '', // 身份证反面图片
......@@ -439,7 +449,7 @@ export default {
}
},
watch: {
'baseInfo.bp_type_n' (newVal, oldVal) {
'baseInfo.bp_type_n'(newVal, oldVal) {
let vm = this
if (vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') {
vm.isPaople = true
......@@ -475,24 +485,25 @@ export default {
},
},
created () {
created() {
this.getBpType()
this.getEducationBackground()
this.getMarital()
this.getProvince()
},
beforeRouteEnter (to, from, next) {
beforeRouteEnter(to, from, next) {
// 绑定查询入口
next(vm => {
vm.isAddNewType = false
if (from.fullPath === '/tab/my-info' || from.fullPath === '/tab/function-center' || from.fullPath === '/Setting') {
if (['/tab/my-info', '/tab/function-center', '/Setting', '/myBindUser'].includes(from.fullPath)) {
if (vm.$route.params.status === 'APPROVED') {
vm.isApproved = true
} else {
vm.isApproved = false
}
vm.isMultiRole = vm.$route.params.isMultiRole
vm.multipleRole = window.localStorage.getItem('multipleRole')
vm.multipleRole = JSON.parse(window.localStorage.now_user_bp_bind_id).bp_type
// window.localStorage.getItem('multipleRole')
vm.list = {}
vm.multiBpType = {}
vm.multiBpTypeSelectList = []// 选择的角色
......@@ -500,7 +511,8 @@ export default {
vm.upload_list = [] // 上传图片列表
vm.dowload_list = [] // 下载图片列表
vm.img_url = {}
vm.baseInfo = { bp_type_n: '',
vm.baseInfo = {
bp_type_n: '',
academic_background_n: '',
marital_status_n: '',
bp_type: '',
......@@ -527,7 +539,10 @@ export default {
spouse_phone: '',
working_place_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,
}
vm.idCardFront = '' // 身份证正面图片
vm.idCardBack = '' // 身份证反面图片
vm.idCardFrontSp = '' // 配偶身份证正面图片
......@@ -606,6 +621,7 @@ export default {
working_place_sp: '',
address_sp: '',
user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
}
vm.idCardFrontUpload = ''
vm.idCardBackUpload = ''
......@@ -649,10 +665,10 @@ export default {
// }
// this.inputNum = false
// },
timeFormat (str) {
timeFormat(str) {
return `${str.substring(0, 4)}-${str.substring(4, 6)}-${str.substring(6)}`
},
deleteBP (e) {
deleteBP(e) {
let deleteIndex
this.multiBpTypeSelectList.forEach((i, index, arr) => {
if (arr[index].bp_type.indexOf(e.bp_type) !== -1) {
......@@ -662,12 +678,12 @@ export default {
this.multiBpTypeSelectList.splice(deleteIndex, 1)
this.isAddNewType = false
},
addNewRole () {
addNewRole() {
let vm = this
let url = process.env.basePath + 'bp_type_save'
let param = {
master: {
bp_id: window.localStorage.getItem('bp_id'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
bp_type: vm.multiBpType.bp_type,
},
}
......@@ -686,11 +702,11 @@ export default {
}
})
},
basicInfoQuery () {
basicInfoQuery() {
let vm = this
let url = process.env.basePath + 'bp_np_info_query'
let param = {
bp_id: window.localStorage.getItem('bp_id'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
......@@ -707,7 +723,7 @@ export default {
}
})
},
load_picture (check_id, index, cdd_item) {
load_picture(check_id, index, cdd_item) {
let vm = this
let url =
process.env.basePath + 'attachment_list_query' + '&index' + index // 附件查询
......@@ -759,7 +775,7 @@ export default {
}
})
},
async verified (flag) {
async verified(flag) {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
this.upload_list = [] // 保存之前将待上传列表清空,防止出现重复的图片
let res = await this.saveWord()
......@@ -768,9 +784,9 @@ export default {
this.loadItemList(flag)
}
},
loadItemList (flag) { // flag用来判断是否需要加载图片文件
loadItemList(flag) { // flag用来判断是否需要加载图片文件
let vm = this
let bpId = window.localStorage.getItem('bp_id')
let bpId = JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id
if (bpId === 'undefined') {
bpId = null
}
......@@ -895,14 +911,14 @@ export default {
}
})
},
async getMultipleRole () {
async getMultipleRole() {
let vm = this
let url = process.env.basePath + 'bp_role_query'
let flag = vm.checkHasmultiple()
let param = {
master: {
bp_id: window.localStorage.getItem('bp_id'),
bp_type: window.localStorage.getItem('bp_type'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
bp_type: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_type,
},
}
if (flag) {
......@@ -926,11 +942,11 @@ export default {
})
}
},
async checkHasmultiple () {
async checkHasmultiple() {
let vm = this
let url = process.env.basePath + 'bp_role_check'
let param = {
bp_id: window.localStorage.getItem('bp_id'),
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
}
let res = await vm.hlsHttp.post(url, param)
if (res.result === 'S') {
......@@ -942,7 +958,7 @@ export default {
}
},
// 基本信息保存前校验
bindCheck () {
bindCheck() {
let vm = this
var business_num = ''
if (vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') {
......@@ -973,7 +989,7 @@ export default {
}
})
},
async saveProtocol () {
async saveProtocol() {
let vm = this
let url = process.env.basePath + 'bp_np_bind_save'
let param = {
......@@ -985,10 +1001,10 @@ export default {
hlsPopup.hideLoading()
// vm.hlsPopup.showSuccess('保存成功,请去维护附件信息')
vm.isSave = true
window.localStorage.setItem('user_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_type', vm.baseInfo.bp_type)
// window.localStorage.setItem('user_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_type', vm.baseInfo.bp_type)
vm.bindCheck()
return res.bp_id
} else {
......@@ -996,7 +1012,7 @@ export default {
vm.hlsPopup.showLongCenter(res.message)
}
},
async saveWord () {
async saveWord() {
let vm = this
if (!vm.baseInfo.bp_type) {
vm.hlsPopup.showLongCenter('客户类型不能为空!')
......@@ -1064,7 +1080,7 @@ export default {
}
},
// 图片上传入口
imgUploadShow (description, check_id) {
imgUploadShow(description, check_id) {
let vm = this
// vm.upload_list = []
hlsPopup.showActionSheet({
......@@ -1079,7 +1095,7 @@ export default {
},
})
},
imgUploadOpenCamera (description, check_id) {
imgUploadOpenCamera(description, check_id) {
let vm = this
let obj = {
pkvalue: check_id,
......@@ -1108,7 +1124,7 @@ export default {
}
hlsUtil.openCamera(cameraoptions, success, error)
},
imgUploadTakePicture (description, check_id) {
imgUploadTakePicture(description, check_id) {
let vm = this
let cameraoptions = {
quality: 100,
......@@ -1133,11 +1149,11 @@ export default {
// 拍完一张立马执行保存图片逻辑
vm.save_picture(list)
}
let error = function () {}
let error = function () { }
vm.hlsUtil.takePicture(cameraoptions, success, error)
},
// 图片保存
save_picture (list) {
save_picture(list) {
let vm = this
if (list.length) {
// hlsPopup.showLoading('图片上传请稍候')
......@@ -1175,7 +1191,7 @@ export default {
}
},
// 移除图片
remove_pic (attachment_id, index) {
remove_pic(attachment_id, index) {
let vm = this
var delete_list = []
let obj = { attachment_id: attachment_id }
......@@ -1195,13 +1211,13 @@ export default {
}
})
},
remove_upload_list (attachment_id, index) {
remove_upload_list(attachment_id, index) {
let vm = this
vm.upload_list.remove(index)
vm.upload_list.sort()
},
// 删除图片
delete_pic (attachment_id) {
delete_pic(attachment_id) {
let vm = this
var delete_list = []
let obj = { attachment_id: attachment_id }
......@@ -1222,7 +1238,7 @@ export default {
})
},
// 身份证重新识别后,先删除之前的照片
delete_pic_to_ocr (attachment_id) {
delete_pic_to_ocr(attachment_id) {
let vm = this
var delete_list = []
let obj = { attachment_id: attachment_id }
......@@ -1240,7 +1256,7 @@ export default {
}
})
},
remove_dowload_list (attachment_id) {
remove_dowload_list(attachment_id) {
let vm = this
for (let i = 0; i < vm.dowload_list.length; i++) {
let list = vm.dowload_list[i]
......@@ -1254,7 +1270,7 @@ export default {
}
vm.dowload_list.sort()
},
ocrShow (ocrType, type) {
ocrShow(ocrType, type) {
let vm = this
hlsPopup.showActionSheet({
titleText: '请选择照片',
......@@ -1268,7 +1284,7 @@ export default {
},
})
},
openCamera (ocrType, type) {
openCamera(ocrType, type) {
let vm = this
let cameraoptions = {
quality: 60,
......@@ -1282,24 +1298,24 @@ export default {
if (ocrType === 'idCard') {
type === 'front'
? ((vm.idCardFront = hlsUtil.convertImageUrl(imgdata)),
vm.idCardIdentify(imgdata, 'idCard'),
(vm.idCardFrontUpload = imgdata),
(vm.idCardFrontEditFlag = true))
vm.idCardIdentify(imgdata, 'idCard'),
(vm.idCardFrontUpload = imgdata),
(vm.idCardFrontEditFlag = true))
: ((vm.idCardBack = hlsUtil.convertImageUrl(imgdata)),
vm.idCardBackIdentify(imgdata, 'idCard'),
(vm.idCardBackUpload = imgdata),
(vm.idCardBackEditFlag = true))
vm.idCardBackIdentify(imgdata, 'idCard'),
(vm.idCardBackUpload = imgdata),
(vm.idCardBackEditFlag = true))
} else if (ocrType === 'idCardSp') {
// 配偶身份证识别
type === 'front'
? ((vm.idCardFrontSp = hlsUtil.convertImageUrl(imgdata)),
vm.idCardIdentify(imgdata, 'idCardSp'),
(vm.idCardFrontSpUpload = imgdata),
(vm.idCardFrontSpEditFlag = true))
vm.idCardIdentify(imgdata, 'idCardSp'),
(vm.idCardFrontSpUpload = imgdata),
(vm.idCardFrontSpEditFlag = true))
: ((vm.idCardBackSp = hlsUtil.convertImageUrl(imgdata)),
vm.idCardBackIdentify(imgdata, 'idCardSp'),
(vm.idCardBackSptSpUpload = imgdata),
(vm.idCardBackSpEditFlag = true))
vm.idCardBackIdentify(imgdata, 'idCardSp'),
(vm.idCardBackSptSpUpload = imgdata),
(vm.idCardBackSpEditFlag = true))
} else if (ocrType === 'bankCard') {
vm.bankImg = hlsUtil.convertImageUrl(imgdata)
vm.bankCardIdentify(imgdata)
......@@ -1311,7 +1327,7 @@ export default {
}
hlsUtil.openCamera(cameraoptions, success, error)
},
takePicture (ocrType, type) {
takePicture(ocrType, type) {
let vm = this
var cameraoptions = {
quality: 70,
......@@ -1326,24 +1342,24 @@ export default {
if (ocrType === 'idCard') {
type === 'front'
? ((vm.idCardFront = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardIdentify(imgUrl[0], 'idCard'),
(vm.idCardFrontUpload = imgUrl[0]),
(vm.idCardFrontEditFlag = true))
vm.idCardIdentify(imgUrl[0], 'idCard'),
(vm.idCardFrontUpload = imgUrl[0]),
(vm.idCardFrontEditFlag = true))
: ((vm.idCardBack = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardBackIdentify(imgUrl[0], 'idCard'),
(vm.idCardBackUpload = imgUrl[0]),
(vm.idCardBackEditFlag = true))
vm.idCardBackIdentify(imgUrl[0], 'idCard'),
(vm.idCardBackUpload = imgUrl[0]),
(vm.idCardBackEditFlag = true))
} else if (ocrType === 'idCardSp') {
// 配偶身份证识别
type === 'front'
? ((vm.idCardFrontSp = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardIdentify(imgUrl[0], 'idCardSp'),
(vm.idCardFrontSpUpload = imgUrl[0]),
(vm.idCardFrontSpEditFlag = true))
vm.idCardIdentify(imgUrl[0], 'idCardSp'),
(vm.idCardFrontSpUpload = imgUrl[0]),
(vm.idCardFrontSpEditFlag = true))
: ((vm.idCardBackSp = hlsUtil.convertImageUrl(imgUrl[0])),
vm.idCardBackIdentify(imgUrl[0], 'idCardSp'),
(vm.idCardBackSptSpUpload = imgUrl[0]),
(vm.idCardBackSpEditFlag = true))
vm.idCardBackIdentify(imgUrl[0], 'idCardSp'),
(vm.idCardBackSptSpUpload = imgUrl[0]),
(vm.idCardBackSpEditFlag = true))
} else if (ocrType === 'bankCard') {
vm.bankImg = hlsUtil.convertImageUrl(imgUrl[0])
vm.bankCardIdentify(imgUrl[0])
......@@ -1356,7 +1372,7 @@ export default {
vm.hlsUtil.takePicture(cameraoptions, success, error)
},
// 身份证识别
idCardIdentify (fileUrl, cardType) {
idCardIdentify(fileUrl, cardType) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/idCard'
......@@ -1376,7 +1392,7 @@ export default {
})
},
// 身份证背面识别
idCardBackIdentify (fileUrl, cardType) {
idCardBackIdentify(fileUrl, cardType) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/idCardBack'
......@@ -1385,33 +1401,33 @@ export default {
let result = res.result.words_result
if (cardType === 'idCard') {
vm.baseInfo.id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){
if (result.失效日期.words.indexOf('长期') != -1) {
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
onConfirm: () => { },
})
vm.baseInfo.id_card_date_to = '9999-12-31'
}else{
} else {
vm.baseInfo.id_card_date_to = vm.timeFormat(result.失效日期.words)
}
} else {
vm.baseInfo.id_card_date_from_sp = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){
if (result.失效日期.words.indexOf('长期') != -1) {
hlsPopup.showPopup({
title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {},
onConfirm: () => { },
})
vm.baseInfo.id_card_date_to_sp = '9999-12-31'
}else{
} else {
vm.baseInfo.id_card_date_to_sp = vm.timeFormat(result.失效日期.words)
}
}
})
},
// 银行卡识别
bankCardIdentify (fileUrl) {
bankCardIdentify(fileUrl) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/bankCard'
......@@ -1423,7 +1439,7 @@ export default {
vm.bank.bank_card_type = result.bank_card_type
})
},
addRows (e) {
addRows(e) {
if (e) {
let addNum = Math.ceil(e.length / 16)
// if (addNum === 0) {
......@@ -1434,7 +1450,7 @@ export default {
this.$refs.myTestarea.rows = addNum
}
},
addRowsLive (e) {
addRowsLive(e) {
if (e) {
let addNum = Math.ceil(e.length / 16)
// if (addNum === 0) {
......@@ -1445,7 +1461,7 @@ export default {
this.$refs.myTestareaLive.rows = addNum
}
},
selectIdType () {
selectIdType() {
let vm = this
let List
if (vm.baseInfo.bp_type === 'TENANT') {
......@@ -1496,7 +1512,7 @@ export default {
},
})
},
selectIdTypeOnly (e) {
selectIdTypeOnly(e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.typeList,
......@@ -1509,7 +1525,7 @@ export default {
})
vm.isSelected = true
},
selectBackType (e) {
selectBackType(e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.backList,
......@@ -1521,7 +1537,7 @@ export default {
},
})
},
selectMarital (e) {
selectMarital(e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.maritalList,
......@@ -1533,7 +1549,7 @@ export default {
},
})
},
selectProvince (e) {
selectProvince(e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.provinceList,
......@@ -1546,7 +1562,7 @@ export default {
},
})
},
selectCity (e) {
selectCity(e) {
let vm = this
if (vm.baseInfo.province_id === '') {
hlsPopup.showLongCenter('请先选择省份')
......@@ -1562,7 +1578,7 @@ export default {
},
})
},
selectDistrict (e) {
selectDistrict(e) {
let vm = this
if (vm.baseInfo.city_id === '' || vm.baseInfo.province_id === '') {
hlsPopup.showLongCenter('请先选择城市')
......@@ -1577,7 +1593,7 @@ export default {
},
})
},
getProvince () {
getProvince() {
let vm = this
let url = process.env.basePath + 'fnd_province_query'
let param = {}
......@@ -1594,7 +1610,7 @@ export default {
}
})
},
getCity () {
getCity() {
let vm = this
let url = process.env.basePath + 'fnd_city_query'
let param = {
......@@ -1613,7 +1629,7 @@ export default {
}
})
},
getDistrict () {
getDistrict() {
let vm = this
let url = process.env.basePath + 'fnd_district_query'
let param = {
......@@ -1632,7 +1648,7 @@ export default {
}
})
},
getMarital () {
getMarital() {
let vm = this
let url = process.env.basePath + 'bp_marital_status_query'
let param = {}
......@@ -1649,7 +1665,7 @@ export default {
}
})
},
getEducationBackground () {
getEducationBackground() {
let vm = this
let url = process.env.basePath + 'bp_academic_bg_query'
let param = {}
......@@ -1666,7 +1682,7 @@ export default {
}
})
},
fileSuccess (fileList, result) {
fileSuccess(fileList, result) {
this.fileList = fileList
this.fileList.forEach((itemFile, index) => {
if (
......@@ -1680,7 +1696,7 @@ export default {
})
},
getBpType () {
getBpType() {
let vm = this
let url = process.env.basePath + 'bp_type_select'
let param = {}
......@@ -1698,7 +1714,7 @@ export default {
})
},
// 查看大图
showBigPicture (pic) {
showBigPicture(pic) {
let vm = this
vm.hlsPopup.showBigPicture({
imgUrl: pic,
......@@ -1709,7 +1725,7 @@ export default {
}
</script>
<style lang="less" scoped>
#np-base-info{
#np-base-info {
font-family: PingFangSC-Regular;
input::placeholder {
color: #b4b4b5;
......@@ -1722,23 +1738,23 @@ export default {
color: #666;
resize: none;
}
.add-people{
.add-people {
display: flex;
justify-content: flex-start;
align-items: center;
img{
img {
// width:23px;
flex-shrink:0;
flex-shrink: 0;
// margin-left:10px;
float: right;
}
.people-list{
width:100%;
.people-list {
width: 100%;
display: flex;
justify-content: flex-start;
flex-flow: row wrap;
}
span {
span {
// display: inline-block;
padding: 1px 5px;
border-radius: 5px;
......@@ -1751,13 +1767,13 @@ export default {
font-size: 14px;
}
}
.type-save{
.type-save {
color: #fff;
width:80px;
width: 80px;
height: 25px;
font-size:10px;
font-size: 10px;
border-radius: 5px;
margin:5px 15px 5px 0px;
margin: 5px 15px 5px 0px;
float: right;
background-color: @headerColor;
}
......
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