Просмотр исходного кода

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 месяц назад
Родитель
Сommit
ccbb63a26e

+ 9 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_eightyfour.vue Просмотреть файл

177
                           <label-box :isChecked="record.prescription.calcium=='1.75'?true :false" showValue="1.75mmo1/L"></label-box>&nbsp;&nbsp;
177
                           <label-box :isChecked="record.prescription.calcium=='1.75'?true :false" showValue="1.75mmo1/L"></label-box>&nbsp;&nbsp;
178
                         </div>
178
                         </div>
179
                         <div style="flex: 1;">
179
                         <div style="flex: 1;">
180
-                          医师签名:杨能华/
181
-                          <span style="display: inline-block;width: 50%;" v-if="setAdminUserES(record.prescription,'creater') == ''">
180
+                          医师签名:徐华
181
+                          <!-- <span style="display: inline-block;width: 50%;" v-if="setAdminUserES(record.prescription,'creater') == ''">
182
                             {{ getAdminUser(record.prescription, 'creater')}}
182
                             {{ getAdminUser(record.prescription, 'creater')}}
183
                           </span>
183
                           </span>
184
                           <span style="display: inline-block;width: 50%;" v-else>
184
                           <span style="display: inline-block;width: 50%;" v-else>
185
                             <img style="height:30px;" :src="setAdminUserES(record.prescription,'creater')" alt srcset />
185
                             <img style="height:30px;" :src="setAdminUserES(record.prescription,'creater')" alt srcset />
186
-                          </span>
186
+                          </span> -->
187
                         </div>
187
                         </div>
188
                       </div>
188
                       </div>
189
                       
189
                       
325
                       <td>{{ advice[0].delivery_way }}</td>
325
                       <td>{{ advice[0].delivery_way }}</td>
