Commit 8b50991d authored by 786817560's avatar 786817560

'合同签约'

parent 04fc9788
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-24 14:51:39 * @LastEditTime: 2019-10-24 18:59:49
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -34,15 +34,15 @@ ...@@ -34,15 +34,15 @@
</item> </item>
<item> <item>
<div slot="name" >设备总价</div> <div slot="name" >设备总价</div>
<section slot="content">{{ conditionInfo.equip_price | currency }}</section> <section slot="content">{{ conditionInfo.equip_price * conditionInfo.product_num | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >融资金额</div> <div slot="name" >融资金额</div>
<section slot="content">{{ Math.round(conditionInfo.finance_amount) | currency }}</section> <section slot="content">{{ Math.round(conditionInfo.finance_amount) * conditionInfo.product_num | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >首付款</div> <div slot="name" >首付款</div>
<section slot="content">{{ Math.round(conditionInfo.down_payment) | currency }}</section> <section slot="content">{{ Math.round(conditionInfo.down_payment) * conditionInfo.product_num | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >保证金比例</div> <div slot="name" >保证金比例</div>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<div slot="name" >保证金</div> <div slot="name" >保证金</div>
<section slot="content">{{ Math.round(conditionInfo.deposit) | currency }}</section> <section slot="content">{{ Math.round(conditionInfo.deposit) * conditionInfo.product_num | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >手续费比例</div> <div slot="name" >手续费比例</div>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</item> </item>
<item> <item>
<div slot="name" >手续费</div> <div slot="name" >手续费</div>
<section slot="content">{{ Math.round(conditionInfo.lease_charge) | currency }}</section> <section slot="content">{{ Math.round(conditionInfo.lease_charge) * conditionInfo.product_num | currency }}</section>
</item> </item>
<item> <item>
<div slot="name" >预计付款日</div> <div slot="name" >预计付款日</div>
...@@ -186,24 +186,21 @@ export default { ...@@ -186,24 +186,21 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'ContractSigning') {
next(vm => { next(vm => {
if (from.name === 'ContractSigning') {
vm.bank_flag = false
vm.project_id = vm.$route.params.project_id vm.project_id = vm.$route.params.project_id
vm.confirm_id = vm.$route.params.confirm_id vm.confirm_id = vm.$route.params.confirm_id
vm.confirm_status = vm.$route.params.confirm_status vm.confirm_status = vm.$route.params.confirm_status
vm.conditionQuery() vm.conditionQuery()
}) vm.bankCardQuery()
} else if (from.name === 'EntryInfo') {
vm.bankCardQuery()
} }
next() })
}, },
activated () { activated () {
this.bankCardQuery() // this.bankCardQuery()
// console.log('...........', this.$route.params.confirm_status)
// if (window.sessionStorage.getItem('add_status') === 'true') { // 根据add_status值改变entry_info_flag,传入银行卡录入页面,负责重置数据与否
// this.entry_info_flag = true
// } else {
// this.entry_info_flag = false
// }
}, },
methods: { methods: {
// 合同商务条件查询 // 合同商务条件查询
...@@ -259,16 +256,18 @@ export default { ...@@ -259,16 +256,18 @@ export default {
let param = { let param = {
master: { master: {
confirm_id: vm.confirm_id, confirm_id: vm.confirm_id,
con_confirm_status: vm.confirm_status, con_confirm_status: 'APPROVED',
}, },
} }
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
console.log('商务条件', res) console.log('保存结果', res)
// if (res.result === 'S') { if (res.result === 'S') {
// vm.conditionInfo = res.info vm.$router.push({
// } else { name: 'ContractSigning',
// hlsPopup.showLongCenter(res.message) })
// } } else {
hlsPopup.showLongCenter(res.message)
}
}) })
} else { } else {
this.isshow = true this.isshow = true
...@@ -286,7 +285,7 @@ export default { ...@@ -286,7 +285,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
console.log('bankcardinfo。。。。。。。。。。。。', res) console.log('bankcardinfo。。。。。。。。。。。。', res)
if (res.result === 'S') { if (res.result === 'S') {
if (!(JSON.stringify(res.info) === '{}')) { if ('info' in res && Object.keys(res.info).length !== 0) {
// vm.bank_lists = [res.info] // vm.bank_lists = [res.info]
// console.log(vm.bank_lists[0]) // console.log(vm.bank_lists[0])
vm.bank_flag = true vm.bank_flag = true
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-24 14:51:12 * @LastEditTime: 2019-10-24 18:52:15
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -101,12 +101,12 @@ export default { ...@@ -101,12 +101,12 @@ export default {
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'MyInfo') { // if (from.name === 'MyInfo') {
next(vm => { next(vm => {
vm.contractList() vm.contractList()
}) })
} // }
next() // next()
}, },
methods: { methods: {
contractList () { contractList () {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-24 14:52:02 * @LastEditTime: 2019-10-24 17:45:44
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<item> <item>
<div slot="name" >银行卡卡号</div> <div slot="name" >银行卡卡号</div>
<input <input
slot="content" v-model="bank_lists[0].bank_account_num" type="text" readonly placeholder="上传银行卡自动填充" slot="content" v-model="bank_lists[0].bank_account_num" type="text" placeholder="上传银行卡自动填充"
> >
</item> </item>
<item> <item>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</item> </item>
<item> <item>
<div slot="name" >银行名称</div> <div slot="name" >银行名称</div>
<input slot="content" v-model="bank_lists[0].bank_full_name" readonly type="text" placeholder="请输入银行名称"> <input slot="content" v-model="bank_lists[0].bank_full_name" type="text" placeholder="请输入银行名称">
</item> </item>
<item> <item>
<div slot="name" >支行名称</div> <div slot="name" >支行名称</div>
...@@ -236,11 +236,11 @@ export default { ...@@ -236,11 +236,11 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
console.log('bankcardinfo。。。。。。。。。。。。', res) console.log('bankcardinfo。。。。。。。。。。。。', res)
if (res.result === 'S') { if (res.result === 'S') {
if (!(JSON.stringify(res.info) === '{}')) { if ('info' in res) {
vm.bank_lists = [res.info] vm.bank_lists = [res.info]
// console.log(vm.bank_lists[0]) // console.log(vm.bank_lists[0])
} else { } else {
this.bank_lists = [ vm.bank_lists = [
{ {
bank_full_name: '', // 银行名称 bank_full_name: '', // 银行名称
bank_account_num: '', // 卡号 bank_account_num: '', // 卡号
......
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