Browse Source

7月27日杨青

杨青 1 year ago
parent
commit
52753bbca4

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue View File

3
     <div class="dialysisPage" style="padding-top: 40px">
3
     <div class="dialysisPage" style="padding-top: 40px">
4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
5
 
5
 
6
-        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id !=0" v-bind:childResponse="childResponse" 
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id !=0 " v-bind:childResponse="childResponse" 
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" 
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" 
8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" 
8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" 
9
         :prescription_id="prescription_id"></printOne>
9
         :prescription_id="prescription_id"></printOne>

+ 35 - 25
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue View File

59
             <div class="Rp">Rp:</div>
59
             <div class="Rp">Rp:</div>
60
             <div
60
             <div
61
               class="drugsBox"
61
               class="drugsBox"
62
-              v-for="(it, index) in advicess" :key="index" 
62
+              v-for="(it, index) in item.advices" :key="index" 
63
               :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
63
               :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
64
             >
64
             >
65
             <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
65
             <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
101
                 </div>
101
                 </div>
102
               </template>
102
               </template>
103
               <div style="position: relative;">
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
                   <span style="font-weight: bold" >
105
                   <span style="font-weight: bold" >
106
                     {{ index + 1 + "." }}
106
                     {{ index + 1 + "." }}
107
                   </span>
107
                   </span>
110
                     {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
110
                     {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
111
                     {{it.drug.max_unit}}
111
                     {{it.drug.max_unit}}
112
                   </span>&nbsp;
112
                   </span>&nbsp;
113
+
113
                   <div>
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
                       <div >
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>&nbsp;&nbsp;
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 }}&nbsp;* {{ 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>&nbsp;&nbsp;
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 }}&nbsp;* {{ item.arr[0][0].drug.min_number }}{{ item.arr[0][0].drug.min_unit }}/
121
+                          {{item.arr[0][0].drug.max_unit}}
121
                         </span>&nbsp;
122
                         </span>&nbsp;
122
                       </div>
123
                       </div>
123
-                      <div style="display: inline-block;position: absolute;left:87%;top:20px;margin-left: 10px;">
124
-                        &nbsp;共{{ 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
+                        &nbsp;共{{ item.arr[0][0].single_dose }}{{ item.arr[0][0].single_dose_unit }}
125
                       </div>
126
                       </div>
126
                     </template>
127
                     </template>
127
                   </div>
128
                   </div>
128
                   
129
                   
129
                   <div style="margin-left: 70px">
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
                     >&nbsp;&nbsp;<span
133
                     >&nbsp;&nbsp;<span
133
                       >{{ it.execution_frequency }}&nbsp;{{
134
                       >{{ it.execution_frequency }}&nbsp;{{
134
                         it.delivery_way
135
                         it.delivery_way
135
                       }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
136
                       }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
136
                   </div>
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
                 </div>
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
                   ×&nbsp;{{ it.prescribing_number}}
141
                   ×&nbsp;{{ it.prescribing_number}}
141
                 </div>
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
                   <!-- &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
144
                   <!-- &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
144
                   &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
145
                   &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
145
                 </div>
146
                 </div>
440
 
441
 
441
           this.doctorList_1 = response.data.data.eles;
442
           this.doctorList_1 = response.data.data.eles;
442
          for(let i=0;i<this.advicePrint.length;i++){
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
           console.log(this.doctorList_1, "医生列表");
466
           console.log(this.doctorList_1, "医生列表");
458
           if (this.doctorList_1.length > 0) {
467
           if (this.doctorList_1.length > 0) {
459
             var operatorsLen = this.doctorList_1.length;
468
             var operatorsLen = this.doctorList_1.length;
660
   margin-top: 10px;
669
   margin-top: 10px;
661
   line-height: 24px;
670
   line-height: 24px;
662
   padding: 0 10px;
671
   padding: 0 10px;
672
+  
663
 }
673
 }
664
 .infoTitle p {
674
 .infoTitle p {
665
   width: 200px;
675
   width: 200px;