@lancom/shared 0.0.187 → 0.0.189
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
CHANGED
|
@@ -569,8 +569,8 @@ export default {
|
|
|
569
569
|
removeEmailTemplate(id) {
|
|
570
570
|
return _delete(`admin/email-templates/${id}`);
|
|
571
571
|
},
|
|
572
|
-
fetchPrinters() {
|
|
573
|
-
return _get('admin/printers');
|
|
572
|
+
fetchPrinters(type) {
|
|
573
|
+
return _get('admin/printers', { type });
|
|
574
574
|
},
|
|
575
575
|
sendToPrinter(job) {
|
|
576
576
|
return _post('admin/printers/job', job);
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
</validation-provider>
|
|
126
126
|
<div class="form-actions full">
|
|
127
127
|
<btn
|
|
128
|
-
btn-class="
|
|
128
|
+
:btn-class="btnClass"
|
|
129
129
|
:btn-disabled="invalid || processing"
|
|
130
130
|
:btn-processing="processing"
|
|
131
131
|
btn-label="Contact Us"
|
|
@@ -172,7 +172,13 @@ import { mapGetters } from 'vuex';
|
|
|
172
172
|
import api from '@lancom/shared/assets/js/api';
|
|
173
173
|
|
|
174
174
|
export default {
|
|
175
|
-
name: '
|
|
175
|
+
name: 'LancomContactUs',
|
|
176
|
+
props: {
|
|
177
|
+
btnClass: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: 'purple'
|
|
180
|
+
}
|
|
181
|
+
},
|
|
176
182
|
data() {
|
|
177
183
|
return {
|
|
178
184
|
form: {},
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="SimpleProductsPriceInfo__wrapper">
|
|
3
|
-
<pricing-table
|
|
3
|
+
<pricing-table
|
|
4
|
+
:items="sizesPrices"
|
|
5
|
+
:bordered="true"
|
|
6
|
+
:with-gst="priceIncludeGST" />
|
|
4
7
|
</div>
|
|
5
8
|
</template>
|
|
6
9
|
|
|
7
10
|
<script>
|
|
11
|
+
import { mapGetters } from 'vuex';
|
|
8
12
|
import PricingTable from '@lancom/shared/components/common/pricing_table/pricing-table';
|
|
9
13
|
|
|
10
14
|
export default {
|
|
@@ -19,6 +23,7 @@ export default {
|
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
computed: {
|
|
26
|
+
...mapGetters('product', ['priceIncludeGST']),
|
|
22
27
|
sizesPrices() {
|
|
23
28
|
return [...(this.simpleProducts || []).reduce((sizes, product) => {
|
|
24
29
|
sizes.set(product.size._id, {
|
package/nuxt.config.js
CHANGED