|
@@ -758,6 +758,8 @@ GROUP BY erx_category");
|
|
|
}
|
|
|
Vue.nextTick(() => {
|
|
|
showStagPopup('pp-logistics-popup', true);
|
|
|
+ $('[stag-popup-key="pp-logistics-popup"] [stag-suggest-initialized]').removeAttr('stag-suggest-initialized');
|
|
|
+ initStagSuggest();
|
|
|
});
|
|
|
},
|
|
|
saveLogistics: function() {
|
|
@@ -1171,6 +1173,18 @@ GROUP BY erx_category");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $('[stag-popup-key="pp-logistics-popup"] .facility-search').off('stag-suggest-selected');
|
|
|
+ $('[stag-popup-key="pp-logistics-popup"] .facility-search').on('stag-suggest-selected', (_e, _input, _data) => {
|
|
|
+ if(self.currentPrescriptionLogistics && self.currentPrescriptionLogistics.logisticsDetailJson) {
|
|
|
+ self.currentPrescriptionLogistics.logisticsDetailJson.facilityName = _data.name;
|
|
|
+ self.currentPrescriptionLogistics.logisticsDetailJson.facilityCity = _data.city;
|
|
|
+ self.currentPrescriptionLogistics.logisticsDetailJson.facilityState = _data.state;
|
|
|
+ self.currentPrescriptionLogistics.logisticsDetailJson.facilityZip = _data.zip;
|
|
|
+ self.currentPrescriptionLogistics.logisticsDetailJson.facilityPhone = _data.phone;
|
|
|
+ self.currentPrescriptionLogistics.logisticsDetailJson.facilityFax = _data.fax;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
|