Commit 105d2402 authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents 354d6dc3 bc00c0ed
Pipeline #4286 canceled with stages
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
</div> </div>
<div class="userInfo">租赁产品</div> <div class="userInfo">租赁产品</div>
<list-item :item-height="44"> <list-item :item-height="44">
<item :showArrow="true" @click.native="showModalValue=true"> <item :showArrow="true" @click.native="selectProductLine">
<div slot="name">产品线</div> <div slot="name">产品线</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="saveInfo.division_n" readonly placeholder="暂无信息" >
</item> </item>
<item :showArrow="true"> <item :showArrow="true" @click.native="getProduct">
<div slot="name">产品型号</div> <div slot="name">产品型号</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" readonly placeholder="暂无信息" >
</item> </item>
...@@ -49,37 +49,44 @@ ...@@ -49,37 +49,44 @@
</item> </item>
<item> <item>
<div slot="name">设备单价</div> <div slot="name">设备单价</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item> <item>
<div slot="name">融资金额</div> <div slot="name">融资金额</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item> <item>
<div slot="name">首付比例</div> <div slot="name">首付比例</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">首付款</div> <div slot="name">首付款</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item> <item>
<div slot="name">保证金比例</div> <div slot="name">保证金比例</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">保证金</div> <div slot="name">保证金</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item> <item>
<div slot="name">手续费比例</div> <div slot="name">手续费比例</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">手续费</div> <div slot="name">手续费</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item> <item>
<div slot="name">GPS费用</div> <div slot="name">GPS费用</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item> <item>
<div slot="name">保险押金</div> <div slot="name">保险押金</div>
<CurrencyInput slot="content" readonly placeholder="暂无信息" /></item> <CurrencyInput slot="content" readonly placeholder="暂无信息" />
</item>
<item class="date-check"> <item class="date-check">
<div slot="name">预计付款日</div> <div slot="name">预计付款日</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" readonly placeholder="暂无信息" >
...@@ -110,7 +117,7 @@ ...@@ -110,7 +117,7 @@
</item> </item>
<item :showArrow="true" @click.native="goPlan"> <item :showArrow="true" @click.native="goPlan">
<div slot="name">查看还款计划</div> <div slot="name">查看还款计划</div>
<input slot="content" readonly> <input slot="content" readonly >
</item> </item>
</list-item> </list-item>
</h-content> </h-content>
...@@ -126,31 +133,35 @@ ...@@ -126,31 +133,35 @@
</h-header> </h-header>
<h-content> <h-content>
<div class="search has-header"> <div class="search has-header">
<input v-model="keyWord" placeholder="请输入产品名称" > <input v-model="keyWordProduct" placeholder="请输入产品名称" >
</div> </div>
<div class="division-box"> <div class="division-box">
<list-item v-for="(item,index) in divisionLists" :key="index"> <scroll ref="scroll" :updateData="[divisionLists]" :pullUp="true" @pullingUp="getProduct">
<item :proportion="[1,4]" @click.native="goDetailed(item.product_id,item.collect_status,item.bp_id)"> <list-item v-for="(item,index) in divisionLists" :key="index">
<div slot="name" class="item-pic"> <item
<img :src="item.url" alt=""> :proportion="[1,4]"
</div> @click.native="goDetailed(item.product_id,item.collect_status,item.bp_id)"
<div slot="content" class="item-content"> >
<div class="pro-name"> <div slot="name" class="item-pic">
<p>{{ item.product_name }}</p> <img :src="item.url" alt >
<img class="arrow" src="@/assets/productQuery/getIn.png" alt="" >
</div>
<div class="centers">
<p class="firsts1">{{ item.bp_type_n }}</p>
<p class="seconds1">{{ item.bp_name }}</p>
</div> </div>
<div class="centers"> <div slot="content" class="item-content">
<p class="firsts1">参数项</p> <div class="pro-name">
<p class="seconds1">{{ item.product_code }}</p> <p>{{ item.product_name }}</p>
<img class="arrow" src="@/assets/productQuery/getIn.png" alt >
</div>
<div class="centers">
<p class="firsts1">{{ item.bp_type_n }}</p>
<p class="seconds1">{{ item.bp_name }}</p>
</div>
<div class="centers">
<p class="firsts1">参数项</p>
<p class="seconds1">{{ item.product_code }}</p>
</div>
</div> </div>
</div> </item>
</item> </list-item>
</list-item> </scroll></div>
</div>
</h-content> </h-content>
</h-view> </h-view>
</h-modal> </h-modal>
...@@ -167,7 +178,7 @@ ...@@ -167,7 +178,7 @@
<div class="division-box"> <div class="division-box">
<section v-for="(item,index) in businessLists" :key="index"> <section v-for="(item,index) in businessLists" :key="index">
<div class="descript" @click="goDetails(item.product_plan_id)"> <div class="descript" @click="goDetails(item.product_plan_id)">
<img src="@/assets/trial/product.png" alt=""> <img src="@/assets/trial/product.png" alt >
<p class="produc">{{ item.product_plan_id_n }}</p> <p class="produc">{{ item.product_plan_id_n }}</p>
</div> </div>
<div class="tario"> <div class="tario">
...@@ -209,97 +220,164 @@ export default { ...@@ -209,97 +220,164 @@ export default {
return { return {
showModalValue: false, showModalValue: false,
showModalBusiness: false, showModalBusiness: false,
keyWordProduct: '',
keyWord: '', keyWord: '',
pagenum: 1,
businessLists: [ businessLists: [
{ {
'lease_times': '12', lease_times: '12',
'deposit_ratio_n': ' 16.00%', deposit_ratio_n: ' 16.00%',
'lease_charge_ratio_n': ' 4.00%', lease_charge_ratio_n: ' 4.00%',
'product_plan_id': '69', product_plan_id: '69',
'lease_charge_ratio': '0.04', lease_charge_ratio: '0.04',
'int_rate_n': ' 6.00%', int_rate_n: ' 6.00%',
'int_rate': '0.06', int_rate: '0.06',
'deposit_ratio': '0.16', deposit_ratio: '0.16',
'product_plan_id_n': '等额本息-按月-12期', product_plan_id_n: '等额本息-按月-12期',
}, },
{ {
'lease_times': '4', lease_times: '4',
'deposit_ratio_n': ' 10.00%', deposit_ratio_n: ' 10.00%',
'lease_charge_ratio_n': ' 5.00%', lease_charge_ratio_n: ' 5.00%',
'product_plan_id': '70', product_plan_id: '70',
'lease_charge_ratio': '0.05', lease_charge_ratio: '0.05',
'int_rate_n': ' 6.00%', int_rate_n: ' 6.00%',
'int_rate': '0.06', int_rate: '0.06',
'deposit_ratio': '0.1', deposit_ratio: '0.1',
'product_plan_id_n': '等额本息-按季-4期', product_plan_id_n: '等额本息-按季-4期',
}, },
{ {
'lease_times': '12', lease_times: '12',
'deposit_ratio_n': ' 25.00%', deposit_ratio_n: ' 25.00%',
'lease_charge_ratio_n': ' 5.00%', lease_charge_ratio_n: ' 5.00%',
'product_plan_id': '109', product_plan_id: '109',
'lease_charge_ratio': '0.05', lease_charge_ratio: '0.05',
'int_rate_n': ' 7.50%', int_rate_n: ' 7.50%',
'int_rate': '0.075', int_rate: '0.075',
'deposit_ratio': '0.25', deposit_ratio: '0.25',
'product_plan_id_n': '等额本金-双月-12期', product_plan_id_n: '等额本金-双月-12期',
},
{
'lease_times': '24',
'deposit_ratio_n': ' 15.00%',
'lease_charge_ratio_n': ' 15.00%',
'product_plan_id': '132',
'lease_charge_ratio': '0.15',
'int_rate_n': ' 7.00%',
'int_rate': '0.07',
'deposit_ratio': '0.15',
'product_plan_id_n': '等额本息-按月-24期',
}],
divisionLists: [
{
'bp_name': '重型重庆办',
'bp_id': '41',
'product_id': '5',
'product_attachment_id': '88039',
'product_code': 'QAY130',
'product_name': '全地面起重机QAY130',
'bp_type_n': '办事处',
'collect_status': 'Y',
}, },
{ {
'bp_name': '重型银川办', lease_times: '24',
'bp_id': '61', deposit_ratio_n: ' 15.00%',
'product_id': '5', lease_charge_ratio_n: ' 15.00%',
'product_attachment_id': '88039', product_plan_id: '132',
'product_code': 'QAY130', lease_charge_ratio: '0.15',
'product_name': '全地面起重机QAY130', int_rate_n: ' 7.00%',
'bp_type_n': '办事处', int_rate: '0.07',
'collect_status': 'N', deposit_ratio: '0.15',
}, product_plan_id_n: '等额本息-按月-24期',
{
'bp_name': '上海汉得信息技术股份有限公司',
'bp_id': '7781',
'product_id': '5',
'product_attachment_id': '88039',
'product_code': 'QAY130',
'product_name': '全地面起重机QAY130',
'bp_type_n': '经销商',
'collect_status': 'N',
},
{
'bp_name': '广州市易推信息商务科技有限公司',
'bp_id': '8143',
'product_id': '5',
'product_attachment_id': '88039',
'product_code': 'QAY130',
'product_name': '全地面起重机QAY130',
'bp_type_n': '经销商',
'collect_status': 'N',
}, },
], ],
divisionLists: [],
productLine: [], // 产品线
saveInfo: {
project_id: '',
product_plan_id: '',
product_id: '',
product_num: '',
equip_price: '',
int_rate: '',
annual_pay_times: '',
lease_times: '',
down_payment_ratio: '',
down_payment: '',
deposit_ratio: '',
deposit: '',
lease_charge_ratio: '',
lease_charge: '',
lease_start_date: '',
gps_fee: '',
insurance_fee: '',
pay_type: '',
residual_value: '',
division_n: '',
},
} }
}, },
beforeRouteEnter (to, from, next) {
next(vm => {
vm.showModalBusiness = false
vm.showModalValue = false
if (from.name === 'CreateBaseInfo') {
vm.pagenum = 1
vm.getProductLine() // 产品线查询
}
})
},
methods: { methods: {
getProduct () {
let vm = this
vm.showModalValue = true
let randomString = Math.floor(Math.random() * 21)
let url =
process.env.basePath +
'prd_product_list' +
'&index' +
`'${randomString}'`
let param = {
user_phone: window.localStorage.getItem('user_phone'),
pagesize: 10,
pagenum: vm.pagenum,
searchInput: vm.keyWord,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
let returnData = []
returnData = res.lists
if (returnData.length === 0) {
vm.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
vum.forEach(returnData, function (data, index, array) {
vm.divisionLists.push(array[index])
})
vm.pagenum++
vm.$refs.scroll.update(true)
} else if (returnData.length === 10) {
vum.forEach(returnData, function (data, index, array) {
vm.divisionLists.push(array[index])
})
vm.pagenum++
vm.$refs.scroll.update(false)
}
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
selectProductLine (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.productLine,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.saveInfo.division = obj.bp_type
vm.saveInfo.division_n = obj.bp_type_n
},
})
},
getProductLine () {
let vm = this
let url = process.env.basePath + 'prj_product_division'
let param = {
bp_agent_id: vm.$route.params.bp_agent_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.productLine = res.lists.map(item => {
return {
code: item.division,
code_name: item.division_n,
}
})
}
})
},
goPlan () { goPlan () {
this.$router.push({ this.$router.push({
name: 'ContractRepayPlan', name: 'ContractRepayPlan',
...@@ -309,58 +387,65 @@ export default { ...@@ -309,58 +387,65 @@ export default {
}, },
}) })
}, },
goRent () {
this.$router.push({
name: 'CreateEnclosureInfo',
})
},
}, },
} }
</script> </script>
<style lang="less"> <style lang="less">
#create-rent-info { #create-rent-info {
.flow{ .flow {
z-index:999; z-index: 999;
} }
.hls-list-item { .hls-list-item {
margin-bottom: 0px !important; margin-bottom: 0px !important;
} }
.h-header-right{ .h-header-right {
display: flex; display: flex;
align-items: center; align-items: center;
} }
#businuss-list{ #businuss-list {
.search { .search {
background-color: #fff; background-color: #fff;
padding: 8px 12px; padding: 8px 12px;
width: 100%;
height: 1.02rem;
z-index: 100;
margin-bottom: 8px;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height:36px;
line-height: 36px;
border-radius: 4px;
width: 100%; width: 100%;
font-family: PingFangSC-Regular; height: 1.02rem;
font-size: 14px; z-index: 100;
color: #888c8f; margin-bottom: 8px;
} input {
background: url("../../assets/contractStart/search1.png") 320px
no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height: 36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
input::placeholder { input::placeholder {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
color: #888c8f; color: #888c8f;
letter-spacing: 0; letter-spacing: 0;
} }
input:focus { input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat; background: url("../../assets/contractStart/search2.png") 320px
background-size: 16px 16px; no-repeat;
background-color: rgba(239, 239, 239, 0.55); background-size: 16px 16px;
border: 2px solid #bcc6ff; background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
}
} }
} .descript {
.descript {
width: 100%; width: 100%;
height: 44px; height: 44px;
display: flex; display: flex;
...@@ -388,16 +473,16 @@ export default { ...@@ -388,16 +473,16 @@ export default {
display: flex; display: flex;
flex: 1; flex: 1;
font-size: 15px; font-size: 15px;
color: #4B4A4B; color: #4b4a4b;
line-height: 44px; line-height: 44px;
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
margin-left: 10px; margin-left: 10px;
font-family: PingFangSC-Semibold; font-family: PingFangSC-Semibold;
border-bottom: 1px solid #F3F3F7; border-bottom: 1px solid #f3f3f7;
} }
} }
.tario { .tario {
width: 100%; width: 100%;
height: 60px; height: 60px;
position: relative; position: relative;
...@@ -420,7 +505,7 @@ export default { ...@@ -420,7 +505,7 @@ export default {
line-height: 30px; line-height: 30px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: rgba(56, 63, 69, 0.60); color: rgba(56, 63, 69, 0.6);
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 16px; margin-left: 16px;
...@@ -429,114 +514,115 @@ export default { ...@@ -429,114 +514,115 @@ export default {
} }
} }
} }
#product-list{ #product-list {
.hls-list-item { .hls-list-item {
border-radius: 4px; border-radius: 4px;
} }
.item-pic { .item-pic {
width: 100px; width: 100px;
//height: 110px; //height: 110px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.item-content { .item-content {
width: 100%; width: 100%;
margin-left: 20px; margin-left: 20px;
.pro-name { .pro-name {
height: 42px; height: 42px;
width: 100%; width: 100%;
position: relative; position: relative;
border-bottom: 1px solid #F3F3F7; border-bottom: 1px solid #f3f3f7;
.arrow { .arrow {
position: absolute; position: absolute;
width: 16px; width: 16px;
height: 16px; height: 16px;
right: 0; right: 0;
top: 13px; top: 13px;
} }
p { p {
height: 42px; height: 42px;
line-height: 42px; line-height: 42px;
font-family: PingFangSC-Semibold; font-family: PingFangSC-Semibold;
font-size: 15px; font-size: 15px;
color: #4B4A4B; color: #4b4a4b;
letter-spacing: 0; letter-spacing: 0;
font-weight: 600; font-weight: 600;
} }
} }
.centers {
font-family: PingFangSC-Semibold;
font-size: 13px;
color: rgba(56,63,69,0.60);
letter-spacing: 0.5px;
display: flex;
flex-direction: row;
margin-top: 8px;
.firsts1 {
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56,63,69,0.60);
}
.seconds1 {
width: 70%;
margin-left: 16px;
height: auto;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #4B4A4B;
}
}
.centers {
font-family: PingFangSC-Semibold;
font-size: 13px;
color: rgba(56, 63, 69, 0.6);
letter-spacing: 0.5px;
display: flex;
flex-direction: row;
margin-top: 8px;
.firsts1 {
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 13px;
color: rgba(56, 63, 69, 0.6);
}
.seconds1 {
width: 70%;
margin-left: 16px;
height: auto;
font-family: PingFangSC-Regular;
font-size: 13px;
color: #4b4a4b;
}
}
} }
.item{ .item {
width:359px; width: 359px;
margin:0 auto; margin: 0 auto;
} }
.search { .search {
background-color: #fff; background-color: #fff;
padding: 8px 12px; padding: 8px 12px;
width: 100%;
height: 1.02rem;
z-index: 100;
margin-bottom: 8px;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height:36px;
line-height: 36px;
border-radius: 4px;
width: 100%; width: 100%;
font-family: PingFangSC-Regular; height: 1.02rem;
font-size: 14px; z-index: 100;
color: #888c8f; margin-bottom: 8px;
} input {
background: url("../../assets/contractStart/search1.png") 320px
no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height: 36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
input::placeholder { input::placeholder {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
color: #888c8f; color: #888c8f;
letter-spacing: 0; letter-spacing: 0;
} }
input:focus { input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat; background: url("../../assets/contractStart/search2.png") 320px
background-size: 16px 16px; no-repeat;
background-color: rgba(239, 239, 239, 0.55); background-size: 16px 16px;
border: 2px solid #bcc6ff; background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
}
} }
} }
} .date-check {
.date-check{ background: url("../../assets/trial/date.png") 350px no-repeat;
background:url('../../assets/trial/date.png') 350px no-repeat;
background-size: 16px 16px; background-size: 16px 16px;
padding-right:15px; padding-right: 15px;
} }
.hint-info { .hint-info {
width: 100%; width: 100%;
...@@ -546,12 +632,12 @@ export default { ...@@ -546,12 +632,12 @@ export default {
color: #fcc800; color: #fcc800;
letter-spacing: 0.5px; letter-spacing: 0.5px;
background-color: #faf5e0; background-color: #faf5e0;
display:flex; display: flex;
align-items: center; align-items: center;
img{ img {
width:16px; width: 16px;
height:16px; height: 16px;
margin-left:17px; margin-left: 17px;
margin-right: 17px; margin-right: 17px;
} }
} }
......
...@@ -114,9 +114,9 @@ ...@@ -114,9 +114,9 @@
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item> <item v-if="checkedApproved">
<div slot="name">特批事项</div> <div slot="name">特批事项</div>
<input slot="content" v-model="saveInfo.special_matter" placeholder="暂无信息" readonly > <input slot="content" v-model="saveInfo.special_matter" placeholder="暂无信息">
</item> </item>
</list-item> </list-item>
</div> </div>
...@@ -125,71 +125,73 @@ ...@@ -125,71 +125,73 @@
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
<div slot="name">公司名称</div> <div slot="name">公司名称</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.bp_name" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">企业类型</div> <div slot="name">企业类型</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.enterprise_type" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">营业执照号</div> <div slot="name">营业执照号</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.organization_code" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">注册资本</div> <div slot="name">注册资本</div>
<input slot="content" placeholder="暂无信息" readonly > <input slot="content" v-model="ORGBaseInfo.registered_capital" placeholder="暂无信息" readonly >
</item> </item>
<item> <item>
<div slot="name">注册地址</div> <div slot="name">注册地址</div>
<input slot="content" readonly placeholder="暂无信息" > <span slot="content">{{ ORGBaseInfo.registered_place }}</span>
</item> </item>
<item> <item>
<div slot="name">联系地址</div> <div slot="name">联系地址</div>
<input slot="content" readonly placeholder="暂无信息" > <span slot="content">{{ ORGBaseInfo.business_address }}</span>
</item> </item>
<item> <item>
<div slot="name">固定电话</div> <div slot="name">固定电话</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.phone" readonly placeholder="暂无信息" >
</item> </item>
</list-item> </list-item>
<div class="userInfo">法人代表信息</div> <div class="userInfo">法人代表信息</div>
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
<div slot="name">姓名</div> <div slot="name">姓名</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.legal_person" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">身份证号</div> <div slot="name">身份证号</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.id_card_no" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">手机号</div> <div slot="name">手机号</div>
<input slot="content" readonly placeholder="暂无信息" > <input slot="content" v-model="ORGBaseInfo.cell_phone" readonly placeholder="暂无信息" >
</item> </item>
<item> <item>
<div slot="name">联系地址</div> <div slot="name">联系地址</div>
<input slot="content" placeholder="暂无信息" readonly > <input slot="content" v-model="ORGBaseInfo.living_address" placeholder="暂无信息" readonly >
</item> </item>
</list-item> </list-item>
<div class="another-info"> <div class="another-info">
<img src="@/assets/contractCreate/otherInfo.png" >补充信息 <img src="@/assets/contractCreate/otherInfo.png" >补充信息
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item :showArrow="true"> <item :showArrow="true" @click.native="selectORGEquipInfo">
<div slot="name">设备保有量</div> <div slot="name">设备保有量</div>
<input slot="content" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.equip_num_n" readonly placeholder="请选择" >
</item> </item>
<item :showArrow="true"> <item :showArrow="true" @click.native="selectORGEnge">
<div slot="name">工程合同</div> <div slot="name">工程合同</div>
<input slot="content" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.engineer_con_n" readonly placeholder="请选择" >
</item> </item>
<item :showArrow="true"> <item :showArrow="true" @click.native="selectORGnative">
<div slot="name">企业性质</div> <div slot="name">企业性质</div>
<input slot="content" readonly placeholder="请选择" > <input slot="content" v-model="saveInfo.enterpriese_nature_n" readonly placeholder="请选择" >
</item> </item>
<item :showArrow="true"> <item :showArrow="true" @click.native="selectEquipInfo">
<div slot="name">设备价值</div> <div slot="name">设备价值</div>
<input slot="content" placeholder="请选择" readonly > <input
slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly
>
</item> </item>
<item class="check" @click.native="checked=!checked"> <item class="check" @click.native="checked=!checked">
<div slot="name">农行代扣</div> <div slot="name">农行代扣</div>
...@@ -201,9 +203,9 @@ ...@@ -201,9 +203,9 @@
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item> <item v-if="checkedApproved">
<div slot="name">特批事项</div> <div slot="name">特批事项</div>
<input slot="content" placeholder="暂无信息" readonly > <input slot="content" placeholder="暂无信息">
</item> </item>
</list-item> </list-item>
</div> </div>
...@@ -212,28 +214,28 @@ ...@@ -212,28 +214,28 @@
<img src="@/assets/contractCreate/add.png" @click="addPerson"> <img src="@/assets/contractCreate/add.png" @click="addPerson">
</div> </div>
</div> </div>
<item-option class="mySlider"> <item-option v-for="(item,index) in selectUdertake" :key="index" class="mySlider">
<list-item :item-height="68"> <list-item :item-height="68">
<item> <item>
<span slot="left-icon" class="left-icon">1</span> <span slot="left-icon" class="left-icon">{{ index+1 }}</span>
<div slot="name"> <div slot="name">
担保人1姓名 担保人{{ index+1 }}姓名
<br >证件号 <br >证件号
</div> </div>
<div slot="content"> <div slot="content">
<input placeholder="暂无信息" readonly > <input v-model="item.bp_name" placeholder="暂无信息" readonly >
<input placeholder="暂无信息" readonly > <input v-model="item.id_card_no" placeholder="暂无信息" readonly >
</div> </div>
</item> </item>
</list-item> </list-item>
<div slot="buttons"> <div slot="buttons">
<option-button type="warn" text @click.native="deleteFun" /> <option-button type="warn" text @click.native="deleteFun(item)" />
</div> </div>
</item-option> </item-option>
</h-content> </h-content>
<bottom-tab class="add-box"> <bottom-tab class="add-box">
<tab-button class="before" @click.native="$routeGo()">上一步</tab-button> <tab-button class="before" @click.native="$routeGo()">上一步</tab-button>
<tab-button class="next" @click.native="goRent">下一步</tab-button> <tab-button class="next" @click.native="save">下一步</tab-button>
</bottom-tab> </bottom-tab>
<h-modal ref="modal" v-model="showModalValue" class="flow" position="bottom"> <h-modal ref="modal" v-model="showModalValue" class="flow" position="bottom">
<h-view id="add-person"> <h-view id="add-person">
...@@ -249,15 +251,15 @@ ...@@ -249,15 +251,15 @@
</div> </div>
<scroll ref="scroll" :updateData="[undertakeList]" :pullUp="true" @pullingUp="getUndertake"> <scroll ref="scroll" :updateData="[undertakeList]" :pullUp="true" @pullingUp="getUndertake">
<list-item :item-height="68" class="item"> <list-item :item-height="68" class="item">
<item> <item v-for="(item,index) in undertakeList" :key="index" @click.native="addUndertake(item)">
<img slot="left-icon" src="@/assets/contractCreate/name.png" class="left-icon" > <img slot="left-icon" src="@/assets/contractCreate/name.png" class="left-icon" >
<div slot="name"> <div slot="name">
担保人名称 担保人名称
<br >证件号 <br >证件号
</div> </div>
<div slot="content"> <div slot="content">
<input placeholder="暂无信息" readonly > <input v-model="item.bp_name" placeholder="暂无信息" readonly >
<input placeholder="暂无信息" readonly > <input v-model="item.id_card_no" placeholder="暂无信息" readonly >
</div> </div>
</item> </item>
</list-item> </list-item>
...@@ -276,12 +278,25 @@ export default { ...@@ -276,12 +278,25 @@ export default {
bp_class: '', bp_class: '',
showModalValue: false, showModalValue: false,
keyWord: '', keyWord: '',
bp_agent_id: '',
pageNum: 1, pageNum: 1,
BussinessSituationList: [], // 行业情况 BussinessSituationList: [], // 行业情况
jobSituationList: [], // 职业情况 jobSituationList: [], // 职业情况
houseInfonList: [], // 房产信息 houseInfonList: [], // 房产信息
equipInfonList: [], // 设备信息 equipInfonList: [], // 设备信息
undertakeList: [], // 担保人列表 engeList: [], // 工程合同查询
nativeList: [], // 企业性质查询
undertakeList: [ {
'id_card_no': '152104199103074114',
'bp_name': '程磊',
'bp_id': '8464',
},
{
'id_card_no': '91320000665795725L',
'bp_name': '江苏徐工工程机械租赁有限公司',
'bp_id': '8465',
}], // 担保人列表
selectUdertake: [], // 已选择的担保人列表
NPBaseInfo: {}, // 自然人基本信息 NPBaseInfo: {}, // 自然人基本信息
ORGBaseInfo: {}, // 企业基本信息 ORGBaseInfo: {}, // 企业基本信息
saveInfo: {// 需要保存的信息 saveInfo: {// 需要保存的信息
...@@ -289,9 +304,12 @@ export default { ...@@ -289,9 +304,12 @@ export default {
bp_id: window.localStorage.bp_id, bp_id: window.localStorage.bp_id,
bp_class: window.localStorage.bp_class, bp_class: window.localStorage.bp_class,
equip_num: '', equip_num: '',
equip_num_n: '',
equip_value: '', equip_value: '',
engineer_con: '', engineer_con: '',
engineer_con_n: '',
enterpriese_nature: '', enterpriese_nature: '',
enterpriese_nature_n: '',
abc_deduction_flag: '', abc_deduction_flag: '',
special_flag: '', special_flag: '',
special_matter: '', special_matter: '',
...@@ -301,9 +319,6 @@ export default { ...@@ -301,9 +319,6 @@ export default {
house_type_n: '', house_type_n: '',
np_industry_exp_n: '', np_industry_exp_n: '',
np_occupation_n: '', np_occupation_n: '',
bp_id_guta_1: '',
bp_id_guta_2: '',
bp_id_guta_3: '',
}, },
} }
}, },
...@@ -344,20 +359,84 @@ export default { ...@@ -344,20 +359,84 @@ export default {
this.showModalValue = true this.showModalValue = true
this.getUndertake() this.getUndertake()
}, },
goRent () { addUndertake (e) {
this.$router.push({ if (this.selectUdertake.length === 0) {
this.selectUdertake.push(e)
} else {
let index = this.selectUdertake.findIndex(item => {
if (item.bp_name === e.bp_name) {
return true
}
})
if (index !== -1) {
hlsPopup.showLongCenter('您已添加了该担保人')
} else {
this.selectUdertake.push(e)
}
}
setTimeout(() => {
this.showModalValue = false
}, 100)
},
makeData () {
let obj = {}
this.selectUdertake.forEach((i, index, arr) => {
obj[`bp_id_guta_${index + 1}`] = i.bp_id
})
return obj
},
getAgentInfo () {
let vm = this
let url = process.env.basePath + 'prj_bp_agent_query'
let param = {
user_phone: window.localStorage.getItem('user_phone'),
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.bp_agent_id = res.info.bp_agent_id
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
save () {
let vm = this
// let url = process.env.basePath + 'prj_base_info_save'
// let param = {
// master: {...vm.saveInfo, ...vm.makeData()},
// }
// hlsPopup.showLoading('请稍候')
// vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
vm.$router.push({
name: 'CreateRentInfo', name: 'CreateRentInfo',
params: {
bp_agent_id: vm.bp_agent_id,
},
}) })
// } else {
// hlsPopup.showLongCenter(res.message)
// }
// })
}, },
getBaseInfo () { getBaseInfo () {
this.getEquipInfo()
if (this.bp_class === 'NP') { if (this.bp_class === 'NP') {
this.getNPInfo() this.getNPInfo()
this.getBussinessSituation() this.getBussinessSituation()
this.getJobSituation() this.getJobSituation()
this.getHouseInfo() this.getHouseInfo()
this.getEquipInfo() this.getAgentInfo()
} else if (this.bp_class === 'ORG') { } else if (this.bp_class === 'ORG') {
debugger
this.getORGInfo() this.getORGInfo()
this.getORGEquipInfo()
this.getORGEnge()
this.getAgentInfo()
this.getORGnative()
} }
}, },
getUndertake () { // 担保人查询 getUndertake () { // 担保人查询
...@@ -369,10 +448,9 @@ export default { ...@@ -369,10 +448,9 @@ export default {
'&index' + '&index' +
`'${randomString}'` `'${randomString}'`
let param = { let param = {
user_phone: window.localStorage.getItem('user_phone'), bp_agent_id: vm.bp_agent_id,
pagesize: 10, pagesize: 10,
pagenum: vm.status === 'APPROVED' ? vm.pagenumApproved : vm.pagenumNew, pagenum: vm.pageNum,
confirm_status: vm.status,
searchInput: vm.keyWord, searchInput: vm.keyWord,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
...@@ -385,18 +463,17 @@ export default { ...@@ -385,18 +463,17 @@ export default {
vm.$refs.scroll.update(true) vm.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) { } else if (returnData.length > 0 && returnData.length < 10) {
vum.forEach(returnData, function (data, index, array) { vum.forEach(returnData, function (data, index, array) {
vm.lists.push(array[index]) vm.undertakeList.push(array[index])
}) })
vm.status === 'APPROVED' ? vm.pagenumApproved++ : vm.pagenumNew++ vm.pagenum++
vm.$refs.scroll.update(true) vm.$refs.scroll.update(true)
} else if (returnData.length === 10) { } else if (returnData.length === 10) {
vum.forEach(returnData, function (data, index, array) { vum.forEach(returnData, function (data, index, array) {
vm.lists.push(array[index]) vm.undertakeList.push(array[index])
}) })
vm.status === 'APPROVED' ? vm.pagenumApproved++ : vm.pagenumNew++ vm.pagenum++
vm.$refs.scroll.update(false) vm.$refs.scroll.update(false)
} }
vm.selectShowList()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -418,6 +495,109 @@ export default { ...@@ -418,6 +495,109 @@ export default {
} }
}) })
}, },
getORGInfo () {
let vm = this
let url = process.env.basePath + 'bp_org_info_query'
let param = {
bp_id: window.localStorage.bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.ORGBaseInfo = res.info
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
getORGEnge () {
let vm = this
let url = process.env.basePath + 'prj_contract_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.engeList = res.lists.map(item => {
return {
code: item.engineer_con,
code_name: item.engineer_con_n,
}
})
}
})
},
selectORGnative (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.nativeList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.saveInfo.enterpriese_nature = obj.bp_type
vm.saveInfo.enterpriese_nature_n = obj.bp_type_n
},
})
},
getORGnative () {
let vm = this
let url = process.env.basePath + 'prj_ent_property_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.nativeList = res.lists.map(item => {
return {
code: item.enterpriese_nature,
code_name: item.enterpriese_nature_n,
}
})
}
})
},
selectORGEnge (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.engeList,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.saveInfo.engineer_con = obj.bp_type
vm.saveInfo.engineer_con_n = obj.bp_type_n
},
})
},
getORGEquipInfo () {
let vm = this
let url = process.env.basePath + 'prj_equip_num_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.equipNumORG = res.lists.map(item => {
return {
code: item.equip_num,
code_name: item.equip_num_n,
}
})
}
})
},
selectORGEquipInfo (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.equipNumORG,
code: 'bp_type',
object: {},
returnItem: function (index, obj) {
vm.saveInfo.equip_num = obj.bp_type
vm.saveInfo.equip_num_n = obj.bp_type_n
},
})
},
getEquipInfo () { getEquipInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_equip_values_query' let url = process.env.basePath + 'prj_equip_values_query'
...@@ -533,8 +713,15 @@ export default { ...@@ -533,8 +713,15 @@ export default {
}, },
}) })
}, },
getORGInfo () {}, deleteFun (e) {
deleteFun () {}, let deleteIndex
this.selectUdertake.forEach((i, index, arr) => {
if (arr[index].bp_name.indexOf(e.bp_name) !== -1) {
deleteIndex = index
}
})
this.selectUdertake.splice(deleteIndex, 1)
},
}, },
} }
</script> </script>
...@@ -546,6 +733,9 @@ export default { ...@@ -546,6 +733,9 @@ export default {
no-repeat; no-repeat;
background-size: 20px 20px; background-size: 20px 20px;
} }
.mySlider{
height:68px;
}
.hls-list-item { .hls-list-item {
margin-bottom: 0px !important; margin-bottom: 0px !important;
} }
......
<template>
<h-view id="create-base-info">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>基本信息</span>
</div>
</h-header>
<h-content>
<div class="top">
<div class="item">
<img src="@/assets/contractCreate/finished.png" >
<p>基本信息</p>
</div>
<span class="line" />
<div class="item">
<img src="@/assets/contractCreate/finished.png" >
<p>租赁信息</p>
</div>
<span class="line" />
<div class="item">
<span>3</span>
<p style="color: #383F45;">附件信息</p>
</div>
</div>
</h-content>
<bottom-tab class="add-box">
<tab-button class="before" @click.native="$routeGo()">上一步</tab-button>
<tab-button class="next" @click.native="goRent">下一步</tab-button>
</bottom-tab>
</h-view>
</template>
<script>
export default {
data () {
return {
}
},
watch: {
},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.loadItemList()
})
},
methods: {
loadItemList () {
let vm = this
vm.dowload_list = []
let bpId = window.localStorage.getItem('bp_id')
let url = process.env.basePath + 'prj_cdd_check_list'
let param = {
master: {
document_id: bpId,
document_table: 'HLS_BP_MASTER',
tab_group: 'HLS_NP',
},
}
// vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
console.log(res)
// if (res.result === 'S') {
// var listTemp = [...res.lists]
// listTemp.forEach(item => {
// switch (item.cdd_item) {
// case 'HOUSE_CARD': // 房产证
// vm.house_id = item.check_id
// break
// case 'CAR_CARD': // 承租人身份证背面
// vm.car_id = item.check_id
// break
// case 'REAL_EST_CERTIFICATE': // 承租人身份证背面
// vm.estate_id = item.check_id
// break
// default:
// break
// }
// })
// vm.cddItemList = res.lists.filter(i => {
// return i.description.indexOf('身份证') === -1
// })
// // 查询图片
// vm.cddItemList.forEach((item, index) => {
// vm.load_picture(item.check_id, index, item.cdd_item)
// })
// }
})
},
// load_picture (check_id, index, cdd_item) {
// let vm = this
// let url =
// process.env.basePath + 'attachment_list_query' + '&index' + index // 附件查询
// let param = {
// check_id: check_id,
// }
// hlsPopup.showLoading('请稍候')
// vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// res.lists.forEach(item => {
// item['url'] =
// process.env.filePath +
// 'attachment_id=' +
// item.attachment_id +
// '&access_token=' +
// window.localStorage.access_token
// })
// switch (cdd_item) {
// case 'HOUSE_CARD': // 房产证
// if (!vm.houseFlag) {
// vm.houseImg = res.lists[0].url
// }
// vm.houseAttachmentId = res.lists[0].attachment_id
// console.log(vm.houseAttachmentId)
// break
// case 'CAR_CARD': // 行驶证
// if (!vm.carFlag) {
// vm.carImg = res.lists[0].url
// }
// vm.carAttachmentId = res.lists[0].attachment_id
// break
// case 'REAL_EST_CERTIFICATE': // 行驶证
// if (!vm.estateFlag) {
// vm.estateImg = res.lists[0].url
// }
// vm.estateAttachmentId = res.lists[0].attachment_id
// break
// default:
// vm.dowload_list.push(res.lists)
// }
// } else {
// hlsPopup.showLongCenter(res.message)
// }
// })
// },
},
}
</script>
<style lang="less" >
#create-base-info {
.swipeout-list .item .function {
height: 68px;
background: url("../../assets/contractCreate/delete.png") 45% 45% #fde5e8
no-repeat;
background-size: 20px 20px;
}
.hls-list-item {
margin-bottom: 0px !important;
}
.swipeout-list {
padding: 0px;
}
.h-header-right {
display: flex;
align-items: center;
}
.flow {
z-index: 999;
}
.left-icon {
width: 18px;
height: 18px;
text-align: center;
line-height: 18px;
background-color: rgba(29, 63, 255, 0.2);
color: @headerColor;
border-radius: 4px;
}
input::placeholder {
color: #b4b4b5;
}
.top {
width: 100%;
height: 81px;
background-color: #faf5e0;
display: flex;
justify-content: center;
align-items: center;
.line {
display: inline-block;
width: 78px;
border-top: 1px solid #a4a4a4;
margin-bottom: 18px;
}
.line {
border-top: 1px solid #ffa000;
}
.item {
display: flex;
justify-content: center;
align-items: center;
flex-flow: column wrap;
font-family: PingFangSC-Semibold;
font-size: 12px;
color: rgba(56, 63, 69, 0.5);
letter-spacing: 0.43px;
img {
width: 18px;
}
span {
display: block;
text-align: center;
line-height: 18px;
border-radius: 50%;
width: 18px;
height: 18px;
color: #fff;
background: #a4a4a4;
}
p {
margin-top: 10px;
}
}
.item:nth-of-type(3) {
font-family: PingFangSC-Semibold;
font-size: 12px;
color: rgba(56, 63, 69, 0.5);
letter-spacing: 0.43px;
span {
background-color: #ffa000;
}
}
}
}
</style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime : 2019-12-23 15:10:23 * @LastEditTime : 2019-12-23 16:14:57
* @LastEditors : Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">经销商</div> <div slot="name" class="font-color">经销商</div>
<input v-if="user_bp_type !== 'OFFICE'" slot="content" v-model="bp_agent_name" readonly> <input v-if="user_bp_type === 'AGENT'" slot="content" v-model="bp_agent_name" readonly>
<input v-if="user_bp_type === 'OFFICE'" slot="content" placeholder="直销" readonly> <input v-if="user_bp_type === 'OFFICE'" slot="content" placeholder="直销" readonly>
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
...@@ -136,6 +136,9 @@ ...@@ -136,6 +136,9 @@
export default { export default {
data () { data () {
return { return {
inflow_line: '', // 授信总额度
inflow_used: '', // 已使用授信额度
inflow_reset: '', // 剩余授信额度
lessee: '', // 承租人 lessee: '', // 承租人
sales: '', // 销售人员 sales: '', // 销售人员
office_name: '', // 办事处 office_name: '', // 办事处
...@@ -180,6 +183,9 @@ export default { ...@@ -180,6 +183,9 @@ export default {
vm.factory_name = '' vm.factory_name = ''
vm.bp_agent_id = '' vm.bp_agent_id = ''
vm.bp_agent_name = '' vm.bp_agent_name = ''
vm.inflow_line = '' // 授信总额度
vm.inflow_used = '' // 已使用授信额度
vm.inflow_reset = '' // 剩余授信额度
vm.user_bp_type = vm.$route.params.user_bp_type vm.user_bp_type = vm.$route.params.user_bp_type
vm.sales = window.localStorage.bp_name vm.sales = window.localStorage.bp_name
vm.salesInfo = { vm.salesInfo = {
...@@ -273,6 +279,7 @@ export default { ...@@ -273,6 +279,7 @@ export default {
vm.bp_agent_name = res.info.bp_agent_name vm.bp_agent_name = res.info.bp_agent_name
vm.bp_agent_id = res.info.bp_agent_id vm.bp_agent_id = res.info.bp_agent_id
vm.salesInfo.bp_id_agent = res.info.bp_agent_id vm.salesInfo.bp_id_agent = res.info.bp_agent_id
vm.salesInfo.bp_user_id = res.info.bp_user_id
vm.lesseeQuery() vm.lesseeQuery()
vm.salesQuery() vm.salesQuery()
vm.officeQuery() vm.officeQuery()
...@@ -342,6 +349,7 @@ export default { ...@@ -342,6 +349,7 @@ export default {
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
console.log(obj) console.log(obj)
vm.salesInfo.bp_user_id = obj.agent_type
vm.sales = obj.agent_type_n vm.sales = obj.agent_type_n
}, },
}) })
...@@ -392,7 +400,9 @@ export default { ...@@ -392,7 +400,9 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('授信额度查询', res) console.log('授信额度查询', res)
if (res.result === 'S') { if (res.result === 'S') {
// vm.certification_status = res.info.certification_status // vm.inflow_line = '' // 授信总额度
// vm.inflow_used = '' // 已使用授信额度
// vm.inflow_reset = '' // 剩余授信额度
} }
}) })
}, },
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-11-07 17:48:53 * @Date: 2019-11-07 17:48:53
* @LastEditTime : 2019-12-23 10:01:15 * @LastEditTime : 2019-12-23 15:30:46
* @LastEditors : Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<div class="content-top"> <div class="content-top">
<div class="userInfo">我的合同</div> <div class="userInfo">我的合同</div>
<div class="my-contract"> <div class="my-contract">
<div class="content-wrap" @click="goCreate"> <div v-if="user_bp_type === 'AGENT' || user_bp_type === 'OFFICE'" class="content-wrap" @click="goCreate">
<!-- <span <!-- <span
v-if="signCount > 0" v-if="signCount > 0"
:class="{'content-wrap-class-width':signCount>99, 'content-wrap-class':signCount<99}" :class="{'content-wrap-class-width':signCount>99, 'content-wrap-class':signCount<99}"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 附件信息 * @Description: 附件信息
* @Author: your name * @Author: your name
* @Date: 2019-09-20 09:35:11 * @Date: 2019-09-20 09:35:11
* @LastEditTime: 2019-12-19 12:29:08 * @LastEditTime : 2019-12-23 19:17:03
* @LastEditors: Please set LastEditors * @LastEditors : Please set LastEditors
--> -->
<template> <template>
<h-view id="enclosure" class="public-style"> <h-view id="enclosure" class="public-style">
...@@ -481,6 +481,23 @@ export default { ...@@ -481,6 +481,23 @@ export default {
}) })
}, },
methods: { methods: {
// 附件信息保存前校验
addCheck () {
let vm = this
let url = process.env.basePath + 'bp_attachment_check'
let param = {
bp_id: vm.bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
addRow (el) { addRow (el) {
let num = Math.round((el.target.scrollHeight - 42) / 20) let num = Math.round((el.target.scrollHeight - 42) / 20)
if (num > 0) { if (num > 0) {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-24 12:34:06 * @Date: 2019-09-24 12:34:06
* @LastEditTime: 2019-12-18 20:19:11 * @LastEditTime : 2019-12-23 18:52:56
* @LastEditors: Please set LastEditors * @LastEditors : Please set LastEditors
*/ */
import Vue from 'vue' import Vue from 'vue'
import Router from 'vue-router' import Router from 'vue-router'
...@@ -125,6 +125,7 @@ import PickLessee from '@/pages/contractCreate/pick-lessee' ...@@ -125,6 +125,7 @@ import PickLessee from '@/pages/contractCreate/pick-lessee'
import CreateBaseInfo from '@/pages/contractCreate/create-base-info' import CreateBaseInfo from '@/pages/contractCreate/create-base-info'
import AddPerson from '@/pages/contractCreate/add-person' import AddPerson from '@/pages/contractCreate/add-person'
import CreateRentInfo from '@/pages/contractCreate/creat-rent-info' import CreateRentInfo from '@/pages/contractCreate/creat-rent-info'
import CreateEnclosureInfo from '@/pages/contractCreate/create-enclosure-info'
Vue.use(Router) Vue.use(Router)
export default new Router({ export default new Router({
...@@ -297,6 +298,7 @@ export default new Router({ ...@@ -297,6 +298,7 @@ export default new Router({
{path: '/create-base-info', component: CreateBaseInfo, name: 'CreateBaseInfo', meta: {keepAlive: true}}, {path: '/create-base-info', component: CreateBaseInfo, name: 'CreateBaseInfo', meta: {keepAlive: true}},
{path: '/add-person', component: AddPerson, name: 'AddPerson', meta: {keepAlive: true}}, {path: '/add-person', component: AddPerson, name: 'AddPerson', meta: {keepAlive: true}},
{path: '/create-rent-info', component: CreateRentInfo, name: 'CreateRentInfo', meta: {keepAlive: true}}, {path: '/create-rent-info', component: CreateRentInfo, name: 'CreateRentInfo', meta: {keepAlive: true}},
{path: '/create-enclosure-info', component: CreateEnclosureInfo, name: 'CreateEnclosureInfo', meta: {keepAlive: true}},
], ],
scrollBehavior (to, from, savedPosition) { scrollBehavior (to, from, savedPosition) {
if (to.hash) { 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