@lancom/shared 0.0.146 → 0.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkout/cart/cart_entity/cart_entity_color_simple_products/cart-entity-color-simple-products.vue +2 -1
- package/components/checkout/cart/cart_entity/cart_entity_color_simple_products/cart_entity_color_simple_product/cart-entity-color-simple-product.vue +3 -0
- package/components/order/order_view/order-view.vue +11 -4
- package/package.json +1 -1
- package/plugins/vue-recaptcha.js +12 -0
- package/store/cart.js +1 -1
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
:key="simpleProduct._id"
|
|
47
47
|
:simple-product="simpleProduct"
|
|
48
48
|
:entity="entity"
|
|
49
|
-
:display-unit-price="displayUnitPrice"
|
|
49
|
+
:display-unit-price="displayUnitPrice"
|
|
50
|
+
@change="onChangeQty" />
|
|
50
51
|
</div>
|
|
51
52
|
<div class="CartEntityColorSimpleProducts__totals">
|
|
52
53
|
<div class="CartEntityColorSimpleProducts__total">
|
|
@@ -119,6 +119,7 @@ export default {
|
|
|
119
119
|
if (this.$refs.input) {
|
|
120
120
|
this.$refs.input.blur();
|
|
121
121
|
}
|
|
122
|
+
this.$emit('change');
|
|
122
123
|
},
|
|
123
124
|
onFocus() {
|
|
124
125
|
this.defaultValue = '';
|
|
@@ -135,6 +136,7 @@ export default {
|
|
|
135
136
|
amount: this.formatAmount(this.model + 1),
|
|
136
137
|
shop: this.shop
|
|
137
138
|
});
|
|
139
|
+
this.$emit('change');
|
|
138
140
|
},
|
|
139
141
|
decrease() {
|
|
140
142
|
this.setSimpleProductAmount({
|
|
@@ -142,6 +144,7 @@ export default {
|
|
|
142
144
|
amount: this.formatAmount(this.model - 1),
|
|
143
145
|
shop: this.shop
|
|
144
146
|
});
|
|
147
|
+
this.$emit('change');
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
150
|
};
|
|
@@ -16,9 +16,16 @@
|
|
|
16
16
|
ABN: {{ shopContacts.abn }}
|
|
17
17
|
</h4>
|
|
18
18
|
</div>
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
<div>
|
|
20
|
+
<h1 class="text-secondary lc_h1">
|
|
21
|
+
Tax invoice
|
|
22
|
+
</h1>
|
|
23
|
+
<h5
|
|
24
|
+
v-if="order.purchaseOrderNumber"
|
|
25
|
+
class="text-secondary lc_h5">
|
|
26
|
+
PO: {{ order.purchaseOrderNumber }}
|
|
27
|
+
</h5>
|
|
28
|
+
</div>
|
|
22
29
|
</div>
|
|
23
30
|
<div class="OrderView__info">
|
|
24
31
|
<div v-if="shopContacts">
|
|
@@ -136,7 +143,7 @@
|
|
|
136
143
|
Shipping Total: <b>{{ model.shippingTotal | price }}</b>
|
|
137
144
|
</div>
|
|
138
145
|
<div class="lc_regular16">
|
|
139
|
-
Total ex GST: <b>{{ model.total | price }}</b>
|
|
146
|
+
Total ex GST: <b>{{ (model.total + couponTotal) | price }}</b>
|
|
140
147
|
</div>
|
|
141
148
|
<div class="lc_regular16">
|
|
142
149
|
GST: <b>{{ model.totalGST - model.total | price }}</b>
|
package/package.json
CHANGED
package/plugins/vue-recaptcha.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
|
|
3
|
+
let interval = null;
|
|
4
|
+
|
|
3
5
|
export default () => {
|
|
4
6
|
Vue.mixin({
|
|
5
7
|
methods: {
|
|
@@ -9,7 +11,17 @@ export default () => {
|
|
|
9
11
|
},
|
|
10
12
|
async preloadReCaptcha() {
|
|
11
13
|
if (!this.$recaptcha) {
|
|
14
|
+
clearInterval(interval);
|
|
12
15
|
await this.loadReCaptcha();
|
|
16
|
+
await new Promise((resolve, reject) => {
|
|
17
|
+
interval = setInterval(() => {
|
|
18
|
+
console.log('check recaptcha...');
|
|
19
|
+
if (this.$recaptcha) {
|
|
20
|
+
clearInterval(interval);
|
|
21
|
+
resolve()
|
|
22
|
+
}
|
|
23
|
+
}, 100);
|
|
24
|
+
});
|
|
13
25
|
}
|
|
14
26
|
},
|
|
15
27
|
async loadReCaptcha() {
|
package/store/cart.js
CHANGED
|
@@ -49,7 +49,7 @@ export const getters = {
|
|
|
49
49
|
suburb: ({ suburb }) => suburb,
|
|
50
50
|
cartPricing: ({ cartPricing }) => cartPricing,
|
|
51
51
|
cartProductsPricing: ({ cartPricing }) => (cartPricing && cartPricing.products) || {},
|
|
52
|
-
isEmpty: (state, {
|
|
52
|
+
isEmpty: (state, { entities }) => (entities || []).length === 0,
|
|
53
53
|
quantities: ({ entities }) => ({
|
|
54
54
|
products: getProductsQuantities(entities),
|
|
55
55
|
prints: getPrintsQuantities(entities)
|