Commit 7a133a2d authored by 786817560's avatar 786817560

'提代码'

parent b6ca3923
<!--
* @Author: your name
* @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-11-20 17:01:18
* @LastEditTime: 2019-11-21 13:40:59
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
-->
......@@ -131,7 +131,6 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
console.log(res.lists)
vm.lists = res.lists
vm.submitLists = res.lists.filter(item => item.confirm_status === 'SUBMIT')
vm.approvedLists = res.lists.filter(item => item.confirm_status === 'APPROVED')
......
......@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit
* @Author: your name
* @Date: 2019-09-29 20:31:00
* @LastEditTime: 2019-11-21 10:48:15
* @LastEditTime: 2019-11-21 12:39:19
* @LastEditors: Please set LastEditors
-->
<template>
......@@ -21,7 +21,7 @@
</item>
<item>
<div slot="name" class="font-color">设备总价</div>
<input slot="content" v-model="equip_price" type="number" placeholder="请输入设备总价">
<CurrencyInput slot="content" :value="equip_price" @input="getVal" />
</item>
<item>
<div slot="name" class="font-color">融资金额</div>
......@@ -117,8 +117,12 @@
</template>
<script>
import CurrencyInput from '@/components/currencyInput'
export default {
name: 'FinancingDetails',
components: {
CurrencyInput,
},
data () {
return {
info: {},
......@@ -126,7 +130,7 @@ export default {
insurance_fee: '', // 保险押金
quotation_id: '', // 试算成功返回id
trial_flag: false, // 检测是否通过试算
equip_price: null, // 设备价格
equip_price: '', // 设备价格
periodLists: [], // 还款周期
product_num: '', // 产品数量
price_date_to: '请选择时间', // 预计还款日
......@@ -143,7 +147,7 @@ export default {
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'FinancingTrial') {
vm.equip_price = vm.$route.params.plan_price // 参考价
vm.equip_price = Number(vm.$route.params.plan_price) // 参考价
// if (vm.product_plan_id !== vm.$route.params.product_plan_id) {
// 重置产品id、试算返回id、试算状态、保险押金、gps费用、预计还款日
vm.product_plan_id = vm.$route.params.product_plan_id
......@@ -162,7 +166,10 @@ export default {
created () {},
methods:
{
// 还款计划
getVal (val) {
this.equip_price = val
},
// 还款计划
goRepay () {
if (this.trial_flag) {
this.$router.push({
......
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