|
@@ -59,7 +59,7 @@
|
59
|
59
|
<div class="Rp">Rp:</div>
|
60
|
60
|
<div
|
61
|
61
|
class="drugsBox"
|
62
|
|
- v-for="(it, index) in advicess" :key="index"
|
|
62
|
+ v-for="(it, index) in item.advices" :key="index"
|
63
|
63
|
:style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
|
64
|
64
|
>
|
65
|
65
|
<!-- class="drugsBox" item.advices.length>=5 ? 'danzhang' : 'drugsBox' :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
|
|
@@ -101,7 +101,7 @@
|
101
|
101
|
</div>
|
102
|
102
|
</template>
|
103
|
103
|
<div style="position: relative;">
|
104
|
|
- <div class="drugsOne" :style="{'border-right':arr.length>0 && arr[0][0].groupno==it.groupno ? '1px solid black' :'none','width':'80%'}">
|
|
104
|
+ <div class="drugsOne" :style="{'border-right':item.arr.length>0 && item.arr[0][0].groupno==it.groupno ? '1px solid black': 'none','width':'80%'}">
|
105
|
105
|
<span style="font-weight: bold" >
|
106
|
106
|
{{ index + 1 + "." }}
|
107
|
107
|
</span>
|
|
@@ -110,36 +110,37 @@
|
110
|
110
|
{{ it.drug.dose }}{{ it.drug.dose_unit }} * {{ it.drug.min_number }}{{ it.drug.min_unit }}/
|
111
|
111
|
{{it.drug.max_unit}}
|
112
|
112
|
</span>
|
|
113
|
+
|
113
|
114
|
<div>
|
114
|
|
- <template v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
|
|
115
|
+ <template v-if="item.arr.length>0 && item.arr[0][0].groupno==it.groupno">
|
115
|
116
|
<div >
|
116
|
|
- <!-- v-for="(its,indexs) in arr" :key="indexs" -->
|
117
|
|
- <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>
|
118
|
|
- <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">
|
119
|
|
- {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }} * {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/
|
120
|
|
- {{arr[0][0].drug.max_unit}}
|
|
117
|
+ <!-- -->
|
|
118
|
+ <span style="margin-left: 38px;">{{item.arr[0][0].advice_name ? item.arr[0][0].advice_name : ""}}</span>
|
|
119
|
+ <span v-if="item.arr[0][0].drug.min_unit != item.arr[0][0].drug.dose_unit">
|
|
120
|
+ {{ item.arr[0][0].drug.dose }}{{ item.arr[0][0].drug.dose_unit }} * {{ item.arr[0][0].drug.min_number }}{{ item.arr[0][0].drug.min_unit }}/
|
|
121
|
+ {{item.arr[0][0].drug.max_unit}}
|
121
|
122
|
</span>
|
122
|
123
|
</div>
|
123
|
|
- <div style="display: inline-block;position: absolute;left:87%;top:20px;margin-left: 10px;">
|
124
|
|
- 共{{ arr[0][0].single_dose }}{{ arr[0][0].single_dose_unit }}
|
|
124
|
+ <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 10px;" >
|
|
125
|
+ 共{{ item.arr[0][0].single_dose }}{{ item.arr[0][0].single_dose_unit }}
|
125
|
126
|
</div>
|
126
|
127
|
</template>
|
127
|
128
|
</div>
|
128
|
129
|
|
129
|
130
|
<div style="margin-left: 70px">
|
130
|
131
|
用法:
|
131
|
|
- <span v-if="(arr.length>0 && arr[0][0].groupno!=it.groupno)||arr.length<0">{{ it.single_dose }}{{ it.single_dose_unit }}</span
|
|
132
|
+ <span v-if="(item.arr.length>0 && item.arr[0][0].groupno!=it.groupno)||arr.length<0">{{ it.single_dose }}{{ it.single_dose_unit }}</span
|
132
|
133
|
> <span
|
133
|
134
|
>{{ it.execution_frequency }} {{
|
134
|
135
|
it.delivery_way
|
135
|
136
|
}} </span> <span>{{ it.advice_desc }}</span>
|
136
|
137
|
</div>
|
137
|
|
-
|
|
138
|
+ <!-- v-if="arr.length>0 && arr[0][0].groupno==it.groupno" 'border-right':arr.length>0 && arr[0][0].groupno==it.groupno ? '1px solid black' :'none',-->
|
138
|
139
|
</div>
|
139
|
|
- <div style="display: inline-block;position: absolute;left:80%;bottom:0px;margin-left: 10px;" v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
|
|
140
|
+ <div style="display: inline-block;position: absolute;left:80%;bottom:0px;margin-left: 10px;" >
|
140
|
141
|
× {{ it.prescribing_number}}
|
141
|
142
|
</div>
|
142
|
|
- <div style="display: inline-block;position: absolute;left:87%;top:0px;margin-left: 10px;" v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
|
|
143
|
+ <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 10px;" v-if="item.arr.length>0 && item.arr[0][0].groupno==it.groupno">
|
143
|
144
|
<!-- 共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
|
144
|
145
|
共{{ it.single_dose }}{{ it.single_dose_unit }}
|
145
|
146
|
</div>
|
|
@@ -440,20 +441,28 @@ export default{
|
440
|
441
|
|
441
|
442
|
this.doctorList_1 = response.data.data.eles;
|
442
|
443
|
for(let i=0;i<this.advicePrint.length;i++){
|
443
|
|
- this.advicess=advicePrint[i].advices
|
444
|
|
- }
|
445
|
|
- for(let j=0;j<this.advicess.length;j++){
|
446
|
|
- for(let x=j+1;x<this.advicess.length;x++){
|
447
|
|
- if(this.advicess[j].groupno == this.advicess[x].groupno){
|
448
|
|
- this.arr.push(this.advicess.splice(x,1))
|
449
|
|
- // this.arrs=this.advicess.splice(x,1)
|
|
444
|
+ var arr = new Array()
|
|
445
|
+ var advicess = new Array()
|
|
446
|
+ var advicess=advicePrint[i].advices
|
|
447
|
+
|
|
448
|
+ for(let j=0;j<advicess.length;j++){
|
|
449
|
+ for(let x=j+1;x<advicess.length;x++){
|
|
450
|
+ if(advicess[j].groupno == advicess[x].groupno){
|
|
451
|
+ arr.push(advicess.splice(x,1))
|
450
|
452
|
}
|
451
|
453
|
}
|
452
|
454
|
}
|
453
|
|
- // this.merge(this.advicess)
|
454
|
|
- // console.log('4444444',this.arrs);
|
455
|
|
- console.log('55555555',this.arr);
|
456
|
|
- console.log('6666666',this.advicess);
|
|
455
|
+
|
|
456
|
+ this.advicePrint[i]["arr"] = arr
|
|
457
|
+ // for(let y=0;y<this.advicePrint[i].arr.length;y++){
|
|
458
|
+ // console.log('6666666',this.advicePrint[i].arr[y]);
|
|
459
|
+ // }
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+ }
|
|
463
|
+ console.log('4444444',this.advicePrint);
|
|
464
|
+ // console.log('55555555',this.arr);
|
|
465
|
+
|
457
|
466
|
console.log(this.doctorList_1, "医生列表");
|
458
|
467
|
if (this.doctorList_1.length > 0) {
|
459
|
468
|
var operatorsLen = this.doctorList_1.length;
|
|
@@ -660,6 +669,7 @@ export default{
|
660
|
669
|
margin-top: 10px;
|
661
|
670
|
line-height: 24px;
|
662
|
671
|
padding: 0 10px;
|
|
672
|
+
|
663
|
673
|
}
|
664
|
674
|
.infoTitle p {
|
665
|
675
|
width: 200px;
|