|
|
@@ -50,10 +50,11 @@ ${{(estimate.price / 100).toLocaleString()}} |
|
|
|
<label>Credit: {{estimate.borrower.credit}}</label> |
|
|
|
<label>Income: {{(estimate.borrower.income/100).toLocaleString()}}</label> |
|
|
|
|
|
|
|
<div v-for="l in estimate.loans" class="details"> |
|
|
|
<div v-for="(l, i) in estimate.loans" class="details"> |
|
|
|
<h4>{{l.title}}</h4> |
|
|
|
<label>{{l.type.name}}</label> |
|
|
|
<label>{{l.id}}</label> |
|
|
|
<label>Total monthly: ${{format(estimate.results[i].totalMonthly)}}</label> |
|
|
|
<label>Cash to close: ${{format(estimate.results[i].cashToClose)}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<button @click="() => estimate = null">Cancel</button> |
|
|
@@ -67,6 +68,7 @@ ${{(estimate.price / 100).toLocaleString()}} |
|
|
|
<script setup> |
|
|
|
import { ref, computed, onMounted } from 'vue' |
|
|
|
import FeeDialog from "./fee-dialog.vue" |
|
|
|
import { format } from "../helpers.js" |
|
|
|
|
|
|
|
const props = defineProps(['user', 'fees', 'token']) |
|
|
|
let edit = ref(null) |
|
|
|