Commit 95be47d2 authored by Jennie Shi's avatar Jennie Shi

fixIssue

parent a6532da7
...@@ -430,7 +430,7 @@ export default { ...@@ -430,7 +430,7 @@ export default {
}, },
watch: { watch: {
$route (to, from) { $route (to, from) {
if(to.name === 'SalesInfo'){ if (to.name === 'SalesInfo' && from.name === 'CreateBaseInfo') {
this.routeGoCustom() this.routeGoCustom()
} }
}, },
......
...@@ -186,6 +186,12 @@ export default { ...@@ -186,6 +186,12 @@ export default {
}, },
immediate: true, immediate: true,
}, },
// '$route' (to, from) {
// debugger
// if (from.fullPath !== '/contract-create-list' && to.fullPath === '/sales-info') {
// this.$router.go(0)
// }
// },
}, },
activated () { activated () {
...@@ -222,7 +228,8 @@ export default { ...@@ -222,7 +228,8 @@ export default {
} }
vm.businessQuery().then(res => { vm.businessQuery().then(res => {
vm.agentQuery().then(res => { vm.agentQuery().then(res => {
vm.factoryQuery() vm.factoryQuery().then(res => {
})
}) })
}) })
} else if (from.name === 'CreateBaseInfo') { } else if (from.name === 'CreateBaseInfo') {
...@@ -327,7 +334,7 @@ export default { ...@@ -327,7 +334,7 @@ export default {
phone: window.localStorage.getItem('user_phone'), phone: window.localStorage.getItem('user_phone'),
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { return vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
vm.factoty = res.lists vm.factoty = res.lists
if (res.result === 'S') { if (res.result === 'S') {
......
...@@ -118,6 +118,19 @@ ...@@ -118,6 +118,19 @@
</div> </div>
</h-content> </h-content>
<h-content v-if="num === 2"> <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">
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/npack.png" alt class="pics" >
<p class="second first">{{ item.attachment_file }}</p>
</div>
<div slot="content" class="in-detail" @click="goContent(item.attachment_file_path)">
<img src="@/assets/constractSigning/detail.png" alt >
</div>
</item>
</list-item>
</h-content>
<!-- <h-content v-if="num === 2">
<list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);"> <list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);">
<item :proportion="[7,1]"> <item :proportion="[7,1]">
<div slot="name" class="aguremrnt-list"> <div slot="name" class="aguremrnt-list">
...@@ -129,7 +142,6 @@ ...@@ -129,7 +142,6 @@
</div> </div>
</item> </item>
<!-- 农行代扣授权书 -->
<item v-if="abc_deduction_flag === 'Y'" :proportion="[7,1]" :class="{'border-red':isshow}"> <item v-if="abc_deduction_flag === 'Y'" :proportion="[7,1]" :class="{'border-red':isshow}">
<div slot="name" class="aguremrnt-list"> <div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/pack.png" alt class="pics" > <img src="@/assets/constractSigning/pack.png" alt class="pics" >
...@@ -166,7 +178,7 @@ ...@@ -166,7 +178,7 @@
</div> </div>
</item> </item>
</list-item> </list-item>
</h-content> </h-content>-->
<h-content v-if="num === 1"> <h-content v-if="num === 1">
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
...@@ -302,12 +314,11 @@ ...@@ -302,12 +314,11 @@
</h-view> </h-view>
</h-modal> </h-modal>
<!--活体检测--> <!--活体检测-->
<body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"/> <body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id" />
</h-view> </h-view>
</template> </template>
<script> <script>
import Check1 from '@/assets/constractSigning/business.png' import Check1 from '@/assets/constractSigning/business.png'
import Check2 from '@/assets/constractSigning/constract.png' import Check2 from '@/assets/constractSigning/constract.png'
import Check3 from '@/assets/constractSigning/lease.png' import Check3 from '@/assets/constractSigning/lease.png'
...@@ -334,6 +345,7 @@ export default { ...@@ -334,6 +345,7 @@ export default {
showModalValue: false, showModalValue: false,
credit_status: 'N', // 一个月内是否查过征信 N查过 credit_status: 'N', // 一个月内是否查过征信 N查过
guarantorInfo: [], // 担保人信息 guarantorInfo: [], // 担保人信息
attachArray: [], // 附件数组
bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业) bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业)
info: {}, // 租赁信息 info: {}, // 租赁信息
baseInfo: {}, // 基本信息 baseInfo: {}, // 基本信息
...@@ -366,6 +378,7 @@ export default { ...@@ -366,6 +378,7 @@ export default {
} }
}, },
computed: {}, computed: {},
watch: { watch: {
$route (to, from) { $route (to, from) {
hlsPopup.hideConfirm() hlsPopup.hideConfirm()
...@@ -418,6 +431,8 @@ export default { ...@@ -418,6 +431,8 @@ export default {
vm.getLease() vm.getLease()
vm.getGuarantor() vm.getGuarantor()
vm.getContractLists() // 合同列表 vm.getContractLists() // 合同列表
// 合同文本附件查询
vm.getAttachment()
} else if (from.name === 'EntryInfo') { } else if (from.name === 'EntryInfo') {
vm.bankCardQuery() vm.bankCardQuery()
} }
...@@ -459,6 +474,29 @@ export default { ...@@ -459,6 +474,29 @@ export default {
// vm.hlsPopup.showLongCenter(res.message) // vm.hlsPopup.showLongCenter(res.message)
} }
}, },
goContent (url) {
// 详情
// window.open(url)
cordova.InAppBrowser.open(url, '_blank', 'location=yes')
},
// 合同文本详情附件查询
getAttachment () {
let vm = this
let url = process.env.basePath + 'get_content_app'
let param = {
confirm_id: vm.confirm_id,
data_class: 'PRJ_PROJECT',
}
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(res => {
hlsPopup.hideLoading()
if (res.result === 'S') {
vm.attachArray = res.attachments
} else {
vm.hlsPopup.showLongCenter(res.message)
}
})
},
// 征信查询 // 征信查询
creditCheck () { creditCheck () {
let vm = this let vm = this
...@@ -477,7 +515,8 @@ export default { ...@@ -477,7 +515,8 @@ export default {
} }
}) })
}, },
goBodyCheck (confirm_id) { // 活体检测 goBodyCheck (confirm_id) {
// 活体检测
this.$refs.body.show() this.$refs.body.show()
/* this.$router.push({ /* this.$router.push({
name: 'BodyCheck', name: 'BodyCheck',
...@@ -532,7 +571,6 @@ export default { ...@@ -532,7 +571,6 @@ export default {
if (index === 1) { if (index === 1) {
vm.takePhontoOpenCamera() vm.takePhontoOpenCamera()
} else { } else {
} }
}, },
}) })
...@@ -859,7 +897,8 @@ export default { ...@@ -859,7 +897,8 @@ export default {
}, },
async inSure () { async inSure () {
let flag = await this.signCheck() let flag = await this.signCheck()
if (flag) { // 只有认证通过后方可进行签约操作 if (flag) {
// 只有认证通过后方可进行签约操作
if (!this.bank_flag && this.abc_deduction_flag === 'Y') { if (!this.bank_flag && this.abc_deduction_flag === 'Y') {
this.isshow = true // 未查到农行卡给出提示且勾选农行代扣 this.isshow = true // 未查到农行卡给出提示且勾选农行代扣
} else { } else {
...@@ -898,10 +937,10 @@ export default { ...@@ -898,10 +937,10 @@ export default {
} }
</script> </script>
<style lang="less" rel="stylesheet"> <style lang="less" rel="stylesheet">
#contract-details { #contract-details {
.sign-elect { .sign-elect {
width:100%; width: 100%;
height:1.1rem; height: 1.1rem;
position: fixed; position: fixed;
bottom: 43px; bottom: 43px;
// margin-top: 20px; // margin-top: 20px;
...@@ -921,9 +960,9 @@ export default { ...@@ -921,9 +960,9 @@ export default {
letter-spacing: 0.2rem; letter-spacing: 0.2rem;
} }
} }
.bodyCheck{ .bodyCheck {
width:100%; width: 100%;
height:1.1rem; height: 1.1rem;
position: fixed; position: fixed;
bottom: 92px; bottom: 92px;
background: #fff; background: #fff;
...@@ -1506,7 +1545,7 @@ export default { ...@@ -1506,7 +1545,7 @@ export default {
border: 1px solid #fdb62f; border: 1px solid #fdb62f;
border-radius: 4px; border-radius: 4px;
color: #fdb62f; color: #fdb62f;
img{ img {
width: 18px; width: 18px;
} }
} }
...@@ -1514,13 +1553,13 @@ export default { ...@@ -1514,13 +1553,13 @@ export default {
background: #1d3fff; background: #1d3fff;
border-radius: 4px; border-radius: 4px;
color: #fff; color: #fff;
img{ img {
width: 18px; width: 18px;
} }
} }
} }
} }
.modal { .modal {
background-color: rgba(0, 0, 0, 0) !important; background-color: rgba(0, 0, 0, 0) !important;
} }
</style> </style>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</item>--> </item>-->
<div class="orderamount-wrap"> <div class="orderamount-wrap">
<span class="orderamount-item">交易金额</span> <span class="orderamount-item">交易金额</span>
<span class="orderamount-item font-color">{{info.orderamount|currency}}</span> <span class="orderamount-item font-color">{{ info.orderamount|currency }}</span>
</div> </div>
<item> <item>
<div slot="name" class="name">支付方式</div> <div slot="name" class="name">支付方式</div>
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
pay (status) { pay (status) {
let vm = this let vm = this
vm.nextPay = false vm.nextPay = false
if(status === 'continue' && vm.payType === 'ABC_UNION'){ // 在银联模式下继续支付重新获取支付url,因为银联页面只能打开一次 if (status === 'continue' && vm.payType === 'ABC_UNION') { // 在银联模式下继续支付重新获取支付url,因为银联页面只能打开一次
hlsPopup.showConfirm({ hlsPopup.showConfirm({
title: '提示', title: '提示',
content: '银联不支持二次支付,请重新发起支付订单', content: '银联不支持二次支付,请重新发起支付订单',
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
} }
}, },
}) })
}else{ } else {
cordova.InAppBrowser.open(this.url, '_blank', 'location=yes') cordova.InAppBrowser.open(this.url, '_blank', 'location=yes')
// window.open(this.url) // window.open(this.url)
} }
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
vm.showpay = false vm.showpay = false
}, 3000) }, 3000)
}, },
getPayUrl(){ getPayUrl () {
let vm = this let vm = this
let url = process.env.basePath + 'merchant_payment' let url = process.env.basePath + 'merchant_payment'
let param = { let param = {
......
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