陈少旭 1 vuosi sitten
vanhempi
commit
2744577dbb

+ 2 - 2
src/xt_pages/outpatientDoctorStation/print.vue Näytä tiedosto

@@ -3,14 +3,14 @@
3 3
     <div class="dialysisPage" style="padding-top: 40px">
4 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 != 10188 && org_id != 0" v-bind:childResponse="childResponse"
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188" v-bind:childResponse="childResponse"
7 7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
8 8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
9 9
         :prescription_id="prescription_id"></printOne>
10 10
 
11 11
 
12 12
         <print-ten-one
13
-          v-if="org_id == 10188 || org_id == 0" v-bind:childResponse="childResponse"
13
+          v-if="org_id == 10188" v-bind:childResponse="childResponse"
14 14
           :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
15 15
           :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
16 16
           :prescription_id="prescription_id"

+ 225 - 139
src/xt_pages/outpatientDoctorStation/template/printOne.vue Näytä tiedosto

@@ -57,145 +57,30 @@
57 57
           <div class="Rp">Rp:</div>
58 58
           <div
59 59
             class="drugsBox"
60
-            v-for="(it, index) in advicess" :key="index"
60
+            v-for="(it, index) in item.advices"
61
+            :key="index"
61 62
             :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
62 63
           >
63
-            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
64
+            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
64 65
             <!-- <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">
66
-              <div style="margin: 20px 0px;">
67
-                <div class="infoTitle">
68
-                  <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
69
-                  <p>
70
-                    性别:
71
-                    <span v-if="item.patient.gender == 1">男</span>
72
-                    <span v-if="item.patient.gender == 2">女</span>
73
-                  </p>
74
-                  <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
75
-                </div>
76
-                <div class="infoMain">
77
-                  <div style="margin-bottom: 10px">
78
-                    门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
79
-                  </div>
80
-                  <div style="margin-bottom: 10px">
81
-                    科室:{{ item.info ? getDepart(item.info.departments) : "" }}
82
-                  </div>
83
-                  <div style="margin-bottom: 10px">
84
-                    医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
85
-                  </div>
86
-                  <div style="margin-bottom: 10px" v-if="org_id != 10188">
87
-                    电话:{{ item.patient.phone }}
88
-                  </div>
89
-                  <div style="margin-bottom: 10px" v-else>
90
-                    日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
91
-                  </div>
92
-                  <div>地址:{{ item.patient.home_address }}</div>
93
-                  <div style="display: flex; width: 50%">
94
-                    临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
95
-                  </div>
96
-                </div>
97
-              </div>
98
-            </template>
99
-            <div style="position: relative;">
100
-              <div class="drugsOne" style="border-right: 1px solid black; width: 80%;">
101
-                  <span style="font-weight: bold" >
102
-                    {{ index + 1 + "." }}
103
-                  </span>
104
-                {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
105
-                <span v-if="it.drug.min_unit != it.drug.dose_unit">
106
-                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
107
-                    {{it.drug.max_unit}}
108
-                  </span>&nbsp;
109
-                <div>
110
-                  <template v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
111
-                    <div >
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;
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 }}/
116
-                          {{arr[0][0].drug.max_unit}}
117
-                        </span>&nbsp;
118
-                    </div>
119
-                  </template>
120
-                </div>
121
-
122
-                <div style="margin-left: 70px">
123
-                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
124
-                    >&nbsp;&nbsp;<span
125
-                >{{ it.execution_frequency }}&nbsp;{{
126
-                    it.delivery_way
127
-                  }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
128
-                </div>
129
-
130
-              </div>
131
-              <div style="display: inline-block;position: absolute;left:85%;top:10px;margin-left: 10px;">
132
-                ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
133
-              </div>
66
+            <div class="drugsOne">
67
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
68
+              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
69
+              v-if="it.drug.min_unit != it.drug.dose_unit"
70
+            >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
71
+            >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
72
+                it.drug.max_unit
73
+              }}&nbsp;×&nbsp; {{ it.prescribing_number
74
+              }}{{ it.prescribing_number_unit }}
75
+            </div>
76
+            <div style="margin-left: 100px">
77
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
78
+              >&nbsp;&nbsp;<span
79
+            >{{ it.execution_frequency }}&nbsp;{{
80
+                it.delivery_way
81
+              }}&nbsp;</span
82
+            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
134 83
             </div>
