Browse Source

Tickets - ERx - make medication stick even if not from list

Vijayakrishnan 4 năm trước cách đây
mục cha
commit
4e4e87c210

+ 1 - 1
resources/views/app/patient/tickets.blade.php

@@ -556,7 +556,7 @@
                                     dynStrengthsID = 'rx-' + randPart + '-strengths';
                                 $(strengthElem).attr('id', dynStrengthsID);
                                 $(strengthElem).attr('rx-id', dynID);
-                                new window.Def.Autocompleter.Prefetch(dynStrengthsID, []);
+                                new window.Def.Autocompleter.Prefetch(dynStrengthsID, [], {matchListValue: false});
                                 new window.Def.Autocompleter.Search(dynID,
                                     'https://clinicaltables.nlm.nih.gov/api/rxterms/v3/search?ef=STRENGTHS_AND_FORMS');
                                 window.Def.Autocompleter.Event.observeListSelections(dynID, function() {

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

@@ -104,7 +104,7 @@
                         <label class="text-sm text-secondary mb-1">Medication</label>
                         <input type="hidden" v-model="erxPopupItem.data.medication">
                         <input required type="text" data-field="medication" placeholder="Medication"
-                               :value="erxPopupItem.data.medication"
+                               v-model="erxPopupItem.data.medication"
                                class="form-control form-control-sm">
                     </div>
                     <div class="col-3 pl-0">