326
                       <td>{{ getTime(advice[0].execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
326
                       <td>{{ getTime(advice[0].execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
327
                       <td style="height:30px;line-height:30px">
327
                       <td style="height:30px;line-height:30px">
328
-                        <span v-if="advice[0].start_time>0">杨能华/</span>
328
+                        徐华
329
+                        <!-- <span v-if="advice[0].start_time>0">杨能华/</span>
329
                         <span v-if="setAdminUserES(advice[0],'advice_doctor') == ''">
330
                         <span v-if="setAdminUserES(advice[0],'advice_doctor') == ''">
330
                           {{ getAdminUser(advice[0],'advice_doctor')}}
331
                           {{ getAdminUser(advice[0],'advice_doctor')}}
331
                         </span>
332
                         </span>
334
                           style="display:flex;align-items:center;justify-content:space-around;height:25px;"
335
                           style="display:flex;align-items:center;justify-content:space-around;height:25px;"
335
                         >
336
                         >
336
                           <img style="height:25px;" :src="setAdminUserES(advice[0],'advice_doctor')" alt srcset />
337
                           <img style="height:25px;" :src="setAdminUserES(advice[0],'advice_doctor')" alt srcset />
337
-                        </span>
338
+                        </span> -->
338
                       </td>
339
                       </td>
339
                       <td style="height:30px;line-height:30px">
340
                       <td style="height:30px;line-height:30px">
340
                         <span v-if="setAdminUserES(advice[0], 'execution_staff') == ''">{{ getAdminUser(advice[0], 'execution_staff') }}</span>
341
                         <span v-if="setAdminUserES(advice[0], 'execution_staff') == ''">{{ getAdminUser(advice[0], 'execution_staff') }}</span>
366
                 <div style="display: flex;border: 1px solid black;padding: 5px;">
367
                 <div style="display: flex;border: 1px solid black;padding: 5px;">
367
                   <div style="flex: 1;">
368
                   <div style="flex: 1;">
368
                     <div style="display: inline-block;margin-right: 120px;">
369
                     <div style="display: inline-block;margin-right: 120px;">
369
-                      <span style="display: inline-block;">医生签名:</span>杨能华/
370
-                      <span>
370
+                      <span style="display: inline-block;">医生签名:</span>徐华
371
+                      <!-- <span>
371
                         <span v-if="setAdminUserES(record.prescription,'creater') == ''">
372
                         <span v-if="setAdminUserES(record.prescription,'creater') == ''">
372
                           {{ getAdminUser(record.prescription,'creater') }}
373
                           {{ getAdminUser(record.prescription,'creater') }}
373
                         </span>
374
                         </span>
374
                         <img class="es-img" :src="setAdminUserES(record.prescription,'creater')" alt=""
375
                         <img class="es-img" :src="setAdminUserES(record.prescription,'creater')" alt=""
375
                           srcset="" v-else style="height: 30px;" />
376
                           srcset="" v-else style="height: 30px;" />
376
-                      </span>
377
+                      </span> -->
377
                     </div>
378
                     </div>
378
                   </div>
379
                   </div>
379
                   <div style="flex: 1;">  
380
                   <div style="flex: 1;">  

+ 6 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Просмотреть файл

1278
                             org_id == 10629 ||
1278
                             org_id == 10629 ||
1279
                             org_id == 10510 ||
1279
                             org_id == 10510 ||
1280
                             org_id == 10598 ||
1280
                             org_id == 10598 ||
1281
-                            org_id == 10567
1281
+                            org_id == 10567 ||
1282
+                            org_id ==10234 ||
1283
+                            org_id == 10121
1282
 
1284
 
1283
                           ">
1285
                           ">
1284
                             KT/V
1286
                             KT/V
1530
                             org_id == 10629 ||
1532
                             org_id == 10629 ||
1531
                             org_id == 10510 ||
1533
                             org_id == 10510 ||
1532
                             org_id == 10598 ||
1534
                             org_id == 10598 ||
1533
-                            org_id == 10567
1535
+                            org_id == 10567 ||
1536
+                            org_id == 10234 || 
1537
+                            org_id == 10121
1534
                           ">
1538
                           ">
1535
                             {{ monitor_record.ktv }}
1539
                             {{ monitor_record.ktv }}
1536
                           </td>
1540
                           </td>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Просмотреть файл

11
         >
11
         >
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
13
             <div style="position: absolute;left: 20%;top: 3%;width: 70%;">
13
             <div style="position: absolute;left: 20%;top: 3%;width: 70%;">
14
-              <span  v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
14
+              <span  v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702&&this.$store.getters.xt_user.template_info.org_id!=10744">
15
                 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
15
                 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
               </span>&nbsp;&nbsp;
16
               </span>&nbsp;&nbsp;
17
 
17
 
18
-              <span style="" v-if="this.$store.getters.xt_user.template_info.org_id ==0||this.$store.getters.xt_user.template_info.org_id==10702">
18
+              <span style="" v-if="this.$store.getters.xt_user.template_info.org_id ==0||this.$store.getters.xt_user.template_info.org_id==10702||this.$store.getters.xt_user.template_info.org_id==10744">
19
                 透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
19
                 透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
20
               </span>&nbsp;&nbsp;
20
               </span>&nbsp;&nbsp;
21
               <!-- style="position: absolute;left: 20%;top: 3%"  position: absolute;left:38%;top: 3%-->
21
               <!-- style="position: absolute;left: 20%;top: 3%"  position: absolute;left:38%;top: 3%-->

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Просмотреть файл

1462
                           </td>
1462
                           </td>
1463
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1463
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1464
                           <td width="50"
1464
                           <td width="50"
1465
-                            v-if="org_id == 9538 || org_id == 10600 || org_id == 10629 || org_id == 10510 || org_id == 10580 || org_id == 10598 || org_id == 10567">
1465
+                            v-if="org_id == 9538 || org_id == 10600 || org_id == 10629 || org_id == 10510 || org_id == 10580 || org_id == 10598 || org_id == 10567 || org_id ==10234 || org_id == 10121">
1466
                             KT/V</td>
1466
                             KT/V</td>
1467
                           <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1467
                           <td width="50" v-if="org_id == 9919">在线尿素监测</td>
1468
                           <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1468
                           <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1652
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">{{
1652
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">{{
1653
                             monitor.filter_pressure ? monitor.filter_pressure : "" }}</td>
1653
                             monitor.filter_pressure ? monitor.filter_pressure : "" }}</td>
1654
                           <td width="50"
1654
                           <td width="50"
1655
-                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id == 10600 || org_id == 10629 || org_id == 10510 || org_id == 10580 || org_id == 10598 || org_id == 10567">
1655
+                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9671 || org_id == 10600 || org_id == 10629 || org_id == 10510 || org_id == 10580 || org_id == 10598 || org_id == 10567 || org_id == 10234 || org_id == 10121">
1656
                             {{ monitor.ktv ? monitor.ktv : "" }}
1656
                             {{ monitor.ktv ? monitor.ktv : "" }}
1657
                           </td>
1657
                           </td>
1658
                           <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1658
                           <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">

+ 9 - 8
src/xt_pages/dialysis/template/DialysisPrintOrdereightyfour.vue Просмотреть файл

134
                     <label-box :isChecked="prescription.calcium=='1.75'?true :false" showValue="1.75mmo1/L"></label-box>&nbsp;&nbsp;
134
                     <label-box :isChecked="prescription.calcium=='1.75'?true :false" showValue="1.75mmo1/L"></label-box>&nbsp;&nbsp;
135
                   </div>
135
                   </div>
136
                   <div style="flex: 1;">
136
                   <div style="flex: 1;">
137
-                    医师签名:杨能华/
138
-                    <span style="display: inline-block;width: 50%;" v-if="setAdminUserES(prescription.creater) == ''">
137
+                    医师签名:徐华
138
+                    <!-- <span style="display: inline-block;width: 50%;" v-if="setAdminUserES(prescription.creater) == ''">
139
                       {{ getAdminUser(prescription.creater)}}
139
                       {{ getAdminUser(prescription.creater)}}
140
                     </span>
140
                     </span>
141
                     <span style="display: inline-block;width: 50%;" v-else>
141
                     <span style="display: inline-block;width: 50%;" v-else>
142
                       <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset />
142
                       <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset />
143
-                    </span>
143
+                    </span> -->
144
                   </div>
144
                   </div>
145
                 </div>
145
                 </div>
146
                 
146
                 
278
                 <td>{{ advice.delivery_way }}</td>
278
                 <td>{{ advice.delivery_way }}</td>
279
                 <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
279
                 <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
280
                 <td style="height:30px;line-height:30px">
280
                 <td style="height:30px;line-height:30px">
281
-                  <span v-if="advice.start_time>0">杨能华/</span>
281
+                  徐华
282
+                  <!-- <span v-if="advice.start_time>0">徐华/</span>
282
                   <span v-if="setAdminUserES(advice.advice_doctor) == ''">
283
                   <span v-if="setAdminUserES(advice.advice_doctor) == ''">
283
                     {{ getAdminUser(advice.advice_doctor)}}
284
                     {{ getAdminUser(advice.advice_doctor)}}
284
                   </span>
285
                   </span>
287
                     style="display:flex;align-items:center;justify-content:space-around;height:25px;"
288
                     style="display:flex;align-items:center;justify-content:space-around;height:25px;"
288
                   >
289
                   >
289
                     <img style="height:25px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
290
                     <img style="height:25px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
290
-                  </span>
291
+                  </span> -->
291
                 </td>
292
                 </td>
292
                 <td style="height:30px;line-height:30px">
293
                 <td style="height:30px;line-height:30px">
293
                   <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
294
                   <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
322
           <div style="display: flex;border: 1px solid black;padding: 5px;">
323
           <div style="display: flex;border: 1px solid black;padding: 5px;">
323
             <div style="flex: 1;">
324
             <div style="flex: 1;">
324
               <div style="display: inline-block;margin-right: 120px;">
325
               <div style="display: inline-block;margin-right: 120px;">
325
-                <span style="display: inline-block;">医生签名:</span>杨能华/
326
-                <span>
326
+                <span style="display: inline-block;">医生签名:</span>徐华
327
+                <!-- <span>
327
                   <span style="display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
328
                   <span style="display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
328
                     {{ getAdminUser(prescription.creater)}}
329
                     {{ getAdminUser(prescription.creater)}}
329
                   </span>
330
                   </span>
330
                   <span style="display: inline-block;" v-else>
331
                   <span style="display: inline-block;" v-else>
331
                     <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset />
332
                     <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset />
332
                   </span>
333
                   </span>
333
-                </span>
334
+                </span> -->
334
               </div>
335
               </div>
335
             </div>
336
             </div>
336
             <div style="flex: 1;">
337
             <div style="flex: 1;">

+ 108 - 168
src/xt_pages/outpatientDoctorStation/template/printOne.vue Просмотреть файл

1
 <template>
1
 <template>
2
   <div id="prescriptionPrint">
2
   <div id="prescriptionPrint">
3
-    <div v-for="(item, index) in advicePrint" :key="index"  style="page-break-after: always">
4
-      <div
5
-        id="prescription-print"
6
-        class="prescription-print"
7
-       
8
-      >
3
+    <div v-for="(item, index) in advicePrint" :key="index" style="page-break-after: always">
4
+      <div id="prescription-print" class="prescription-print">
9
         <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
5
         <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
10
           {{ orgname }}第一类精神处方笺
6
           {{ orgname }}第一类精神处方笺
11
         </div>
7
         </div>
12
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
8
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13
           {{ orgname }}第二类精神处方笺
9
           {{ orgname }}第二类精神处方笺
14
         </div>
10
         </div>
15
-        <div
16
-          class="printTitle"
17
-          v-if="
18
-            prescriptions[index].med_type != '1111' &&
19
-            prescriptions[index].med_type != '1112'
20
-          "
21
-        >
11
+        <div class="printTitle" v-if="
12
+          prescriptions[index].med_type != '1111' &&
13
+          prescriptions[index].med_type != '1112'
14
+        ">
22
           {{ orgname }}处方笺
15
           {{ orgname }}处方笺
23
         </div>
16
         </div>
24
-        <div >
17
+        <div>
25
           <div class="infoTitle">
18
           <div class="infoTitle">
26
             <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
19
             <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
             <p>
20
             <p>
39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
             </div>
33
             </div>
41
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
34
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
42
-              身份证号:{{newHisPatient.id_card_no | testfile}}
35
+              身份证号:{{ newHisPatient.id_card_no | testfile }}
43
             </div>
36
             </div>
44
             <div style="margin-bottom: 10px" v-else>
37
             <div style="margin-bottom: 10px" v-else>
45
               医保卡号:
38
               医保卡号:
56
             </div>
49
             </div>
57
           </div>
50
           </div>
58
         </div>
51
         </div>
59
-        <div class="prescriptionBox" :style="{'min-height':org_id != 10724? '350px':'450px'}">
52
+        <div class="prescriptionBox" :style="{ 'min-height': org_id != 10724 ? '350px' : '450px' }">
60
           <div class="Rp">Rp:</div>
53
           <div class="Rp">Rp:</div>
61
-          <div class="drugsBox" 
62
-            v-for="(it, index1) in item.advices"
63
-            :key="index1"
64
-            :style="{'page-break-after':index1==yi&&item.advices.length>7? 'always':'auto','position': 'relative'}"
65
-          >
66
-            <template v-if="index1==yi+1&&item.advices.length>7">
54
+          <div class="drugsBox" v-for="(it, index1) in item.advices" :key="index1"
55
+            :style="{ 'page-break-after': index1 == yi && item.advices.length > 7 ? 'always' : 'auto', 'position': 'relative' }">
56
+            <template v-if="index1 == yi + 1 && item.advices.length > 7">
67
 
57
 
68
               <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
58
               <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
69
                 {{ orgname }}第一类精神处方笺
59
                 {{ orgname }}第一类精神处方笺
71
               <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
61
               <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
72
                 {{ orgname }}第二类精神处方笺
62
                 {{ orgname }}第二类精神处方笺
73
               </div>
63
               </div>
74
-              <div
75
-                class="printTitle"
76
-                v-if="
77
-                  prescriptions[index].med_type != '1111' &&
78
-                  prescriptions[index].med_type != '1112'
79
-                "
80
-              >
64
+              <div class="printTitle" v-if="
65
+                prescriptions[index].med_type != '1111' &&
66
+                prescriptions[index].med_type != '1112'
67
+              ">
81
                 {{ orgname }}处方笺
68
                 {{ orgname }}处方笺
82
               </div>
69
               </div>
83
               <div style="margin-bottom: 10px;">
70
               <div style="margin-bottom: 10px;">
98
                     科室:{{ item.info ? getDepart(item.info.departments) : "" }}
85
                     科室:{{ item.info ? getDepart(item.info.departments) : "" }}
99
                   </div>
86
                   </div>
100
                   <div style="margin-bottom: 10px" v-if="org_id == 10537">
87
                   <div style="margin-bottom: 10px" v-if="org_id == 10537">
101
-                    身份证号:{{newHisPatient.id_card_no | testfile}}
88
+                    身份证号:{{ newHisPatient.id_card_no | testfile }}
102
                   </div>
89
                   </div>
103
                   <div style="margin-bottom: 10px" v-else>
90
                   <div style="margin-bottom: 10px" v-else>
104
                     医保卡号:
91
                     医保卡号:
117
               </div>
104
               </div>
118
             </template>
105
             </template>
119
             <div class="drugsOne">
106
             <div class="drugsOne">
120
-              <span style="font-weight: bold">{{ index1 + 1 + "." }}</span
121
-              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
122
-              v-if="it.drug.min_unit != it.drug.dose_unit"
123
-              >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
124
-              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
107
+              <span style="font-weight: bold">{{ index1 + 1 + "." }}</span>{{ it.advice_name ? it.advice_name : ""
108
+              }}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{ it.drug.dose }}{{ it.drug.dose_unit
109
+                }}&nbsp;*
110
+                &nbsp;</span>{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
125
                   it.drug.max_unit
111
                   it.drug.max_unit
126
                 }}&nbsp;×&nbsp; {{ it.prescribing_number
112
                 }}&nbsp;×&nbsp; {{ it.prescribing_number
127
-                }}{{ it.prescribing_number_unit }}
113
+              }}{{ it.prescribing_number_unit }}
128
               <!-- <div style="display: inline-block;margin-left: 30px;" v-if="org_id ==10210 || org_id ==0">
