Commit 53399ecc authored by 李晓兵's avatar 李晓兵

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

parents faae8cb8 968ada85
Pipeline #3873 canceled with stages
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-25 11:32:38
* @LastEditTime: 2019-11-25 14:24:53
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -496,7 +496,7 @@ export default {
vm.hlsPopup.showSuccess('审批成功')
vm.$router.push({
name: 'ContractSigning',
param: {
params: {
backFlag: true,
},
})
......
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-25 11:40:05
* @LastEditTime: 2019-11-25 15:50:46
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -138,6 +138,9 @@ export default {
vm.submitPagenum = 1
vm.approvedPagenum = 1
vm.searchInput = ''
vm.approvedFlag = false
vm.submitLists = []
vm.approvedLists = []
vm.user_bp_type = vm.$route.params.user_bp_type
vm.contractList()
} else if (from.name === 'ContractDetail') {
......@@ -245,7 +248,7 @@ export default {
hlsPopup.showLongCenter(res.message)
}
})
} else if (vm.tabNum === 2) {
} else if (vm.num === 2) {
vm.approvedPagenum++
let url = $config.basePath + 'prj_confirm_list_query'
let param = {
......
......@@ -2,7 +2,7 @@
* @Description: 法人信息
* @Author: your name
* @Date: 2019-09-26 15:09:24
* @LastEditTime: 2019-11-13 09:21:26
* @LastEditTime: 2019-11-25 17:35:06
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -13,8 +13,8 @@
<input slot="content" v-model="baseInfo.bp_user_id_n" readonly>
</item>
<item>
<div slot="name" class="font-color">经销商</div>
<input slot="content" v-model="baseInfo.bp_id_agent_n" readonly>
<div slot="name" class="font-color">办事处</div>
<input slot="content" v-model="baseInfo.office_name" readonly>
</item>
</list-item>
<div class="equipment-list">承租人信息</div>
......
......@@ -160,17 +160,20 @@ export default {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.toPayEntry(vm.money)
let e = res.order_id
vm.toPayEntry(e)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
toPayEntry (money) {
toPayEntry (e) {
this.$router.push({
name: 'PayEntry',
params: {
money,
money: this.money,
order_id: e,
},
})
},
......
......@@ -123,17 +123,19 @@ export default {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.toPayEntry(vm.money)
let e = res.order_id
vm.toPayEntry(e)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
toPayEntry (money) {
toPayEntry (e) {
this.$router.push({
name: 'PayEntry',
params: {
money,
money: this.money,
order_id: e,
},
})
},
......
......@@ -22,7 +22,7 @@
v-for="(item,index) in nongBank"
:proportion="[7,1,1]"
:key="item.bank_account_num"
@click.native="isSelect(`nong${index}`);ischeck(item)"
@click.native="isSelect(`nong${index}`);ischeck(item);confirmToPay(item)"
>
<div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" >
......@@ -38,7 +38,7 @@
<img v-show="select !== `nong${index}`" src="@/assets/payment/unselect.png" alt >
</section>
</item>
<item :proportion="[7,1,1]" @click.native="isSelect('one');ischeck('one')">
<!-- <item :proportion="[7,1,1]" @click.native="isSelect('one');ischeck('one')">
<div slot="name">
<img src="@/assets/payment/alipay.png" alt class="icon1" > 支付宝
</div>
......@@ -55,12 +55,12 @@
<img v-show="select === 'two'" src="@/assets/payment/select.png" alt >
<img v-show="select !== 'two'" src="@/assets/payment/unselect.png" alt >
</section>
</item>
</item> -->
<item
v-for="(item,index) in newList"
:proportion="[7,1,1]"
:key="index"
@click.native="isSelect(`three${index}`);ischeck(item)"
@click.native="isSelect(`three${index}`);ischeck(item);confirmToPay(item)"
>
<div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" >
......@@ -111,7 +111,7 @@
</div>
</div>
<bottom-tab>
<tab-button class="foot" @click.native="pay">立即支付</tab-button>
<tab-button class="foot" @click.native="checkPay">立即支付</tab-button>
</bottom-tab>
</div>
</div>
......@@ -212,28 +212,15 @@ export default {
},
newList () {
let vm = this
vm.nongBank = []
vm.lists.forEach((item, i) => {
if (item.bank_full_name.indexOf('农业') !== -1) {
vm.nongBank.push(vm.lists[i])
vm.flag = true
}
})
let notNong = vm.lists.filter(i => {
return i.bank_full_name.indexOf('农业') === -1
})
if (vm.flag) {
vm.select = 'nong0'
vm.checkType.bank_full_name = '农业银行'
vm.checkType.img = ny
vm.checkType.bank_account_num = this.nongBank[0].bank_account_num
vm.sectctNong = true
} else {
vm.select = 'one'
vm.checkType.bank_full_name = '支付宝'
vm.checkType.img = zfb
vm.sectctNong = false
}
// else {
// vm.select = 'one'
// vm.checkType.bank_full_name = '支付宝'
// vm.checkType.img = zfb
// vm.sectctNong = false
// }
return notNong
},
},
......@@ -310,17 +297,54 @@ export default {
}
this.show = false
},
confirmToPay (e) {
let vm = this
let url = process.env.basePath + 'update_order_info'
let param = {
info: {
order_id: vm.$route.params.order_id,
fee: vm.sumMoney,
bank_account_id: e.bank_account_id,
pay_type: e.pay_type,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
if (res.result === 'S') {
vm.hlsPopup.hideLoading()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
checkPay () {
let vm = this
if (parseFloat(vm.sumMoney) === 0) {
hlsPopup.showLongCenter('您支付的金额为0元')
console.log('您支付的金额为0元')
} else if (parseFloat(vm.sumMoney) > 0) {
vm.pay()
}
},
pay () {
let vm = this
let url = process.env.basePath + 'merchant_payment'
let param = {
order_id: vm.$route.params.order_id,
}
hlsPopup.showLoading('请稍候')
setTimeout(() => {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (vm.money === 0) {
vm.downNum = true
if (res.result === 'S') {
if (res.return_code !== '0000') {
hlsPopup.showLongCenter(res.error_message)
} else {
window.open(res.paymentURL)
}
} else {
vm.changePage()
hlsPopup.showLongCenter(res.message)
}
}, 2000)
})
},
affirm () {
this.confirm = true
......@@ -346,6 +370,32 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.lists = res.lists
vm.nongBank = []
vm.lists.forEach((item, i) => {
if (item.bank_full_name.indexOf('农业') !== -1) {
vm.nongBank.push(vm.lists[i])
vm.flag = true
}
})
if (vm.flag) {
vm.select = 'nong0'
vm.checkType.bank_full_name = '农业银行'
vm.checkType.img = ny
vm.checkType.bank_account_num = vm.nongBank[0].bank_account_num
vm.sectctNong = true
vm.confirmToPay(vm.nongBank[0])
} else if (!vm.flag && vm.lists.length !== 0) {
vm.select = 'three0'
vm.checkType.bank_full_name = vm.newList[0].bank_full_name
vm.checkType.img = vm.selectImg(vm.newList[0])
vm.checkType.bank_account_num = vm.newList[0].bank_account_num
vm.sectctNong = true
vm.confirmToPay(vm.lists[0])
} else if (!vm.flag && vm.lists === 0) {
vm.sectctNong = false
hlsPopup.showLongCenter('请先绑定银行卡')
vm.checkType.bank_full_name = '(无)'
}
} else {
hlsPopup.showLongCenter(res.message)
}
......@@ -356,7 +406,7 @@ export default {
</script>
<style lang='less' >
#pay-entry {
.vue-better-scroll__wrapper{
.vue-better-scroll__wrapper {
padding: 0;
}
.trans-enter-active,
......@@ -379,8 +429,8 @@ export default {
.down {
height: 466px;
width: 100%;
position: relative;
top:18%;
position: relative;
top: 18%;
background: #fff;
border-radius: 12px 12px 0 0;
overflow: scroll;
......@@ -422,8 +472,8 @@ export default {
.down {
height: 466px;
width: 100%;
position: relative;
top:18%;
position: relative;
top: 18%;
background: #fff;
border-radius: 12px 12px 0 0;
overflow: scroll;
......@@ -453,7 +503,7 @@ export default {
//width: 350px;
//margin: 0 auto;
width: 100%;
padding: 0 4% 0 4%;
padding: 0 4% 0 4%;
background: #fff;
.hls-item {
padding-left: 12px;
......@@ -463,7 +513,7 @@ export default {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
div{
div {
display: flex;
justify-content: center;
align-items: center;
......@@ -485,7 +535,7 @@ export default {
}
.icon {
width: 30px;
/* display: block;
/* display: block;
float: left;
position: relative;*/
margin: 0 8px 0 3px;
......@@ -565,7 +615,7 @@ export default {
}
}
.push {
/* position: absolute;
/* position: absolute;
top: 10px;
margin-left: 10px;*/
width: 35px;
......
......@@ -212,18 +212,19 @@ export default {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.toPayEntry(vm.sumMoney)
vm.toPayEntry(res.order_id)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
toPayEntry (money) {
toPayEntry (e) {
this.$router.push({
name: 'PaymentPayEntry',
params: {
sumMoney: this.sumMoney,
money: this.money,
order_id: e,
},
})
},
......
......@@ -132,7 +132,7 @@ export default {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.toPayEntry(vm.money)
vm.toPayEntry(res.order_id)
} else {
hlsPopup.showLongCenter(res.message)
}
......@@ -157,11 +157,12 @@ export default {
}
})
},
toPayEntry () {
toPayEntry (e) {
this.$router.push({
name: 'PaymentPayEntry',
params: {
money: this.money,
order_id: e,
},
})
},
......
......@@ -22,7 +22,7 @@
v-for="(item,index) in nongBank"
:proportion="[7,1,1]"
:key="item.bank_account_num"
@click.native="isSelect(`nong${index}`);ischeck(item)"
@click.native="isSelect(`nong${index}`);ischeck(item);confirmToPay(item)"
>
<div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" >
......@@ -38,7 +38,7 @@
<img v-show="select !== `nong${index}`" src="@/assets/payment/unselect.png" alt >
</section>
</item>
<item :proportion="[7,1,1]" @click.native="isSelect('one');ischeck('one')">
<!-- <item :proportion="[7,1,1]" @click.native="isSelect('one');ischeck('one')">
<div slot="name">
<img src="@/assets/payment/alipay.png" alt class="icon1" > 支付宝
</div>
......@@ -55,12 +55,12 @@
<img v-show="select === 'two'" src="@/assets/payment/select.png" alt >
<img v-show="select !== 'two'" src="@/assets/payment/unselect.png" alt >
</section>
</item>
</item> -->
<item
v-for="(item,index) in newList"
:proportion="[7,1,1]"
:key="index"
@click.native="isSelect(`three${index}`);ischeck(item)"
@click.native="isSelect(`three${index}`);ischeck(item);confirmToPay(item)"
>
<div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" >
......@@ -110,7 +110,7 @@
</div>
</div>
<bottom-tab>
<tab-button class="footer" @click.native="pay">立即支付</tab-button>
<tab-button class="footer" @click.native="checkPay">立即支付</tab-button>
</bottom-tab>
</div>
</div>
......@@ -210,28 +210,11 @@ export default {
},
newList () {
let vm = this
vm.nongBank = []
vm.lists.forEach((item, i) => {
if (item.bank_full_name.indexOf('农业') !== -1) {
vm.nongBank.push(vm.lists[i])
vm.flag = true
}
})
let notNong = vm.lists.filter(i => {
return i.bank_full_name.indexOf('农业') === -1
})
if (vm.flag) {
vm.select = 'nong0'
vm.checkType.bank_full_name = '农业银行'
vm.checkType.img = ny
vm.checkType.bank_account_num = this.nongBank[0].bank_account_num
vm.sectctNong = true
} else {
vm.select = 'one'
vm.checkType.bank_full_name = '支付宝'
vm.checkType.img = zfb
vm.sectctNong = false
}
return notNong
},
},
......@@ -254,17 +237,54 @@ export default {
affirm () {
this.confirm = true
},
confirmToPay (e) {
let vm = this
let url = process.env.basePath + 'update_order_info'
let param = {
info: {
order_id: vm.$route.params.order_id,
fee: vm.sumMoney,
bank_account_id: e.bank_account_id,
pay_type: e.pay_type,
},
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
if (res.result === 'S') {
vm.hlsPopup.hideLoading()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
checkPay () {
let vm = this
if (parseFloat(vm.sumMoney) === 0) {
hlsPopup.showLongCenter('您支付的金额为0元')
console.log('您支付的金额为0元')
} else if (parseFloat(vm.sumMoney) > 0) {
vm.pay()
}
},
pay () {
let vm = this
let url = process.env.basePath + 'merchant_payment'
let param = {
order_id: vm.$route.params.order_id,
}
hlsPopup.showLoading('请稍候')
setTimeout(() => {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (vm.money === 0) {
vm.downNum = true
if (res.result === 'S') {
if (res.return_code !== '0000') {
hlsPopup.showLongCenter(res.error_message)
} else {
window.open(res.paymentURL)
}
} else {
vm.goSuccess()
hlsPopup.showLongCenter(res.message)
}
}, 2000)
})
},
ischeck (way) {
if (way === 'one') {
......@@ -342,6 +362,32 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.lists = res.lists
vm.nongBank = []
vm.lists.forEach((item, i) => {
if (item.bank_full_name.indexOf('农业') !== -1) {
vm.nongBank.push(vm.lists[i])
vm.flag = true
}
})
if (vm.flag) {
vm.select = 'nong0'
vm.checkType.bank_full_name = '农业银行'
vm.checkType.img = ny
vm.checkType.bank_account_num = vm.nongBank[0].bank_account_num
vm.sectctNong = true
vm.confirmToPay(vm.nongBank[0])
} else if (!vm.flag && vm.lists.length !== 0) {
vm.select = 'three0'
vm.checkType.bank_full_name = vm.newList[0].bank_full_name
vm.checkType.img = vm.selectImg(vm.newList[0])
vm.checkType.bank_account_num = vm.newList[0].bank_account_num
vm.sectctNong = true
vm.confirmToPay(vm.lists[0])
} else if (!vm.flag && vm.lists === 0) {
vm.sectctNong = false
hlsPopup.showLongCenter('请先绑定银行卡')
vm.checkType.bank_full_name = '(无)'
}
} else {
hlsPopup.showLongCenter(res.message)
}
......
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