Commit 1787ec5b authored by 李晓兵's avatar 李晓兵

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

parents 6b8e86e8 ccb80274
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-22 13:33:30 * @LastEditTime: 2019-10-22 17:22:03
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
</item> </item>
</list-item> </list-item>
</h-content> </h-content>
<bottom-tab v-show="num === 1"> <bottom-tab v-show="num === 1 && confirm_status === 'SUBMIT'">
<tab-button class="footer" @click.native="inSure"> <tab-button class="footer" @click.native="inSure">
确认签约 确认签约
</tab-button> </tab-button>
...@@ -177,6 +177,7 @@ export default { ...@@ -177,6 +177,7 @@ export default {
check2: Check2, check2: Check2,
uncheck1: unCheck1, uncheck1: unCheck1,
uncheck2: unCheck2, uncheck2: unCheck2,
confirm_status: this.$route.params.confirm_status,
} }
}, },
computed: {}, computed: {},
...@@ -389,7 +390,7 @@ export default { ...@@ -389,7 +390,7 @@ export default {
} }
.in-all{ .in-all{
width: 96px; //width: 96px;
display: flex; display: flex;
img{ img{
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-21 11:09:20 * @LastEditTime: 2019-10-22 16:43:01
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<p class="incoming-num">进件号</p> <p class="incoming-num">进件号</p>
<p class="code">{{ item.project_number }}</p> <p class="code">{{ item.project_number }}</p>
</div> </div>
<div class="details" @click="goDetails(item.project_id)"> <div class="details" @click="goDetails(item.project_id,item.confirm_status)">
<div class="option"> <div class="option">
<p class="name">承租人</p> <p class="name">承租人</p>
<p class="full-name normal">{{ item.bp_name }}</p> <p class="full-name normal">{{ item.bp_name }}</p>
...@@ -125,11 +125,13 @@ export default { ...@@ -125,11 +125,13 @@ export default {
} }
}) })
}, },
goDetails (val) { // val: project_id, status: confirm_status
goDetails (val, status) {
this.$router.push({ this.$router.push({
name: 'ContractDetail', name: 'ContractDetail',
params: { params: {
project_id: val, project_id: val,
confirm_status: status,
}, },
}) })
}, },
......
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-22 20:03:19
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /c:\Users\slice\Desktop\xg\new-pro\hls-xcmg-vue-app\src\pages\contractSigning\entry-info.vue
-->
<template> <template>
<h-view id="entry-info" class="public-style"> <h-view id="entry-info" class="public-style">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
...@@ -12,25 +20,28 @@ ...@@ -12,25 +20,28 @@
<div class="info-header"> <div class="info-header">
<p>请上传银行卡照片</p> <p>请上传银行卡照片</p>
<div class="bank-pic"> <div class="bank-pic">
<img src="@/assets/constractSigning/bank.png" alt=""> <img v-if="!bankImg" src="@/assets/constractSigning/bank.png" alt="" @click="ocrShow('bankCard', '')">
<img v-if="bankImg" :src="bankImg" alt="" @click="ocrShow('bankCard', '')">
</div> </div>
</div> </div>
<list-item :item-height="44" class="info-center"> <list-item :item-height="44" class="info-center">
<item> <item>
<div slot="name" >银行卡卡号</div> <div slot="name" >银行卡卡号</div>
<section slot="content">上传银行卡自动填充</section> <input
slot="content" v-model="bank_lists.bank_account_num" type="text" placeholder="上传银行卡自动填充"
readonly>
</item> </item>
<item> <item>
<div slot="name" >账户名称</div> <div slot="name" >账户名称</div>
<input slot="content" type="number" placeholder="请输入账户名称"> <input slot="content" type="text" placeholder="请输入账户名称">
</item> </item>
<item> <item>
<div slot="name" >银行名称</div> <div slot="name" >银行名称</div>
<input slot="content" type="number" placeholder="请输入银行名称"> <input slot="content" v-model="bank_lists.bank_full_name" type="text" placeholder="请输入银行名称">
</item> </item>
<item> <item>
<div slot="name" >支行名称</div> <div slot="name" >支行名称</div>
<input slot="content" type="number" placeholder="请输入支行名称"> <input slot="content" type="text" placeholder="请输入支行名称">
</item> </item>
</list-item> </list-item>
...@@ -58,12 +69,17 @@ export default { ...@@ -58,12 +69,17 @@ export default {
data () { data () {
return { return {
num: 1, num: 1,
bankImg: '', // 银行卡图片
check1: Check1, check1: Check1,
check2: Check2, check2: Check2,
uncheck1: unCheck1, uncheck1: unCheck1,
uncheck2: unCheck2, uncheck2: unCheck2,
res: '', res: '',
name: '', name: '',
bank_lists: {
bank_full_name: '', // 银行名称
bank_account_num: '', // 卡号
},
} }
}, },
computed: {}, computed: {},
...@@ -72,7 +88,79 @@ export default { ...@@ -72,7 +88,79 @@ export default {
this.name = this.$route.params.name this.name = this.$route.params.name
}, },
methods: { methods: {
// ocr识别入口
ocrShow (ocrType, type) {
let vm = this
hlsPopup.showActionSheet({
titleText: '请选择照片',
buttonArray: ['拍照', '从相册取'],
callback: index => {
if (index === 0) {
vm.openCamera(ocrType, type)
} else {
vm.takePicture(ocrType, type)
}
},
})
},
openCamera (ocrType, type) {
let vm = this
let cameraoptions = {
quality: 60,
width: 1843,
height: 1382,
}
let success = function (imgdata) {
if (!imgdata) {
hlsPopup.showLongCenter('请拍照')
} else {
if (ocrType === 'bankCard') {
vm.bankImg = imgdata
vm.bankCardIdentify(imgdata)
}
}
}
let error = function () {
hlsPopup.showLongCenter(error)
}
hlsUtil.openCamera(cameraoptions, success, error)
},
takePicture (ocrType, type) {
let vm = this
var cameraoptions = {
quality: 70,
width: 1843,
height: 1382,
maxCount: 1,
}
let success = function (imgUrl) {
if (imgUrl.length === 0) {
hlsPopup.showLongCenter('请选择一张图片')
} else {
if (ocrType === 'bankCard') {
vm.bankImg = imgUrl[0]
vm.bankCardIdentify(imgUrl[0])
}
}
}
let error = function () {
hlsPopup.showLongCenter(error)
}
vm.hlsUtil.takePicture(cameraoptions, success, error)
},
// 银行卡识别
bankCardIdentify (fileUrl) {
let vm = this
hlsPopup.showLoading('正在识别')
let url = process.env.ocrPath + '/baidu/ocr/bankCard'
hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading()
let result = res.result.result
vm.bank_lists.bank_account_num = result.bank_card_number.replace(/\s*/g, '') // 卡号
vm.bank_lists.bank_full_name = result.bank_name // 银行名称
// vm.bank_lists.bank_card_type = result.bank_card_type
})
},
}, },
} }
</script> </script>
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
params: { params: {
isConfirm: true, isConfirm: true,
hasButtom: confirmStatus, hasButtom: confirmStatus,
confirm_status: this.confirm_status confirm_status: this.confirm_status,
}, },
}) })
this.$router.go(-1) this.$router.go(-1)
......
...@@ -170,19 +170,11 @@ export default { ...@@ -170,19 +170,11 @@ export default {
changePay () { changePay () {
this.$router.push({ this.$router.push({
name: 'FirstPay', name: 'FirstPay',
params: {
// bp_id: this.bp_id,
bp_id: 7850,
},
}) })
}, },
changeRent () { changeRent () {
this.$router.push({ this.$router.push({
name: 'PaymentFirstPay', name: 'PaymentFirstPay',
params: {
// bp_id: this.bp_id,
bp_id: 7850,
},
}) })
}, },
updateVersion () { updateVersion () {
...@@ -331,6 +323,7 @@ export default { ...@@ -331,6 +323,7 @@ export default {
vm.user_bp_status = res.info.user_bp_status vm.user_bp_status = res.info.user_bp_status
vm.user_bp_class = res.info.user_bp_class vm.user_bp_class = res.info.user_bp_class
vm.bp_id = res.info.user_bp_id vm.bp_id = res.info.user_bp_id
window.sessionStorage.setItem('bp_id', 7850)
vm.user_bp_name = res.info.user_bp_name vm.user_bp_name = res.info.user_bp_name
vm.user_bp_type = res.info.user_bp_type vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone vm.user_phone = res.info.user_phone
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<h-view id="contract-record" class="public-style"> <h-view id="contract-record" class="public-style">
<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"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="changePage"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>合同记录</span> <span>合同记录</span>
</div> </div>
</h-header> </h-header>
...@@ -59,92 +59,7 @@ export default { ...@@ -59,92 +59,7 @@ export default {
return { return {
money: 0, money: 0,
inputNum: 0, inputNum: 0,
prj_lists: [ prj_lists: [],
{
'project_id': '48792',
'project_number': 'PRJ2019078',
'bp_name': '李永波装甲车租赁公司',
'cf_lists': [
{
'received_amount': '9500000',
'cf_item_name': '首付款',
'cf_item': '51',
'project_number': 'PRJ2019078',
'due_amount': '9500000',
},
{
'received_amount': '3150000',
'cf_item_name': '保证金',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
{
'received_amount': '9500000',
'cf_item_name': '手续费',
'cf_item': '51',
'project_number': 'PRJ2019078',
'due_amount': '9500000',
},
{
'received_amount': '3150000',
'cf_item_name': '保险押金',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
{
'received_amount': '3150000',
'cf_item_name': 'GPS费用',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
],
},
{
'project_id': '48800',
'project_number': 'PRJ2019082',
'bp_name': '李永波装甲车租赁公司',
'cf_lists': [
{
'received_amount': '9500000',
'cf_item_name': '首付款',
'cf_item': '51',
'project_number': 'PRJ2019078',
'due_amount': '9500000',
},
{
'received_amount': '3150000',
'cf_item_name': '保证金',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
{
'received_amount': '9500000',
'cf_item_name': '手续费',
'cf_item': '51',
'project_number': 'PRJ2019078',
'due_amount': '9500000',
},
{
'received_amount': '3150000',
'cf_item_name': '保险押金',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
{
'received_amount': '3150000',
'cf_item_name': 'GPS费用',
'cf_item': '15',
'project_number': 'PRJ2019078',
'due_amount': '3150000',
},
],
},
],
} }
}, },
...@@ -185,21 +100,11 @@ export default { ...@@ -185,21 +100,11 @@ export default {
}, },
methods: { methods: {
changePage () {
this.$router.replace({
name: 'FirstPay',
params: {
bp_id: this.$route.params.bp_id,
},
})
this.$router.go(-1)
},
getDetail () { getDetail () {
let vm = this let vm = this
let url = process.env.basePath + 'payment_prj_list_query' let url = process.env.basePath + 'payment_prj_list_query'
let param = { let param = {
bp_id: this.$route.params.bp_id, bp_id: window.sessionStorage.getItem('bp_id'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -224,7 +129,7 @@ export default { ...@@ -224,7 +129,7 @@ export default {
delete i.due_amount delete i.due_amount
delete i.received_amount delete i.received_amount
delete i.project_number delete i.project_number
i.bp_id = this.$route.params.bp_id i.bp_id = window.sessionStorage.getItem('bp_id')
}) })
return data return data
}, },
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'initial_payment_query' let url = process.env.basePath + 'initial_payment_query'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: window.sessionStorage.getItem('bp_id'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -89,15 +89,16 @@ export default { ...@@ -89,15 +89,16 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'create_order_0_amount' let url = process.env.basePath + 'create_order_0_amount'
let param = { let param = {
bp_id: vm.$route.params.bp_id, info: {
bp_id: window.sessionStorage.getItem('bp_id'),
amount: vm.money, amount: vm.money,
},
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
console.log(res) vm.toPayEntry(vm.money)
this.toPayEntry(vm.money)
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -108,25 +109,22 @@ export default { ...@@ -108,25 +109,22 @@ export default {
name: 'PayEntry', name: 'PayEntry',
params: { params: {
money, money,
bp_id: this.$route.params.bp_id,
}, },
}) })
}, },
createOrder () { createOrder () {
let vm = this let vm = this
// window.sessionStorage.setItem('order_id', 123)
// vm.toContractRecord(vm.money)
let url = process.env.basePath + 'do_order_0_prj' let url = process.env.basePath + 'do_order_0_prj'
let param = { let param = {
bp_id: vm.$route.params.bp_id, info: {
bp_id: window.sessionStorage.getItem('bp_id'),
},
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
console.log(res) window.sessionStorage.setItem('order_id', res.order_id)
window.sessionStorage.setItem('order_id', res.info.order_id)
vm.toContractRecord(vm.money) vm.toContractRecord(vm.money)
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
...@@ -138,7 +136,6 @@ export default { ...@@ -138,7 +136,6 @@ export default {
name: 'ContractRecord', name: 'ContractRecord',
params: { params: {
money, money,
bp_id: this.$route.params.bp_id,
}, },
}) })
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<h-view id="pay-entry" class="public-style"> <h-view id="pay-entry" class="public-style">
<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"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="changePage"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>支付中心</span> <span>支付中心</span>
</div> </div>
</h-header> </h-header>
...@@ -63,11 +63,17 @@ export default { ...@@ -63,11 +63,17 @@ export default {
return { return {
money: '', money: '',
select: 'one', select: 'one',
name: '',
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.name = from.name
})
},
activated () { activated () {
this.money = this.$route.params.money this.money = this.$route.params.money
}, },
...@@ -75,17 +81,6 @@ export default { ...@@ -75,17 +81,6 @@ export default {
isSelect (way) { isSelect (way) {
this.select = way this.select = way
}, },
changePage () {
this.$router.replace(
{
name: 'FirstPay',
params: {
bp_id: this.$route.params.bp_id,
},
}
)
this.$router.go(-1)
},
}, },
} }
</script> </script>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<h-view id="payment-contract-record" class="public-style"> <h-view id="payment-contract-record" class="public-style">
<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"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="changePage"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>合同记录</span> <span>合同记录</span>
</div> </div>
</h-header> </h-header>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</div> </div>
<div class="list"> <div class="list">
<div><span>车牌号</span> <span>{{ detail.lease_item_car_num }}</span> </div> <div><span>车牌号</span> <span>{{ detail.lease_item_car_num }}</span> </div>
<div><span>本次还款</span><section><input v-model="detail.pay" type="text" placeholder="请输入还款金额"></section></div> <div><span>本次还款</span><section><input v-model="detail.amount" type="text" placeholder="请输入还款金额"></section></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</div> </div>
</div> </div>
<bottom-tab> <bottom-tab>
<tab-button class="footer" @click.native="toPayEntry(sumMoney)"> <tab-button class="footer" @click.native="payDetail()">
&nbsp;&nbsp; &nbsp;&nbsp;
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
...@@ -84,77 +84,7 @@ export default { ...@@ -84,77 +84,7 @@ export default {
money: '', money: '',
reFund1: '', reFund1: '',
reFund2: '', reFund2: '',
info: [ info: [],
{
'project_id': '48792',
'project_number': 'PRJ2019078',
'bp_name': '李永波装甲车租赁公司',
'con_lists': [
{
'project_id': '48792',
'contract_id': '410',
'due_amount': '400320',
'received_amount': '13171',
'overdue_amount': '0',
'lease_item_car_num': 'CD',
'lease_item_factory_num': 'EF',
'lease_item_engine_num': 'GH',
'product_code': 'AB',
},
{
'project_id': '48792',
'contract_id': '396',
'due_amount': '8358890',
'received_amount': '170729',
'overdue_amount': '0',
'lease_item_car_num': 'CD',
'lease_item_factory_num': 'EF',
'lease_item_engine_num': 'GH',
'product_code': 'AB',
},
{
'project_id': '48792',
'contract_id': '411',
'due_amount': '27722013.76',
'received_amount': '4562996.48',
'overdue_amount': '0',
'lease_item_car_num': 'CD',
'lease_item_factory_num': 'EF',
'lease_item_engine_num': 'GH',
'product_code': 'AB',
},
],
},
{
'project_id': '48800',
'project_number': 'PRJ2019082',
'bp_name': '李永波装甲车租赁公司',
'con_lists': [
{
'project_id': '48800',
'contract_id': '431',
'due_amount': '31814456',
'received_amount': '0',
'overdue_amount': '0',
'lease_item_car_num': 'CD',
'lease_item_factory_num': 'EF',
'lease_item_engine_num': 'GH',
'product_code': 'AB',
},
{
'project_id': '48800',
'contract_id': '371',
'due_amount': '699530',
'received_amount': '0',
'overdue_amount': '0',
'lease_item_car_num': 'CD',
'lease_item_factory_num': 'EF',
'lease_item_engine_num': 'GH',
'product_code': 'AB',
},
],
},
],
} }
}, },
computed: {}, computed: {},
...@@ -198,23 +128,13 @@ export default { ...@@ -198,23 +128,13 @@ export default {
}, },
activated () { activated () {
debugger
}, },
methods: { methods: {
changePage () {
this.$router.replace({
name: 'PaymentFirstPay',
params: {
bp_id: this.$route.params.bp_id,
},
})
this.$router.go(-1)
},
getRentInfo () { getRentInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'payment_con_list_query' let url = process.env.basePath + 'payment_con_list_query'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: window.sessionStorage.getItem('bp_id'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -226,6 +146,37 @@ export default { ...@@ -226,6 +146,37 @@ export default {
} }
}) })
}, },
createData () {
let obj = {}
let pushList = []
this.info.forEach(i => {
i.con_lists.forEach(j => {
obj.bp_id = window.sessionStorage.getItem('bp_id')
obj.amount = j.amount
obj.contract_id = j.contract_id
pushList.push(obj)
})
})
return pushList
},
payDetail () {
let vm = this
let url = process.env.basePath + 'create_detail_1_part'
let payLists = vm.createData()
let param = {
order_id: window.sessionStorage.getItem('order_id'),
pay_lists: payLists,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.toPayEntry(vm.sumMoney)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
toPayEntry (money) { toPayEntry (money) {
this.$router.push({ this.$router.push({
name: 'PaymentPayEntry', name: 'PaymentPayEntry',
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'rent_repayment_query' let url = process.env.basePath + 'rent_repayment_query'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: window.sessionStorage.getItem('bp_id'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'create_order_1_amount' let url = process.env.basePath + 'create_order_1_amount'
let param = { let param = {
bp_id: vm.$route.params.bp_id, bp_id: window.sessionStorage.getItem('bp_id'),
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -111,39 +111,36 @@ export default { ...@@ -111,39 +111,36 @@ export default {
}, },
createOrder () { createOrder () {
let vm = this let vm = this
// vm.toContractRecord(vm.liquidated_damages)
let url = process.env.basePath + 'do_order_1_con'
let param = {
bp_id: vm.$route.params.bp_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
console.log(res)
vm.toContractRecord(vm.liquidated_damages) vm.toContractRecord(vm.liquidated_damages)
} else { window.sessionStorage.setItem('order_id', 123)
hlsPopup.showLongCenter(res.message) // let url = process.env.basePath + 'do_order_1_con'
} // let param = {
}) // bp_id: vm.$route.params.bp_id,
// }
// hlsPopup.showLoading('请稍候')
// vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// window.sessionStorage.setItem('order_id', res.info.order_id)
// vm.toContractRecord(vm.liquidated_damages)
// } else {
// hlsPopup.showLongCenter(res.message)
// }
// })
}, },
toPayEntry (money) { toPayEntry (money) {
this.$router.push({ this.$router.push({
name: 'PaymentPayEntry', name: 'PaymentPayEntry',
params: { params: {
money, money,
bp_id: this.$route.params.bp_id,
}, },
}) })
}, },
toContractRecord (money) { toContractRecord (money) {
let vm = this
this.$router.push({ this.$router.push({
name: 'PaymentContractRecord', name: 'PaymentContractRecord',
params: { params: {
money, money,
bp_id: vm.$route.params.bp_id,
}, },
}) })
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<h-view id="payment-pay-entry" class="public-style"> <h-view id="payment-pay-entry" class="public-style">
<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"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="changePage"> <img src="@/assets/userBind/arrow.png" @click="$routeGo()">
<span>支付中心</span> <span>支付中心</span>
</div> </div>
</h-header> </h-header>
...@@ -75,17 +75,6 @@ export default { ...@@ -75,17 +75,6 @@ export default {
isSelect (way) { isSelect (way) {
this.select = way this.select = way
}, },
changePage () {
this.$router.replace(
{
name: 'PaymentFirstPay',
params: {
bp_id: this.$route.params.bp_id,
},
}
)
this.$router.go(-1)
},
}, },
} }
</script> </script>
......
...@@ -55,16 +55,15 @@ export default { ...@@ -55,16 +55,15 @@ export default {
}, },
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter (to, from, next) { // beforeRouteEnter (to, from, next) {
if (from.name === 'QueryHome') { // if (from.name === 'QueryHome') {
next(vm => { // next(vm => {
// vm.proQuery() // // vm.proQuery()
// vm.division = vm.$route.params.division // // vm.division = vm.$route.params.division
}) // })
} // }
// this.proQuery() // next()
next() // },
},
activated () { activated () {
this.proQuery() this.proQuery()
}, },
......
...@@ -173,7 +173,7 @@ export default new Router({ ...@@ -173,7 +173,7 @@ export default new Router({
// 款项支付 // 款项支付
{path: '/payment-first-pay', component: PaymentFirstPay, name: 'PaymentFirstPay', meta: {keepAlive: true}}, {path: '/payment-first-pay', component: PaymentFirstPay, name: 'PaymentFirstPay', meta: {keepAlive: true}},
{path: '/payment-pay-entry', component: PaymentPayEntry, name: 'PaymentPayEntry', meta: {keepAlive: true}}, {path: '/payment-pay-entry', component: PaymentPayEntry, name: 'PaymentPayEntry', meta: {keepAlive: true}},
{path: '/payment-contract-record', component: PaymentContractRecord, name: 'PaymentContractRecord', meta: {keepAlive: false}}, {path: '/payment-contract-record', component: PaymentContractRecord, name: 'PaymentContractRecord', meta: {keepAlive: true}},
// 保证金支付 // 保证金支付
{path: '/margin-first-pay', component: MarginFirstPay, name: 'MarginFirstPay', meta: {keepAlive: true}}, {path: '/margin-first-pay', component: MarginFirstPay, name: 'MarginFirstPay', meta: {keepAlive: true}},
{path: '/margin-pay-entry', component: MarginPayEntry, name: 'MarginPayEntry', meta: {keepAlive: true}}, {path: '/margin-pay-entry', component: MarginPayEntry, name: 'MarginPayEntry', meta: {keepAlive: true}},
......
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