|
@@ -43,10 +43,17 @@
|
|
<tr v-for="(prescription, index) in prescriptions" :class="currentPrescription && currentPrescription.id === prescription.id ? 'bg-aliceblue' : ''">
|
|
<tr v-for="(prescription, index) in prescriptions" :class="currentPrescription && currentPrescription.id === prescription.id ? 'bg-aliceblue' : ''">
|
|
<td class="px-2">
|
|
<td class="px-2">
|
|
<a href="#" v-on:click.prevent="currentPrescription=prescription"
|
|
<a href="#" v-on:click.prevent="currentPrescription=prescription"
|
|
- :class="currentPrescription && currentPrescription.id === prescription.id ? 'font-weight-bold' : ''">@{{prescription.created_at_friendly_short}}</a>
|
|
|
|
|
|
+ class="text-nowrap"
|
|
|
|
+ :class="currentPrescription && currentPrescription.id === prescription.id ? 'font-weight-bold' : ''">
|
|
|
|
+ @{{prescription.created_at_friendly_short}}
|
|
|
|
+ </a>
|
|
@if(@$note)
|
|
@if(@$note)
|
|
<div v-if="prescription.note_id === {{$note->id}}" class="text-info mt-1">* Create on this note</div>
|
|
<div v-if="prescription.note_id === {{$note->id}}" class="text-info mt-1">* Create on this note</div>
|
|
@endif
|
|
@endif
|
|
|
|
+ <div v-if="prescription.pro_declared_status === 'CANCELLED'" class="text-secondary font-weight-bold mt-1 text-sm d-flex align-items-baseline">
|
|
|
|
+ <i class="fa fa-ban mr-1 text-sm"></i>
|
|
|
|
+ CANCELLED
|
|
|
|
+ </div>
|
|
</td>
|
|
</td>
|
|
@if(!request()->input('erx_category'))
|
|
@if(!request()->input('erx_category'))
|
|
<td class="px-2">@{{prescription.erx_category}}</td>
|
|
<td class="px-2">@{{prescription.erx_category}}</td>
|
|
@@ -349,6 +356,11 @@
|
|
<a href="#" v-on:click.prevent="transmit(currentPrescription)">Transmit</a>
|
|
<a href="#" v-on:click.prevent="transmit(currentPrescription)">Transmit</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-if="!currentPrescription.has_hcp_pro_signed">
|
|
|
|
+ <hr class="my-2">
|
|
|
|
+ <div v-if="currentPrescription.pro_declared_status === 'CANCELLED'" class="text-secondary font-weight-bold">CANCELLED</div>
|
|
|
|
+ <a v-else href="#" class="text-danger d-block" v-on:click.prevent="cancelItem()">Cancel</a>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@include('app.patient.prescriptions.drug-form')
|
|
@include('app.patient.prescriptions.drug-form')
|
|
@@ -553,6 +565,20 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
+ cancelItem: function() {
|
|
|
|
+ let payload = {
|
|
|
|
+ uid: this.currentPrescription.uid,
|
|
|
|
+ status: 'CANCELLED',
|
|
|
|
+ memo: 'Cancelled',
|
|
|
|
+ };
|
|
|
|
+ $.post('/api/erx/updateProDeclaredStatus', payload, _data => {
|
|
|
|
+ if(!hasResponseError(_data)) {
|
|
|
|
+ closeStagPopup();
|
|
|
|
+ fastReload();
|
|
|
|
+ }
|
|
|
|
+ }, 'json');
|
|
|
|
+ },
|
|
|
|
+
|
|
// new eRx (only for popup-list)
|
|
// new eRx (only for popup-list)
|
|
newERx: function(_type) {
|
|
newERx: function(_type) {
|
|
let payload = {
|
|
let payload = {
|