Commit 9ac6577f authored by linxin's avatar linxin

add

parent 5c7c4d26
...@@ -80,12 +80,47 @@ ...@@ -80,12 +80,47 @@
:readonly="isApproved" :readonly="isApproved"
v-model="baseInfo.address_on_resident_booklit" v-model="baseInfo.address_on_resident_booklit"
placeholder="上传身份证自动填充" placeholder="上传身份证自动填充"
class="auto"
> >
</item> </item>
<item> <item>
<div slot="name" class="required">手机号码</div> <div slot="name" class="required">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" placeholder="请输入手机号码" > <input slot="content" v-model="baseInfo.cell_phone" placeholder="请输入手机号码" >
</item> </item>
<item :showArrow="true">
<div slot="name" class="required">省份</div>
<input
slot="content"
v-model="baseInfo.province_name"
placeholder="请选择"
type="text"
readonly
onfocus="this.blur()"
@click="selectProvince()"
>
</item><item :showArrow="true">
<div slot="name" class="required">城市</div>
<input
slot="content"
v-model="baseInfo.city_name"
placeholder="请选择"
type="text"
readonly
onfocus="this.blur()"
@click="selectCity()"
>
</item><item :showArrow="true">
<div slot="name" class="required">区县</div>
<input
slot="content"
v-model="baseInfo.district_name"
placeholder="请选择"
type="text"
readonly
onfocus="this.blur()"
@click="selectDistrict()"
>
</item>
<item> <item>
<div slot="name" class="required">居住地址</div> <div slot="name" class="required">居住地址</div>
<input slot="content" v-model="baseInfo.living_address" placeholder="请输入居住地址" > <input slot="content" v-model="baseInfo.living_address" placeholder="请输入居住地址" >
...@@ -224,12 +259,15 @@ export default { ...@@ -224,12 +259,15 @@ export default {
isSelected: false, isSelected: false,
tabNum: 0, tabNum: 0,
from: false, from: false,
cityList: [],
provinceList: [],
upload_list: [], upload_list: [],
typeList: [], typeList: [],
backList: [], backList: [],
bankList: [], bankList: [],
maritalList: [], maritalList: [],
getBankList: [], getBankList: [],
districtList: [],
bank: { bank: {
bank_account_num: '', bank_account_num: '',
bank_account_name: '', bank_account_name: '',
...@@ -245,6 +283,10 @@ export default { ...@@ -245,6 +283,10 @@ export default {
bp_type: '', bp_type: '',
bp_class: this.$route.params.bp_class, bp_class: this.$route.params.bp_class,
bp_name: '', bp_name: '',
province_name: '',
province_id: '',
city_name: '',
city_id: '',
id_card_no: null, id_card_no: null,
cell_phone: null, cell_phone: null,
living_address: '', living_address: '',
...@@ -252,6 +294,8 @@ export default { ...@@ -252,6 +294,8 @@ export default {
marital_status: '', marital_status: '',
academic_background: '', academic_background: '',
bp_name_sp: '', bp_name_sp: '',
district_id: '',
district_name: '',
spouse_phone: '', spouse_phone: '',
working_place_sp: '', working_place_sp: '',
address_sp: '', address_sp: '',
...@@ -309,6 +353,7 @@ export default { ...@@ -309,6 +353,7 @@ export default {
this.getEducationBackground() this.getEducationBackground()
this.getMarital() this.getMarital()
this.getBankInfo() this.getBankInfo()
this.getProvince()
if (this.$route.params.status === 'APPROVED') { if (this.$route.params.status === 'APPROVED') {
this.isApproved = true this.isApproved = true
} }
...@@ -651,6 +696,105 @@ export default { ...@@ -651,6 +696,105 @@ export default {
}, },
}) })
}, },
selectProvince (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.provinceList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.baseInfo.province_id = obj.bp_type
vm.baseInfo.province_name = obj.bp_type_n
vm.getCity()
},
})
},
selectCity (e) {
let vm = this
if (vm.baseInfo.province_id === '') {
hlsPopup.showLongCenter('请先选择省份')
}
vm.hlsPopup.selectList({
list: vm.cityList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.baseInfo.city_id = obj.bp_type
vm.baseInfo.city_name = obj.bp_type_n
vm.getDistrict()
},
})
},
selectDistrict (e) {
let vm = this
if ((vm.baseInfo.city_id === '') || (vm.baseInfo.province_id === '')) {
hlsPopup.showLongCenter('请先选择城市')
}
vm.hlsPopup.selectList({
list: vm.districtList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.baseInfo.district_id = obj.bp_type
vm.baseInfo.district_name = obj.bp_type_n
},
})
},
getProvince () {
let vm = this
let url = process.env.basePath + 'fnd_province_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.provinceList = res.lists.map(item => {
return {
code: item.province_id,
code_name: item.province_name,
}
})
}
})
},
getCity () {
let vm = this
let url = process.env.basePath + 'fnd_city_query'
let param = {
province_id: vm.baseInfo.province_id,
}
// vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.cityList = res.lists.map(item => {
return {
code: item.city_id,
code_name: item.city_name,
}
})
}
})
},
getDistrict () {
let vm = this
let url = process.env.basePath + 'fnd_district_query'
let param = {
city_id: vm.baseInfo.city_id,
}
// vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.districtList = res.lists.map(item => {
return {
code: item.district_id,
code_name: item.district_name,
}
})
}
})
},
getMarital () { getMarital () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_marital_status_query' let url = process.env.basePath + 'bp_marital_status_query'
......
...@@ -86,6 +86,40 @@ ...@@ -86,6 +86,40 @@
slot="content" :readonly="isApproved" v-model="baseInfo.registered_place" class="auto" slot="content" :readonly="isApproved" v-model="baseInfo.registered_place" class="auto"
placeholder="上传营业执照自动填充"> placeholder="上传营业执照自动填充">
</item> </item>
<item :showArrow="true">
<div slot="name" class="required">省份</div>
<input
slot="content"
v-model="baseInfo.province_name"
placeholder="请选择"
type="text"
readonly
onfocus="this.blur()"
@click="selectProvince()"
>
</item><item :showArrow="true">
<div slot="name" class="required">城市</div>
<input
slot="content"
v-model="baseInfo.city_name"
placeholder="请选择"
type="text"
readonly
onfocus="this.blur()"
@click="selectCity()"
>
</item><item :showArrow="true">
<div slot="name" class="required">区县</div>
<input
slot="content"
v-model="baseInfo.district_name"
placeholder="请选择"
type="text"
readonly
onfocus="this.blur()"
@click="selectDistrict()"
>
</item>
<item> <item>
<div slot="name" class="font-color required">经营地址</div> <div slot="name" class="font-color required">经营地址</div>
<input slot="content" v-model="baseInfo.business_address" placeholder="请输入经营地址"> <input slot="content" v-model="baseInfo.business_address" placeholder="请输入经营地址">
...@@ -159,7 +193,7 @@ ...@@ -159,7 +193,7 @@
<item> <item>
<div slot="name" class="font-color">姓名</div> <div slot="name" class="font-color">姓名</div>
<input <input
slot="content" :readonly="isApproved" v-model="legal_personMsg.legal_person" placeholder="上传身份证自动填充" slot="content" :readonly="isApproved" v-model="baseInfo.legal_person" placeholder="上传身份证自动填充"
class="auto"> class="auto">
</item> </item>
<item> <item>
...@@ -304,6 +338,9 @@ export default { ...@@ -304,6 +338,9 @@ export default {
invoiceInfo: {}, invoiceInfo: {},
maritalList: [], maritalList: [],
getBankList: [], getBankList: [],
cityList: [],
provinceList: [],
districtList: [],
academic_bg_n: '', academic_bg_n: '',
bpClass_flag: false, bpClass_flag: false,
text: '法人代表信息', text: '法人代表信息',
...@@ -315,11 +352,17 @@ export default { ...@@ -315,11 +352,17 @@ export default {
type: '请输入业务经办姓名', type: '请输入业务经办姓名',
legal_personMsg: { legal_personMsg: {
id_card_no: null, id_card_no: null,
legal_person: '', // legal_person: '',
cell_phone: null, cell_phone: null,
living_address: '', living_address: '',
}, },
baseInfo: { baseInfo: {
district_id: '',
district_name: '',
province_name: '',
province_id: '',
city_name: '',
city_id: '',
bp_type: '', bp_type: '',
bp_type_n: '', bp_type_n: '',
bp_name: '', bp_name: '',
...@@ -407,6 +450,7 @@ export default { ...@@ -407,6 +450,7 @@ export default {
}, },
created () { created () {
this.getBpType() this.getBpType()
this.getProvince()
if (this.$route.params.status === 'APPROVED') { if (this.$route.params.status === 'APPROVED') {
this.isApproved = true this.isApproved = true
} }
...@@ -766,7 +810,105 @@ export default { ...@@ -766,7 +810,105 @@ export default {
this.auth_flag = '已授权' this.auth_flag = '已授权'
} }
}, },
selectProvince (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.provinceList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.baseInfo.province_id = obj.bp_type
vm.baseInfo.province_name = obj.bp_type_n
vm.getCity()
},
})
},
selectCity (e) {
let vm = this
if (vm.baseInfo.province_id === '') {
hlsPopup.showLongCenter('请先选择省份')
}
vm.hlsPopup.selectList({
list: vm.cityList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.baseInfo.city_id = obj.bp_type
vm.baseInfo.city_name = obj.bp_type_n
vm.getDistrict()
},
})
},
selectDistrict (e) {
let vm = this
if ((vm.baseInfo.city_id === '') || (vm.baseInfo.province_id === '')) {
hlsPopup.showLongCenter('请先选择城市')
}
vm.hlsPopup.selectList({
list: vm.districtList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.baseInfo.district_id = obj.bp_type
vm.baseInfo.district_name = obj.bp_type_n
},
})
},
getProvince () {
let vm = this
let url = process.env.basePath + 'fnd_province_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.provinceList = res.lists.map(item => {
return {
code: item.province_id,
code_name: item.province_name,
}
})
}
})
},
getCity () {
let vm = this
let url = process.env.basePath + 'fnd_city_query'
let param = {
province_id: vm.baseInfo.province_id,
}
// vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.cityList = res.lists.map(item => {
return {
code: item.city_id,
code_name: item.city_name,
}
})
}
})
},
getDistrict () {
let vm = this
let url = process.env.basePath + 'fnd_district_query'
let param = {
city_id: vm.baseInfo.city_id,
}
// vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.districtList = res.lists.map(item => {
return {
code: item.district_id,
code_name: item.district_name,
}
})
}
})
},
// 客户类型下拉框 // 客户类型下拉框
selectIdType (e) { selectIdType (e) {
let vm = this let vm = this
...@@ -843,7 +985,7 @@ export default { ...@@ -843,7 +985,7 @@ export default {
vm.authMsg.auth_person_position = res.info.auth_person_position vm.authMsg.auth_person_position = res.info.auth_person_position
// delete res.info.agent_username // delete res.info.agent_username
vm.legal_personMsg.id_card_no = res.info.id_card_no vm.legal_personMsg.id_card_no = res.info.id_card_no
vm.legal_personMsg.legal_person = res.info.legal_person // vm.legal_personMsg.legal_person = res.info.legal_person
vm.legal_personMsg.cell_phone = res.info.cell_phone vm.legal_personMsg.cell_phone = res.info.cell_phone
vm.legal_personMsg.living_address = res.info.living_address vm.legal_personMsg.living_address = res.info.living_address
Object.assign(vm.saveInfo, res.info) Object.assign(vm.saveInfo, res.info)
......
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