Explorar el Código

show pharmacy in ERx listing

Vijayakrishnan hace 4 años
padre
commit
3a0c6c4181
Se han modificado 1 ficheros con 13 adiciones y 1 borrados
  1. 13 1
      resources/views/app/patient/partials/erx.blade.php

+ 13 - 1
resources/views/app/patient/partials/erx.blade.php

@@ -61,7 +61,9 @@
                         @{{ item.created_at }}
                     </div>
                 </td>
-                <td class="px-2">@{{item.pharmacy ? item.pharmacy : '-'}}</td>
+                <td class="px-2">
+                    <span class="" v-html="pharmacy(item)"></span>
+                </td>
                 @include('app.patient.partials.ticket_vue_collab_column')
                 {{--<td class="px-2">
                     <a class="mr-2 c-pointer" v-on:click.prevent="showPopup('erx-popup', item)">Edit</a>
@@ -370,6 +372,16 @@
                             return '';
                         }
                     },
+                    pharmacy: function(_item) {
+                        return [
+                            _item.pharmacyName,
+                            _item.pharmacyCity,
+                            _item.pharmacyState,
+                            _item.pharmacyAddressMemo,
+                            _item.pharmacyPhone,
+                            _item.pharmacyFax,
+                        ].filter(Boolean).join('<br>');
+                    },
                     @include('app.patient.partials.ticket_vue_methods',['ticketType'=>'erx'])
                 },
                 mounted: function () {