@lancom/shared 0.0.421 → 0.0.422

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.
@@ -20,6 +20,7 @@
20
20
  <btn
21
21
  btn-class="green"
22
22
  btn-label="NEXT"
23
+ :btn-disabled="!hasSelectedPrintUnderbases"
23
24
  @onclick="$emit('next')">
24
25
  <i
25
26
  slot="icon-after"
@@ -39,7 +40,10 @@ export default {
39
40
  WizardPrintAreaPrintUnderbase
40
41
  },
41
42
  computed: {
42
- ...mapGetters('product', ['editablePrintAreas'])
43
+ ...mapGetters('product', ['editablePrintAreas', 'selectedPrintUnderbases']),
44
+ hasSelectedPrintUnderbases() {
45
+ return this.editablePrintAreas.every(e => typeof this.selectedPrintUnderbases[e._id] === 'boolean');
46
+ }
43
47
  }
44
48
  };
45
49
  </script>
@@ -7,10 +7,23 @@
7
7
  padding: 30px;
8
8
  margin-bottom: 50px;
9
9
  }
10
+ &__info {
11
+ display: flex;
12
+ justify-content: space-between;
13
+ margin-bottom: 10px;
14
+ }
10
15
  &__logo {
11
16
  margin-bottom: 20px;
12
17
  }
18
+ &__table {
19
+ margin-top: 20px;
20
+ margin-bottom: 10px;
21
+ td {
22
+ width: 50%;
23
+ padding: 20px;
24
+ }
25
+ }
13
26
  }
14
27
  .uppercase {
15
28
  text-transform: uppercase;
16
- }
29
+ }
@@ -5,46 +5,78 @@
5
5
  class="QuoteView__logo">
6
6
  <img :src="quote.shop.logo.small" />
7
7
  </div>
8
- <div class="d-flex justify-content-between align-items-center">
8
+ <div class="QuoteView__info">
9
9
  <div>
10
- <h2> {{ quote.shop.name }} </h2>
11
- <h4 v-if="shopContacts"> ABN: {{ shopContacts.abn }} </h4>
10
+ <h2 class="lc_h2"> {{ quote.shop.name }} </h2>
11
+ <h4 v-if="shopContacts" class="lc_h4"> ABN: {{ shopContacts.abn }} </h4>
12
12
  </div>
13
- <h1 class="text-secondary">
13
+ <h1 class="text-secondary lc_h1">
14
14
  QUOTE
15
15
  </h1>
16
16
  </div>
17
- <div class="d-flex justify-content-between align-items-center">
17
+ <div class="QuoteView__info">
18
18
  <div v-if="shopContacts">
19
- <div>{{ shopContacts.company }}</div>
20
- <div>{{ shopContacts.address }}</div>
21
- <div>{{ shopContacts.phone }}</div>
19
+ <div class="lc_regular16">
20
+ {{ shopContacts.company }}
21
+ </div>
22
+ <div class="lc_regular16">
23
+ {{ shopContacts.address }}
24
+ </div>
25
+ <div class="lc_regular16">
26
+ {{ shopContacts.phone }}
27
+ </div>
22
28
  </div>
23
29
  <div>
24
- <div>DATE: {{ quote.createdAt | shortDate }}</div>
25
- <div>QUOTE ID: {{ quoteId }}</div>
30
+ <div class="lc_regular16">
31
+ DATE: {{ quote.createdAt | shortDate }}
32
+ </div>
33
+ <div class="lc_regular16">
34
+ QUOTE ID: {{ quoteId }}
35
+ </div>
26
36
  </div>
27
37
  </div>
28
38
 
29
- <table class="mt-4 table table-bordered">
39
+ <table class="QuoteView__table mt-4 lc_table bordered">
30
40
  <tr>
31
41
  <td>
32
42
  <div><b>QUOTE</b></div>
33
43
  <div v-if="quote.address">
34
- <div>{{ quote.address.fullName }}</div>
35
- <div v-if="quote.address.company">{{ quote.address.company }}</div>
36
- <div v-if="quote.address.phone">{{ quote.address.phone }}</div>
37
- <div>{{ quote.address.email }}</div>
38
- <div>{{ quoteAddress }}</div>
39
- <div>{{ quote.address.additionalInfo }}</div>
44
+ <div class="lc_regular16">
45
+ {{ quote.address.fullName }}
46
+ </div>
47
+ <div v-if="quote.address.company" class="lc_regular16">
48
+ {{ quote.address.company }}
49
+ </div>
50
+ <div v-if="quote.address.phone" class="lc_regular16">
51
+ {{ quote.address.phone }}
52
+ </div>
53
+ <div class="lc_regular16">
54
+ {{ quote.address.email }}
55
+ </div>
56
+ <div class="lc_regular16">
57
+ {{ quoteAddress }}
58
+ </div>
59
+ <div class="lc_regular16">
60
+ {{ quote.address.additionalInfo }}
61
+ </div>
40
62
  </div>
