Browse Source

7月24日杨青

杨青 1 year ago
parent
commit
df92ef4400
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/xt_pages/outpatientDoctorStation/template/printOne.vue

+ 6 - 6
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

58
             <div
58
             <div
59
               class="drugsBox"
59
               class="drugsBox"
60
               v-for="(it, index) in advicess" :key="index" 
60
               v-for="(it, index) in advicess" :key="index" 
61
-              :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
61
+              :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"
62
             >
62
             >
63
             <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
63
             <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
64
               <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
64
               <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65
-              <template v-if="index==yi+1&&item.advices.length>5">
65
+              <template v-if="index==yi+1&&item.advices.length>3">
66
                 <div style="margin: 20px 0px;">
66
                 <div style="margin: 20px 0px;">
67
                   <div class="infoTitle">
67
                   <div class="infoTitle">
68
                     <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
68
                     <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
107
                     {{it.drug.max_unit}}
107
                     {{it.drug.max_unit}}
108
                   </span>&nbsp;
108
                   </span>&nbsp;
109
                   <div>
109
                   <div>
110
-                    <template v-if="arr[0][0].groupno==it.groupno">
110
+                    <template v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
111
                       <div >
111
                       <div >
112
-                        <!--  v-for="(its,indexs) in arr" :key="indexs"-->
112
+                        <!--  v-for="(its,indexs) in arr" :key="indexs" -->
113
                         <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;
113
                         <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;
114
                         <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">
114
                         <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">
115
                           {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }}&nbsp;* {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/
115
                           {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }}&nbsp;* {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/
132
                   ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
132
                   ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
133
                 </div>
133
                 </div>
134
               </div>
134
               </div>
135
-              <template v-if="index==yi&&item.advices.length>5">
135
+              <template v-if="index==yi&&item.advices.length>3">
136
                 <div style="margin: 20px 0px;">
136
                 <div style="margin: 20px 0px;">
137
                   <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
137
                   <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
138
                     <p v-if="org_id == 10217 || org_id == 0">
138
                     <p v-if="org_id == 10217 || org_id == 0">
343
       doc_name:"",
343
       doc_name:"",
344
       doctorList: [],
344
       doctorList: [],
345
       advicePrint: {},
345
       advicePrint: {},
346
-      yi:4,
346
+      yi:2,
347
       arr:[],
347
       arr:[],
348
       arrs:{},
348
       arrs:{},
349
       advicess:[],
349
       advicess:[],