Forráskód Böngészése

Process claims [wip]

Vijayakrishnan 4 éve
szülő
commit
bb5b370e7d

+ 34 - 4
resources/views/app/practice-management/process-claims.blade.php

@@ -189,10 +189,9 @@
                                     <div class="d-flex align-items-center mb-1">
                                         <div class="text-secondary mr-3 min-width-140px">Note</div>
                                         <div v-if="claim.note_uid">
-                                            <a native target="_blank"
-                                               open-in-stag-popup
-                                               title="Note Details"
-                                               :href="'/patients/view/' + claim.client_uid + '/notes/view/' + claim.note_uid + '?popupmode=1'">
+                                            <a :href="'/patients/view/' + claim.client_uid + '/notes/view/' + claim.note_uid + '?popupmode=1'"
+                                               native target="_blank"
+                                               class="note-popup-trigger text-nowrap mt-1 mr-1">
                                                 View Note
                                             </a>
                                             <span class="ml-1 text-secondary">(@{{ claim.method }})</span>
@@ -267,6 +266,18 @@
             </div>
         </div>
     </div>
+    <div class="stag-popup stag-popup-lg mcp-theme-1" stag-popup-key="note-popup">
+        <form method="POST" action="" class="p-0">
+            <h3 class="stag-popup-title mb-0 mt-3 mx-3 pb-0 border-bottom-0">
+                <span>Note Details</span>
+                <a href="#" class="ml-auto text-secondary"
+                   onclick="return closeStagPopup()"><i class="fa fa-times-circle"></i></a>
+            </h3>
+            <div class="pb-3 note-popup-content">
+                <div class="px-3 pt-3 text-secondary font-italic">Loading ...</div>
+            </div>
+        </form>
+    </div>
     <script>
         (function() {
             function init() {
@@ -390,6 +401,25 @@
                         $(document).on('pro-changed', '.filter-hcp', function() {
                             self.filter.hcp = this.value;
                         });
+                        $('#process-claims')
+                            .off('click', '.note-popup-trigger')
+                            .on('click', '.note-popup-trigger', function() {
+                                showMask();
+                                window.noMc = true;
+                                $.get(this.href, (_data) => {
+                                    $('.note-popup-content').html(_data);
+                                    $('.note-popup-content')
+                                        .find('a, button, input, select')
+                                            .attr('disabled', 'disabled')
+                                            .attr('tabindex', '-1')
+                                            .css('pointer-events', 'none');
+                                    showStagPopup('note-popup');
+                                    // run note single initer and allow edits
+                                    // runMCInitializer('note-single');
+                                    hideMask();
+                                });
+                                return false;
+                            });
                     }
                 })