@lancom/shared 0.0.199 → 0.0.201
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/assets/js/api/admin.js +2 -2
- package/assets/js/api/index.js +11 -8
- package/assets/js/utils/filters.js +4 -6
- package/components/checkout/cart/cart_entities_group/cart-entities-group.vue +3 -3
- package/components/checkout/cart/cart_entities_group/cart_entities_group_prints/cart_entities_group_print/cart-entities-group-print.vue +3 -3
- package/components/checkout/cart/cart_entities_group_table/cart_entities_group_tr/cart-entities-group-tr.vue +3 -3
- package/components/checkout/cart/cart_entity/cart-entity.vue +2 -2
- package/components/checkout/cart/cart_entity/cart_entity_color_simple_products/cart-entity-color-simple-products.vue +1 -1
- package/components/checkout/cart/cart_entity/cart_entity_color_simple_products/cart_entity_color_simple_product/cart-entity-color-simple-product.vue +1 -1
- package/components/checkout/cart/cart_entity/cart_entity_prints/cart_entity_print/cart-entity-print.vue +3 -3
- package/components/checkout/cart/cart_shipments_pricing/cart-shipments-pricing.vue +2 -2
- package/components/checkout/order/order-shipping-method/order-shipping-method.vue +1 -1
- package/components/common/coupon_select/coupon-select.vue +3 -3
- package/components/common/price.vue +1 -1
- package/components/common/pricing_discounts_table/pricing-discounts-table.vue +2 -2
- package/components/common/products_total_pricing/products-total-pricing.vue +6 -6
- package/components/common/single-item-price.vue +1 -1
- package/components/design/approve_design_header/approve-design-header.vue +1 -1
- package/components/editor/editor_pricing/editor-pricing.vue +5 -5
- package/components/editor/editor_pricing/editor_pricing_details/editor_pricing_details_prints/editor-pricing-details-prints.vue +5 -5
- package/components/editor/editor_pricing/editor_pricing_details/editor_pricing_details_products/editor-pricing-details-products.vue +3 -3
- package/components/editor/editor_print_area_options/editor_print_area_option/editor-print-area-option.vue +1 -1
- package/components/editor/editor_product_details/editor-product-details.vue +3 -2
- package/components/modals/order_modal/order-modal.vue +3 -1
- package/components/order/order_entity/order-entity.vue +1 -1
- package/components/order/order_price/order-price.vue +7 -7
- package/components/order/order_prints_groups/order-prints-groups.vue +4 -4
- package/components/order/order_products_groups/order-products-groups.vue +8 -8
- package/components/order/order_products_groups/order_products_group/order-products-group.vue +4 -4
- package/components/order/order_refund_view/order-refund-view.vue +3 -3
- package/components/order/order_setup_groups/order-setup-groups.vue +5 -5
- package/components/order/order_sku_groups/order-sku-groups.vue +4 -4
- package/components/order/order_view/order-view.vue +9 -8
- package/components/order/order_view/order_product_color_simple_products/order-product-color-simple-products.mixin.js +4 -0
- package/components/order/order_view/order_product_color_simple_products/order-product-color-simple-products.vue +1 -1
- package/components/order/order_view/order_product_prints/order-product-prints.vue +5 -0
- package/components/order/order_view/order_product_prints/order_product_print/order-product-print.vue +7 -3
- package/components/order/order_view/order_view_product/order-view-product.vue +7 -1
- package/components/pricing/pricing_digital_printing/pricing-digital-printing.vue +6 -6
- package/components/pricing/pricing_example/pricing-example.vue +6 -6
- package/components/pricing/pricing_products_calculator/pricing_product_calculator/pricing-product-calculator.vue +2 -2
- package/components/pricing/pricing_screen_printing/pricing-screen-printing.vue +8 -8
- package/components/product/product_price_range/product-price-range.vue +4 -4
- package/components/product/product_prints_price_info/product_print_price_info/product_print_price_info_item/product-print-price-info-item.vue +2 -2
- package/components/products/product_list_product/product-list-product.vue +2 -2
- package/components/quotes/quote_view/quote_option_view/quote-option-view.vue +6 -6
- package/components/quotes/quote_view/quote_product_color_simple_products/quote-product-color-simple-products.vue +2 -2
- package/components/quotes/quote_view/quote_product_prints/quote_product_print/quote-product-print.vue +3 -3
- package/components/quotes/quote_view/quote_view_product/quote-view-product.vue +1 -1
- package/nuxt.config.js +11 -1
- package/package.json +1 -1
- package/pages/order/_token/index.vue +45 -0
- package/pages/order/_token/invoice/_invoice.vue +57 -0
- package/pages/order/_token/payment/index.vue +43 -0
- package/pages/order/_token/payment/invoice/_invoice.vue +53 -0
- package/pages/order/_token/refund/_refund.vue +50 -0
- package/plugins/global-components.js +7 -0
- package/routes/index.js +28 -0
- package/store/cart.js +1 -0
- package/store/index.js +6 -2
- package/store/product.js +6 -4
- package/components/common/logo/logo.scss +0 -16
- package/components/common/logo/logo.vue +0 -30
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
'OrderRefundView__totals--paid': isPaid
|
|
89
89
|
}">
|
|
90
90
|
<div class="lc_regular16">
|
|
91
|
-
Total ex GST: <b>{{ refund.total | price }}</b>
|
|
91
|
+
Total ex GST: <b>{{ refund.total | price(currency) }}</b>
|
|
92
92
|
</div>
|
|
93
93
|
<div class="lc_regular16">
|
|
94
|
-
GST: <b>{{ refund.totalGST - refund.total | price }}</b>
|
|
94
|
+
GST: <b>{{ refund.totalGST - refund.total | price(currency) }}</b>
|
|
95
95
|
</div>
|
|
96
96
|
<div class="lc_regular16">
|
|
97
|
-
Total inc GST: <b>{{ refund.totalGST | price }}</b>
|
|
97
|
+
Total inc GST: <b>{{ refund.totalGST | price(currency) }}</b>
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
Setup {{ groupSize(group) | print }} - Promo (Free)
|
|
27
27
|
</td>
|
|
28
28
|
<td>{{ group.amount }}</td>
|
|
29
|
-
<td>{{ 0 | price }}</td>
|
|
30
|
-
<td>{{ 0 | price }}</td>
|
|
31
|
-
<td>{{ 0 | price }}</td>
|
|
29
|
+
<td>{{ 0 | price(currency) }}</td>
|
|
30
|
+
<td>{{ 0 | price(currency) }}</td>
|
|
31
|
+
<td>{{ 0 | price(currency) }}</td>
|
|
32
32
|
</tr>
|
|
33
33
|
<tr>
|
|
34
34
|
<td>Total</td>
|
|
35
35
|
<td colspan="2"></td>
|
|
36
36
|
<td>{{ total.amount }}</td>
|
|
37
37
|
<td></td>
|
|
38
|
-
<td>{{ 0 | price }}</td>
|
|
39
|
-
<td>{{ 0 | price }}</td>
|
|
38
|
+
<td>{{ 0 | price(currency) }}</td>
|
|
39
|
+
<td>{{ 0 | price(currency) }}</td>
|
|
40
40
|
</tr>
|
|
41
41
|
</tbody>
|
|
42
42
|
</table>
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
<td>{{ group.product.color.name }}</td>
|
|
29
29
|
<td>{{ group.product.size.name }}</td>
|
|
30
30
|
<td>{{ group.amount }}</td>
|
|
31
|
-
<td>{{ (group.totalPriceWithoutTax / group.amount) | price }}</td>
|
|
32
|
-
<td>{{ group.totalPriceWithoutTax | price }}</td>
|
|
31
|
+
<td>{{ (group.totalPriceWithoutTax / group.amount) | price(currency) }}</td>
|
|
32
|
+
<td>{{ group.totalPriceWithoutTax | price(currency) }}</td>
|
|
33
33
|
<td v-if="hasCopy">
|
|
34
34
|
<i
|
|
35
35
|
class="icon-copy"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<td colspan="3"></td>
|
|
42
42
|
<td>{{ total.amount }}</td>
|
|
43
43
|
<td></td>
|
|
44
|
-
<td>{{ total.price | price }}</td>
|
|
44
|
+
<td>{{ total.price | price(currency) }}</td>
|
|
45
45
|
<td v-if="hasCopy">
|
|
46
46
|
<i
|
|
47
47
|
class="icon-copy"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<td colspan="3"></td>
|
|
54
54
|
<td>{{ total.amount }}</td>
|
|
55
55
|
<td></td>
|
|
56
|
-
<td>{{ total.priceWithGST | price }}</td>
|
|
56
|
+
<td>{{ total.priceWithGST | price(currency) }}</td>
|
|
57
57
|
<td v-if="hasCopy">
|
|
58
58
|
<i
|
|
59
59
|
class="icon-copy"
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
<order-view-product
|
|
125
125
|
v-for="product of model.products"
|
|
126
126
|
:key="product._id"
|
|
127
|
+
:order="order"
|
|
127
128
|
:product="product"
|
|
128
129
|
:responsive="responsive"
|
|
129
130
|
class="OrderView__product" />
|
|
@@ -134,30 +135,30 @@
|
|
|
134
135
|
'OrderView__totals--paid': isPaid
|
|
135
136
|
}">
|
|
136
137
|
<div class="lc_regular16">
|
|
137
|
-
Products Total: <b>{{ model.productsTotal | price }}</b>
|
|
138
|
+
Products Total: <b>{{ model.productsTotal | price(order.currency) }}</b>
|
|
138
139
|
</div>
|
|
139
140
|
<div class="lc_regular16">
|
|
140
|
-
Prints Total: <b>{{ model.printsTotal | price }}</b>
|
|
141
|
+
Prints Total: <b>{{ model.printsTotal | price(order.currency) }}</b>
|
|
141
142
|
</div>
|
|
142
143
|
<div class="lc_regular16">
|
|
143
|
-
Shipping Total: <b>{{ model.shippingTotal | price }}</b>
|
|
144
|
+
Shipping Total: <b>{{ model.shippingTotal | price(order.currency) }}</b>
|
|
144
145
|
</div>
|
|
145
146
|
<div class="lc_regular16">
|
|
146
|
-
Total ex GST: <b>{{ (model.total + couponTotal) | price }}</b>
|
|
147
|
+
Total ex GST: <b>{{ (model.total + couponTotal) | price(order.currency) }}</b>
|
|
147
148
|
</div>
|
|
148
149
|
<div class="lc_regular16">
|
|
149
|
-
GST: <b>{{ model.totalGST - model.total | price }}</b>
|
|
150
|
+
GST: <b>{{ model.totalGST - model.total | price(order.currency) }}</b>
|
|
150
151
|
</div>
|
|
151
152
|
<div
|
|
152
153
|
v-if="!invoice && order.couponCode"
|
|
153
154
|
class="lc_regular16">
|
|
154
|
-
Coupon: <b>{{ couponTotal | price }}</b>
|
|
155
|
+
Coupon: <b>{{ couponTotal | price(order.currency) }}</b>
|
|
155
156
|
</div>
|
|
156
157
|
<div class="lc_regular16">
|
|
157
|
-
Total inc GST: <b>{{ model.totalGST | price }}</b>
|
|
158
|
+
Total inc GST: <b>{{ model.totalGST | price(order.currency) }}</b>
|
|
158
159
|
</div>
|
|
159
160
|
<div class="lc_regular16">
|
|
160
|
-
{{ isPaid ? 'Paid' : 'Pending Payment' }}: <b>{{ model.totalGST | price }}</b>
|
|
161
|
+
{{ isPaid ? 'Paid' : 'Pending Payment' }}: <b>{{ model.totalGST | price(order.currency) }}</b>
|
|
161
162
|
</div>
|
|
162
163
|
</div>
|
|
163
164
|
</div>
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
<order-product-print
|
|
36
36
|
v-for="(print, index) in entity.prints"
|
|
37
37
|
:key="`${entity.guid}_${index}`"
|
|
38
|
+
:order="order"
|
|
38
39
|
:entity="entity"
|
|
39
40
|
:print="print"
|
|
40
41
|
:responsive="responsive" />
|
|
@@ -52,6 +53,10 @@ export default {
|
|
|
52
53
|
OrderProductPrint
|
|
53
54
|
},
|
|
54
55
|
props: {
|
|
56
|
+
order: {
|
|
57
|
+
type: Object,
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
55
60
|
entity: {
|
|
56
61
|
type: Object,
|
|
57
62
|
required: true
|
package/components/order/order_view/order_product_prints/order_product_print/order-product-print.vue
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</td>
|
|
16
16
|
<td class="lc_body-small">
|
|
17
17
|
<span :class="responsive ? 'hidden-md-and-up' : 'hidden'">Setup cost</span>
|
|
18
|
-
{{ setupCost | price }}
|
|
18
|
+
{{ setupCost | price(order.currency) }}
|
|
19
19
|
</td>
|
|
20
20
|
<td class="lc_body-small">
|
|
21
21
|
<span :class="responsive ? 'hidden-md-and-up' : 'hidden'">QTY</span>
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
</td>
|
|
24
24
|
<td class="lc_body-small">
|
|
25
25
|
<span :class="responsive ? 'hidden-md-and-up' : 'hidden'">Price</span>
|
|
26
|
-
{{ printCost | price }}
|
|
26
|
+
{{ printCost | price(order.currency) }}
|
|
27
27
|
</td>
|
|
28
28
|
<td class="lc_body-small">
|
|
29
29
|
<span :class="responsive ? 'hidden-md-and-up' : 'hidden'">Total</span>
|
|
30
30
|
<strong>
|
|
31
|
-
{{ total | price }}
|
|
31
|
+
{{ total | price(order.currency) }}
|
|
32
32
|
</strong>
|
|
33
33
|
</td>
|
|
34
34
|
</tr>
|
|
@@ -44,6 +44,10 @@ export default {
|
|
|
44
44
|
price
|
|
45
45
|
},
|
|
46
46
|
props: {
|
|
47
|
+
order: {
|
|
48
|
+
type: Object,
|
|
49
|
+
required: true
|
|
50
|
+
},
|
|
47
51
|
entity: {
|
|
48
52
|
type: Object,
|
|
49
53
|
required: true
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
<order-product-color-simple-products
|
|
31
31
|
v-for="[groupKey, group] in groupedProducts"
|
|
32
32
|
:key="groupKey"
|
|
33
|
+
:order="order"
|
|
33
34
|
:entity="product"
|
|
34
35
|
:group="group"
|
|
35
36
|
:default-preview="groupedProducts.size === 1"
|
|
@@ -39,11 +40,12 @@
|
|
|
39
40
|
v-if="hasPrints"
|
|
40
41
|
class="OrderViewProduct__decorations">
|
|
41
42
|
<order-product-prints
|
|
43
|
+
:order="order"
|
|
42
44
|
:entity="product"
|
|
43
45
|
:responsive="responsive" />
|
|
44
46
|
</div>
|
|
45
47
|
<div class="OrderViewProduct__subtotal lc_title">
|
|
46
|
-
Subtotal: {{ totalPrice | price }}
|
|
48
|
+
Subtotal: {{ totalPrice | price(order.currency) }}
|
|
47
49
|
</div>
|
|
48
50
|
</div>
|
|
49
51
|
</div>
|
|
@@ -70,6 +72,10 @@ export default {
|
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
74
|
props: {
|
|
75
|
+
order: {
|
|
76
|
+
type: Object,
|
|
77
|
+
required: true
|
|
78
|
+
},
|
|
73
79
|
product: {
|
|
74
80
|
type: Object,
|
|
75
81
|
required: true
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
Tees:
|
|
156
156
|
</div>
|
|
157
157
|
<div class="PricingMainSection__section-content-value">
|
|
158
|
-
{{ productPricing.amount }} x {{ productPricing.products.products.price | price }} = {{ productPricing.products.products.totalPrice | price }}
|
|
158
|
+
{{ productPricing.amount }} x {{ productPricing.products.products.price | price(currency) }} = {{ productPricing.products.products.totalPrice | price(currency) }}
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
161
|
<div class="form-row PricingMainSection__section-content-row">
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
Front print:
|
|
164
164
|
</div>
|
|
165
165
|
<div class="PricingMainSection__section-content-value">
|
|
166
|
-
{{ productPricing.amount }} x {{ printsPricing.front.price | price }} = {{ printsPricing.front.totalPrice | price }}
|
|
166
|
+
{{ productPricing.amount }} x {{ printsPricing.front.price | price(currency) }} = {{ printsPricing.front.totalPrice | price(currency) }}
|
|
167
167
|
</div>
|
|
168
168
|
</div>
|
|
169
169
|
<div class="form-row PricingMainSection__section-content-row">
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
Back print:
|
|
172
172
|
</div>
|
|
173
173
|
<div class="PricingMainSection__section-content-value">
|
|
174
|
-
{{ productPricing.amount }} x {{ printsPricing.back.price | price }} = {{ printsPricing.back.totalPrice | price }}
|
|
174
|
+
{{ productPricing.amount }} x {{ printsPricing.back.price | price(currency) }} = {{ printsPricing.back.totalPrice | price(currency) }}
|
|
175
175
|
</div>
|
|
176
176
|
</div>
|
|
177
177
|
<div
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
Delivery:
|
|
182
182
|
</div>
|
|
183
183
|
<div class="PricingMainSection__section-content-value">
|
|
184
|
-
{{ productPricing.shipping.totalPrice | price }}
|
|
184
|
+
{{ productPricing.shipping.totalPrice | price(currency) }}
|
|
185
185
|
</div>
|
|
186
186
|
</div>
|
|
187
187
|
<div
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
Total cost:
|
|
193
193
|
</span>
|
|
194
194
|
<span class="PricingMainSection__total-cost-value">
|
|
195
|
-
{{ productPricing.totalPrice | price }}
|
|
195
|
+
{{ productPricing.totalPrice | price(currency) }}
|
|
196
196
|
</span>
|
|
197
197
|
</div>
|
|
198
198
|
<btn
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
Inclusive of GST:
|
|
209
209
|
</span>
|
|
210
210
|
<span class="PricingMainSection__section-content-value">
|
|
211
|
-
{{ productPricing.tax.totalPrice | price }}
|
|
211
|
+
{{ productPricing.tax.totalPrice | price(currency) }}
|
|
212
212
|
</span>
|
|
213
213
|
</div>
|
|
214
214
|
<div
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
Tees [AS Colour Staple Tee]:
|
|
56
56
|
</td>
|
|
57
57
|
<td class="lc_regular13 lc_bold">
|
|
58
|
-
{{ productPricing.amount }} x {{ productPricing.products.products.price | price }} = {{ productPricing.products.products.totalPrice | price }}
|
|
58
|
+
{{ productPricing.amount }} x {{ productPricing.products.products.price | price(currency) }} = {{ productPricing.products.products.totalPrice | price(currency) }}
|
|
59
59
|
</td>
|
|
60
60
|
<td :rowspan="1 + printsPricing.length">
|
|
61
61
|
Total cost:
|
|
62
62
|
<div class="PricingExample__example-total-price">
|
|
63
|
-
{{ productPricing.totalPrice | price }}
|
|
63
|
+
{{ productPricing.totalPrice | price(currency) }}
|
|
64
64
|
</div>
|
|
65
65
|
<div class="PricingExample__example-tax">
|
|
66
|
-
Inclusive of GST: {{ productPricing.tax.totalPrice | price }}
|
|
66
|
+
Inclusive of GST: {{ productPricing.tax.totalPrice | price(currency) }}
|
|
67
67
|
</div>
|
|
68
68
|
<div class="mt-10">
|
|
69
69
|
+ Delivery
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
{{ print.printArea.name }} [{{ print.printSize.name }}]:
|
|
78
78
|
</td>
|
|
79
79
|
<td class="lc_regular13 lc_bold">
|
|
80
|
-
{{ productPricing.amount }} x {{ print.price | price }}
|
|
80
|
+
{{ productPricing.amount }} x {{ print.price | price(currency) }}
|
|
81
81
|
<span v-if="print.setupPrice > 0">
|
|
82
|
-
+ {{ print.setupPrice| price }}
|
|
82
|
+
+ {{ print.setupPrice| price(currency) }}
|
|
83
83
|
</span>
|
|
84
|
-
= {{ print.totalPrice | price }}
|
|
84
|
+
= {{ print.totalPrice | price(currency) }}
|
|
85
85
|
</td>
|
|
86
86
|
</tr>
|
|
87
87
|
</tbody>
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
115
|
<div class="PricingProductCalculator__cost">
|
|
116
|
-
Cost Per Unit: <b>{{ printTypePricing.pricing.products.price | price }}</b>
|
|
116
|
+
Cost Per Unit: <b>{{ printTypePricing.pricing.products.price | price(currency) }}</b>
|
|
117
117
|
</div>
|
|
118
118
|
<div>
|
|
119
119
|
<v-popover
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
Repeat Print same cost
|
|
144
144
|
</div>
|
|
145
145
|
<div v-else>
|
|
146
|
-
Repeat Print: {{ (printTypePricing.pricing.products.price - printTypePricing.pricing.products.prints.totalSetupPrice) | price }}
|
|
146
|
+
Repeat Print: {{ (printTypePricing.pricing.products.price - printTypePricing.pricing.products.prints.totalSetupPrice) | price(currency) }}
|
|
147
147
|
</div>
|
|
148
148
|
</div>
|
|
149
149
|
</div>
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
Tees:
|
|
140
140
|
</div>
|
|
141
141
|
<div class="PricingScreenPrintSection__section-content-value">
|
|
142
|
-
{{ productPricing.amount }} x {{ productPricing.products.products.price | price }} = {{ productPricing.products.products.totalPrice | price }}
|
|
142
|
+
{{ productPricing.amount }} x {{ productPricing.products.products.price | price(currency) }} = {{ productPricing.products.products.totalPrice | price(currency) }}
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
145
145
|
<div class="form-row PricingScreenPrintSection__section-content-row">
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
Front setup:
|
|
148
148
|
</div>
|
|
149
149
|
<div class="PricingScreenPrintSection__section-content-value">
|
|
150
|
-
{{ printsPricing.front.colors }} x {{ printsPricing.front.setupPrice | price }} = {{ printsPricing.front.totalSetupPrice | price }}
|
|
150
|
+
{{ printsPricing.front.colors }} x {{ printsPricing.front.setupPrice | price(currency) }} = {{ printsPricing.front.totalSetupPrice | price(currency) }}
|
|
151
151
|
</div>
|
|
152
152
|
</div>
|
|
153
153
|
<div class="form-row PricingScreenPrintSection__section-content-row">
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
Front print:
|
|
156
156
|
</div>
|
|
157
157
|
<div class="PricingScreenPrintSection__section-content-value">
|
|
158
|
-
{{ productPricing.amount }} x {{ printsPricing.front.price | price }} = {{ printsPricing.front.totalPrice | price }}
|
|
158
|
+
{{ productPricing.amount }} x {{ printsPricing.front.price | price(currency) }} = {{ printsPricing.front.totalPrice | price(currency) }}
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
161
|
<div class="form-row PricingScreenPrintSection__section-content-row">
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
Back setup:
|
|
164
164
|
</div>
|
|
165
165
|
<div class="PricingScreenPrintSection__section-content-value">
|
|
166
|
-
{{ printsPricing.back.colors }} x {{ printsPricing.back.setupPrice | price }} = {{ printsPricing.back.totalSetupPrice | price }}
|
|
166
|
+
{{ printsPricing.back.colors }} x {{ printsPricing.back.setupPrice | price(currency) }} = {{ printsPricing.back.totalSetupPrice | price(currency) }}
|
|
167
167
|
</div>
|
|
168
168
|
</div>
|
|
169
169
|
<div class="form-row PricingScreenPrintSection__section-content-row">
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
Back print:
|
|
172
172
|
</div>
|
|
173
173
|
<div class="PricingScreenPrintSection__section-content-value">
|
|
174
|
-
{{ productPricing.amount }} x {{ printsPricing.back.price | price }} = {{ printsPricing.back.totalPrice | price }}
|
|
174
|
+
{{ productPricing.amount }} x {{ printsPricing.back.price | price(currency) }} = {{ printsPricing.back.totalPrice | price(currency) }}
|
|
175
175
|
</div>
|
|
176
176
|
</div>
|
|
177
177
|
<div
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
Delivery:
|
|
182
182
|
</div>
|
|
183
183
|
<div class="PricingScreenPrintSection__section-content-value">
|
|
184
|
-
{{ productPricing.shipping.totalPrice | price }}
|
|
184
|
+
{{ productPricing.shipping.totalPrice | price(currency) }}
|
|
185
185
|
</div>
|
|
186
186
|
</div>
|
|
187
187
|
<div
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
Total cost:
|
|
193
193
|
</span>
|
|
194
194
|
<span class="PricingScreenPrintSection__total-cost-value">
|
|
195
|
-
{{ productPricing.totalPrice | price }}
|
|
195
|
+
{{ productPricing.totalPrice | price(currency) }}
|
|
196
196
|
</span>
|
|
197
197
|
</div>
|
|
198
198
|
<btn
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
Inclusive of GST:
|
|
209
209
|
</span>
|
|
210
210
|
<span class="PricingScreenPrintSection__section-content-value">
|
|
211
|
-
{{ productPricing.tax.totalPrice | price }}
|
|
211
|
+
{{ productPricing.tax.totalPrice | price(currency) }}
|
|
212
212
|
</span>
|
|
213
213
|
</div>
|
|
214
214
|
<div
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div
|
|
8
8
|
v-if="withGst"
|
|
9
9
|
class="lc_h4">
|
|
10
|
-
{{ product[minPriceAttr] | tax(gstTax) | price }}
|
|
10
|
+
{{ product[minPriceAttr] | tax(gstTax) | price(currency) }}
|
|
11
11
|
<span
|
|
12
12
|
v-if="visiblePriceInfo"
|
|
13
13
|
class="lc_regular11 lc_bold">inc. GST</span>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div
|
|
16
16
|
v-if="withoutGst"
|
|
17
17
|
:class="withGst ? 'lc_regular11' : 'lc_h4'">
|
|
18
|
-
{{ prePriceText }} {{ product[minPriceAttr] | price }} + GST
|
|
18
|
+
{{ prePriceText }} {{ product[minPriceAttr] | price(currency) }} + GST
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
<div
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<div
|
|
25
25
|
v-if="withGst"
|
|
26
26
|
class="lc_h4">
|
|
27
|
-
{{ product[minPriceAttr] | tax(gstTax) | price }} {{ rangeDivider }} {{ product[maxPriceAttr] | tax(gstTax) | price }}
|
|
27
|
+
{{ product[minPriceAttr] | tax(gstTax) | price(currency) }} {{ rangeDivider }} {{ product[maxPriceAttr] | tax(gstTax) | price(currency) }}
|
|
28
28
|
<span
|
|
29
29
|
v-if="visiblePriceInfo"
|
|
30
30
|
class="lc_regular11 lc_bold"> inc. GST</span>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div
|
|
33
33
|
v-if="withoutGst"
|
|
34
34
|
:class="withGst ? 'lc_regular11' : 'lc_h4'">
|
|
35
|
-
{{ prePriceText }} {{ product[minPriceAttr] | price }} {{ rangeDivider }} {{ product[maxPriceAttr] | price }} + GST
|
|
35
|
+
{{ prePriceText }} {{ product[minPriceAttr] | price(currency) }} {{ rangeDivider }} {{ product[maxPriceAttr] | price(currency) }} + GST
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div
|
|
13
13
|
v-if="setupCost > 0"
|
|
14
14
|
class="mt-10 lc_h4">
|
|
15
|
-
Setup Cost: {{ setupCost | price }}
|
|
15
|
+
Setup Cost: {{ setupCost | price(currency) }}
|
|
16
16
|
</div>
|
|
17
17
|
<div
|
|
18
18
|
v-if="print.freeSetupOver > 0"
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
return this.print?.printAreas || [];
|
|
60
60
|
},
|
|
61
61
|
setupCost() {
|
|
62
|
-
const setupCost = print?.setupCost || 0;
|
|
62
|
+
const setupCost = this.print?.setupCost || 0;
|
|
63
63
|
return this.withGst ? tax(setupCost, this.gstTax) : setupCost;
|
|
64
64
|
},
|
|
65
65
|
pricing() {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
<div
|
|
61
61
|
v-if="product.minPrice === product.maxPrice"
|
|
62
62
|
class="ProductListProduct__info-item lc_h4">
|
|
63
|
-
{{ product.minPrice | price }}
|
|
63
|
+
{{ product.minPrice | price(currency) }}
|
|
64
64
|
</div>
|
|
65
65
|
<div
|
|
66
66
|
v-else
|
|
67
67
|
class="ProductListProduct__info-item lc_h4">
|
|
68
|
-
{{ product.minPrice | price }} - {{ product.maxPrice | price }}
|
|
68
|
+
{{ product.minPrice | price(currency) }} - {{ product.maxPrice | price(currency) }}
|
|
69
69
|
</div>
|
|
70
70
|
<div class="ProductListProduct__info-item mt-9 lc_caption">
|
|
71
71
|
{{ product.colors.length }} {{ product.colors.length === 1 ? 'Colour' : 'Colours' }} | Size: {{ product.sizes | sizesRange }}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
class="QuoteOptionView__product" />
|
|
9
9
|
</div>
|
|
10
10
|
<div class="QuoteOptionView__totals">
|
|
11
|
-
<div>Products Total: <b>{{ option.productsTotal | price }}</b></div>
|
|
12
|
-
<div>Prints Total: <b>{{ option.printsTotal | price }}</b></div>
|
|
13
|
-
<div>Shipping Total: <b>{{ option.shippingTotal | price }}</b></div>
|
|
14
|
-
<div>Total ex GST: <b>{{ option.total | price }}</b></div>
|
|
15
|
-
<div>GST: <b>{{ optionGst(option) | price }}</b></div>
|
|
16
|
-
<div>Total inc GST: <b>{{ option.total | tax(gstTax) | price }}</b></div>
|
|
11
|
+
<div>Products Total: <b>{{ option.productsTotal | price(currency) }}</b></div>
|
|
12
|
+
<div>Prints Total: <b>{{ option.printsTotal | price(currency) }}</b></div>
|
|
13
|
+
<div>Shipping Total: <b>{{ option.shippingTotal | price(currency) }}</b></div>
|
|
14
|
+
<div>Total ex GST: <b>{{ option.total | price(currency) }}</b></div>
|
|
15
|
+
<div>GST: <b>{{ optionGst(option) | price(currency) }}</b></div>
|
|
16
|
+
<div>Total inc GST: <b>{{ option.total | tax(gstTax) | price(currency) }}</b></div>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
Unit Cost:
|
|
48
48
|
</div>
|
|
49
49
|
<div class="lc_body-small">
|
|
50
|
-
{{ group.unitCosts[0] | price }}
|
|
50
|
+
{{ group.unitCosts[0] | price(currency) }}
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
<div class="QuoteProductColorSimpleProducts__total">
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
Subtotal:
|
|
64
64
|
</div>
|
|
65
65
|
<div class="lc_body-small">
|
|
66
|
-
{{ group.productsTotal | price }}
|
|
66
|
+
{{ group.productsTotal | price(currency) }}
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</td>
|
|
16
16
|
<td class="lc_body-small">
|
|
17
17
|
<span class="hidden-md-and-up">Setup cost</span>
|
|
18
|
-
{{ setupCost | price }}
|
|
18
|
+
{{ setupCost | price(currency) }}
|
|
19
19
|
</td>
|
|
20
20
|
<td class="lc_body-small">
|
|
21
21
|
<span class="hidden-md-and-up">QTY</span>
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
</td>
|
|
24
24
|
<td class="lc_body-small">
|
|
25
25
|
<span class="hidden-md-and-up">Price</span>
|
|
26
|
-
{{ printCost | price }}
|
|
26
|
+
{{ printCost | price(currency) }}
|
|
27
27
|
</td>
|
|
28
28
|
<td class="lc_body-small">
|
|
29
29
|
<span class="hidden-md-and-up">Total</span>
|
|
30
30
|
<strong>
|
|
31
|
-
{{ total | price }}
|
|
31
|
+
{{ total | price(currency) }}
|
|
32
32
|
</strong>
|
|
33
33
|
</td>
|
|
34
34
|
</tr>
|
package/nuxt.config.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const sharedRoutes = require('./routes');
|
|
2
|
+
|
|
1
3
|
module.exports = (config, axios, { raygunClient } = {}) => ({
|
|
2
4
|
mode: 'universal',
|
|
3
5
|
head: {
|
|
@@ -179,5 +181,13 @@ module.exports = (config, axios, { raygunClient } = {}) => ({
|
|
|
179
181
|
}, [])
|
|
180
182
|
};
|
|
181
183
|
}
|
|
182
|
-
}]
|
|
184
|
+
}],
|
|
185
|
+
router: {
|
|
186
|
+
extendRoutes(routes, resolve) {
|
|
187
|
+
return [
|
|
188
|
+
...sharedRoutes(routes, resolve),
|
|
189
|
+
...routes,
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
}
|
|
183
193
|
});
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="OrderViewPage__wrapper">
|
|
3
|
+
<div :class="isFullScreen ? '' : 'content-inner'">
|
|
4
|
+
<order-view
|
|
5
|
+
:order="order"
|
|
6
|
+
:responsive="!isFullScreen" />
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import metaInfo from '@lancom/shared/mixins/meta-info';
|
|
13
|
+
import api from '@lancom/shared/assets/js/api';
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
name: 'OrderViewPage',
|
|
17
|
+
components: {
|
|
18
|
+
OrderView: () => import('@lancom/shared/components/order/order_view/order-view')
|
|
19
|
+
},
|
|
20
|
+
mixins: [metaInfo],
|
|
21
|
+
layout: 'empty',
|
|
22
|
+
async asyncData({ params, error }) {
|
|
23
|
+
try {
|
|
24
|
+
const order = await api.fetchOrderByToken(params.token, { mergePrints: true });
|
|
25
|
+
return { order };
|
|
26
|
+
} catch (e) {
|
|
27
|
+
const { status, data } = e?.response || {};
|
|
28
|
+
const statusCode = status || 500;
|
|
29
|
+
error({
|
|
30
|
+
statusCode,
|
|
31
|
+
error: data?.error || 'Order not found'
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
order: null,
|
|
38
|
+
isFullScreen: this.$route.query.print
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style lang="scss">
|
|
45
|
+
</style>
|