Commit e5788e85 authored by 胡's avatar

fix: 融租方案确定使用原来ios分支的

parent b7b9c02e
......@@ -4,7 +4,7 @@
<div class="prompt">
<div class="top">
<div>
<img src="@/assets/constractSigning/prompt.png" alt />
<img src="@/assets/constractSigning/prompt.png" alt >
<span>提示</span>
</div>
<div>请前往【农行代扣授权书】界面完成银行卡信息录入!</div>
......@@ -12,9 +12,9 @@
<div class="bottom" @click="isshow = !isshow">我知道了</div>
</div>
</div>
<h-header :proportion="[5, 1, 1]" class="bar-custom">
<h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" />
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>方案详情</span>
</div>
</h-header>
......@@ -32,16 +32,16 @@
<button v-if="!ischecked" style="background:rgba(56, 63, 69, 0.5)">同意</button>
<button v-if="ischecked" class="appro" style="background:#00469c" @click="confirm">同意</button>
</div>
</div>-->
</div> -->
<div class="tab-style">
<div :class="{ 'done': num === 0, 'undone': num !== 0 }" @click="num = 0;">
<img :src="num === 0 ? check1 : uncheck1" />基本信息
<div :class="{'done':num === 0,'undone':num !== 0}" @click="num = 0;">
<img :src="num === 0?check1:uncheck1" >基本信息
</div>
<div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1;">
<img :src="num === 1 ? check3 : uncheck3" />方案信息
<div :class="{'done':num === 1,'undone':num !== 1}" @click="num = 1;">
<img :src="num === 1?check3:uncheck3" >方案信息
</div>
<div :class="{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2;">
<img :src="num === 2 ? check2 : uncheck2" />征信授权书
<div :class="{'done':num === 2,'undone':num !== 2}" @click="num = 2;">
<img :src="num === 2?check2:uncheck2" >征信授权书
</div>
</div>
<h-content v-if="num === 0" class="business-condition">
......@@ -58,22 +58,22 @@
<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>
<span class="name">担保人{{ index + 1 }}姓名</span>
<span class="name-box">{{ index+1 }}</span>
<span class="name">担保人{{ index+1 }}姓名</span>
<span class="card-num">证件号</span>
</div>
<div slot="content" class="right">
<img src="@/assets/intoApproval/introduce.png" />
<img src="@/assets/intoApproval/introduce.png" >
<span :title="item.bp_name">{{ item.bp_name }}</span>
<br />
<span>{{ item.bp_class === 'NP' ? item.id_card_no : item.organization_code }}</span>
<br >
<span>{{ item.bp_class==='NP'? item.id_card_no: item.organization_code }}</span>
</div>
</item>
</list-item>
<div class="alert">
<div class="alert-content">
<div class="title">
<img src="@/assets/intoApproval/info.png" />
<img src="@/assets/intoApproval/info.png" >
<span class="info-word">温馨提示</span>
</div>
<p class="top-info">绑定成功后,您即可使用APP中合同查询、还款查询等功能。</p>
......@@ -87,30 +87,30 @@
</h-content>
<h-content v-if="num === 2">
<list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);">
<item v-for="(item,index) in attachArray" :proportion="[7, 1]" :key="index">
<item v-for="(item,index) in attachArray" :proportion="[7,1]" :key="index">
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/npack.png" alt class="pics" />
<img src="@/assets/constractSigning/npack.png" alt class="pics" >
<p class="second first">{{ item.attachment_file }}</p>
<img
v-if="item.read_status === 'N'"
class="unread"
src="@/assets/constractSigning/unread.png"
/>
>
<img
v-if="item.read_status === 'Y'"
class="unread"
src="@/assets/constractSigning/read.png"
/>
>
<div
v-if="item.template_code === 'PRE_ABC_PAYMENT'"
class="wrap-img"
@click="entryInfo"
>
<img src="@/assets/constractSigning/scan.png" />
<img src="@/assets/constractSigning/scan.png" >
</div>
</div>
<div slot="content" class="in-detail" @click="goContent(item, index)">
<img src="@/assets/constractSigning/detail.png" alt />
<div slot="content" class="in-detail" @click="goContent(item,index)">
<img src="@/assets/constractSigning/detail.png" alt >
</div>
</item>
</list-item>
......@@ -123,7 +123,7 @@
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">商务政策</div>
<input slot="content" v-model="info.product_plan_id_n" readonly />
<input slot="content" v-model="info.product_plan_id_n" readonly >
</item>
<item>
<div slot="name" class="font-color">设备总价</div>
......@@ -147,7 +147,7 @@
</item>
<item>
<div slot="name" class="font-color">手续费比例</div>
<input slot="content" v-model="info.lease_charge_ratio_n" readonly />
<input slot="content" v-model="info.lease_charge_ratio_n" readonly >
</item>
<item>
<div slot="name" class="font-color">手续费</div>
......@@ -173,15 +173,15 @@
</item>
<item>
<div slot="name" class="font-color">还款周期</div>
<input slot="content" v-model="info.annual_pay_times_n" readonly />
<input slot="content" v-model="info.annual_pay_times_n" readonly >
</item>
<item>
<div slot="name" class="font-color">租赁期数</div>
<input slot="content" v-model="info.lease_times" readonly />
<input slot="content" v-model="info.lease_times" readonly >
</item>
<item>
<div slot="name" class="font-color">年利率</div>
<input slot="content" v-model="info.int_rate_n" readonly />
<input slot="content" v-model="info.int_rate_n" readonly >
</item>
</list-item>
<div class="repay-plan">
......@@ -194,21 +194,21 @@
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">设备识别号</div>
<input slot="content" v-model="info.product_code" readonly />
<input slot="content" v-model="info.product_code" readonly >
</item>
<item>
<div slot="name" class="font-color">产品名称</div>
<input slot="content" v-model="info.product_name" readonly />
<input slot="content" v-model="info.product_name" readonly >
</item>
<item>
<div slot="name" class="font-color">产品数量</div>
<input slot="content" v-model="info.product_num" readonly />
<input slot="content" v-model="info.product_num" readonly >
</item>
</list-item>
<div class="alert alert-fund">
<div class="alert-content">
<div class="title">
<img src="@/assets/intoApproval/info.png" />
<img src="@/assets/intoApproval/info.png" >
<span class="info-word">提示</span>
</div>
<p class="top-info">
......@@ -218,16 +218,16 @@
</div>
</div>
</h-content>
<bottom-tab v-if="con_confirm_status !== 'APPROVED'" class="add-box">
<bottom-tab v-if="con_confirm_status!=='APPROVED'" class="add-box">
<tab-button class="before" @click.native="takePhonto">
<img src="@/assets/constractSigning/certification.png" />征信签约
<img src="@/assets/constractSigning/certification.png" >征信签约
</tab-button>
<tab-button class="next" @click.native="inSure">
<img src="@/assets/intoApproval/approve.png" />提交审核
<img src="@/assets/intoApproval/approve.png" >提交审核
</tab-button>
</bottom-tab>
<h-modal
v-if="con_confirm_status !== 'APPROVED'"
v-if="con_confirm_status!=='APPROVED'"
ref="modal"
v-model="showModalValue"
position="bottom"
......@@ -238,17 +238,17 @@
<div class="approveBottom">
<span>
审批意见
<img src="@/assets/intoApproval/close1.png" @click="showModalValue = false" />
<img src="@/assets/intoApproval/close1.png" @click="showModalValue=false" >
</span>
<textarea v-model="confirm_note" cols="8" rows="20" placeholder="请输入" />
</div>
</h-content>
<bottom-tab>
<tab-button class="reject" @click.native="showModalValue = true; charge('拒绝', 'REJECTED')">
<img src="@/assets/intoApproval/reject.png" />拒绝
<tab-button class="reject" @click.native="showModalValue=true;charge('拒绝','REJECTED')">
<img src="@/assets/intoApproval/reject.png" >拒绝
</tab-button>
<tab-button class="same" @click.native="showModalValue = true; charge('同意', 'APPROVED')">
<img src="@/assets/intoApproval/approve.png" />同意
<tab-button class="same" @click.native="showModalValue=true;charge('同意','APPROVED')">
<img src="@/assets/intoApproval/approve.png" >同意
</tab-button>
</bottom-tab>
</h-view>
......@@ -275,7 +275,7 @@ export default {
LegalPerson,
// bodyCheck,
},
data() {
data () {
return {
pages: 0,
pdfDoc: null,
......@@ -330,7 +330,7 @@ export default {
computed: {},
watch: {
$route(to, from) {
$route (to, from) {
hlsPopup.hideConfirm()
},
// ischecked: function (newVal, oldVal) {
......@@ -341,7 +341,7 @@ export default {
// appro.style.backgroundColor = 'rgba(56, 63, 69, 0.5)'
// }
// },
bp_class() {
bp_class () {
if (this.bp_class === 'NP') {
this.bp_flag = false
// this.getBseMsg()
......@@ -350,7 +350,7 @@ export default {
}
},
},
beforeRouteEnter(to, from, next) {
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'ContractSigning') {
// vm.$refs.body.hideBody()
......@@ -390,10 +390,10 @@ export default {
}
})
},
activated() {
activated () {
// this.bankCardQuery()
},
mounted() {
mounted () {
if (this.con_confirm_status !== 'APPROVED') {
// this.popProtocol()
}
......@@ -410,7 +410,7 @@ export default {
}, */
methods: {
// 签约校验
async signCheck() {
async signCheck () {
let vm = this
hlsPopup.showLoading('请稍候')
let url = process.env.basePath + 'sign_check'
......@@ -427,7 +427,7 @@ export default {
return false
}
},
async goContent(item, index) {
async goContent (item, index) {
// 详情
// 合同状态更新保存
let vm = this
......@@ -458,7 +458,7 @@ export default {
}
},
// 合同文本详情附件查询
getAttachment() {
getAttachment () {
let vm = this
let url = process.env.basePath + 'get_content_app'
let param = {
......@@ -477,7 +477,7 @@ export default {
})
},
// 征信授权书
getBook() {
getBook () {
let vm = this
let url = process.env.basePath + 'get_content_app'
let param = {
......@@ -500,17 +500,17 @@ export default {
}
})
},
_renderPage(num) {
_renderPage (num) {
this.pdfDoc.getPage(num).then((page) => {
let canvas = document.getElementById('the-canvas' + num)
console.log(canvas)
let ctx = canvas.getContext('2d')
let dpr = window.devicePixelRatio || 1
let bsr = ctx.webkitBackingStorePixelRatio ||
ctx.mozBackingStorePixelRatio ||
ctx.msBackingStorePixelRatio ||
ctx.oBackingStorePixelRatio ||
ctx.backingStorePixelRatio || 1
ctx.mozBackingStorePixelRatio ||
ctx.msBackingStorePixelRatio ||
ctx.oBackingStorePixelRatio ||
ctx.backingStorePixelRatio || 1
let ratio = dpr / bsr
let viewport = page.getViewport(screen.availWidth / page.getViewport(1).width)
canvas.width = viewport.width * ratio
......@@ -528,7 +528,7 @@ export default {
}
})
},
_loadFile(url) {
_loadFile (url) {
console.log('URL ==== ' + url)
PDFJS.getDocument(url).then((pdf) => {
this.pdfDoc = pdf
......@@ -540,7 +540,7 @@ export default {
})
},
// 征信查询
creditCheck() {
creditCheck () {
let vm = this
let url = process.env.basePath + 'bp_credit_check'
let param = {
......@@ -558,7 +558,7 @@ export default {
})
},
goElectronicSign() { // 电子签
goElectronicSign () { // 电子签
let vm = this
let url = process.env.basePath + 'get_sign_url'
let param = {
......@@ -569,19 +569,19 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.info.msg === 'success') {
cordova.InAppBrowser.open(res.info.data.url, '_blank', 'location=yes')
// vm.$router.push({
// name: 'ElectronicSign',
// params: {
// url: res.info.data.url,
// },
// })
cordova.InAppBrowser.open(res.info.data.url, '_blank', 'location=yes')
} else {
vm.hlsPopup.showLongCenter(res.info.msg)
}
})
},
charge(val, status) {
charge (val, status) {
let vm = this
this.hlsPopup.showConfirm({
title: '提示',
......@@ -594,7 +594,7 @@ export default {
},
})
},
async takePhonto() {
async takePhonto () {
let vm = this
vm.goElectronicSign()
},
......@@ -635,7 +635,7 @@ export default {
// })
// },
// 图片上传
uploadImg(img) {
uploadImg (img) {
let vm = this
vm.faceListUpload = []
let obj = {
......@@ -651,7 +651,7 @@ export default {
vm.save_picture(vm.faceListUpload)
},
// 确认签约逻辑
doConfirm(status) {
doConfirm (status) {
let vm = this
let url = process.env.basePath + 'do_confrim_bp'
let param = {
......@@ -674,7 +674,7 @@ export default {
})
},
// 图片保存
save_picture(list) {
save_picture (list) {
// alert('list' + JSON.stringify(list))
let vm = this
if (list.length) {
......@@ -714,11 +714,11 @@ export default {
}
},
// 授权书勾选
select() {
select () {
this.ischecked = !this.ischecked
},
// 授权书同意
confirm() {
confirm () {
this.ischecked ? (this.isConfirm = true) : (this.isConfirm = false)
let vm = this
let url = $config.basePath + 'prj_content_status_save'
......@@ -737,7 +737,7 @@ export default {
})
},
// 担保人
getGuarantor() {
getGuarantor () {
let vm = this
let url = $config.basePath + 'prj_guarantor_list_query'
let param = {
......@@ -751,11 +751,11 @@ export default {
}
})
},
dateConverse(date) {
dateConverse (date) {
return date.replace(/\//g, '-')
},
// 租赁信息
getLease() {
getLease () {
let vm = this
let url = $config.basePath + 'prj_lease_query'
let param = {
......@@ -770,7 +770,7 @@ export default {
})
},
// 基本信息
getBseMsg() {
getBseMsg () {
let vm = this
let url = ''
let url1 = $config.basePath + 'prj_np_info_query'
......@@ -793,7 +793,7 @@ export default {
})
},
// 合同列表查询
getContractLists() {
getContractLists () {
let vm = this
let url = $config.basePath + 'prj_contract_text_query'
let param = {
......@@ -809,7 +809,7 @@ export default {
})
},
// 还款计划
repayPlan() {
repayPlan () {
this.$router.push({
name: 'ContractRepayPlan',
params: {
......@@ -819,7 +819,7 @@ export default {
})
},
// 跳转合同详情
goContractContent(name) {
goContractContent (name) {
this.$router.push({
name: 'ContractContent',
params: {
......@@ -838,7 +838,7 @@ export default {
}
},
// 跳转银行信息录入
entryInfo() {
entryInfo () {
let idCard = ''
if (this.baseInfo.auth_flag) {
this.baseInfo.auth_flag === '是'
......@@ -861,12 +861,11 @@ export default {
},
})
},
async inSure() {
async inSure () {
let flag = await this.signCheck()
if (flag) {
// 只有认证通过后方可进行签约操作
// window.localStorage.bp_type === 'TENANT'
if (JSON.parse(window.localStorage.now_user_bp_bind_id).bp_type === 'TENANT') {
if (window.localStorage.bp_type === 'TENANT') {
if (!this.bank_flag && this.abc_deduction_flag === 'Y') {
this.isshow = true // 未查到农行卡给出提示且勾选农行代扣
} else {
......@@ -881,12 +880,12 @@ export default {
},
// 银行卡查询
bankCardQuery() {
bankCardQuery () {
let vm = this
let url = $config.basePath + 'con_bank_query'
let param = {
project_id: vm.project_id,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
bp_id: window.localStorage.bp_id,
}
// vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
......@@ -910,16 +909,16 @@ export default {
</script>
<style lang="less" rel="stylesheet">
#contract-details {
.outer {
width: 259px;
height: 370px;
.outer{
width:259px;
height:370px;
background-color: #fff;
overflow-y: scroll;
overflow-x: hidden;
.canvas {
position: relative;
z-index: 0;
}
overflow-x:hidden;
.canvas{
position: relative;
z-index: 0;
}
}
.sign-elect {
......@@ -1361,7 +1360,7 @@ export default {
align-items: center;
-webkit-align-items: center;
justify-content: center;
-webkit-justify-content: center;
-webkit-justify-content:center;
background: rgb(254, 251, 233);
img {
width: 22px;
......@@ -1412,14 +1411,14 @@ export default {
position: relative;
width: 301px;
height: 467px;
top: -67px;
top:-67px;
background: url("../../assets/intoApproval/top.png") no-repeat;
background-size: 301px 24.7px;
background-color: #fff;
img {
img{
position: absolute;
z-index: 999;
width: 301px;
width:301px;
}
button {
width: 240px;
......
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