瀏覽代碼

[ADD] customer information un pos summary display

Gogs 7 年之前
父節點
當前提交
2daf995f82
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/components/SummaryDisplay.vue

+ 3 - 1
src/components/SummaryDisplay.vue

@@ -1,6 +1,7 @@
 <template lang="pug">
 <template lang="pug">
     .summary
     .summary
         h2 {{ getTotal() }}
         h2 {{ getTotal() }}
+        h3 {{ customer.name }}
 </template>
 </template>
 
 
 <script>
 <script>
@@ -8,7 +9,8 @@
 
 
     export default {
     export default {
         computed: mapGetters({
         computed: mapGetters({
-            total: 'getTotal'
+            total: 'getTotal',
+            customer: 'getSelectedCustomer'
         }),
         }),
         methods: {
         methods: {
             getTotal() {
             getTotal() {