Commit 9a40d7cb authored by 786817560's avatar 786817560

Merge branch 'ren' into develop

parents 1d6292a1 af9c20f3
...@@ -344,6 +344,9 @@ export default { ...@@ -344,6 +344,9 @@ export default {
}, },
save () { save () {
let vm = this let vm = this
vm.$router.push({
name: 'CreateEnclosureInfo',
})
let url = process.env.basePath + 'prj_lease_info_save' let url = process.env.basePath + 'prj_lease_info_save'
vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2) vm.saveInfo.down_payment_ratio = (vm.saveInfo.down_payment_ratio_n.replace('%', '') / 100).toFixed(2)
vm.saveInfo.lease_charge_ratio = (vm.saveInfo.lease_charge_ratio_n.replace('%', '') / 100).toFixed(2) vm.saveInfo.lease_charge_ratio = (vm.saveInfo.lease_charge_ratio_n.replace('%', '') / 100).toFixed(2)
......
...@@ -26,13 +26,7 @@ ...@@ -26,13 +26,7 @@
<div class="userInfo">基本资料</div> <div class="userInfo">基本资料</div>
<div v-if="bpClass === 'ORG'" class="house"> <div v-if="bpClass === 'ORG'" class="house">
<p class="titles">营业执照</p> <p class="titles">营业执照</p>
<div v-if="!licenseImg" class="card-upload" @click="ocrShow('CAR_CARD', '')"> <div v-if="licenseImg" class="card-upload">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
<div v-if="licenseImg && status !== 'APPROVED'" class="card-upload">
<img :src="licenseImg" @click="ocrShow('CAR_CARD', '')">
</div>
<div v-if="licenseImg && status === 'APPROVED'" class="card-upload">
<img :src="licenseImg" @click="showBigPicture(licenseImg)"> <img :src="licenseImg" @click="showBigPicture(licenseImg)">
</div> </div>
</div> </div>
...@@ -40,11 +34,7 @@ ...@@ -40,11 +34,7 @@
<p v-if="bpClass === 'NP'" class="titles">身份证</p> <p v-if="bpClass === 'NP'" class="titles">身份证</p>
<p v-if="bpClass === 'ORG'" class="titles">法人代表身份证</p> <p v-if="bpClass === 'ORG'" class="titles">法人代表身份证</p>
<div class="upload-box"> <div class="upload-box">
<div v-if="!idCardFront" @click="ocrShow('idCard', 'front')"> <div v-if="idCardFront">
<img src="@/assets/userBind/front.png" >
<p>正面</p>
</div>
<div v-if="idCardFront && status === 'APPROVED'">
<img <img
v-if="idCardFront" v-if="idCardFront"
:src="idCardFront" :src="idCardFront"
...@@ -52,19 +42,7 @@ ...@@ -52,19 +42,7 @@
@click="showBigPicture(idCardFront)" @click="showBigPicture(idCardFront)"
> >
</div> </div>
<div v-if="idCardFront && status !== 'APPROVED'"> <div v-if="idCardBack">
<img
v-if="idCardFront"
:src="idCardFront"
style="width: 100%;height: 100%;margin: 0"
@click="ocrShow('idCard', 'front')"
>
</div>
<div v-if="!idCardBack" @click="ocrShow('idCard', 'back')">
<img src="@/assets/userBind/back.png" >
<p>反面</p>
</div>
<div v-if="idCardBack && status === 'APPROVED'">
<img <img
v-if="idCardBack" v-if="idCardBack"
:src="idCardBack" :src="idCardBack"
...@@ -72,49 +50,23 @@ ...@@ -72,49 +50,23 @@
@click="showBigPicture(idCardBack)" @click="showBigPicture(idCardBack)"
> >
</div> </div>
<div v-if="idCardBack && status !== 'APPROVED'">
<img
v-if="idCardBack"
:src="idCardBack"
style="width: 100%;height: 100%;margin: 0"
@click="ocrShow('idCard', 'back')"
>
</div>
</div> </div>
</div> </div>
<div class="house"> <div class="house">
<p class="titles">房产证件</p> <p class="titles">房产证件</p>
<div v-if="!houseImg" class="card-upload" @click="ocrShow('HOUSE_CARD', '')"> <div v-if="houseImg" class="card-upload">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
<div v-if="houseImg && status !== 'APPROVED'" class="card-upload">
<img :src="houseImg" @click="ocrShow('HOUSE_CARD', '')">
</div>
<div v-if="houseImg && status === 'APPROVED'" class="card-upload">
<img :src="houseImg" @click="showBigPicture(houseImg)"> <img :src="houseImg" @click="showBigPicture(houseImg)">
</div> </div>
</div> </div>
<div class="house"> <div class="house">
<p class="titles">车辆行驶证</p> <p class="titles">车辆行驶证</p>
<div v-if="!carImg" class="card-upload" @click="ocrShow('CAR_CARD', '')"> <div v-if="carImg" class="card-upload">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
<div v-if="carImg && status !== 'APPROVED'" class="card-upload">
<img :src="carImg" @click="ocrShow('CAR_CARD', '')">
</div>
<div v-if="carImg && status === 'APPROVED'" class="card-upload">
<img :src="carImg" @click="showBigPicture(carImg)"> <img :src="carImg" @click="showBigPicture(carImg)">
</div> </div>
</div> </div>
<div v-if="bpClass === 'NP'" class="house"> <div v-if="bpClass === 'NP'" class="house">
<p class="titles">婚姻状况证明</p> <p class="titles">婚姻状况证明</p>
<div v-if="!marryImg" class="card-upload" @click="ocrShow('CAR_CARD', '')"> <div v-if="marryImg" class="card-upload">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
<div v-if="marryImg && status !== 'APPROVED'" class="card-upload">
<img :src="marryImg" @click="ocrShow('', '')">
</div>
<div v-if="marryImg && status === 'APPROVED'" class="card-upload">
<img :src="marryImg" @click="showBigPicture(marryImg)"> <img :src="marryImg" @click="showBigPicture(marryImg)">
</div> </div>
</div> </div>
...@@ -134,7 +86,7 @@ ...@@ -134,7 +86,7 @@
</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="handleSubmit">提交</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -173,6 +125,7 @@ export default { ...@@ -173,6 +125,7 @@ export default {
vm.bpClass = window.localStorage.bp_class vm.bpClass = window.localStorage.bp_class
vm.status = window.localStorage.user_bp_status vm.status = window.localStorage.user_bp_status
vm.loadItemList() vm.loadItemList()
// vm.getPrjId()
} }
}) })
}, },
...@@ -329,6 +282,36 @@ export default { ...@@ -329,6 +282,36 @@ export default {
} }
}) })
}, },
// 获取项目id
getPrjId () {
let vm = this
let url = process.env.basePath + 'get_project_id'
let param = { }
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
console.log('获取项目id', res)
if (res.result === 'S') {
// vm.showLists = res.lists
}
})
},
// 项目提交审批
handleSubmit () {
let vm = this
let url = process.env.basePath + 'prj_project_submit'
let param = {
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
console.log('项目提交审批', res)
if (res.result === 'S') {
// vm.showLists = res.lists
}
})
},
}, },
} }
</script> </script>
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-10-31 09:49:57 * @Date: 2019-10-31 09:49:57
* @LastEditTime : 2019-12-24 18:28:09 * @LastEditTime : 2019-12-24 18:34:37
* @LastEditors : Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: 还款 * @Description: 还款
* @FilePath: * @FilePath:
...@@ -58,10 +58,8 @@ ...@@ -58,10 +58,8 @@
</div> </div>
</div> </div>
<div class="name"> <div class="name">
<!-- <span>款项</span> <span>利息</span>
<span>租金</span> --> <span>{{ item.interest | currency }}</span>
<p>利息</p>
<p>{{ item.interest }}</p>
</div> </div>
<img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status"> <img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status">
<img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status"> <img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status">
...@@ -376,6 +374,7 @@ export default { ...@@ -376,6 +374,7 @@ export default {
color: #4B4A4B; color: #4B4A4B;
//padding-top: 20px; //padding-top: 20px;
margin-left: 40px; margin-left: 40px;
margin-top: -16px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-10-30 19:29:24 * @Date: 2019-10-30 19:29:24
* @LastEditTime: 2019-11-15 09:14:47 * @LastEditTime : 2019-12-24 18:38:21
* @LastEditors: Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
<template> <template>
...@@ -47,13 +47,19 @@ ...@@ -47,13 +47,19 @@
<p>{{ item.due_date.substr(0,4) }}</p> <p>{{ item.due_date.substr(0,4) }}</p>
<span>{{ dateConverse(item.due_date).substr(5,10) }}</span> <span>{{ dateConverse(item.due_date).substr(5,10) }}</span>
</div> </div>
<div class="name"> <div class="number">
<span>款项</span> <div>
<span>本金</span>
<span>{{ item.principal |currency }}</span>
</div>
<div>
<span>租金</span> <span>租金</span>
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental |currency }}</span>
</div> </div>
<div class="number"> </div>
<span>应还金额</span> <div class="name">
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental * product_num |currency }}</span> <span>利息</span>
<span>{{ item.interest | currency }}</span>
</div> </div>
<img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status"> <img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status">
<img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status"> <img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status">
...@@ -384,7 +390,7 @@ export default { ...@@ -384,7 +390,7 @@ export default {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4B4A4B;
padding-top: 20px; //padding-top: 20px;
margin-left: 22px; margin-left: 22px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
...@@ -396,11 +402,15 @@ export default { ...@@ -396,11 +402,15 @@ export default {
.number { .number {
// flex: 9; // flex: 9;
display: flex;
flex-direction: column;
justify-content: space-evenly;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4B4A4B;
padding-top: 20px; //padding-top: 20px;
margin-left: 40px; margin-left: 40px;
margin-top: -16px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-10-30 19:29:24 * @Date: 2019-10-30 19:29:24
* @LastEditTime: 2019-11-13 16:36:01 * @LastEditTime : 2019-12-24 18:39:52
* @LastEditors: Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
<template> <template>
...@@ -45,13 +45,19 @@ ...@@ -45,13 +45,19 @@
<p>{{ item.due_date.substr(0,4) }}</p> <p>{{ item.due_date.substr(0,4) }}</p>
<span>{{ dateConverse(item.due_date).substr(5,10) }}</span> <span>{{ dateConverse(item.due_date).substr(5,10) }}</span>
</div> </div>
<div class="name"> <div class="number">
<span>款项</span> <div>
<span>本金</span>
<span>{{ item.principal |currency }}</span>
</div>
<div>
<span>租金</span> <span>租金</span>
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental |currency }}</span>
</div> </div>
<div class="number"> </div>
<span>应还金额</span> <div class="name">
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental*product_num |currency }}</span> <span>利息</span>
<span>{{ item.interest | currency }}</span>
</div> </div>
<img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status"> <img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status">
<img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status"> <img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status">
...@@ -348,7 +354,7 @@ export default { ...@@ -348,7 +354,7 @@ export default {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4B4A4B;
padding-top: 20px; //padding-top: 20px;
margin-left: 22px; margin-left: 22px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
...@@ -360,11 +366,15 @@ export default { ...@@ -360,11 +366,15 @@ export default {
.number { .number {
// flex: 9; // flex: 9;
display: flex;
flex-direction: column;
justify-content: space-evenly;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4B4A4B;
padding-top: 20px; //padding-top: 20px;
margin-left: 40px; margin-left: 40px;
margin-top: -16px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-10-30 19:29:24 * @Date: 2019-10-30 19:29:24
* @LastEditTime: 2019-11-13 10:34:23 * @LastEditTime : 2019-12-24 18:41:37
* @LastEditors: Please set LastEditors * @LastEditors : Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
<template> <template>
...@@ -45,14 +45,20 @@ ...@@ -45,14 +45,20 @@
<p>{{ item.due_date.substr(0,4) }}</p> <p>{{ item.due_date.substr(0,4) }}</p>
<span>{{ dateConverse(item.due_date).substr(5,10) }}</span> <span>{{ dateConverse(item.due_date).substr(5,10) }}</span>
</div> </div>
<div class="name">
<span>款项</span>
<span>租金</span>
</div>
<div class="number"> <div class="number">
<span>应还金额</span> <div>
<span>本金</span>
<span>{{ item.principal |currency }}</span>
</div>
<div>
<span>租金</span>
<span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental |currency }}</span> <span :class="{'orang':statu==='orange','blu':statu==='blue','gree':statu==='green'}">{{ item.rental |currency }}</span>
</div> </div>
</div>
<div class="name">
<span>利息</span>
<span>{{ item.interest | currency }}</span>
</div>
<img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status"> <img v-if="statu === 'black'" src="@/assets/contractInquire/done.png" alt="" class="status">
<img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status"> <img v-if="statu === 'orange'" src="@/assets/contractInquire/prompt.png" alt="" class="status">
</div> </div>
...@@ -366,7 +372,7 @@ export default { ...@@ -366,7 +372,7 @@ export default {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4B4A4B;
padding-top: 20px; //padding-top: 20px;
margin-left: 22px; margin-left: 22px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
...@@ -378,11 +384,15 @@ export default { ...@@ -378,11 +384,15 @@ export default {
.number { .number {
// flex: 9; // flex: 9;
display: flex;
flex-direction: column;
justify-content: space-evenly;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 13px; font-size: 13px;
color: #4B4A4B; color: #4B4A4B;
padding-top: 20px; //padding-top: 20px;
margin-left: 40px; margin-left: 40px;
margin-top: -16px;
span:nth-of-type(2) { span:nth-of-type(2) {
margin-left: 8px; margin-left: 8px;
} }
......
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