135
-            <template v-if="index==yi&&item.advices.length>5">
136
-              <div style="margin: 20px 0px;">
137
-                <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
138
-                  <p v-if="org_id == 10217 || org_id == 0">
139
-                    医师:
140
-                    <span
141
-                      style="width: 100px; display: inline-block"
142
-                      v-if="item.creator == ''"
143
-                    >
144
-                        {{ item.doctor }}
145
-                      </span>
146
-                    <span
147
-                      style="width: 100px; display: inline-block"
148
-                      v-else-if="doc_name != ''"
149
-                    >
150
-                        {{ doc_name }}
151
-                      </span>
152
-                    <img
153
-                      style="height: 50px;"
154
-                      :src="setAdminUserES(item.creator,item.doctor)"
155
-                      alt=""
156
-                      srcset=""
157
-
158
-                    />
159
-                  </p>
160
-                  <p v-else>
161
-                    医师: {{ item.doctor ? item.doctor : "" }}
162
-                  </p>
163
-                  <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
164
-                </div>
165
-
166
-                <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
167
-                  <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
168
-                </div>
169
-                <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
170
-
171
-                  <p>审核:</p>
172
-                  <p>配对:</p>
173
-                  <p>核对:</p>
174
-                  <p>发药:</p>
175
-                  <p>
176
-                    药费:{{
177
-                      getTotalOne(item.id).toFixed(2)
178
-                        ? getTotalOne(item.id).toFixed(2)
179
-                        : 0
180
-                    }}元
181
-                  </p>
182
-                  <!--            <p>药费:466.2元</p>-->
183
-                </div>
184
-                <div class="actionBar" v-else>
185
-                  <p >审核、调配:</p>
186
-                  <p >核对、发药:</p>
187
-                  <p >
188
-                    药费:{{
189
-                      getTotalOne(item.id).toFixed(2)
190
-                        ? getTotalOne(item.id).toFixed(2)
191
-                        : 0
192
-                    }}元
193
-                  </p>
194
-                  <!--            <p>药费:551.2元</p>-->
195
-                  <!--            <p>药费:466.2元</p>-->
196
-                </div>
197
-              </div>
198
-            </template>
199 84
           </div>
200 85
 
201 86
           <div
@@ -216,8 +101,8 @@
216 101
             :key="index"
217 102
           >
218 103
             <div class="drugsOne">
