From b9486e6e4fca765cb8fb1e666461ac473abd6784 Mon Sep 17 00:00:00 2001 From: Immanuel Onyeka Date: Thu, 10 Nov 2022 14:48:06 -0500 Subject: [PATCH] Setup estimates view --- components/app.vue | 23 +++++++++++++--- components/estimates.vue | 58 ++++++++++++++++++++++++++++++++++++++++ components/new.vue | 39 ++++++++++----------------- 3 files changed, 92 insertions(+), 28 deletions(-) create mode 100644 components/estimates.vue diff --git a/components/app.vue b/components/app.vue index 71a9165..24dd9ab 100644 --- a/components/app.vue +++ b/components/app.vue @@ -9,7 +9,8 @@ - + + @@ -19,6 +20,7 @@ import SideBar from "./sidebar.vue" import Spinner from "./spinner.vue" import Home from "./home.vue" import NewEstimate from "./new.vue" +import Estimates from "./estimates.vue" const user = { firstName: "test", @@ -27,6 +29,20 @@ const user = { status: 1, } +// The default fees of a new loan +const fees = [ + { name: 'Processing fee', type: 'Lender Fees', amount: 500 }, + { name: 'Underwriting fee', type: 'Lender Fees', amount: 500 }, + { name: 'Credit Report', type: 'Services Required by Lender', + amount: 52.50 }, + { name: 'Appraisal', type: 'Services Required by Lender', amount: 52.50 }, + { name: 'Title Services', type: 'Title Company', amount: 1000 }, + { name: 'Lender\'s Title Insurance', type: 'Title Company', amount: 1599 }, + { name: 'Owner\'s Title Insurance', type: 'Title Company', amount: 451.00 }, + { name: 'Recording Charges', type: 'Government', amount: 99.00 }, + { name: 'State Tax', type: 'Government', amount: 2411.00 }, +] + // Used to check the current section of the app generally without a regex match // each time. function active() { @@ -46,11 +62,12 @@ function active() { } export default { - components: { SideBar, Spinner, Home, NewEstimate }, + components: { SideBar, Spinner, Home, NewEstimate, Estimates }, computed: { active }, data() { return { - loading: false, user: user, hash: window.location.hash + loading: false, user: user, hash: window.location.hash, + fees: fees } }, created() { diff --git a/components/estimates.vue b/components/estimates.vue new file mode 100644 index 0000000..201e6d7 --- /dev/null +++ b/components/estimates.vue @@ -0,0 +1,58 @@ + + + diff --git a/components/new.vue b/components/new.vue index 37d8caf..3e3d018 100644 --- a/components/new.vue +++ b/components/new.vue @@ -164,11 +164,11 @@ type="" @input="(e) => newFee.amount = strip(e)"> @@ -203,20 +203,6 @@ selected="estimate.transaction == 1">