41
63
  </td>
42
64
  <td class="w-50">
43
- <div><b>{{ MESSAGES.DIRECT_DEPOSIT_DETAILS || 'DIRECT DEPOSIT DETAILS'}}</b></div>
44
- <div>Bank: {{ depositInfo.bank }}</div>
45
- <div>Account name: {{ depositInfo.accountName }}</div>
46
- <div>{{ bsbLabel }}: {{ depositInfo.BSB }}</div>
47
- <div>Account: {{ depositInfo.account }}</div>
65
+ <div class="lc_regular16">
66
+ <b>{{ MESSAGES.DIRECT_DEPOSIT_DETAILS || 'DIRECT DEPOSIT DETAILS' }}</b>
67
+ </div>
68
+ <div class="lc_regular16">
69
+ Bank: {{ depositInfo.bank }}
70
+ </div>
71
+ <div class="lc_regular16">
72
+ Account name: {{ depositInfo.accountName }}
73
+ </div>
74
+ <div class="lc_regular16">
75
+ {{ bsbLabel }}: {{ depositInfo.BSB }}
76
+ </div>
77
+ <div class="lc_regular16">
78
+ Account: {{ depositInfo.account }}
79
+ </div>
48
80
  </td>
49
81
  </tr>
50
82
  </table>
@@ -58,7 +90,7 @@
58
90
  </div>
59
91
  <h6
60
92
  v-if="quote.expiredAt"
61
- class="mt-3">
93
+ class="mt-3 lc_title mb-5 lc_h3">
62
94
  THIS QUOTE IS VALID UNTIL {{ quote.expiredAt | shortDate }}
63
95
  </h6>
64
96
  </div>
@@ -8,12 +8,24 @@
8
8
  class="QuoteOptionView__product" />
9
9
  </div>
10
10
  <div class="QuoteOptionView__totals">
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 {{ taxName }}: <b>{{ option.total | price(currency) }}</b></div>
15
- <div>{{ taxName }}: <b>{{ optionGst(option) | price(currency) }}</b></div>
16
- <div>Total inc {{ taxName }}: <b>{{ option.total | tax(gstTax) | price(currency) }}</b></div>
11
+ <div class="lc_regular16">
12
+ Products Total: <b>{{ option.productsTotal | price(currency) }}</b>
13
+ </div>
14
+ <div class="lc_regular16">
15
+ Prints Total: <b>{{ option.printsTotal | price(currency) }}</b>
16
+ </div>
17
+ <div class="lc_regular16">
18
+ Shipping Total: <b>{{ option.shippingTotal | price(currency) }}</b>
19
+ </div>
20
+ <div class="lc_regular16">
21
+ Total ex {{ taxName }}: <b>{{ option.total | price(currency) }}</b>
22
+ </div>
23
+ <div class="lc_regular16">
24
+ {{ taxName }}: <b>{{ optionGst(option) | price(currency) }}</b>
25
+ </div>
26
+ <div class="lc_regular16">
27
+ Total inc {{ taxName }}: <b>{{ option.total | tax(gstTax) | price(currency) }}</b>
28
+ </div>
17
29
  </div>
18
30
  </div>
19
31
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.421",
3
+ "version": "0.0.422",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <div class="QuoteViewPage__wrapper">
3
+ <div class="content-inner">
4
+ <lancom-quote-view
5
+ v-if="quote"
6
+ :quote="quote"
7
+ :option="option" />
8
+ </div>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+ import QuoteViewPage from '@lancom/shared/pages/quotes/view/_id';
14
+ import LancomQuoteView from '@lancom/shared/components/quotes/quote_view/quote-view';
15
+
16
+ export default {
17
+ name: 'QuoteOptionView',
18
+ components: {
19
+ LancomQuoteView
20
+ },
21
+ mixins: [QuoteViewPage],
22
+ layout: 'empty'
23
+ };
24
+ </script>
package/routes/index.js CHANGED
@@ -102,6 +102,11 @@ module.exports = function(routes, resolve, config) {
102
102
  path: '/order/:token/refund/:refund',
103
103
  component: resolve('@lancom/shared/pages/order/_token/refund/_refund.vue'),
104
104
  chunkName: 'pages/order/view/refund'
105
+ }, {
106
+ name: 'quotes-view-option',
107
+ path: '/quotes/view/:id/option/:option',
108
+ component: resolve('@lancom/shared/pages/quotes/view/_id/option/_option.vue'),
109
+ chunkName: 'pages/quotes/view/option'
105
110
  }, {
106
111
  name: 'customer-signin',
107
112
  path: '/customer/signin',