114
               <!-- <div style="display: inline-block;margin-left: 30px;" v-if="org_id ==10210 || org_id ==0">
129
                 <span>{{ it.price}}</span>
115
                 <span>{{ it.price}}</span>
130
               </div> -->
116
               </div> -->
131
             </div>
117
             </div>
132
             <div style="margin-left: 100px">
118
             <div style="margin-left: 100px">
133
-                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
134
-                >&nbsp;&nbsp;<span
135
-              >{{ it.execution_frequency }}&nbsp;{{
119
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span>&nbsp;&nbsp;<span>{{ it.execution_frequency
120
+                }}&nbsp;{{
136
                   it.delivery_way
121
                   it.delivery_way
137
-                }}&nbsp;</span
138
-              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
122
+                }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
139
             </div>
123
             </div>
140
             <!-- 单价 -->
124
             <!-- 单价 -->
141
             <div style="display: inline-block;position: relative; top:-38px;left: 80%;"
125
             <div style="display: inline-block;position: relative; top:-38px;left: 80%;"
142
-              v-if="org_id ==10210 || org_id ==0">
143
-                <span>{{ it.price}}</span>
126
+              v-if="org_id == 10210">
127
+              <span>{{ it.price }}</span>
144
             </div>
128
             </div>
145
-            <template v-if="index1==yi&&item.advices.length>7">
129
+            <template v-if="index1 == yi && item.advices.length > 7">
146
               <div class="doctorBox">
130
               <div class="doctorBox">
147
                 <p v-if="org_id == 10217">
131
                 <p v-if="org_id == 10217">
148
                   医师:
132
                   医师:
149
-                  <span
150
-                    style="width: 100px; display: inline-block"
151
-                    v-if="item.creator == ''"
152
-                  >
153
-                      {{ item.doctor }}
154
-                    </span>
155
-                  <span
156
-                    style="width: 100px; display: inline-block"
157
-                    v-else-if="doc_name != ''"
158
-                  >
159
-                      {{ doc_name }}
160
-                    </span>
161
-                  <img
162
-                    style="height: 50px;"
163
-                    :src="setAdminUserES(item.creator,item.doctor)"
164
-                    alt=""
165
-                    srcset=""
166
-                    v-else
167
-                  />
133
+                  <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
134
+                    {{ item.doctor }}
135
+                  </span>
136
+                  <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
137
+                    {{ doc_name }}
138
+                  </span>
139
+                  <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
168
                 </p>
140
                 </p>
169
                 <p v-if="org_id == 10510 || org_id == 10265">
141
                 <p v-if="org_id == 10510 || org_id == 10265">
170
                   医师:
142
                   医师:
171
-                  <span
172
-                    style="width: 100px; display: inline-block"
173
-                    v-if="item.creator == ''"
174
-                  >
175
-                      {{ item.doctor }}
176
-                    </span>
177
-                  <span
178
-                    style="width: 100px; display: inline-block"
179
-                    v-else-if="doc_name != ''"
180
-                  >
181
-                      {{ doc_name }}
182
-                    </span>
183
-                  <img
184
-                    style="height: 50px;"
185
-                    :src="setAdminUserES(item.creator,item.doctor)"
186
-                    alt=""
187
-                    srcset=""
188
-                    v-else
189
-                  />
143
+                  <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
144
+                    {{ item.doctor }}
145
+                  </span>
146
+                  <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
147
+                    {{ doc_name }}
148
+                  </span>
149
+                  <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
190
                 </p>
150
                 </p>
191
-                <p v-if="org_id!=10217 && org_id!=10510 && org_id !=10265">
151
+                <p v-if="org_id != 10217 && org_id != 10510 && org_id != 10265">
192
                   医师: {{ item.doctor ? item.doctor : "" }}
152
                   医师: {{ item.doctor ? item.doctor : "" }}
193
                 </p>
153
                 </p>
194
                 <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
154
                 <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
209
             </template>
169
             </template>
210
           </div>
170
           </div>
211
 
171
 
212
-          <div
213
-            class="drugsBox"
214
-            v-for="(it, i) in item.additionalcharge"
215
-            :key="i"
216
-          >
172
+          <div class="drugsBox" v-for="(it, i) in item.additionalcharge" :key="i">
217
             <div class="drugsOne">
173
             <div class="drugsOne">
218
               {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
174
               {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
219
                 it.count
175
                 it.count
221
             </div>
177
             </div>
222
           </div>
178
           </div>
223
 
179
 
224
-          <div
225
-            class="drugsBox"
226
-            v-for="(it, index) in item.project"
227
-            :key="index"
228
-          >
180
+          <div class="drugsBox" v-for="(it, index) in item.project" :key="index">
229
             <div class="drugsOne">
181
             <div class="drugsOne">
230
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
231
-              >{{
182
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span>{{
232
                 it.type == 2
183
                 it.type == 2
233
                   ? getProjectName(it.project_id)
184
                   ? getProjectName(it.project_id)
234
                     ? getProjectName(it.project_id)
185
                     ? getProjectName(it.project_id)
238
               }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
189
               }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
239
             </div>
190
             </div>
240
             <div style="margin-left: 100px">
191
             <div style="margin-left: 100px">
241
-              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
242
-              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
243
-            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
192
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span>&nbsp;&nbsp;<span>{{ it.delivery_way
193
+                }}</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
244
             </div>
194
             </div>
245
           </div>
195
           </div>
246
 
196
 
247
-          <div
248
-            class="drugsBox"
249
-            v-for="(it, i) in item.additionalcharge"
250
-            :key="i"
251
-          >
197
+          <div class="drugsBox" v-for="(it, i) in item.additionalcharge" :key="i">
252
             <div class="drugsOne">
198
             <div class="drugsOne">
253
               {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
199
               {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
254
                 it.price.toFixed(2)
200
                 it.price.toFixed(2)
261
         <div class="doctorBox">
207
         <div class="doctorBox">
262
           <p v-if="org_id == 10217">
208
           <p v-if="org_id == 10217">
263
             医师:
209
             医师:
264
-            <span
265
-              style="width: 100px; display: inline-block"
266
-              v-if="item.creator == ''"
267
-            >
268
-                {{ item.doctor }}
269
-              </span>
270
-            <span
271
-              style="width: 100px; display: inline-block"
272
-              v-else-if="doc_name != ''"
273
-            >
274
-                {{ doc_name }}
275
-              </span>
276
-            <img
277
-              style="height: 50px;"
278
-              :src="setAdminUserES(item.creator,item.doctor)"
279
-              alt=""
280
-              srcset=""
281
-              v-else
282
-            />
210
+            <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
211
+              {{ item.doctor }}
212
+            </span>
213
+            <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
214
+              {{ doc_name }}
215
+            </span>
216
+            <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
283
           </p>
217
           </p>
284
-          <p v-if="org_id == 10510  || org_id == 10265 || org_id ==0">
218
+          <p v-if="org_id == 10510 || org_id == 10265">
285
             医师:
219
             医师:
286
-            <span
287
-              style="width: 100px; display: inline-block"
288
-              v-if="item.creator == ''"
289
-            >
290
-                {{ item.doctor }}
291
-              </span>
292
-            <span
293
-              style="width: 100px; display: inline-block"
294
-              v-else-if="doc_name != ''"
295
-            >
296
-                {{ doc_name }}
297
-              </span>
298
-            <img
299
-              style="height: 50px;"
300
-              :src="setAdminUserES(item.creator,item.doctor)"
301
-              alt=""
302
-              srcset=""
303
-              v-else
304
-            /> &nbsp;&nbsp;
305
-            <span v-if="org_id == 10265 || org_id ==0">
220
+            <span style="width: 100px; display: inline-block" v-if="item.creator == ''">
221
+              {{ item.doctor }}
222
+            </span>
223
+            <span style="width: 100px; display: inline-block" v-else-if="doc_name != ''">
224
+              {{ doc_name }}
225
+            </span>
226
+            <img style="height: 50px;" :src="setAdminUserES(item.creator, item.doctor)" alt="" srcset="" v-else />
227
+            &nbsp;&nbsp;
228
+            <span v-if="org_id == 10265 || org_id == 0">
306
               {{ item.doctor ? item.doctor : "" }}
229
               {{ item.doctor ? item.doctor : "" }}
307
             </span>
230
             </span>
308
-            
231
+
309
           </p>
232
           </p>
310
-          <p v-if="org_id!=10217 && org_id!=10510 && org_id !=10265 && org_id !=0">
233
+          <p v-if="org_id != 10217 && org_id != 10510 && org_id != 10265 && org_id != 0">
311
             医师: {{ item.doctor ? item.doctor : "" }}
234
             医师: {{ item.doctor ? item.doctor : "" }}
312
           </p>
235
           </p>
313
-          <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
236
+          <p v-if="org_id !=10751">日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
237
+          <p v-if="org_id ==10751 || org_id == 0">日期:{{ getTime(item.pre_time) ? getTime(item.pre_time) : "" }}</p>
314
         </div>
238
         </div>
315
         <div class="actionBar">
239
         <div class="actionBar">
316
           <p>审核:</p>
240
           <p>审核:</p>
338
   getHisPatientDetail,
262
   getHisPatientDetail,
339
 } from "@/api/project/project";
263
 } from "@/api/project/project";
340
 import { getInitData } from "@/api/his/his";
264
 import { getInitData } from "@/api/his/his";
341
-export default{
265
+export default {
342
   props: {
266
   props: {
343
     patient_id: Number,
267
     patient_id: Number,
344
     record_date: String,
268
     record_date: String,
347
   },
271
   },
348
   data() {
272
   data() {
349
     return {
273
     return {
350
-      doc_name:"",
274
+      doc_name: "",
351
       doctorList: [],
275
       doctorList: [],
352
       advicePrint: {},
276
       advicePrint: {},
353
-      yi:4,
354
-      arr:[],
355
-      arrs:{},
356
-      advicess:[],
357
-      page:sessionStorage.getItem('dayin'),
277
+      yi: 4,
278
+      arr: [],
279
+      arrs: {},
280
+      advicess: [],
281
+      page: sessionStorage.getItem('dayin'),
358
       patient: {},
282
       patient: {},
359
       tableData: [],
283
       tableData: [],
360
       prescriptionInfo: [],
284
       prescriptionInfo: [],
369
       operators: [],
293
       operators: [],
370
       doctorList_1: [],
294
       doctorList_1: [],
371
     };
295
     };
372
-  },filters: {
373
-    testfile (value) {
296
+  }, filters: {
297
+    testfile(value) {
374
       const start = value.slice(0, 6)
298
       const start = value.slice(0, 6)
375
       const end = value.slice(-4)
299
       const end = value.slice(-4)
376
       return `${start}******${end}`
300
       return `${start}******${end}`
378
   },
302
   },
379
   methods: {
303
   methods: {
380
     // 电子签名
304
     // 电子签名
381
-    setAdminUserES(id,name) {
305
+    setAdminUserES(id, name) {
382
       console.log(id)
306
       console.log(id)
383
       console.log(name)
307
       console.log(name)
384
       console.log(this.operatorMaps)
308
       console.log(this.operatorMaps)
395
       }
319
       }
396
     },
320
     },
397
     getAge(patient) {
321
     getAge(patient) {
398
-      if(patient.id_card_no == "TWN001836483"){
322
+      if (patient.id_card_no == "TWN001836483") {
399
         return patient.age
323
         return patient.age
400
-      }else{
324
+      } else {
401
         var thisLen = patient.id_card_no.length;
325
         var thisLen = patient.id_card_no.length;
402
         var birth = "";
326
         var birth = "";
403
         if (thisLen == 15) {
327
         if (thisLen == 15) {
592
       }
516
       }
593
       return name;
517
       return name;
594
     },
518
     },
595
-    merge(arrA){
596
-      var len=arrA.lenfth
519
+    merge(arrA) {
520
+      var len = arrA.lenfth
597
       // for(let j=0;j<this.advicess.length;j++){
521
       // for(let j=0;j<this.advicess.length;j++){
598
       //   for(let x=j+1;x<this.advicess.length;x++){
522
       //   for(let x=j+1;x<this.advicess.length;x++){
599
       //     if(this.advicess[j].groupno == this.advicess[x].groupno){
523
       //     if(this.advicess[j].groupno == this.advicess[x].groupno){
602
       //     }
526
       //     }
603
       //   }
527
       //   }
604
       // }
528
       // }
605
-      for(let j=0;j<len;j++){
606
-        for(let x=j+1;x<len;x++){
607
-          if(arrA[j].groupno == arrA[x].groupno){
608
-            this.arr.push(arrA.splice(x,1))
529
+      for (let j = 0; j < len; j++) {
530
+        for (let x = j + 1; x < len; x++) {
531
+          if (arrA[j].groupno == arrA[x].groupno) {
532
+            this.arr.push(arrA.splice(x, 1))
609
           }
533
           }
610
         }
534
         }
611
       }
535
       }
612
-      console.log('777777777',this.arr);
536
+      console.log('777777777', this.arr);
613
       return this.arr
537
       return this.arr
614
     }
538
     }
615
   },
539
   },
648
 <style lang="scss" scoped>
572
 <style lang="scss" scoped>
649
 .prescription-print {
573
 .prescription-print {
650
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
574
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
651
-  0 0 60px rgba(0, 0, 0, 0.06) inset;
575
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
652
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
576
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
653
-  0 0 40px rgba(0, 0, 0, 0.06) inset;
577
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
654
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
578
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
655
   margin-bottom: 20px;
579
   margin-bottom: 20px;
656
   padding: 20px 10px;
580
   padding: 20px 10px;
657
 }
581
 }
582
+
658
 .printTitle {
583
 .printTitle {
659
   font-size: 22px;
584
   font-size: 22px;
660
   text-align: center;
585
   text-align: center;
661
   font-weight: bold;
586
   font-weight: bold;
662
 }
587
 }
588
+
663
 .infoTitle {
589
 .infoTitle {
664
   display: flex;
590
   display: flex;
665
   border-bottom: 2px solid #000;
591
   border-bottom: 2px solid #000;
667
   line-height: 24px;
593
   line-height: 24px;
668
   padding: 0 10px;
594
   padding: 0 10px;
669
 }
595
 }
596
+
670
 .infoTitle p {
597
 .infoTitle p {
671
   width: 200px;
598
   width: 200px;
672
 }
599
 }
600
+
673
 .infoMain {
601
 .infoMain {
674
   display: flex;
602
   display: flex;
675
   flex-wrap: wrap;
603
   flex-wrap: wrap;
676
   border-bottom: 2px solid #000;
604
   border-bottom: 2px solid #000;
677
   padding: 0 10px;
605
   padding: 0 10px;
678
 }
606
 }
607
+
679
 .infoMain div {
608
 .infoMain div {
680
   width: 50%;
609
   width: 50%;
681
   line-height: 24px;
610
   line-height: 24px;
682
 }
611
 }
612
+
683
 .prescriptionBox {
613
 .prescriptionBox {
684
   padding: 0 10px;
614
   padding: 0 10px;
685
   min-height: 450px;
615
   min-height: 450px;
686
 }
616
 }
617
+
687
 .Rp {
618
 .Rp {
688
   font-size: 22px;
619
   font-size: 22px;
689
   font-weight: bold;
620
   font-weight: bold;
690
 }
621
 }
622
+
691
 .drugsBox {
623
 .drugsBox {
692
   padding-left: 40px;
624
   padding-left: 40px;
693
   margin-bottom: 10px;
625
   margin-bottom: 10px;
694
   position: relative;
626
   position: relative;
695
 }
627
 }
628
+
696
 .drugsBox div {
629
 .drugsBox div {
697
   line-height: 20px;
630
   line-height: 20px;
698
 }
631
 }
632
+
699
 .drugsOne {
633
 .drugsOne {
700
   line-height: 24px;
634
   line-height: 24px;
701
   display: inline-block;
635
   display: inline-block;
702
 }
636
 }
637
+
703
 .drugsOne span {
638
 .drugsOne span {
704
   margin-right: 20px;
639
   margin-right: 20px;
705
 }
640
 }
641
+
706
 .doctorBox {
642
 .doctorBox {
707
   display: flex;
643
   display: flex;
708
   justify-content: space-between;
644
   justify-content: space-between;
710
   line-height: 24px;
646
   line-height: 24px;
711
   border-bottom: 2px solid #000;
647
   border-bottom: 2px solid #000;
712
 }
648
 }
713
-.doctorBoxs{
649
+
650
+.doctorBoxs {
714
   width: 100%;
651
   width: 100%;
715
   margin-right: 30px;
652
   margin-right: 30px;
716
   text-align: right;
653
   text-align: right;
718
   line-height: 24px;
655
   line-height: 24px;
719
 
656
 
720
 }
657
 }
658
+
721
 .doctorBoxtwo {
659
 .doctorBoxtwo {
722
   display: flex;
660
   display: flex;
723
   justify-content: space-between;
661
   justify-content: space-between;
725
   line-height: 24px;
663
   line-height: 24px;
726
 
664
 
727
 }
665
 }
666
+
728
 .actionBar {
667
 .actionBar {
729
   display: flex;
668
   display: flex;
730
   justify-content: space-between;
669
   justify-content: space-between;
731
   line-height: 24px;
670
   line-height: 24px;
732
   padding: 0 10px;
671
   padding: 0 10px;
733
 }
672
 }
673
+
734
 .actionBar p {
674
 .actionBar p {
735
   width: 150px;
675
   width: 150px;
736
 }
676
 }

+ 2 - 1
src/xt_pages/outpatientTool/labelPrint.vue Просмотреть файл

557
                         textPosition:"top",//设置文本的垂直位置
557
                         textPosition:"top",//设置文本的垂直位置
558
                         textMargin:5,//设置条形码和文本之间的间距
558
                         textMargin:5,//设置条形码和文本之间的间距
559
                         fontSize:15,//设置文本的大小
559
                         fontSize:15,//设置文本的大小
560
-                        margin:15//设置条形码周围的空白边距
560
+                        margin:0,//设置条形码周围的空白边距
561
+                        marginTop:0
561
                       })
562
                       })
562
 
563
 
563
                     });
564
                     });

+ 17 - 3
src/xt_pages/user/components/EditGroupAdvice.vue Просмотреть файл

433
                   v-model="nameForm.advice_desc"
433
                   v-model="nameForm.advice_desc"
434
                   :fetch-suggestions="querySearch1"
434
                   :fetch-suggestions="querySearch1"
435
                   placeholder="请输入内容"
435
                   placeholder="请输入内容"
436
-                  @input="changeDrugDesc"
437
                 ></el-autocomplete>
436
                 ></el-autocomplete>
438
               </el-col>
437
               </el-col>
439
               <el-col class="line" :span="2">&nbsp;</el-col>
438
               <el-col class="line" :span="2">&nbsp;</el-col>
2515
       handleSelect1(){
2514
       handleSelect1(){
2516
 
2515
 
2517
       },
2516
       },
2518
-      handleSelect(){
2519
-
2517
+      handleSelect(val){
2518
+         console.log("val233333333333",val)
2519
+       this.drug_id = val.drug_id
2520
+        this.nameForm.drug_id = val.drug_id
2521
+        this.nameForm.way = 1
2522
+        this.nameForm.drug_name_id = val.drug_id
2523
+        var tmp = val.drug_specs[0]
2524
+        console.log("tmp",tmp)
2525
+        this.nameForm.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
2526
+        this.nameForm.drug_spec_unit = tmp.max_unit
2527
+        this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
2528
+        this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
2529
+        this.nameForm.single_dose = tmp.single_dose//单次用量
2530
+        this.nameForm.single_dose_unit = tmp.drug_dose_unit
2531
+        this.nameForm.delivery_way = tmp.delivery_way//给药途径
2532
+        this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
2533
+        this.nameForm.drug_id = tmp.id
2520
       },
2534
       },
2521
 
2535
 
2522
        querySearch(queryString, cb) {
2536
        querySearch(queryString, cb) {

+ 13 - 13
src/xt_permission.js Просмотреть файл

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
  // 线上注释
28
  // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))