Commit cd1237b0 authored by 786817560's avatar 786817560

'经销商修改'

parents a681e2aa 7827a751
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-25 15:38:21
* @LastEditTime: 2019-09-25 21:09:40
* @LastEditTime: 2019-09-26 16:34:19
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -14,7 +14,63 @@
</div>
</h-header>
<Tab @getTabNum="getTabNum" />
<h-content v-show="tabNum === 0">
<h-content v-if="tabNum === 0">
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">业务经办</div>
<input slot="content" placeholder="张三" >
</item>
<item>
<div slot="name" class="font-color">经销商</div>
<input slot="content" placeholder="****代理商" >
</item>
</list-item>
<div class="equipment-list" @click="judgeBp">承租人信息</div>
<LegalPerson v-if="bp_flag"/>
<Personal v-if="!bp_flag"/>
<div class="equipment-list">担保人信息</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/intoApproval/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/intoApproval/introduce.png" >
<span>张天</span>
<br >
<span>42112029870928097</span>
</div>
</item>
</list-item>
<div class="bottom-call">
<div class="left">
<img src="@/assets/distributorSign/call.png" alt="">
</div>
<div class="center">
<p>业务经办:张三</p>
<p>联系电话:17890765336</p>
</div>
<div class="right1">
<img src="@/assets/distributorSign/calls.png" alt="">
</div>
</div>
</h-content>
<h-content v-if="tabNum === 1">
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">商务政策</div>
......@@ -92,12 +148,12 @@
<p>业务经办:张三</p>
<p>联系电话:17890765336</p>
</div>
<div class="right">
<div class="right1">
<img src="@/assets/distributorSign/calls.png" alt="">
</div>
</div>
</h-content>
<h-content v-show="tabNum === 1">
<h-content v-if="tabNum === 2">
<list-item :item-height="56">
<item :proportion="[4,1]">
<div slot="name" class="aguremrnt-list">
......@@ -133,14 +189,19 @@
<script>
import Tab from '@/pages/distributorSign/details-tab'
import LegalPerson from '@/pages/distributorSign/legal-person'
import Personal from '@/pages/distributorSign/personal'
export default {
name: 'ContractDetails',
components: {
Tab,
Personal,
LegalPerson,
},
data () {
return {
tabNum: 0,
bp_flag: false,
}
},
computed: {},
......@@ -151,6 +212,9 @@ export default {
console.log(i)
this.tabNum = i
},
judgeBp () {
this.bp_flag = !this.bp_flag
},
},
}
</script>
......@@ -170,6 +234,54 @@ export default {
line-height: 24px;
}
}
.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;
}
.font-color {
font-family: PingFangSC-Regular;
font-size: 14px;
......@@ -250,7 +362,7 @@ export default {
letter-spacing: 0.43px;
}
}
.right {
.right1 {
height: 100%;
width: 16%;
background: rgba(0,70,156,0.20);
......
......@@ -26,7 +26,7 @@
<p class="incoming-num">进件号</p>
<p class="code">{{ item.code }}</p>
</div>
<div class="details">
<div class="details" @click="goDetails(index)">
<div class="option">
<p class="name">承租人</p>
<p class="full-name normal">{{ item.name }}</p>
......@@ -96,6 +96,7 @@ export default {
line-height: 24px;
}
}
.hinput {
width: 100%;
height: 68px;
......@@ -130,7 +131,7 @@ export default {
height: 120px;
// border: 1px solid #ccc;
background: #fff;
margin-bottom: 8px;
margin-bottom: 18px;
.item {
width: 100%;
height: 34px;
......
<!--
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-25 11:10:34
* @LastEditTime: 2019-09-25 21:08:48
* @Date: 2019-09-25 19:47:59
* @LastEditTime: 2019-09-26 14:08:08
* @LastEditors: Please set LastEditors
-->
<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="tabNum = 2;sendTabNum()"><img :src="tabNum == 2?check3:uncheck3"></span>
</div>
</template>
<script>
import check1 from '@/assets/distributorSign/conditionChecked.png'
import check2 from '@/assets/distributorSign/textChecked.png'
import uncheck1 from '@/assets/distributorSign/conditionUncheck.png'
import uncheck2 from '@/assets/distributorSign/textUncheck.png'
import check1 from '@/assets/distributorSign/check1.png'
import check2 from '@/assets/distributorSign/check2.png'
import check3 from '@/assets/distributorSign/guaranteed.png'
import uncheck1 from '@/assets/distributorSign/uncheck1.png'
import uncheck2 from '@/assets/distributorSign/uncheck2.png'
import uncheck3 from '@/assets/distributorSign/guarantee.png'
export default {
data () {
return {
tabNum: 0,
check1: check1,
check2: check2,
check3: check3,
uncheck1: uncheck1,
uncheck2: uncheck2,
uncheck3: uncheck3,
}
},
methods: {
......@@ -37,28 +41,24 @@ export default {
<style lang="less" scoped>
.tab-style{
display:flex;
// justify-content: center;
justify-content: center;
padding-top:12px;
padding-bottom: 8px;
align-items: center;
background: #fff;
box-shadow:0 2px 3px 0 rgba(220,220,221,0.50);
span{
display: block;
width:45.9%;
width:112px;
height: 32px;
border-radius:16px;
}
span:nth-of-type(1){
margin-left: 12px
}
img{
width:100%;
width:112px;
height: 32px;
// margin-right:5.7px;
margin-right:5.7px;
}
span:nth-of-type(2){
margin-left:7px;
margin:0 10px;
}
}
</style>
<!--
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-26 15:09:24
* @LastEditTime: 2019-09-26 16:06:50
* @LastEditors: Please set LastEditors
-->
<template>
<div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">公司名称</div>
<input slot="content" placeholder="珠海市珠信达有限公司" >
</item>
<item>
<div slot="name" class="font-color">营业执照号</div>
<input slot="content" placeholder="9144044007079590477" >
</item>
<item>
<div slot="name" class="font-color">注册资本</div>
<input slot="content" placeholder="1,000万(元)" >
</item>
<item>
<div slot="name" class="font-color">注册地址</div>
<input slot="content" placeholder="湖北省武汉市洪山区" >
</item>
<item>
<div slot="name" class="font-color">经营地址</div>
<input slot="content" placeholder="湖北省武汉市江岸区" >
</item>
<item>
<div slot="name" class="font-color">固定电话</div>
<input slot="content" placeholder="012-51380976" >
</item>
<item>
<div slot="name" class="font-color" @click="changFlag">是否授权</div>
<!-- <input slot="content" placeholder="是" > -->
<p class="auth">{{ auth_text }}</p>
</item>
</list-item>
<div class="equipment-list">{{ text }}</div>
<list-item v-show="auth_flag" :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">姓名</div>
<input slot="content" placeholder="李四" >
</item>
<item>
<div slot="name" class="font-color">证件号</div>
<input slot="content" placeholder="4214563787655457908" >
</item>
<item>
<div slot="name" class="font-color">公司职务</div>
<input slot="content" placeholder="财务部长" >
</item>
<item>
<div slot="name" class="font-color">授权事项</div>
<input slot="content" placeholder="合同签署" >
</item>
</list-item>
<list-item v-show="!auth_flag" :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">姓名</div>
<input slot="content" placeholder="李四" >
</item>
<item>
<div slot="name" class="font-color">证件号</div>
<input slot="content" placeholder="4214563787655457908" >
</item>
<item>
<div slot="name" class="font-color">手机号码</div>
<input slot="content" placeholder="12345545434" >
</item>
<item>
<div slot="name" class="font-color">居住地址</div>
<input slot="content" placeholder="珠海市象山区" >
</item>
</list-item>
</div>
</template>
<script>
export default {
name: '',
data () {
return {
auth_text: '否',
auth_flag: false,
text: '法定代表人信息',
}
},
computed: {},
watch: {
auth_flag () {
if (this.auth_flag === false) {
this.auth_text = '否'
this.text = '法定代表人信息'
} else {
this.auth_text = '是'
this.text = '法定授权人信息'
}
},
},
methods: {
changFlag () {
this.auth_flag = !this.auth_flag
},
},
}
</script>
<style lang='less' scoped>
.font-color {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
letter-spacing: 0;
}
.equipment-list {
height: 40px;
line-height: 40px;
background-color: #fafafa;
color: #00469c;
font-size: 15px;
margin-left: 16px;
position: relative;
}
.equipment-list::before {
content: "";
display: block;
width: 4px;
height: 20px;
background-color: #00469c;
position: absolute;
left: -15px;
top: 10px;
}
.auth {
height: 44px;
line-height: 44px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: rgba(56,63,69,0.60);
letter-spacing: 0;
}
</style>
<!--
* @Descrip""/>User Settings Edit
* @Author: your name
* @Date: 2019-09-26 15:47:45
* @LastEditTime: 2019-09-26 16:03:54
* @LastEditors: Please set LastEditors
-->
<template>
<div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">姓名</div>
<input slot="content" placeholder="张三" >
</item>
<item>
<div slot="name" class="font-color">证件号</div>
<input slot="content" placeholder="421120298709240987" >
</item>
<item>
<div slot="name" class="font-color">电话号码</div>
<input slot="content" placeholder="15768097665" >
</item>
<item>
<div slot="name" class="font-color">居住地址</div>
<input slot="content" placeholder="湖北省武汉市洪山区" >
</item>
<item>
<div slot="name" class="font-color">户籍地址</div>
<input slot="content" placeholder="湖北省武汉市江岸区" >
</item>
<item>
<div slot="name" class="font-color">学历</div>
<input slot="content" placeholder="本科" >
</item>
<item>
<div slot="name" class="font-color">婚姻状况</div>
<input slot="content" placeholder="已婚" >
</item>
</list-item>
<div class="equipment-list">配偶信息</div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">姓名</div>
<input slot="content" placeholder="李四" >
</item>
<item>
<div slot="name" class="font-color">电话号码</div>
<input slot="content" placeholder="18907658990" >
</item>
<item>
<div slot="name" class="font-color">工作单位</div>
<input slot="content" placeholder="上海汉得" >
</item>
<item>
<div slot="name" class="font-color">居住地址</div>
<input slot="content" placeholder="湖北省武汉市洪山区" >
</item>
</list-item>
</div>
</template>
<script>
export default {
name: '',
data () {
return {
}
},
computed: {},
watch: {},
methods:
{
},
}
</script>
<style lang='less' scoped>
.font-color {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
letter-spacing: 0;
}
.equipment-list {
height: 40px;
line-height: 40px;
background-color: #fafafa;
color: #00469c;
font-size: 15px;
margin-left: 16px;
position: relative;
}
.equipment-list::before {
content: "";
display: block;
width: 4px;
height: 20px;
background-color: #00469c;
position: absolute;
left: -15px;
top: 10px;
}
</style>
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-25 11:10:34
* @LastEditTime: 2019-09-25 15:33:50
* @LastEditTime: 2019-09-25 21:05:24
* @LastEditors: Please set LastEditors
-->
<template>
......
......@@ -2,8 +2,8 @@
* @Description: In User Settings Edit
* @Author: liuxin
* @Date: 2019-09-19 09:18:14
* @LastEditTime: 2019-09-19 09:18:14
* @LastEditors: your name
* @LastEditTime: 2019-09-26 11:30:03
* @LastEditors: Please set LastEditors
-->
<template>
<h-view id="base-info1" class="public-style" title="基本信息">
......
......@@ -2,7 +2,7 @@
* @Description: In User Settings Edit
* @Author: your name
* @Date: 2019-09-19 09:31:19
* @LastEditTime: 2019-09-25 19:31:11
* @LastEditTime: 2019-09-26 14:00:48
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -13,7 +13,7 @@
<span>用户绑定</span>
</div>
</h-header>
<Tab @getTabNum="getTabNum" />
<Tab :tabNum="tabNum" @getTabNum="getTabNum" />
<h-content class="content">
<div v-show="tabNum==0">
<list-item :item-height="44">
......@@ -187,7 +187,7 @@
</div>
</div>
<div class="card2">
<span @click="goContract">其他资产证件</span>
<span>其他资产证件</span>
<div class="img-content">
<div class="card-upload">
<img src="@/assets/userBind/camera.png" >
......@@ -307,7 +307,7 @@ export default {
bank_lists: {
bank_account_num: '',
bank_account_name: '',
bank_card_type: '储蓄卡',
bank_card_type: '0',
bank_full_name: '',
bank_branch_name: '',
},
......@@ -328,6 +328,7 @@ export default {
vm.type = '请输入业务经办员工代码'
vm.typeName = '业务经办'
vm.bp_type_flag = true
vm.baseInfo.agent_username = 'BP003020'
} else if (
vm.baseInfo.bp_type === 'AGENT' ||
vm.baseInfo.bp_type === 'OFFICE' ||
......@@ -344,16 +345,21 @@ export default {
this.text = '授权信息'
}
},
'tabNum': function (newVal, oldVal) {
// if ((newVal === 1 && !window.sessionStorage.user_id) || (newVal === 2 && !window.sessionStorage.user_id)) {
// this.hlsPopup.showError('清先保存基本信息')
// this.tabNum = oldVal
// }
if (newVal === 1 && !this.bp_id) {
this.hlsPopup.showError('请先保存基本信息')
this.tabNum = oldVal
}
},
},
created () {
this.getBpType()
},
methods: {
goContract () {
this.$router.push({
name: 'ContractList',
})
},
handSubmit () {
let url = $config.basePath + 'bp_bind_submit'
let param = {
......@@ -362,8 +368,12 @@ export default {
'company_id': '2145',
},
}
let vm = this
this.hlsHttp.post(url, param).then(function (res) {
console.log('企业信息提交', res)
if (res.result === 'S') {
vm.hlsPopup.showSuccess('提交成功')
}
})
},
addBankInfo () {
......@@ -377,10 +387,10 @@ export default {
}
}
// 银行卡验证this.hlsUtil.isBankAccount(this.bank.bank_account_num)
// if (this.hlsUtil.isBankAccount(this.bank_lists.bank_account_num)) {
// this.bank_card_flag = false
// this.hlsPopup.showLongCenter('请输入正确银行卡号!')
// }
if (this.hlsUtil.isBankAccount(this.bank_lists.bank_account_num)) {
this.bank_card_flag = false
this.hlsPopup.showLongCenter('请输入正确银行卡号!')
}
// 验证账户名称与承租人名称一致
if (this.bank_lists.bank_account_name !== this.saveInfo.bp_name) {
this.bank_card_flag = false
......@@ -401,6 +411,8 @@ export default {
console.log(res)
if (res.result === 'S') {
vm.hlsPopup.hideLoading()
vm.showModalValue = false
vm.hlsPopup.showSuccess('添加成功')
let url = $config.basePath + 'bp_bank_query'
let param = {
'bp_id': vm.bp_id,
......@@ -446,14 +458,14 @@ export default {
}
}
if (!vm.bp_type_flag) {
vm.baseInfo.agent_username = ''
// vm.baseInfo.agent_username = ''
// vm.saveInfo.agent_username = ''
}
// 校验电话号
let re = this.hlsUtil.phoneNumber(this.invoiceInfo.invoice_bp_address_phone_num)
if (!re) {
let re = this.hlsUtil.phoneNumber(this.saveInfo.cell_phone)
if (!re && this.baseInfo.auth_flag === 'N') {
vm.msg_flag = false
vm.hlsPopup.showLongCenter('请输入正确电话号')
vm.hlsPopup.showLongCenter('请输入正确手机号')
}
// 校验身份证号vm.hlsUtil.isCardID(vm.baseInfo.id_card_no)
if (vm.flag) {
......@@ -478,6 +490,7 @@ export default {
console.log(res)
if (res.result === 'S') {
vm.hlsPopup.hideLoading()
vm.hlsPopup.showSuccess('保存成功')
vm.bp_id = res.bp_id
}
})
......@@ -749,8 +762,8 @@ export default {
align-items: center;
}
.card-upload {
width: 88px;
height: 88px;
width: 80px;
height: 80px;
border: 1px dashed #dcdcdd;
display: flex;
justify-content: center;
......
File added
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(n){function r(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var t=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a<e.length;a++)i=e[a],o[i]&&l.push(o[i][0]),o[i]=0;for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(n[f]=u[f]);for(t&&t(e,u,c);l.length;)l.shift()();if(c)for(a=0;a<c.length;a++)p=r(r.s=c[a]);return p};var e={},o={2:0};r.m=n,r.c=e,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},r.p="./",r.oe=function(n){throw n}}([]);
//# sourceMappingURL=manifest.3ad1d5771e9b13dbdad2.js.map
\ No newline at end of file
/**
*
* @param fmt
* @returns {*}
* @constructor
*/
Date.prototype.format = function (fmt) { // eslint-disable-line
var o = {
'M+': this.getMonth() + 1, // 月份
'd+': this.getDate(), // 日
'h+': this.getHours(), // 小时
'm+': this.getMinutes(), // 分
's+': this.getSeconds(), // 秒
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
'S': this.getMilliseconds(), // 毫秒
}
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
for (var k in o) { if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length))) }
return fmt
}
/**
* 移除数组的某个元素
* @param dx 下标
* @returns {boolean}
*/
Array.prototype.remove = function (dx) { // eslint-disable-line
if (isNaN(dx) || dx > this.length) {
return false
}
for (var i = 0, n = 0; i < this.length; i++) {
if (this[i] !== this[dx]) {
this[n++] = this[i]
}
}
this.length -= 1
}
This diff is collapsed.
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