Commit 455445ee authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents 4cbbea8b 9554d518
<template>
<div class="tab-style">
<span @click="tabNum = 0;sendTabNum()"><img :src="tabNum == 0?check1:uncheck1"></span>
<span @click="tabNum = 1;sendTabNum()"><img :src="tabNum == 1?check2:uncheck2" ></span>
<span @click="tabNum = 2;sendTabNum()"><img :src="tabNum == 2?check3:uncheck3"></span>
<span @click="tabNum1 = 0;sendTabNum()"><img :src="tabNum == 0?check1:uncheck1"></span>
<span @click="tabNum1 = 1;sendTabNum()"><img :src="tabNum == 1?check2:uncheck2" ></span>
<span @click="tabNum1 = 2;sendTabNum()"><img :src="tabNum == 2?check3:uncheck3"></span>
</div>
</template>
<script>
......@@ -13,9 +13,16 @@ import uncheck1 from '@/assets/userBind/uncheck1.png'
import uncheck2 from '@/assets/userBind/uncheck2.png'
import uncheck3 from '@/assets/userBind/uncheck3.png'
export default {
props: {
'tabNum': {
default: 0,
type: Number,
},
},
data () {
return {
tabNum: 0,
tabNum1: this.tabNum,
check1: check1,
check2: check2,
check3: check3,
......@@ -26,7 +33,7 @@ export default {
},
methods: {
sendTabNum () {
this.$emit('getTabNum', this.tabNum)
this.$emit('getTabNum', this.tabNum1)
},
},
}
......
<template>
<div @click="changeRoute">
进件审批
</div>
</template>
<script>
export default {
methods: {
changeRoute () {
this.$router.push(
{
name: 'Base',
}
)
},
},
}
</script>
<style scoped>
div{
width: 100px;
height: 100px;
border:2px solid #ccc;
text-align: center;
line-height: 100px;
margin:0 auto;
}
</style>
<template>
<div id="accessory">
<list-item :item-height="44">
<item>
<div slot="name">身份证</div>
<span slot="content">
<img src="@/assets/homeImage/download.png" >下载在线查看
</span>
</item>
<item>
<div slot="name">营业执照</div>
<span slot="content">
<img src="@/assets/homeImage/download.png" >下载在线查看
</span>
</item>
<item>
<div slot="name">银行卡</div>
<span slot="content">
<img src="@/assets/homeImage/download.png" >下载在线查看
</span>
</item>
<item>
<div slot="name">征信授权书</div>
<span slot="content">
<img src="@/assets/homeImage/download.png" >下载在线查看
</span>
</item>
</list-item>
</div>
</template>
<script>
export default {
data () {
return {
baseInfo: {},
}
},
}
</script>
<style lang="less" scope>
#accessory {
span {
font-family: PingFangSC-Regular;
font-size: 11px;
color: #00469c;
letter-spacing: 0.34px;
display: flex;
align-items: center;
}
img {
margin-right: 8.7px;
width: 16.6px;
height: 16.6px;
}
}
</style>
<template>
<h-view id="approval" class="public-style" title="进件审批">
<h-header :proportion="[5,1,1]" class="header">
<div slot="left" class="h-header-btn" @click="$routeGo()">
<img src="@/assets/homeImage/arrow.png" >
<span>进件审批</span>
</div>
</h-header>
<Tab @getTabNum="getTabNum" />
<h-content class="content">
<div v-show="tabNum==0">
<list-item :item-height="44">
<item>
<div slot="name">业务经办</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly >
</item>
<item>
<div slot="name">经销商</div>
<input slot="content" v-model="baseInfo.spouse_phone" >
</item>
</list-item>
<div class="userInfo">承租人信息</div>
<list-item :item-height="44">
<item>
<div slot="name">姓名</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly >
</item>
<item>
<div slot="name">证件号</div>
<input slot="content" v-model="baseInfo.spouse_phone" readonly >
</item>
<item>
<div slot="name">电话号码</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">居住地址</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">户籍地址</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">学历</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">婚姻状况</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
</list-item>
<div class="userInfo">配偶信息</div>
<list-item :item-height="44">
<item>
<div slot="name">姓名</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly >
</item>
<item>
<div slot="name">电话号码</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">工作单位</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">居住地址</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
</list-item>
<div class="userInfo">担保人信息</div>
<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/homeImage/introduce.png" >
<span>张天</span>
<br >
<span>42112029870928097</span>
</div>
</item>
<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/homeImage/introduce.png" >
<span>张天</span>
<br >
<span>42112029870928097</span>
</div>
</item>
</list-item>
<div class="alert">
<div class="alert-content">
<div class="title">
<img src="@/assets/homeImage/info.png" >
<span class="info-word">温馨提示</span>
</div>
<p class="top-info">绑定成功后,您即可使用APP中合同查询、还款查询等功能。</p>
<div class="top-word">
<p>本人保证所提供信息的真实性、完整性及准确性。</p>
<p>本人在此授权徐工融资租赁有限公司通过中国人民银行个人信用信息基础数据库及其他征信机构、金融机构查询本人的个人信息、信用记录和工作情况。</p>
<p>本人同意接收来自于徐工融资租赁有限公司或第三方发出的提醒付款、确认付款、催款等短信(不含广告),同意接收来自于徐工融资租赁有限公司的录音电话,并积极配合。</p>
</div>
</div>
</div>
</div>
<RentInfo v-show="tabNum==1" />
<AccessoryInfo v-show="tabNum==2"/>
</h-content>
<bottom-tab class="footer-button">
<tab-button class="approve">
<img src="@/assets/homeImage/approve.png" >审批
</tab-button>
</bottom-tab>
</h-view>
</template>
<script>
import Tab from '@/components/tab'
import RentInfo from '@/pages/intoApproval/rentInfo'
import AccessoryInfo from '@/pages/intoApproval/accessory'
export default {
components: {
Tab,
RentInfo,
AccessoryInfo,
},
data () {
return {
tabNum: 0,
baseInfo: {},
}
},
methods: {
getTabNum (i) {
this.tabNum = i
},
},
}
</script>
<style lang="less" scoped type="text/less">
#approval {
font-family: PingFangSC-Regular;
input::placeholder {
color: #b4b4b5;
}
.header {
background-color: #00469c;
color: #fff;
.h-header-btn {
img {
width: 16px;
height: 16px;
margin-left: 4px;
}
span {
font-family: PingFangSC-Semibold;
margin-left: 16px;
font-size: 17px;
letter-spacing: 0.6px;
line-height: 24px;
}
}
}
.content {
.userInfo {
height: 45px;
line-height: 45px;
color: #00469c;
margin-top: -10px;
font-size: 15px;
margin-left: 16px;
position: relative;
}
.userInfo::before {
content: "";
display: block;
width: 4px;
height: 20px;
background-color: #00469c;
position: absolute;
left: -15px;
top: 12px;
}
.name-box {
display: inline-block;
text-align: center;
line-height: 16px;
color: #00469c;
width: 16px;
height: 16px;
background: #cddbec;
border-radius: 4px;
}
.name {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #383f45;
letter-spacing: 0;
margin-left: 10px;
}
.card-num {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #383f45;
letter-spacing: 0;
display: block;
margin-left: 31px;
margin-top: 7px;
}
.right {
position: relative;
}
.right span {
float: right;
margin-right: 48px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56, 63, 69, 0.6);
letter-spacing: 0;
line-height: 18px;
}
.right span:last-child {
margin-top: 7px;
}
.right img {
position: absolute;
top: 30%;
left: 80%;
width: 14px;
height: 16px;
}
.alert {
height: 219px;
width: 100%;
background: rgba(252, 200, 0, 0.16);
}
.alert-content {
width: 334px;
margin: 0 auto;
padding-top: 16px;
}
.info-word {
font-family: PingFangSC-Semibold;
font-size: 14px;
color: #fcc800;
letter-spacing: 0.5px;
margin-left: 8px;
}
.title {
display: flex;
align-items: center;
}
.top-info {
font-family: PingFangSC-Regular;
font-size: 12px;
color: #656464;
letter-spacing: 0.37px;
margin-top: 7px;
line-height: 15px;
}
.top-word {
p {
font-family: PingFangSC-Regular;
font-size: 12px;
color: #656464;
letter-spacing: 0.37px;
margin-top: 7px;
line-height: 15px;
text-indent: 16px;
position: relative;
}
p::before {
content: "";
display: block;
position: absolute;
top: 5px;
left: 0px;
width: 4px;
height: 4px;
border-radius: 20px;
background-color: #fcc800;
}
}
.alert img {
width: 18px;
height: 18px;
}
}
.footer-button {
padding-top: 10px;
padding-bottom: 41px;
height: 88px;
.approve {
width: 358.6px;
height: 44px;
background: #00469c;
border-radius: 4px;
color: #fff;
font-family: PingFangSC-Semibold;
font-size: 15px;
line-height: 20px;
letter-spacing: 10px;
img {
width: 16.8px;
height: 16.8px;
}
}
}
}
</style>
<template>
<div id="rentInfo">
<list-item :item-height="44">
<item>
<div slot="name">商务政策</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly >
</item>
<item>
<div slot="name">设备总价</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">融资金额</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">首付款</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">保证金比例</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly >
</item>
<item>
<div slot="name">保证金</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">手续费比例</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">手续费</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">预计付款日</div>
<input slot="content" v-model="baseInfo.bp_name_sp" readonly >
</item>
<item>
<div slot="name">还款周期</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">租赁期数</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">年利率</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
</list-item>
<div class="top-userInfo">查看还款计划</div>
<div class="userInfo">担保人信息</div>
<list-item>
<item>
<div slot="name">参数项</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
<item>
<div slot="name">产品线</div>
<input slot="content" v-model="baseInfo.address_sp" readonly >
</item>
<item>
<div slot="name">产品数量</div>
<input slot="content" v-model="baseInfo.working_place_sp" readonly >
</item>
</list-item>
<div class="alert">
<div class="alert-content">
<div class="title">
<img src="@/assets/homeImage/info.png" >
<span class="info-word">提示</span>
</div>
<p class="top-info">绑定成功后,您即可使用APP中合同查询、还款查询等功能。
<span>为了确保您的权益,请查看全部</span></p>
</div>
</div>
</div>
</template>
<script>
export default {
data () {
return {
baseInfo: {},
}
},
}
</script>
<style lang="less" scoped>
#rentInfo {
.top-userInfo {
height: 45px;
line-height: 45px;
text-decoration: underline;
font-family: PingFangSC-Semibold;
font-size: 14px;
color: #00469c;
letter-spacing: 0;
padding-left: 16px;
background: rgba(0, 70, 156, 0.03);
}
.userInfo {
height: 45px;
line-height: 45px;
color: #00469c;
font-size: 15px;
margin-left: 16px;
position: relative;
}
.userInfo::before {
content: "";
display: block;
width: 4px;
height: 20px;
background-color: #00469c;
position: absolute;
left: -15px;
top: 12px;
}
.alert {
height: 93px;
width: 100%;
background: rgba(252, 200, 0, 0.16);
}
.alert-content {
width: 334px;
margin: 0 auto;
padding-top: 16px;
}
.info-word {
font-family: PingFangSC-Semibold;
font-size: 14px;
color: #fcc800;
letter-spacing: 0.5px;
margin-left: 8px;
}
.title {
display: flex;
align-items: center;
}
.top-info {
font-family: PingFangSC-Regular;
font-size: 12px;
color: #656464;
letter-spacing: 0.37px;
margin-top: 7px;
line-height: 15px;
span{
color: #fcc800;
}
}
.alert img {
width: 18px;
height: 18px;
}
}
</style>
<template>
<h-content>
<div id="bank-card">
<div class="info">
<div class="info-icon">
<img src="@/assets/userBind/info.png" >
<span>温馨提示</span>
</div>
<p>推荐使用农行卡,农行卡支付免收手续费!</p>
<div id="bank-card">
<div class="info">
<div class="info-icon">
<img src="@/assets/userBind/info.png" >
<span>温馨提示</span>
</div>
<div class="my-card">
<div class="top">
<div class="left">
<img src="@/assets/userBind/bankIcon.png" class="icon" >
<span class="top-word">
我的卡
<span class="sum">(共4张)</span>
</span>
</div>
<img src="@/assets/userBind/add.png" class="icon-right" @click="sendFlag" >
<p>推荐使用农行卡,农行卡支付免收手续费!</p>
</div>
<div class="my-card">
<div class="top">
<div class="left">
<img src="@/assets/userBind/bankIcon.png" class="icon" >
<span class="top-word">
我的卡
<span class="sum">(共{{ getBankList.length }}张)</span>
</span>
</div>
<div class="clear" />
<div class="card-content">
<ul>
<li v-for="(item,index) in bankList" :key="index">
<item-option class="slider">
<div
:style="'background-image: url('+ changeBgImg (item) +')'"
class="my-bank-card"
>
<div class="card-info">
<span class="name">{{ item.bank_full_name }}</span>
<span class="card-type">{{ item.bank_card_type }}</span>
<span class="number">卡号</span>
<span class="card-number">**** **** **** {{ selectLast (item) }}</span>
</div>
</div>
<div slot="buttons" class="button">
<option-button text @click.native="deleteFun(item.bank_account_num)" />
<img src="@/assets/userBind/add.png" class="icon-right" @click="sendFlag" >
</div>
<div class="clear" />
<div class="card-content">
<ul>
<li v-for="(item,index) in getBankList" :key="index">
<item-option class="slider">
<div
:style="'background-image: url('+ changeBgImg (item) +')'"
class="my-bank-card"
>
<div class="card-info">
<span class="name">{{ item.bank_full_name }}</span>
<span class="card-type">{{ item.bank_card_type }}</span>
<span class="number">卡号</span>
<span class="card-number">**** **** **** {{ selectLast (item) }}</span>
</div>
</item-option>
</li>
</ul>
</div>
</div>
<div slot="buttons" class="button">
<option-button text @click.native="deleteFun(item.bank_account_num)" />
</div>
</item-option>
</li>
</ul>
</div>
</div>
</h-content>
</div>
</template>
<script>
import backImg1 from '@/assets/userBind/nong.png'
import backImg2 from '@/assets/userBind/unNong.png'
export default {
props: {
'getBankList': {
default: [],
type: Array,
},
},
data () {
return {
backImg: null,
showModalValue: true,
bankList: [
{
bank_account_num: '1231123112311231',
bank_full_name: '中国农业银行',
bank_card_type: '信用卡',
},
{
bank_account_num: '2345763456980965',
bank_full_name: '中国建设银行',
bank_card_type: '储蓄卡',
},
{
bank_account_num: '2345763456980905',
bank_full_name: '中国建设银行',
bank_card_type: '储蓄卡',
},
],
}
},
methods: {
......
......@@ -18,7 +18,7 @@
<div v-show="tabNum==0">
<list-item :item-height="44">
<item :showArrow="true">
<div slot="name">客户类型</div>
<div slot="name" class="required">客户类型</div>
<input
slot="content"
v-model="bp_type_n"
......@@ -29,12 +29,12 @@
@click="selectIdType()"
>
</item>
<item v-if="isPaople">
<div slot="name">业务经办人</div>
<item v-if="isSelected&&isPaople">
<div slot="name" class="required">业务经办人</div>
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" >
</item>
<item v-else>
<div slot="name">营业执照</div>
<item v-if="isSelected&&!isPaople">
<div slot="name" class="required">营业执照</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" >
</item>
</list-item>
......@@ -54,11 +54,11 @@
</div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name">姓名</div>
<div slot="name" class="required">姓名</div>
<input slot="content" v-model="baseInfo.bp_name" placeholder="上传身份证自动填充" class="auto" >
</item>
<item>
<div slot="name">身份证号码</div>
<div slot="name" class="required">身份证号码</div>
<input
slot="content"
v-model="baseInfo.id_card_no"
......@@ -67,15 +67,15 @@
>
</item>
<item>
<div slot="name">手机号码</div>
<div slot="name" class="required">手机号码</div>
<input slot="content" v-model="baseInfo.phone" placeholder="请输入手机号码" >
</item>
<item>
<div slot="name">居住地址</div>
<div slot="name" class="required">居住地址</div>
<input slot="content" v-model="baseInfo.living_address" placeholder="请输入居住地址" >
</item>
<item>
<div slot="name">户籍地址</div>
<div slot="name" class="required">户籍地址</div>
<input
slot="content"
v-model="baseInfo.address_on_resident_booklit"
......@@ -83,7 +83,7 @@
>
</item>
<item :showArrow="true">
<div slot="name">学历</div>
<div slot="name" class="required">学历</div>
<input
slot="content"
v-model="academic_bg_n"
......@@ -94,7 +94,7 @@
>
</item>
<item :showArrow="true">
<div slot="name">婚姻状况</div>
<div slot="name" class="required">婚姻状况</div>
<input
slot="content"
v-model="marital_status_n"
......@@ -108,19 +108,19 @@
<div class="userInfo">配偶信息</div>
<list-item :item-height="44">
<item>
<div slot="name">姓名</div>
<div slot="name" class="required">姓名</div>
<input slot="content" v-model="baseInfo.bp_name_sp" placeholder="请输入姓名" >
</item>
<item>
<div slot="name">手机号码</div>
<div slot="name" class="required">手机号码</div>
<input slot="content" v-model="baseInfo.spouse_phone" placeholder="请输入手机号码" >
</item>
<item>
<div slot="name">工作单位</div>
<div slot="name" class="required">工作单位</div>
<input slot="content" v-model="baseInfo.working_place_sp" placeholder="请输入工作单位" >
</item>
<item>
<div slot="name">居住地址</div>
<div slot="name" class="required">居住地址</div>
<input slot="content" v-model="baseInfo.address_sp" placeholder="请输入居住地址" >
</item>
</list-item>
......@@ -150,11 +150,11 @@
</div>
</div>
</div>
<BankInfo v-show="tabNum==1" @getInfo="getInfo" />
<BankInfo v-show="tabNum==1" :getBankList="getBankList" @getInfo="getInfo" />
<InvoiceInfo v-show="tabNum==2" @getinvoiceList="getinvoiceList" />
</h-content>
<bottom-tab class="footer-button">
<tab-button class="put">提交</tab-button>
<tab-button class="put" @click.native="putData">提交</tab-button>
<tab-button class="save" @click.native="verified">保存</tab-button>
</bottom-tab>
<h-modal ref="modal" v-model="showModalValue" position="bottom" cus-class="search-modal">
......@@ -198,7 +198,6 @@
import Tab from '@/components/tab'
import InvoiceInfo from '@/pages/userBind/np/invoiceInfo'
import BankInfo from '@/pages/userBind/np/bankInfo'
import axios from 'axios'
export default {
components: {
Tab,
......@@ -214,17 +213,20 @@ export default {
show2: false,
show3: false,
showModalValue: false,
isSelected: false,
tabNum: 0,
bp_type_n: '',
academic_bg_n: '',
marital_status_n: '',
typeList: [],
backList: [],
bankList: [],
maritalList: [],
getBankList: [],
bank: {
bank_account_num: '',
bank_account_name: '',
bank_card_type: '',
bank_card_type: '信用卡',
bank_full_name: '',
bank_branch_name: '',
},
......@@ -266,17 +268,19 @@ export default {
vm.isPaople = false
}
},
'tabNum': function (newVal) {
if (newVal === 1 && !window.localStorage.user_id) {
this.handleNotify()
this.tabNum = 0
}
'tabNum': function (newVal, oldVal) {
// if ((newVal === 1 && !window.localStorage.user_id) || (newVal === 2 && !window.localStorage.user_id)) {
// // this.handleNotify()
// this.hlsPopup.showError('清先保存基本信息')
// this.tabNum = oldVal
// }
},
},
created () {
this.getBpType()
this.getEducationBackground()
this.getMarital()
this.getBankInfo()
},
updated () {
this.getinvoiceList()
......@@ -284,70 +288,33 @@ export default {
methods: {
verified () {
let vm = this
// var qs = require('qs')
// if (!vm.baseInfo.bp_type || !vm.baseInfo.bp_name || !vm.baseInfo.id_card_no || !vm.baseInfo.phone || !vm.baseInfo.living_address ||
// !vm.baseInfo.address_on_resident_booklit || !vm.baseInfo.marital_status || !vm.baseInfo.academic_background || !vm.baseInfo.bp_name_sp || !vm.baseInfo.spouse_phone ||
// !vm.baseInfo.working_place_sp || !vm.baseInfo.address_sp
// ) {
// vm.hlsPopup.showLongCenter('必输字端不能为空!')
// return
// }
if (!vm.baseInfo.bp_type || !vm.baseInfo.bp_name || !vm.baseInfo.id_card_no || !vm.baseInfo.phone || !vm.baseInfo.living_address ||
!vm.baseInfo.address_on_resident_booklit || !vm.baseInfo.marital_status || !vm.baseInfo.academic_background || !vm.baseInfo.bp_name_sp || !vm.baseInfo.spouse_phone ||
!vm.baseInfo.working_place_sp || !vm.baseInfo.address_sp
) {
vm.hlsPopup.showLongCenter('必输字端不能为空!')
return
}
// if (!vm.hlsUtil.phoneNumber(vm.baseInfo.phone)) {
// vm.hlsPopup.showLongCenter('手机号码有误!')
// return
// }
if (!vm.hlsUtil.phoneNumber(vm.baseInfo.phone)) {
vm.hlsPopup.showLongCenter('手机号码有误!')
return
}
let url = process.env.basePath + 'bp_np_bind_save'
let param = {
'parameter': {
'master': this.baseInfo,
},
'master': this.baseInfo,
}
vm.hlsPopup.showLoading('保存中!')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
debugger
vm.hlsPopup.showSuccess('保存成功')
window.localStorage.setItem('user_id', res.bp_id)
console.log(res.bp_id)
}
})
},
post1 (url, param) {
param.user_id = window.localStorage.user_id
param.access_token = window.localStorage.access_token
let headers = {}
if (window.localStorage.access_token) {
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Bearer ' + window.localStorage.access_token,
window.localStorage.setItem('bp_name', vm.baseInfo.bp_name)
console.log('dbnxuweijhcdieuc', window.localStorage.getItem('bp_name'))
}
} else {
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
}
}
if ($config.debug) {
let postName = 'POST'
console.log(postName + ' Start!')
console.log(postName + ' url ' + url)
console.log(postName + ' parameter ' + JSON.stringify(param, '', 2))
}
return new Promise((resolve, reject) => {
axios({
method: 'post',
headers: headers,
url,
data: param,
}).then(res => {
resolve(res)
}).catch(err => {
reject(err)
})
})
},
showNotifyAtTop () {
if (this.show1) return
this.show1 = true
......@@ -362,27 +329,61 @@ export default {
},
successCall () {
this.hideModal()
this.getBankInfo()
this.bank.bank_account_num = ''
this.bank.bank_account_name = ''
this.bank.bank_full_name = ''
this.bank.bank_branch_name = ''
},
addBankInfo () {
if (this.hlsUtil.isBankAccount(this.bank.bank_account_num)) {
this.hlsPopup.showLongCenter('银行卡号有误')
} else if (this.bank.bank_account_num === '' || this.bank.bank_account_name === '' || this.bank.bank_full_name === '' || this.bank.bank_branch_name === '') {
let bpName = window.localStorage.getItem('bp_name')
if (this.bank.bank_account_num === '' || this.bank.bank_account_name === '' || this.bank.bank_full_name === '' || this.bank.bank_branch_name === '') {
this.showNotifyAtTop1()
} else if (this.bank.bank_account_name !== this.baseInfo.bp_name) {
} else if (this.hlsUtil.isBankAccount(this.bank.bank_account_num)) {
this.hlsPopup.showLongCenter('银行卡号有误')
} else if (this.bank.bank_account_name !== bpName) {
console.log(bpName)
this.showNotifyAtTop()
} else {
let list = JSON.parse(JSON.stringify(this.bank))
// this.baseInfo.bank_lists.push(list)
this.showNotifyAtTopSuccess()
setTimeout(
this.successCall
, 2000)
this.bankList.push(list)
let vm = this
let url = process.env.basePath + 'bp_bank_save'
let param = {
'master': {
'bp_id': window.localStorage.getItem('user_id'),
'bank_lists': this.bankList,
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.showNotifyAtTopSuccess()
setTimeout(
vm.successCall
, 2000)
}
})
}
},
putData () {
let vm = this
let url = process.env.basePath + 'bp_bind_submit'
let param = {
'master': {
'bp_id': window.localStorage.getItem('user_id'),
'company_id': '2145',
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
console.log(res)
}
})
},
hideModal () {
this.showModalValue = false
},
......@@ -401,10 +402,25 @@ export default {
returnItem: function (index, obj) {
vm.baseInfo.bp_type = obj.bp_type
vm.bp_type_n = obj.bp_type_n
// vm.isSelected = true
vm.isSelected = true
},
})
},
getBankInfo () {
let vm = this
let bpId = window.localStorage.getItem('user_id')
let url = process.env.basePath + 'bp_bank_query'
let param = {
'bp_id': bpId,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.getBankList = res.lists
}
})
},
handleNotify () {
this.hlsPopup.showNotify({
content: '清先保存基本信息',
......@@ -527,6 +543,7 @@ export default {
margin-left: 4px;
}
span {
color:#fff;
font-family: PingFangSC-Semibold;
margin-left: 16px;
font-size: 17px;
......@@ -536,7 +553,7 @@ export default {
}
}
.content {
margin-top: 3px;
height: 76%;
.userInfo {
height: 45px;
line-height: 45px;
......@@ -655,9 +672,8 @@ export default {
background-color: #00469c;
}
.footer-button {
height: 88px;
padding-top: 10px;
padding-bottom: 41px;
padding-top: 15px;
margin-bottom: 15px;
}
.front,
.photo,
......@@ -666,10 +682,11 @@ export default {
display: none;
}
.modal-content {
height: 71%;
height: 75%;
position: absolute;
top: 29%;
top: 25%;
background-color: #fff;
overflow-y:scroll;
.modal-content-add-top {
width: 320px;
height: 34px;
......
......@@ -9,8 +9,8 @@
<h-content class="content">
<div class="info">
<div class="info-icon">
<span>温馨提示</span>
<img src="@/assets/userBind/info.png" >
<span>温馨提示</span>
</div>
<p>绑定成功后,您即可使用APP中合同查询、还款查询等功能。</p>
</div>
......@@ -71,6 +71,7 @@ export default {
margin-left: 4px;
}
span {
color: #fff;
font-family: PingFangSC-Semibold;
margin-left: 16px;
font-size: 17px;
......@@ -82,9 +83,10 @@ export default {
.content {
.info {
height: 88px;
line-height: 88px;
background-color: rgba(142, 195, 30, 0.1);
.info-icon {
height: 20px;
height: 30px;
padding-top: 20px;
display: flex;
align-items: center;
......
......@@ -20,6 +20,8 @@ import UserBind from '@/pages/userBind/userBind'
import NaturePerson from '@/pages/userBind/np/naturePerson'
import Enterprise from '@/pages/userBind/org/enterprise'
// 进件审批
import Base from '@/pages/intoApproval/intoApproval/base'
Vue.use(Router)
export default new Router({
......@@ -83,6 +85,8 @@ export default new Router({
{path: '/user-bind', component: UserBind, name: 'UserBind', meta: {keepAlive: false}},
{path: '/nature-person', component: NaturePerson, name: 'NaturePerson', meta: {keepAlive: false}},
{path: '/enterprise', component: Enterprise, name: 'Enterprise', meta: {keepAlive: false}},
// 进件审批
{path: '/base', component: Base, name: 'Base', meta: {keepAlive: true}},
],
scrollBehavior (to, from, savedPosition) {
if (to.hash) {
......
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