Commit 9813631d authored by linxin's avatar linxin

Merge branch 'develop' into liuxin

parents 82fb0723 2cd76b83
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-11-14 16:32:55
* @LastEditTime: 2019-11-15 10:42:26
* @LastEditors: Please set LastEditors
* @Description: 合同查询--记录
* @FilePath:
......@@ -213,6 +213,7 @@ export default {
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'HomePage') {
vm.selected = 'all'
vm.recordQuery()
}
})
......
<!--
* @Author: your name
* @Date: 2019-10-31 09:49:57
* @LastEditTime: 2019-11-13 20:09:28
* @LastEditTime: 2019-11-15 09:40:02
* @LastEditors: Please set LastEditors
* @Description: 还款
* @FilePath:
......@@ -18,7 +18,7 @@
<div class="total">
<div class="sum">
<div>融资</div>
<div>租金总</div>
<p>{{ info.total_rental_sum | currency }}</p>
<img src="@/assets/contractInquire/num.png" alt="">
<h3><span>{{ info.lease_times }}</span></h3>
......
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-13 17:20:21
* @LastEditTime: 2019-11-15 15:57:14
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -114,7 +114,7 @@
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/pack.png" alt="" class="pics">
<p class="second">农行代扣授权书</p>
<img src="@/assets/constractSigning/read.png" alt="" class="read">
<img :src="bankPic" alt="" class="read">
</div>
<div slot="content" class="in-all">
<div @click="entryInfo"><img src="@/assets/constractSigning/scan.png" alt=""></div>
......@@ -126,7 +126,7 @@
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/pack.png" alt="" class="pics">
<p class="second">租赁主合同</p>
<img src="@/assets/constractSigning/unread.png" alt="" class="read">
<img :src="leasePic" alt="" class="read">
</div>
<div slot="content" class="in-detail" @click="goContractContent('租赁主合同')"><img src="@/assets/constractSigning/detail.png" alt=""></div>
</item>
......@@ -134,7 +134,7 @@
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/pack.png" alt="" class="pics">
<p class="second">经销商担保协议</p>
<img src="@/assets/constractSigning/unread.png" alt="" class="read">
<img :src="agentPic" alt="" class="read">
</div>
<div slot="content" class="in-detail" @click="goContractContent('经销商担保协议')"><img src="@/assets/constractSigning/detail.png" alt=""></div>
</item>
......@@ -315,6 +315,12 @@ export default {
entry_info_flag: false,
faceListUpload: [], // 自拍照上传
auth_credit_flag: 'N', // 征信授权书确认状态
readed: require('@/assets/constractSigning/read.png'), // 已读
unRead: require('@/assets/constractSigning/unread.png'), // 未读
leasePic: '', // 租赁合同图片
agentPic: '', // 经销商担保协议图片
bankPic: '', // 农行代扣授权书图片
legalPic: '', // 法人授权书图片
}
},
computed: {},
......@@ -342,12 +348,16 @@ export default {
vm.bank_flag = false
vm.isConfirm = false
vm.ischecked = false
vm.confirm_note = '' // 审批意见
vm.num = 0 // 进入详情显示基本信息
vm.bp_name = vm.$route.params.item.bp_name
vm.user_bp_type = vm.$route.params.user_bp_type
vm.auth_credit_flag = vm.$route.params.item.auth_credit_flag // 征信授权书确认状态
vm.project_id = vm.$route.params.item.project_id
vm.confirm_id = vm.$route.params.item.confirm_id
vm.con_confirm_status = vm.$route.params.item.confirm_status
vm.agentPic = vm.unRead
vm.leasePic = vm.unRead
if (vm.$route.params.item.bp_class === 'NP') {
vm.bp_flag = false
} else {
......@@ -428,7 +438,7 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async confirmContractSign (faceImg, status) {
let idCardImgUrl = await this.idCardImgUrlGet()
if(idCardImgUrl){
if (idCardImgUrl) {
this.faceIdentify(faceImg, idCardImgUrl, status)
}
},
......@@ -445,7 +455,7 @@ export default {
if (res.result === 'S' && res.info) {
let cardUrl = process.env.filePath + 'attachment_id=' + res.info.attachment_id + '&access_token=' + window.localStorage.access_token
return cardUrl
} else if(res.result === 'S' && !res.info){
} else if (res.result === 'S' && !res.info) {
hlsPopup.showLongCenter('未找到身份证照片')
return null
} else {
......@@ -477,7 +487,7 @@ export default {
}
},
})
} else{
} else {
hlsPopup.showLongCenter('比对失败,请正对自己拍照')
}
})
......@@ -655,6 +665,11 @@ export default {
name,
},
})
if (name === '经销商担保协议') {
setTimeout(() => { this.agentPic = this.readed }, 1000)
} else if (name === '租赁主合同') {
setTimeout(() => { this.leasePic = this.readed }, 1000)
}
},
// 跳转银行信息录入
entryInfo () {
......@@ -711,8 +726,10 @@ export default {
if (res.result === 'S') {
if (res.info.bank_full_name === ' ') {
vm.bank_flag = false
vm.bankPic = vm.unRead
} else {
vm.bank_flag = true
vm.bankPic = vm.readed
}
} else {
hlsPopup.showLongCenter(res.message)
......
<!--
* @Author: your name
* @Date: 2019-10-30 19:29:24
* @LastEditTime: 2019-11-13 20:07:38
* @LastEditTime: 2019-11-15 09:14:47
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -17,7 +17,7 @@
<div class="total">
<div class="sum">
<div>融资</div>
<div>租金总</div>
<p>{{ info.total_rental_sum|currency }}</p>
<img src="@/assets/contractInquire/num.png" alt="">
<h3><span>{{ info.lease_times }}</span></h3>
......
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-11 14:52:00
* @LastEditTime: 2019-11-15 09:09:02
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -108,6 +108,7 @@ export default {
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'MyInfo') {
vm.num = 1
vm.user_bp_type = vm.$route.params.user_bp_type
}
vm.contractList()
......
......@@ -2,7 +2,7 @@
* @Description: 合同详情
* @Author: your name
* @Date: 2019-09-25 15:38:21
* @LastEditTime: 2019-11-14 18:01:59
* @LastEditTime: 2019-11-15 17:38:34
* @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">(无)</span></div>
<list-item v-if="guarantorInfo.length && guarantorInfo[0].bp_class === 'NP'" :item-height="76">
<list-item v-if="guarantorInfo.length" :item-height="76">
<item v-for="(item,index) in guarantorInfo" :key="index">
<div slot="name">
<span class="name-box">{{ index+1 }}</span>
......@@ -35,12 +35,12 @@
<img src="@/assets/intoApproval/introduce.png" >
<span :title="item.bp_name">{{ item.bp_name }}</span>
<br >
<span>{{ item.id_card_no }}</span>
<span>{{ item.bp_class==='NP'? item.id_card_no: item.organization_code }}</span>
</div>
</item>
</list-item>
<list-item v-if="guarantorInfo.length && guarantorInfo[0].bp_class === 'ORG'" :item-height="76">
<!-- <list-item v-if="guarantorInfo.length && guarantorInfo[0].bp_class === 'ORG'" :item-height="76">
<item v-for="(item,index) in guarantorInfo" :key="index">
<div slot="name">
<span class="name-box">{{ index+1 }}</span>
......@@ -54,7 +54,7 @@
<span>{{ item.organization_code }}</span>
</div>
</item>
</list-item>
</list-item> -->
<!-- 联系人 -->
<div class="bottom-call-wrap">
......@@ -185,7 +185,7 @@
<div slot="name" class="aguremrnt-list">
<img src="@/assets/distributorSign/gray.png" alt="" class="pics">
<p class="second">经销商担保协议</p>
<img src="@/assets/distributorSign/read.png" alt="" class="read">
<img :src="agentPic" alt="" class="read">
</div>
<div slot="content" class="in-detail" @click="goContractContent('经销商担保协议')"><img src="@/assets/constractSigning/detail.png" alt=""></div>
</item>
......@@ -224,6 +224,9 @@ export default {
faceListUpload: [], // 自拍照上传
confirm_note: '',
confirm_id: window.sessionStorage.getItem('confirm_id'),
agentPic: '', // 经销商担保协议图片
readed: require('@/assets/constractSigning/read.png'), // 已读
unRead: require('@/assets/constractSigning/unread.png'), // 未读
}
},
computed: {},
......@@ -242,7 +245,16 @@ export default {
}
},
},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'ContractContent') {
vm.tabNum = 2
vm.agentPic = vm.readed
}
})
},
created () {
this.agentPic = this.unRead
this.confirm_status = window.sessionStorage.getItem('confirm_status')
if (this.bp_class === 'NP') {
this.bp_flag = false
......@@ -316,7 +328,7 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async confirmContractSign (faceImg, status) {
let idCardImgUrl = await this.idCardImgUrlGet()
if(idCardImgUrl){
if (idCardImgUrl) {
this.faceIdentify(faceImg, idCardImgUrl, status)
}
},
......@@ -333,7 +345,7 @@ export default {
if (res.result === 'S' && res.info) {
let cardUrl = process.env.filePath + 'attachment_id=' + res.info.attachment_id + '&access_token=' + window.localStorage.access_token
return cardUrl
} else if(res.result === 'S' && !res.info){
} else if (res.result === 'S' && !res.info) {
hlsPopup.showLongCenter('未找到身份证照片')
return null
} else {
......@@ -500,6 +512,9 @@ export default {
},
// 跳转合同详情
goContractContent (name) {
// if (name === '经销商担保协议') {
// setTimeout(() => { this.agentPic = this.readed }, 1000)
// }
this.$router.push({
name: 'ContractContent',
params: {
......
<!--
* @Author: your name
* @Date: 2019-11-07 17:48:53
* @LastEditTime: 2019-11-13 11:29:25
* @LastEditTime: 2019-11-15 15:56:28
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -127,6 +127,7 @@ export default {
user_bp_name: '',
user_bp_type: '',
signCount: '0',
carNum: '0',
confirmCount: '0',
vedioCount: '0',
productCount: '0',
......@@ -483,9 +484,10 @@ export default {
vm.$post(url, param).then(function (res) {
if (res.result === 'S') {
if ('info' in res) {
vm.signCount = res.info.con_sign_num
vm.confirmCount = res.info.con_confirm_num
vm.productCount = res.info.collect_num
vm.signCount = res.info.con_confirm_num || 0
// vm.confirmCount = res.info.con_confirm_num
vm.productCount = res.info.collect_num || 0
vm.carCount = res.info.car_confirm_num || 0
}
} else {
this.hlsPopup.showLongCenter(res.message)
......
......@@ -300,7 +300,7 @@ export default {
width: 100%;
position: absolute;
bottom: 150px;
height: 54%;
height: 57%;
overflow: scroll;
.contract-item {
background-color: #fff;
......
......@@ -131,8 +131,13 @@ export default {
},
beforeRouteEnter (to, from, next) {
debugger
if (from.name === 'ProductList' || from.name === 'MyProductList' || from.name === 'HomePage') {
next(vm => {
vm.baseInfo = {}
vm.confgInfo = {}
vm.detailInfo = {}
vm.picLists = []
vm.tabNum = 0
vm.slide = false
vm.product_id = vm.$route.params.product_id
......
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