219
-                <span style="font-weight: bold">{{ index + 1 + "." }}</span
220
-                >{{
104
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
105
+              >{{
221 106
                 it.type == 2
222 107
                   ? getProjectName(it.project_id)
223 108
                     ? getProjectName(it.project_id)
@@ -227,8 +112,8 @@
227 112
               }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
228 113
             </div>
229 114
             <div style="margin-left: 100px">
230
-                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
231
-                >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
115
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
116
+              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
232 117
             >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
233 118
             </div>
234 119
           </div>
@@ -246,6 +131,207 @@
246 131
           </div>
247 132
           <div style="text-align: center">(以下空白)</div>
248 133
         </div>
134
+<!--        <div class="prescriptionBox" >-->
135
+<!--          <div class="Rp">Rp:</div>-->
136
+<!--          <div-->
137
+<!--            class="drugsBox"-->
138
+<!--            v-for="(it, index) in advicess" :key="index"-->
139
+<!--            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"-->
140
+<!--          >-->
141
+<!--            &lt;!&ndash; class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"&ndash;&gt;-->
142
+<!--            &lt;!&ndash; <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> &ndash;&gt;-->
143
+<!--            <template v-if="index==yi+1&&item.advices.length>5">-->
144
+<!--              <div style="margin: 20px 0px;">-->
145
+<!--                <div class="infoTitle">-->
146
+<!--                  <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>-->
147
+<!--                  <p>-->
148
+<!--                    性别:-->
149
+<!--                    <span v-if="item.patient.gender == 1">男</span>-->
150
+<!--                    <span v-if="item.patient.gender == 2">女</span>-->
151
+<!--                  </p>-->
152
+<!--                  <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>-->
153
+<!--                </div>-->
154
+<!--                <div class="infoMain">-->
155
+<!--                  <div style="margin-bottom: 10px">-->
156
+<!--                    门诊号:{{ hisPatient.number ? hisPatient.number : "" }}-->
157
+<!--                  </div>-->
158
+<!--                  <div style="margin-bottom: 10px">-->
159
+<!--                    科室:{{ item.info ? getDepart(item.info.departments) : "" }}-->
160
+<!--                  </div>-->
161
+<!--                  <div style="margin-bottom: 10px">-->
162
+<!--                    医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}-->
163
+<!--                  </div>-->
164
+<!--                  <div style="margin-bottom: 10px" v-if="org_id != 10188">-->
165
+<!--                    电话:{{ item.patient.phone }}-->
166
+<!--                  </div>-->
167
+<!--                  <div style="margin-bottom: 10px" v-else>-->
168
+<!--                    日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}-->
169
+<!--                  </div>-->
170
+<!--                  <div>地址:{{ item.patient.home_address }}</div>-->
171
+<!--                  <div style="display: flex; width: 50%">-->
172
+<!--                    临床诊断:{{ getDiagnosis(item.info.diagnosis) }}-->
173
+<!--                  </div>-->
174
+<!--                </div>-->
175
+<!--              </div>-->
176
+<!--            </template>-->
177
+<!--            <div style="position: relative;">-->
178
+<!--              <div class="drugsOne" style="border-right: 1px solid black; width: 80%;">-->
179
+<!--                  <span style="font-weight: bold" >-->
180
+<!--                    {{ index + 1 + "." }}-->
181
+<!--                  </span>-->
182
+<!--                {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;-->
183
+<!--                <span v-if="it.drug.min_unit != it.drug.dose_unit">-->
184
+<!--                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/-->
185
+<!--                    {{it.drug.max_unit}}-->
186
+<!--                  </span>&nbsp;-->
187
+<!--                <div>-->
188
+<!--                  <template v-if="arr.length>0 && arr[0][0].groupno==it.groupno">-->
189
+<!--                    <div >-->
190
+<!--                      &lt;!&ndash;  v-for="(its,indexs) in arr" :key="indexs" &ndash;&gt;-->
191
+<!--                      <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;-->
192
+<!--                      <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">-->
193
+<!--                          {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }}&nbsp;* {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/-->
194
+<!--                          {{arr[0][0].drug.max_unit}}-->
195
+<!--                        </span>&nbsp;-->
196
+<!--                    </div>-->
197
+<!--                  </template>-->
198
+<!--                </div>-->
199
+
200
+<!--                <div style="margin-left: 70px">-->
201
+<!--                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span-->
202
+<!--                    >&nbsp;&nbsp;<span-->
203
+<!--                >{{ it.execution_frequency }}&nbsp;{{-->
204
+<!--                    it.delivery_way-->
205
+<!--                  }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>-->
206
+<!--                </div>-->
207
+
208
+<!--              </div>-->
209
+<!--              <div style="display: inline-block;position: absolute;left:85%;top:10px;margin-left: 10px;">-->
210
+<!--                ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}-->
211
+<!--              </div>-->
212
+<!--            </div>-->
213
+<!--            <template v-if="index==yi&&item.advices.length>5">-->
214
+<!--              <div style="margin: 20px 0px;">-->
215
+<!--                <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">-->
216
+<!--                  <p v-if="org_id == 10217 || org_id == 0">-->
217
+<!--                    医师:-->
218
+<!--                    <span-->
219
+<!--                      style="width: 100px; display: inline-block"-->
220
+<!--                      v-if="item.creator == ''"-->
221
+<!--                    >-->
222
+<!--                        {{ item.doctor }}-->
223
+<!--                      </span>-->
224
+<!--                    <span-->
225
+<!--                      style="width: 100px; display: inline-block"-->
226
+<!--                      v-else-if="doc_name != ''"-->
227
+<!--                    >-->
228
+<!--                        {{ doc_name }}-->
229
+<!--                      </span>-->
230
+<!--                    <img-->
231
+<!--                      style="height: 50px;"-->
232
+<!--                      :src="setAdminUserES(item.creator,item.doctor)"-->
233
+<!--                      alt=""-->
234
+<!--                      srcset=""-->
235
+
236
+<!--                    />-->
237
+<!--                  </p>-->
238
+<!--                  <p v-else>-->
239
+<!--                    医师: {{ item.doctor ? item.doctor : "" }}-->
240
+<!--                  </p>-->
241
+<!--                  <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>-->
242
+<!--                </div>-->
243
+
244
+<!--                <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">-->
245
+<!--                  <p>医师:{{ item.doctor ? item.doctor : "" }}</p>-->
246
+<!--                </div>-->
247
+<!--                <div class="actionBar" v-if="org_id != 10188 && org_id != 0">-->
248
+
249
+<!--                  <p>审核:</p>-->
250
+<!--                  <p>配对:</p>-->
251
+<!--                  <p>核对:</p>-->
252
+<!--                  <p>发药:</p>-->
253
+<!--                  <p>-->
254
+<!--                    药费:{{-->
255
+<!--                      getTotalOne(item.id).toFixed(2)-->
256
+<!--                        ? getTotalOne(item.id).toFixed(2)-->
257
+<!--                        : 0-->
258
+<!--                    }}元-->
259
+<!--                  </p>-->
260
+<!--                  &lt;!&ndash;            <p>药费:466.2元</p>&ndash;&gt;-->
261
+<!--                </div>-->
262
+<!--                <div class="actionBar" v-else>-->
263
+<!--                  <p >审核、调配:</p>-->
264
+<!--                  <p >核对、发药:</p>-->
265
+<!--                  <p >-->
266
+<!--                    药费:{{-->
267
+<!--                      getTotalOne(item.id).toFixed(2)-->
268
+<!--                        ? getTotalOne(item.id).toFixed(2)-->
269
+<!--                        : 0-->
270
+<!--                    }}元-->
271
+<!--                  </p>-->
272
+<!--                  &lt;!&ndash;            <p>药费:551.2元</p>&ndash;&gt;-->
273
+<!--                  &lt;!&ndash;            <p>药费:466.2元</p>&ndash;&gt;-->
274
+<!--                </div>-->
275
+<!--              </div>-->
276
+<!--            </template>-->
277
+<!--          </div>-->
278
+
279
+<!--          <div-->
280
+<!--            class="drugsBox"-->
281
+<!--            v-for="(it, i) in item.additionalcharge"-->
282
+<!--            :key="i"-->
283
+<!--          >-->
284
+<!--            <div class="drugsOne">-->
285
+<!--              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{-->
286
+<!--                it.count-->
287
+<!--              }}次-->
288
+<!--            </div>-->
289
+<!--          </div>-->
290
+
291
+<!--          <div-->
292
+<!--            class="drugsBox"-->
293
+<!--            v-for="(it, index) in item.project"-->
294
+<!--            :key="index"-->
295
+<!--          >-->
296
+<!--            <div class="drugsOne">-->
297
+<!--                <span style="font-weight: bold">{{ index + 1 + "." }}</span-->
298
+<!--                >{{-->
299
+<!--                it.type == 2-->
300
+<!--                  ? getProjectName(it.project_id)-->
301
+<!--                    ? getProjectName(it.project_id)-->
302
+<!--                    : ""-->
303
+<!--                  : it.good_info.good_name-->
304
+<!--              }}&nbsp;&nbsp;{{ it.single_dose-->
305
+<!--              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}-->
306
+<!--            </div>-->
307
+<!--            <div style="margin-left: 100px">-->
308
+<!--                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span-->
309
+<!--                >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span-->
310
+<!--            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>-->
311
+<!--            </div>-->
312
+<!--          </div>-->
313
+
314
+<!--          <div-->
315
+<!--            class="drugsBox"-->
316
+<!--            v-for="(it, i) in item.additionalcharge"-->
317
+<!--            :key="i"-->
318
+<!--          >-->
319
+<!--            <div class="drugsOne">-->
320
+<!--              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{-->
321
+<!--                it.price.toFixed(2)-->
322
+<!--              }}元/{{ it.count }}次-->
323
+<!--            </div>-->
324
+<!--          </div>-->
325
+<!--          <div style="text-align: center">(以下空白)</div>-->
326
+<!--        </div>-->
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
249 335
 
250 336
         <div class="doctorBox">
251 337
           <p v-if="org_id == 10217">