瀏覽代碼

show pharmacy in ERx listing

Vijayakrishnan 4 年之前
父節點
當前提交
3a0c6c4181
共有 1 個文件被更改,包括 13 次插入1 次删除
  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 () {