Commit 62f5dcc3 authored by 786817560's avatar 786817560

'修改绑定查询和测试问题'

parent 722d4d9f
......@@ -2,7 +2,7 @@
* @Description: 合同详情
* @Author: your name
* @Date: 2019-09-25 15:38:21
* @LastEditTime: 2019-09-30 17:35:23
* @LastEditTime: 2019-10-08 14:58:45
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -24,7 +24,7 @@
<Personal v-if="!bp_flag" :baseInfo="baseInfo"/>
<div class="equipment-list">担保人信息<span v-if="guarantorInfo.length === 0">(0)</span></div>
<list-item :item-height="76">
<list-item v-if="bp_class === 'NP'" :item-height="76">
<item v-for="(item,index) in guarantorInfo" :key="index">
<div slot="name">
<span class="name-box">{{ index+1 }}</span>
......@@ -35,38 +35,26 @@
<img src="@/assets/intoApproval/introduce.png" >
<span :title="item.bp_name">{{ item.bp_name }}</span>
<br >
<span>{{ item.organization_code }}</span>
<span>{{ item.id_card_no }}</span>
</div>
</item>
</list-item>
<!-- <list-item :item-height="76">
<item>
<div slot="name">
<span class="name-box">1</span>
<span class="name">担保人1姓名</span>
<span class="card-num">证件号</span>
</div>
<div slot="content" class="right">
<img src="@/assets/intoApproval/introduce.png" >
<span>张天</span>
<br >
<span>42112029870928097</span>
</div>
</item>
<item>
<list-item v-if="bp_class === 'ORG'" :item-height="76">
<item v-for="(item,index) in guarantorInfo" :key="index">
<div slot="name">
<span class="name-box">1</span>
<span class="name">担保人1姓名</span>
<span class="name-box">{{ index+1 }}</span>
<span class="name">担保人{{ index+1 }}姓名</span>
<span class="card-num">证件号</span>
</div>
<div slot="content" class="right">
<img src="@/assets/intoApproval/introduce.png" >
<span>张天</span>
<span :title="item.bp_name">{{ item.bp_name }}</span>
<br >
<span>42112029870928097</span>
<span>{{ item.organization_code }}</span>
</div>
</item>
</list-item> -->
</list-item>
<!-- 联系人 -->
<div class="bottom-call">
......@@ -140,11 +128,11 @@
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">参数项</div>
<input slot="content" v-model="info.product_id" readonly>
<input slot="content" v-model="info.product_code" readonly>
</item>
<item>
<div slot="name" class="font-color">产品线</div>
<input slot="content" v-model="info.division" readonly>
<input slot="content" v-model="info.product_name" readonly>
</item>
<item>
<div slot="name" class="font-color">产品数量</div>
......@@ -403,6 +391,7 @@ export default {
white-space: nowrap;
width: 150px;
margin-top: -10px;
text-align: right
}
.right span:last-child {
margin-top: 7px;
......
......@@ -253,6 +253,13 @@ export default {
}
}
.option:nth-of-type(2) {
position: relative;
img{
position: absolute;
right: 10px;
}
}
}
}
}
......
<!--
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-30 15:18:52
* @LastEditTime: 2019-10-08 11:06:09
* @LastEditors: Please set LastEditors
-->
<template>
<list-item :item-height="44">
<item :showArrow="true">
<div slot="name">纳税人类型</div>
<div slot="content">{{baseInfo.taxpayer_type_n}}</div>
<div slot="content">{{ baseInfo.taxpayer_type_n }}</div>
</item>
<item :showArrow="true">
<div slot="name">发票类型</div>
<div slot="content">{{baseInfo.invoice_kind_n}}</div>
<div slot="content">{{ baseInfo.invoice_kind_n }}</div>
</item>
<item>
<div slot="name">发票抬头</div>
<div slot="content">{{baseInfo.invoice_title}}</div>
<!-- <div slot="content">{{baseInfo.invoice_title}}</div> -->
<input slot="content" v-model="baseInfo.invoice_title" placeholder="请输入发票抬头" >
</item>
<item>
<div slot="name">发票地址及电话</div>
<div slot="content">{{baseInfo.invoice_bp_address_phone_num}}</div>
<!-- <div slot="content">{{baseInfo.invoice_bp_address_phone_num}}</div> -->
<input slot="content" v-model="baseInfo.invoice_bp_address_phone_num" placeholder="请输入发票地址及电话" >
</item>
<item>
<div slot="name">发票开户行及账号</div>
<div slot="content">{{baseInfo.invoice_bp_bank_account}}</div>
<!-- <div slot="content">{{ baseInfo.invoice_bp_bank_account }}</div> -->
<input slot="content" v-model="baseInfo.invoice_bp_bank_account" placeholder="请输入发票开户行及账号" >
</item>
<item>
<div slot="name">纳税人识别号</div>
<div slot="content">{{baseInfo.organization_code}}</div>
<div slot="name" >纳税人识别号</div>
<div slot="content">{{ baseInfo.organization_code }}</div>
</item>
</list-item>
</template>
<script>
export default {
props:['baseInfo'],
props: ['baseInfo'],
data () {
return {
......
<!--
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-30 15:18:52
* @LastEditTime: 2019-10-08 11:05:37
* @LastEditors: Please set LastEditors
-->
<template>
<h-view id="base-info1-read" class="public-style" title="基本信息">
<h-header :proportion="[5,1,1]" class="header">
......@@ -48,43 +55,51 @@
</item>
<item>
<div slot="name">手机号码</div>
<div slot="content">{{ baseInfo.phone }}</div>
<!-- <div slot="content">{{ baseInfo.phone }}</div> -->
<input slot="content" v-model="baseInfo.phone" placeholder="请输入手机号码" >
</item>
<item>
<div slot="name">居住地址</div>
<div slot="content">{{ baseInfo.living_address }}</div>
<!-- <div slot="content">{{ baseInfo.living_address }}</div> -->
<input slot="content" v-model="baseInfo.living_address" placeholder="请输入居住地址" >
</item>
<item>
<div slot="name">户籍地址</div>
<div slot="content">{{ baseInfo.address_on_resident_booklit }}</div>
<!-- <div slot="content">{{ baseInfo.address_on_resident_booklit }}</div> -->
<input slot="content" v-model="baseInfo.address_on_resident_booklit" placeholder="请输入户籍地址" >
</item>
<item>
<div slot="name">学历</div>
<div slot="content">{{ baseInfo.academic_bg_n }}</div>
<div slot="content">{{ baseInfo.academic_background_n }}</div>
</item>
<item :showArrow="true">
<div slot="name">婚姻状况</div>
<div slot="content">{{ baseInfo.marital_status_n }}</div>
</item>
</list-item>
<div v-if="hasSP">
<!-- <div v-if="hasSP"> -->
<div v-if="baseInfo.marital_status_n === '已婚'">
<div class="userInfo">配偶信息</div>
<list-item :item-height="44">
<item>
<div slot="name">姓名</div>
<div slot="content">{{ baseInfo.bp_name_sp }}</div>
<!-- <div slot="content">{{ baseInfo.bp_name_sp }}</div> -->
<input slot="content" v-model="baseInfo.bp_name_sp" placeholder="请输入姓名" >
</item>
<item>
<div slot="name">手机号码</div>
<div slot="content">{{ baseInfo.spouse_phone }}</div>
<!-- <div slot="content">{{ baseInfo.spouse_phone }}</div> -->
<input slot="content" v-model="baseInfo.spouse_phone" placeholder="请输入手机号" >
</item>
<item>
<div slot="name">工作单位</div>
<div slot="content">{{ baseInfo.working_place_sp }}</div>
<div slot="name">工作单位工作单位</div>
<!-- <div slot="content">{{ baseInfo.working_place_sp }}</div> -->
<input slot="content" v-model="baseInfo.working_place_sp" placeholder="请输入工作单位" >
</item>
<item>
<div slot="name">居住地址</div>
<div slot="content">{{ baseInfo.address_sp }}</div>
<!-- <div slot="content">{{ baseInfo.address_sp }}</div> -->
<input slot="content" v-model="baseInfo.address_sp" placeholder="请输入居住地址" >
</item>
</list-item>
</div>
......@@ -128,19 +143,19 @@
<list-item :item-height="44" class="card-Info">
<item>
<div slot="name">银行卡卡号</div>
<div slot="content">{{bank.bank_account_num}}</div>
<div slot="content">{{ bank.bank_account_num }}</div>
</item>
<item>
<div slot="name">账户姓名</div>
<div slot="content">{{bank.bank_account_name}}</div>
<div slot="content">{{ bank.bank_account_name }}</div>
</item>
<item>
<div slot="name">银行名称</div>
<div slot="content">{{bank.bank_full_name}}</div>
<div slot="content">{{ bank.bank_full_name }}</div>
</item>
<item>
<div slot="name">支行名称</div>
<div slot="content">{{bank.bank_branch_name}}</div>
<div slot="content">{{ bank.bank_branch_name }}</div>
</item>
</list-item>
</div>
......@@ -202,7 +217,7 @@ export default {
hideModal () {
this.showModalValue = false
},
getInfo (i,bank) {
getInfo (i, bank) {
this.showModalValue = i
this.bank = bank
},
......
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-19 09:31:19
* @LastEditTime: 2019-09-30 11:27:33
* @LastEditTime: 2019-10-08 13:48:58
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -381,7 +381,7 @@ export default {
},
created () {
this.getBpType()
this.getBankInfo()
// this.getBankInfo()
},
methods: {
getBankInfo () {
......@@ -396,7 +396,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.getBankList = [...vm.getBankList, ...res.lists]
vm.getBankList = res.lists
}
})
},
......@@ -475,28 +475,22 @@ export default {
// debugger
if (this.flag) {
this.baseInfo.auth_flag = 'N'
this.lastInfo = {...this.baseInfo, ...this.legal_personMsg, ...this.invoiceInfo}
this.saveInfo = {...this.lastInfo, ...this.authMsg}
this.lastInfo = {...this.baseInfo, ...this.legal_personMsg}
this.saveInfo = {...this.lastInfo, ...this.authMsg, ...this.invoiceInfo}
} else {
this.baseInfo.auth_flag = 'Y'
this.lastInfo = {...this.baseInfo, ...this.authMsg, ...this.invoiceInfo}
this.saveInfo = {...this.lastInfo, ...this.legal_personMsg}
this.lastInfo = {...this.baseInfo, ...this.authMsg}
this.saveInfo = {...this.lastInfo, ...this.legal_personMsg, ...this.invoiceInfo}
}
console.log('last', this.lastInfo, this.invoiceInfo)
let vm = this
// 校验开票信息
// let arr = Object.keys(vm.invoiceInfo)
// if (arr.length !== 6) {
// vm.msg_flag = false
// vm.hlsPopup.showLongCenter('开票信息不完整!')
// } else {
// vm.msg_flag = true
// }
// 校验基本信息
if (this.bpClass_flag) {
delete this.baseInfo.business_license_num
for (var key in vm.baseInfo) {
if (!vm.baseInfo[key]) {
delete this.lastInfo.business_license_num
delete this.lastInfo.id_card_name
for (var key in vm.lastInfo) {
if (!vm.lastInfo[key]) {
console.log('key', key, vm.bpClass)
switch (key) {
case 'bp_type':
......@@ -558,11 +552,13 @@ export default {
vm.msg_flag = true
}
}
this.baseInfo.business_license_num = ''
this.lastInfo.business_license_num = ''
this.lastInfo.id_card_name = ''
} else {
delete this.baseInfo.agent_username
for (var key1 in vm.baseInfo) {
if (!vm.baseInfo[key1]) {
delete this.lastInfo.agent_username
delete this.lastInfo.id_card_name
for (var key1 in vm.lastInfo) {
if (!vm.lastInfo[key1]) {
console.log('key', key1)
switch (key1) {
case 'bp_type':
......@@ -624,7 +620,8 @@ export default {
vm.msg_flag = true
}
}
this.baseInfo.agent_username = ''
this.lastInfo.agent_username = ''
this.lastInfo.id_card_name = ''
}
// if (!vm.bp_type_flag) {
......@@ -664,6 +661,7 @@ export default {
// window.localStorage.setItem('user_id', res.bp_id)
// window.sessionStorage.setItem('user_id', res.bp_id)
vm.bp_id = res.bp_id
vm.getBankInfo()
}
})
}
......
<!--
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-30 15:18:52
* @LastEditTime: 2019-10-08 15:26:23
* @LastEditors: Please set LastEditors
-->
<template>
<h-view id="base-info" class="public-style" title="基本信息">
......@@ -13,7 +20,7 @@
<list-item :item-height="44">
<item :showArrow="true">
<div slot="name" class="font-color required">客户类型</div>
<div slot="content">{{baseInfo.bp_type_n}}</div>
<div slot="content">{{ baseInfo.bp_type_n }}</div>
</item>
<!-- <item>
<div slot="name">{{ typeName }}</div>
......@@ -36,35 +43,42 @@
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color required">公司名称</div>
<div slot="content">{{baseInfo.bp_name}}</div>
<div slot="content">{{ baseInfo.bp_name }}</div>
</item>
<item>
<div slot="name" class="font-color required">企业类型</div>
<div slot="content">{{baseInfo.enterprise_type}}</div>
<div slot="content">{{ baseInfo.enterprise_type }}</div>
</item>
<item>
<div slot="name" class="font-color">统一社会信用代码</div>
<div slot="content">{{baseInfo.organization_code}}</div>
<div slot="content">{{ baseInfo.organization_code }}</div>
</item>
<item>
<div slot="name" class="font-color">注册资本</div>
<div slot="content">{{baseInfo.registered_capital}}</div>
<div slot="content">{{ baseInfo.registered_capital }}</div>
</item>
<item>
<div slot="name" class="font-color">法定代表人</div>
<div slot="content">{{baseInfo.legal_person}}</div>
<div slot="content">{{ baseInfo.legal_person }}</div>
</item>
<item>
<div slot="name" class="font-color required">注册地址</div>
<div slot="content">{{baseInfo.registered_place}}</div>
<!-- <div slot="content">{{ baseInfo.registered_place }}</div> -->
<input slot="content" v-model="baseInfo.registered_place" >
</item>
<item>
<div slot="name" class="font-color required">经营地址</div>
<div slot="content">{{baseInfo.business_address}}</div>
<!-- <div slot="content">{{ baseInfo.business_address }}</div> -->
<input slot="content" v-model="baseInfo.business_address" >
</item>
<item>
<div slot="name" class="font-color required">固定电话</div>
<div slot="content">{{baseInfo.phone}}</div>
<!-- <div slot="content">{{ baseInfo.phone }}</div> -->
<input slot="content" v-model="baseInfo.phone" >
</item>
<item>
<div slot="name" class="font-color required">是否授权</div>
<div slot="content">{{ baseInfo.auth_flag }}</div>
</item>
</list-item>
......@@ -77,7 +91,7 @@
<img v-if="!flag" src="@/assets/userBind/org/checklist.png" alt>
</div>
</div>-->
<div class="userInfo types">{{ text }}</div>
<div class="userInfo types">{{ baseInfo.auth_flag === '是'?'授权信息':'法人代表信息' }}</div>
<div class="upload-id-cards">
<span>身份证照片上传</span>
<div class="upload-box">
......@@ -94,43 +108,47 @@
<!-- 已授权 -->
<list-item v-if="!flag" :item-height="44" class="second-part">
<list-item v-if="baseInfo.auth_flag === '是'" :item-height="44" class="secon d-part">
<item>
<div slot="name" class="font-color required">姓名</div>
<div slot="content">{{baseInfo.auth_person_name}}</div>
<div slot="content">{{ baseInfo.auth_person_name }}</div>
</item>
<item>
<div slot="name" class="font-color required">身份证号</div>
<div slot="content">{{baseInfo.auth_person_id_card}}</div>
<div slot="content">{{ baseInfo.auth_person_id_card }}</div>
</item>
<item>
<div slot="name" class="font-color required">公司职务</div>
<div slot="content">{{baseInfo.auth_person_position}}</div>
<!-- <div slot="content">{{ baseInfo.auth_person_position }}</div> -->
<input slot="content" v-model="baseInfo.auth_person_position" >
</item>
<item>
<div slot="name" class="font-color required">授权事项</div>
<div slot="content">{{baseInfo.auth_person_matter}}</div>
<!-- <div slot="content">{{ baseInfo.auth_person_matter }}</div> -->
<input slot="content" v-model="baseInfo.auth_person_matter" >
</item>
</list-item>
<!-- 未授权 -->
<list-item v-if="flag" :item-height="44" class="second-part">
<list-item v-if="baseInfo.auth_flag === '否'" :item-height="44" clas s="second-part">
<item>
<div slot="name" class="font-color">姓名</div>
<div slot="content">{{baseInfo.id_card_name}}</div>
<div slot="content">{{ baseInfo.id_card_name }}</div>
</item>
<item>
<div slot="name" class="font-color">身份证号</div>
<div slot="content">{{baseInfo.id_card_no}}</div>
<div slot="content">{{ baseInfo.id_card_no }}</div>
</item>
<item>
<div slot="name" class="font-color required">手机号</div>
<div slot="content">{{baseInfo.cell_phone}}</div>
<!-- <div slot="content">{{ baseInfo.cell_phone }}</div> -->
<input slot="content" v-model="baseInfo.cell_phone" >
</item>
<item>
<div slot="name" class="font-color required">居住地址</div>
<div slot="content">{{baseInfo.living_address}}</div>
<!-- <div slot="content">{{ baseInfo.living_address }}</div> -->
<input slot="content" v-model="baseInfo.living_address" >
</item>
</list-item>
<div v-if="!flag" class="upload-id-card">
......@@ -218,6 +236,9 @@
</div>
</h-view>
</h-modal>
<bottom-tab class="footer-button">
<tab-button class="put1" @click.native="reSubmit">提交</tab-button>
</bottom-tab>
</h-view>
</template>
......@@ -259,6 +280,26 @@ export default {
this.getBankInfo()
},
methods: {
reSubmit () {
console.log(this.baseInfo.bp_id)
let url = $config.basePath + 'bp_bind_submit'
let param = {
master: {
bp_id: this.baseInfo.bp_id,
company_id: '2145',
},
}
let vm = this
this.hlsHttp.post(url, param).then(function (res) {
console.log('企业信息提交', res)
if (res.result === 'S') {
vm.hlsPopup.showSuccess('提交成功')
vm.$router.push({
name: 'Home',
})
}
})
},
getbaseInfo () {
let vm = this
let url = process.env.basePath + 'bp_org_info_query'
......@@ -292,7 +333,7 @@ export default {
hideModal () {
this.showModalValue = false
},
getInfo (i,bank) {
getInfo (i, bank) {
this.showModalValue = i
this.bank = bank
},
......@@ -311,7 +352,7 @@ export default {
},
}
</script>
<style lang='less'>
<style lang='less' scoped>
#base-info {
font-family: PingFangSC-Regular;
......@@ -534,16 +575,16 @@ export default {
}
}
.put {
width: 175px;
.put1 {
width: 100%;
height: 45px;
color: #00469c;
color: #fff;
border-radius: 4px;
border: 1px solid #00469c;
background-color: #fafafa;
// border: 1px solid #00469c;
background-color: #00469c;
}
.save {
.save1 {
width: 175px;
height: 45px;
color: #fff;
......
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