diff --git a/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue b/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue index 0e59f9e7..b375eafd 100644 --- a/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue +++ b/resources/assets/vue/components/companies/sections/CustomerPaymentBillingSectionComponent.vue @@ -7,9 +7,9 @@
-
+
- +
Invoice No
@@ -23,9 +23,9 @@
Amount
-
- - - +
@@ -60,15 +54,12 @@
-
2 Invoice Selected
+
{{selectedInvoice.length}} Invoice Selected
-
-
-
x1
-
+
lorem ipsum
@@ -76,42 +67,6 @@
52x62x635 CM
-
-
-
x1
-
-
-
lorem ipsum
-
-
-
52x62x635 CM
-
-
-
-
-
-
-
-
Shipping Fee
-
-
-
RM 212.15
-
-
-
-
-
Serrvice Fee
-
-
-
RM 41.25
-
-
-
-
-
Discount
-
-
-
RM 0.00

@@ -125,6 +80,11 @@
+
+
+
Make Payments
+
+
@@ -136,13 +96,15 @@ company_module_id: { type: Number, required: true, - } + }, }, data(){ return { section: 'customerPaymentBillingSectionComponent', isLoading: true, - invoices: null + invoices: null, + selectedInvoice: [], + selectAllInvoice: false, } }, computed: { @@ -169,6 +131,22 @@ this.$store.dispatch('completeList', {'name': this.section, 'data': []}); this.isLoading = false; this.invoices = response.payload.data; + }, + makePayment(){ + var selectedId = this.selectedInvoice.map(s=>s.id); + console.log(selectedId); + + }, + updateList(packageList){ + this.selectedInvoice.includes(packageList) ? this.selectedInvoice.splice(this.selectedInvoice.indexOf(packageList), 1) : this.selectedInvoice.push(packageList); + this.selectedInvoice.length === this.invoices.length ? this.selectAllInvoice = true : this.selectAllInvoice = false; + }, + chooseAllInvoice(){ + this.selectAllInvoice = !this.selectAllInvoice; + this.selectedInvoice = []; + if (this.selectAllInvoice) { + this.selectedInvoice = this.invoices; + } } } } diff --git a/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue b/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue index 7259430a..590a78ca 100644 --- a/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue +++ b/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue @@ -4,110 +4,36 @@
-
+
-
05052021
+
{{ item.bill_no }}
-
Invoice Date Invoice Date
+
{{ item.created_at }}
Status
-
Amount
+
MYR {{ item.amount.toFixed(2) }}
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
Carrier Tracking Number
-
-
-
-
-
#1zbr06tw403742920
-
-
-
-
-
-
-
Due Date
-
-
-
-
-
11.04.2021
-
-
-
-
-
-
-
Outstanding
-
-
-
-
-
RM0.00
-
-
+
+
+ + +
-
-
-
-
-
- -
-
-
-
This package was delivered by
-
-
-
-
-
#1zbr06tw403742920
-
-
-
-
-
-
-
Date Paid
-
-
-
-
-
21.01.2021
-
-
-
-
-
- Invoice Detail -
+
+
@@ -120,10 +46,33 @@