|
@@ -230,8 +230,7 @@
|
230
|
230
|
|
231
|
231
|
|
232
|
232
|
</div>
|
233
|
|
- <span v-if="dayorMonth =='day'&&curPrescriptions.advices.length > 0" :class="!curPrescriptions.is_medicine_status ? 'statusRed' : ''">{{curPrescriptions.is_medicine_status?'已发药':'未发药'}}</span>
|
234
|
|
- <span v-else></span>
|
|
233
|
+ <span :class="!is_medicine_status ? 'statusRed' : ''">{{is_medicine_status?'已发药':'未发药'}}</span>
|
235
|
234
|
|
236
|
235
|
<span :class="order_status == '未收费' ? 'statusRed' : ''">{{order_status}}</span>
|
237
|
236
|
</div>
|
|
@@ -622,6 +621,7 @@
|
622
|
621
|
isShowDayPrescription: false,
|
623
|
622
|
monthCustomTabIndex: 1,
|
624
|
623
|
order_status: '',
|
|
624
|
+ is_medicine_status:false,
|
625
|
625
|
register_types: [
|
626
|
626
|
{ id: 1, name: '医保' },
|
627
|
627
|
{ id: 2, name: '自费' }
|
|
@@ -1856,6 +1856,7 @@
|
1856
|
1856
|
}
|
1857
|
1857
|
|
1858
|
1858
|
}
|
|
1859
|
+ this.is_medicine_status = this.curPrescriptions.is_medicine_status
|
1859
|
1860
|
if (this.curPrescriptions.order_status == 0) {
|
1860
|
1861
|
this.order_status = ''
|
1861
|
1862
|
}
|
|
@@ -1915,7 +1916,7 @@
|
1915
|
1916
|
} else {
|
1916
|
1917
|
this.curPrescriptions = {}
|
1917
|
1918
|
}
|
1918
|
|
-
|
|
1919
|
+ this.is_medicine_status = this.curPrescriptions.is_medicine_status
|
1919
|
1920
|
if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
|
1920
|
1921
|
this.curStatus = 1
|
1921
|
1922
|
this.customTabIndex = 1
|
|
@@ -2651,6 +2652,7 @@
|
2651
|
2652
|
},
|
2652
|
2653
|
addTab(targetName) {
|
2653
|
2654
|
|
|
2655
|
+ console.log("this.prescriptions",this.prescriptions)
|
2654
|
2656
|
for(let i = 0; i < this.prescriptions.length; i++){
|
2655
|
2657
|
if (this.prescriptions[i].is_medicine_status) {
|
2656
|
2658
|
this.$message.error('处方中包含已发药处方,无法新增')
|
|
@@ -2746,6 +2748,7 @@
|
2746
|
2748
|
type: 'warning'
|
2747
|
2749
|
}).then(() => {
|
2748
|
2750
|
let id = 0
|
|
2751
|
+ console.log("this.prescriptions???",this.prescriptions)
|
2749
|
2752
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
2750
|
2753
|
if (this.prescriptions[i].name == targetName) {
|
2751
|
2754
|
id = this.prescriptions[i].id
|
|
@@ -2780,10 +2783,12 @@
|
2780
|
2783
|
}
|
2781
|
2784
|
}
|
2782
|
2785
|
}
|
2783
|
|
- console.log("oo233232233232323",this.prescriptions)
|
|
2786
|
+ console.log("oo233ooooosdada",this.prescriptions)
|
2784
|
2787
|
if (this.prescriptions.length == 0) {
|
|
2788
|
+ console.log("this.curPrescrip的tions前",this.curPrescriptions)
|
2785
|
2789
|
this.curPrescriptions = []
|
2786
|
2790
|
this.curStatus = 0
|
|
2791
|
+ console.log("this.curPrescrip的tions后",this.curPrescriptions)
|
2787
|
2792
|
}
|
2788
|
2793
|
this.$parent.getInitDataOne(this.prescriptions)
|
2789
|
2794
|
} else {
|