|
@@ -67,6 +67,7 @@
|
|
@include('app.patient.tickets.imaging')
|
|
@include('app.patient.tickets.imaging')
|
|
@include('app.patient.tickets.equipment')
|
|
@include('app.patient.tickets.equipment')
|
|
|
|
|
|
|
|
+ @include('app.patient.tickets.ticket_send_fax_form')
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -147,6 +148,8 @@
|
|
proToUpdate: '',
|
|
proToUpdate: '',
|
|
proTypes: ['Assigned', 'Manager', 'Initiating', 'Ordering'],
|
|
proTypes: ['Assigned', 'Manager', 'Initiating', 'Ordering'],
|
|
newProUid: '',
|
|
newProUid: '',
|
|
|
|
+ faxes: [],
|
|
|
|
+ loadingFaxes: false,
|
|
faxNumber: '',
|
|
faxNumber: '',
|
|
reloading: false,
|
|
reloading: false,
|
|
comment: '',
|
|
comment: '',
|
|
@@ -200,6 +203,8 @@
|
|
// common show popup
|
|
// common show popup
|
|
preparePopup: function(_type, _item) {
|
|
preparePopup: function(_type, _item) {
|
|
this.preparing = true;
|
|
this.preparing = true;
|
|
|
|
+ this.loadingFaxes = true;
|
|
|
|
+ this.faxes = [];
|
|
this[_type + 'PopupMode'] = _item ? 'edit' : 'add';
|
|
this[_type + 'PopupMode'] = _item ? 'edit' : 'add';
|
|
this[_type + 'PopupItem'] = _item ? JSON.parse(JSON.stringify(_item)) : JSON.parse(JSON.stringify(this[_type + 'Model']));
|
|
this[_type + 'PopupItem'] = _item ? JSON.parse(JSON.stringify(_item)) : JSON.parse(JSON.stringify(this[_type + 'Model']));
|
|
this[_type + 'PopupItem'].assigned_pro_uid = '';
|
|
this[_type + 'PopupItem'].assigned_pro_uid = '';
|
|
@@ -212,6 +217,17 @@
|
|
}
|
|
}
|
|
this.comment = '';
|
|
this.comment = '';
|
|
this.preparing = false;
|
|
this.preparing = false;
|
|
|
|
+
|
|
|
|
+ // load tickets
|
|
|
|
+ if(_item) {
|
|
|
|
+ $.get('/get-ticket-faxes/' + _item.uid, (_data) => {
|
|
|
|
+ this.faxes = _data;
|
|
|
|
+ this.loadingFaxes = false;
|
|
|
|
+ }, 'json')
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ this.loadingFaxes = false;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
reinitProSuggest: function() {
|
|
reinitProSuggest: function() {
|
|
$('#ticketsApp [pro-suggest-initialized]').removeAttr('pro-suggest-initialized');
|
|
$('#ticketsApp [pro-suggest-initialized]').removeAttr('pro-suggest-initialized');
|
|
@@ -503,6 +519,20 @@
|
|
this.reloadPopupItem(this.currentCategory);
|
|
this.reloadPopupItem(this.currentCategory);
|
|
}, 'json');
|
|
}, 'json');
|
|
},
|
|
},
|
|
|
|
+ showSendFaxPopup: function() {
|
|
|
|
+ showStagPopup('send-fax-popup');
|
|
|
|
+ },
|
|
|
|
+ sendFax: function(_item) {
|
|
|
|
+ $.post('/api/ticketFax/create', {
|
|
|
|
+ faxNumber: this.faxNumber,
|
|
|
|
+ ticketUid: this[this.currentCategory + 'PopupItem'].uid
|
|
|
|
+ },
|
|
|
|
+ (_data) => {
|
|
|
|
+ this.reloadPopupItem(this.currentCategory);
|
|
|
|
+ closeStagPopup();
|
|
|
|
+ },
|
|
|
|
+ 'json');
|
|
|
|
+ },
|
|
signAsOrderingPro: function(_item) {
|
|
signAsOrderingPro: function(_item) {
|
|
$.post('/api/ticket/signAsOrderingPro', {
|
|
$.post('/api/ticket/signAsOrderingPro', {
|
|
uid: _item.uid
|
|
uid: _item.uid
|
|
@@ -759,5 +789,4 @@
|
|
addMCInitializer('patient-tickets', init, '#ticketsApp');
|
|
addMCInitializer('patient-tickets', init, '#ticketsApp');
|
|
})();
|
|
})();
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
@endsection
|
|
@endsection
|