|
@@ -99,8 +99,139 @@
|
99
|
99
|
</div>
|
100
|
100
|
</template>
|
101
|
101
|
<div style="position: relative;">
|
102
|
|
- <div v-if="item.arr.length>0">
|
103
|
|
- <!-- <div v-for="(ite,indexs) in item.arr" :key="indexs"> -->
|
|
102
|
+ <div v-if="it.arr !== undefined">
|
|
103
|
+ <div class="drugsOne" :style="{'border-right':it.arr.length>0 ? '1px solid black': 'none','width':'80%'}">
|
|
104
|
+ <span style="font-weight: bold" >
|
|
105
|
+ {{ index + 1 + "."}}
|
|
106
|
+ </span>
|
|
107
|
+ {{ it.advice_name ? it.advice_name : "" }}
|
|
108
|
+ <span v-if="it.drug.min_unit != it.drug.dose_unit">
|
|
109
|
+ {{ it.drug.dose }}{{ it.drug.dose_unit }} * {{ it.drug.min_number }}{{ it.drug.min_unit }}/
|
|
110
|
+ {{it.drug.max_unit}}
|
|
111
|
+ </span>
|
|
112
|
+ <div>
|
|
113
|
+ <template>
|
|
114
|
+ <div>
|
|
115
|
+ <span style="margin-left: 38px;">{{it.arr[0].advice_name ? it.arr[0].advice_name : ""}}</span>
|
|
116
|
+ <!-- v-if="ite[0].drug.min_unit != ite[0].drug.dose_unit" -->
|
|
117
|
+ <span >
|
|
118
|
+ {{ it.arr[0].drug.dose }}{{ it.arr[0].drug.dose_unit }} * {{ it.arr[0].drug.min_number }}{{ it.arr[0].drug.min_unit }}/
|
|
119
|
+ {{it.arr[0].drug.max_unit}}
|
|
120
|
+ </span>
|
|
121
|
+ </div>
|
|
122
|
+ <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 5px;" >
|
|
123
|
+ 共{{ it.arr[0].single_dose }}{{ it.arr[0].single_dose_unit }}
|
|
124
|
+ </div>
|
|
125
|
+ </template>
|
|
126
|
+ </div>
|
|
127
|
+
|
|
128
|
+ <div style="margin-left: 70px" >
|
|
129
|
+ <template>
|
|
130
|
+ 用法:
|
|
131
|
+ <!-- <div style="display: inline-block;">
|
|
132
|
+ <template>
|
|
133
|
+ <span style="margin-right: 0;" v-if="it.arr[0].length==0">{{ it.single_dose }}{{ it.single_dose_unit }}</span>
|
|
134
|
+ </template>
|
|
135
|
+ </div> -->
|
|
136
|
+ <span>
|
|
137
|
+ {{ it.execution_frequency }} {{
|
|
138
|
+ it.delivery_way
|
|
139
|
+ }} </span> <span>{{ it.advice_desc}}</span>
|
|
140
|
+ </template>
|
|
141
|
+ </div>
|
|
142
|
+
|
|
143
|
+ <div style="margin-left: 70px" v-if="it.remark !=''">
|
|
144
|
+ 备注:<span > {{ it.remark }}</span>
|
|
145
|
+ </div>
|
|
146
|
+ </div>
|
|
147
|
+
|
|
148
|
+ <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
|
|
149
|
+ × {{ it.prescribing_number}}
|
|
150
|
+ </div>
|
|
151
|
+ <!-- <div> -->
|
|
152
|
+ <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
|
|
153
|
+ × {{ it.arr[0].prescribing_number}}
|
|
154
|
+ </div>
|
|
155
|
+ <!-- </div> -->
|
|
156
|
+ <template>
|
|
157
|
+ <!-- <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" v-if="(item.arr.length>0&&ite[0].groupno!=it.groupno) ||item.arr.length==0">
|
|
158
|
+ 共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
|
|
159
|
+ </div> -->
|
|
160
|
+
|
|
161
|
+ <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" >
|
|
162
|
+ 共{{ it.single_dose }}{{ it.single_dose_unit }}
|
|
163
|
+ </div>
|
|
164
|
+ </template>
|
|
165
|
+ </div>
|
|
166
|
+ <div v-if="it.arr === undefined">
|
|
167
|
+ <div class="drugsOne" >
|
|
168
|
+ <span style="font-weight: bold" >
|
|
169
|
+ {{ index + 1 + "."}}
|
|
170
|
+ </span>
|
|
171
|
+ {{ it.advice_name ? it.advice_name : "" }}
|
|
172
|
+ <span v-if="it.drug.min_unit != it.drug.dose_unit">
|
|
173
|
+ {{ it.drug.dose }}{{ it.drug.dose_unit }} * {{ it.drug.min_number }}{{ it.drug.min_unit }}/
|
|
174
|
+ {{it.drug.max_unit}}
|
|
175
|
+ </span>
|
|
176
|
+ <!-- <div>
|
|
177
|
+ <template>
|
|
178
|
+ <div>
|
|
179
|
+ <span style="margin-left: 38px;">{{it.arr[0].advice_name ? it.arr[0].advice_name : ""}}</span>
|
|
180
|
+ <span >
|
|
181
|
+ {{ it.arr[0].drug.dose }}{{ it.arr[0].drug.dose_unit }} * {{ it.arr[0].drug.min_number }}{{ it.arr[0].drug.min_unit }}/
|
|
182
|
+ {{it.arr[0].drug.max_unit}}
|
|
183
|
+ </span>
|
|
184
|
+ </div>
|
|
185
|
+ <div style="display: inline-block;position: absolute;left:85%;top:20px;margin-left: 5px;" >
|
|
186
|
+ 共{{ it.arr[0].single_dose }}{{ it.arr[0].single_dose_unit }}
|
|
187
|
+ </div>
|
|
188
|
+ </template>
|
|
189
|
+ </div> -->
|
|
190
|
+
|
|
191
|
+ <div style="margin-left: 70px" >
|
|
192
|
+ <template>
|
|
193
|
+ 用法:
|
|
194
|
+ <!-- <div style="display: inline-block;">
|
|
195
|
+ <template>
|
|
196
|
+
|
|
197
|
+ </template>
|
|
198
|
+ </div> -->
|
|
199
|
+ <span style="margin-right: 0;" >{{ it.single_dose }}{{ it.single_dose_unit }}</span>
|
|
200
|
+ <span>
|
|
201
|
+ {{ it.execution_frequency }} {{
|
|
202
|
+ it.delivery_way
|
|
203
|
+ }} </span> <span>{{ it.advice_desc}}</span>
|
|
204
|
+ </template>
|
|
205
|
+ </div>
|
|
206
|
+
|
|
207
|
+ <div style="margin-left: 70px" v-if="it.remark !=''">
|
|
208
|
+ 备注:<span > {{ it.remark }}</span>
|
|
209
|
+ </div>
|
|
210
|
+ </div>
|
|
211
|
+
|
|
212
|
+ <div style="display: inline-block;position: absolute;left:80%;bottom:30px;margin-left: 5px;" >
|
|
213
|
+ × {{ it.prescribing_number}}
|
|
214
|
+ </div>
|
|
215
|
+ <!-- <div> -->
|
|
216
|
+ <!-- <div style="display: inline-block;position: absolute;left:80%;bottom:15px;margin-left: 5px;" >
|
|
217
|
+ × {{ it.arr[0].prescribing_number}}
|
|
218
|
+ </div> -->
|
|
219
|
+ <!-- </div> -->
|
|
220
|
+ <template>
|
|
221
|
+ <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;">
|
|
222
|
+ 共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
|
|
223
|
+ </div>
|
|
224
|
+
|
|
225
|
+ <!-- <div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" >
|
|
226
|
+ 共{{ it.single_dose }}{{ it.single_dose_unit }}
|
|
227
|
+ </div> -->
|
|
228
|
+ </template>
|
|
229
|
+ </div>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+ <!-- <div v-if="item.arr.length>0">
|
|
234
|
+ <div v-for="(ite,indexs) in item.arr" :key="indexs">
|
104
|
235
|
<template>
|
105
|
236
|
<div class="drugsOne" :style="{'border-right':item.arr.length>0 && (item.arr[0][0].groupno==it.groupno) ? '1px solid black': 'none','width':'80%'}">
|
106
|
237
|
<span style="font-weight: bold" >
|
|
@@ -112,7 +243,7 @@
|
112
|
243
|
{{it.drug.max_unit}}
|
113
|
244
|
</span>
|
114
|
245
|
<div v-for="(ite,indexs) in item.arr" :key="indexs">
|
115
|
|
- <!-- v-for="(ite,indexs) in item.arr" :key="indexs" -->
|
|
246
|
+
|
116
|
247
|
<template v-if="item.arr.length>0 && ite[0].groupno==it.groupno">
|
117
|
248
|
<div>
|
118
|
249
|
<span style="margin-left: 38px;">{{ite[0].advice_name ? ite[0].advice_name : ""}}</span>
|
|
@@ -146,12 +277,11 @@
|
146
|
277
|
</div>
|
147
|
278
|
</div>
|
148
|
279
|
</template>
|
149
|
|
- <!-- </div> -->
|
150
|
|
- </div>
|
|
280
|
+ </div>
|
|
281
|
+ </div> -->
|
151
|
282
|
|
152
|
|
- <div v-if="item.arr.length==0">
|
153
|
|
- <!--
|
154
|
|
- :style="{'border-right':item.arr.length>0 && (item.arr[0][0].groupno==it.groupno) ? '1px solid black': 'none','width':'80%'}"-->
|
|
283
|
+ <!-- <div v-if="item.arr.length==0">
|
|
284
|
+
|
155
|
285
|
<div class="drugsOne" >
|
156
|
286
|
<span style="font-weight: bold" >
|
157
|
287
|
{{ index + 1 + "."}}
|
|
@@ -209,7 +339,7 @@
|
209
|
339
|
<div style="display: inline-block;position: absolute;left:85%;top:0px;margin-left: 5px;" >
|
210
|
340
|
共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
|
211
|
341
|
</div>
|
212
|
|
- </div>
|
|
342
|
+ </div> -->
|
213
|
343
|
<!-------------------------------------------------------------------------->
|
214
|
344
|
<!-- <template>
|
215
|
345
|
<div v-for="(ite,indexs) in item.arr" :key="indexs">
|
|
@@ -564,7 +694,7 @@ export default{
|
564
|
694
|
|
565
|
695
|
this.doctorList_1 = response.data.data.eles;
|
566
|
696
|
for(let i=0;i<this.advicePrint.length;i++){
|
567
|
|
- var arr = new Array()
|
|
697
|
+ const arr = new Array()
|
568
|
698
|
var advicess = new Array()
|
569
|
699
|
var advicess=advicePrint[i].advices
|
570
|
700
|
|
|
@@ -577,14 +707,13 @@ export default{
|
577
|
707
|
}
|
578
|
708
|
|
579
|
709
|
// this.advicePrint[i]['advices'][0]['arr'] = arr
|
580
|
|
- this.advicePrint[i]["arr"] = arr
|
581
|
|
- // console.log('55555',this.advicePrint);
|
582
|
|
- console.log('ttttt',arr);
|
|
710
|
+ // this.advicePrint[i]["arr"] = arr
|
|
711
|
+ // console.log('55555',arr);
|
|
712
|
+ // console.log('ttttt',arr);
|
583
|
713
|
for(let x in arr){
|
584
|
714
|
for(let j in this.advicePrint[i].advices){
|
585
|
|
-
|
586
|
715
|
if(arr[x][0].groupno==this.advicePrint[i].advices[j].groupno){
|
587
|
|
- this.advicePrint[i]['advices'][j]['arr'] = arr
|
|
716
|
+ this.advicePrint[i]['advices'][j]['arr'] = arr[x]
|
588
|
717
|
}
|
589
|
718
|
}
|
590
|
719
|
}
|
|
@@ -646,7 +775,7 @@ export default{
|
646
|
775
|
return name;
|
647
|
776
|
},
|
648
|
777
|
getTotalOne(id) {
|
649
|
|
- console.log('999999999',id);
|
|
778
|
+ console.log('999999999',this.prescriptions);
|
650
|
779
|
var total = 0;
|
651
|
780
|
var addtotal = 0;
|
652
|
781
|
var zimuyao = 0;
|
|
@@ -685,15 +814,21 @@ export default{
|
685
|
814
|
total +
|
686
|
815
|
(this.prescriptions[i].advices[a].price *
|
687
|
816
|
this.prescriptions[i].advices[a].prescribing_number) ;
|
|
817
|
+
|
|
818
|
+ if(this.prescriptions[i].advices[a].arr !=undefined){
|
|
819
|
+ zimuyao = zimuyao +
|
|
820
|
+ this.prescriptions[i].advices[a].arr[0].price *
|
|
821
|
+ this.prescriptions[i].advices[a].arr[0].prescribing_number
|
|
822
|
+ }
|
688
|
823
|
}
|
689
|
824
|
}
|
690
|
|
- if(this.prescriptions[i].arr[0] != null){
|
691
|
|
- for(let b=0;b<this.prescriptions[i].arr[0].length;b++){
|
692
|
|
- zimuyao = zimuyao +
|
693
|
|
- this.prescriptions[i].arr[b][0].price *
|
694
|
|
- this.prescriptions[i].arr[b][0].prescribing_number
|
695
|
|
- }
|
696
|
|
- }
|
|
825
|
+ // if(this.prescriptions[i].arr[0] != null){
|
|
826
|
+ // for(let b=0;b<this.prescriptions[i].arr[0].length;b++){
|
|
827
|
+ // zimuyao = zimuyao +
|
|
828
|
+ // this.prescriptions[i].arr[b][0].price *
|
|
829
|
+ // this.prescriptions[i].arr[b][0].prescribing_number
|
|
830
|
+ // }
|
|
831
|
+ // }
|
697
|
832
|
if (this.prescriptions[i].additionalcharge != null) {
|
698
|
833
|
for (
|
699
|
834
|
let a = 0;
|