From c3d50a776b8e8e101e2e2b4451c0d4cea7a640b3 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Sun, 22 Jul 2018 15:54:18 +0800 Subject: [PATCH] fix user booking form --- resources/assets/js/pages/home.vue | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index 8f7c6ee7..8e2d5c0e 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -142,8 +142,8 @@ -
- +
+ @@ -188,7 +188,11 @@ Payment for (Order No.) : - {{ bookingConfirmTable.payment_order }} + {{ bookingConfirmTable.order_no }} + + + Payment for : + {{ bookingConfirmTable.payment_for }} Payment Method : @@ -354,7 +358,8 @@ export default { bank_name: '', bank_branch: '', account_num: '', - payment_for: 'Full Payment' + order_no: null, + payment_for: 'Full Payment' }, rules: { order_no: [{ @@ -522,16 +527,15 @@ export default { if (valid) { let newConfirmation = { amount: this.booking.amount, - term: this.term + term: this.term, + order_no: this.bookingForm.order_no, + payment_for: this.bookingForm.payment_for } axios.post('api/booking/calculation', newConfirmation) .then((response) => { this.loading = false console.log(response) this.bookingConfirmTable = response.data; - this.bookingConfirmTable.payment_for = 'Full Payment';//For future purpose - this.bookingConfirmTable.remark = '';//For future purpose - this.bookingConfirmTable.payment_order = '';//For future purpose this.dialogFormVisible = false this.dialogFormVisible1 = true })