Browse Source

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

csx 3 years ago
parent
commit
5461988a1f

+ 0 - 4
.idea/shelf/Uncommitted_changes_before_Update_at_2022_4_16_10_41__Default_Changelist_.xml View File

@@ -1,4 +0,0 @@
1
-<changelist name="Uncommitted_changes_before_Update_at_2022_4_16_10_41_[Default_Changelist]" date="1650076869924" recycled="true" deleted="true">
2
-  <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_2022_4_16_10_41_[Default_Changelist]/shelved.patch" />
3
-  <option name="DESCRIPTION" value="Uncommitted changes before Update at 2022/4/16 10:41 [Default Changelist]" />
4
-</changelist>

+ 3 - 2
src/api/dialysis_record.js View File

@@ -47,7 +47,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
47 47
   })
48 48
 }
49 49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing) {
51 51
   var params = {
52 52
     patient_id: patient_id,
53 53
     date: schedule_date,
@@ -61,7 +61,8 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
61 61
     washpipe_nurse: washpipe_nurse,
62 62
     change_nurse: change_nurse,
63 63
     difficult_puncture_nurse: difficult_puncture_nurse,
64
-    new_fistula_nurse: new_fistula_nurse
64
+    new_fistula_nurse: new_fistula_nurse,
65
+    blood_drawing: blood_drawing
65 66
   }
66 67
   console.log('params', params)
67 68
   return request({

+ 11 - 11
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -278,7 +278,7 @@
278 278
                             style="width: 100px;text-align: center"
279 279
                             v-if="
280 280
                               record.assessment_before_dislysis.puncture_way == ''
281
-                                
281
+
282 282
                             "
283 283
                           ></div>
284 284
                           <div
@@ -295,7 +295,7 @@
295 295
                             style="width: 100px;text-align: center"
296 296
                             v-if="
297 297
                               record.assessment_before_dislysis.puncture_way.indexOf('扣眼')>-1
298
-                               
298
+
299 299
                             "
300 300
                           >
301 301
                             扣眼
@@ -305,7 +305,7 @@
305 305
                             style="width: 100px;text-align: center"
306 306
                             v-if="
307 307
                               record.assessment_before_dislysis.puncture_way.indexOf('区域')>-1
308
-                                
308
+
309 309
                             "
310 310
                           >
311 311
                             区域
@@ -330,7 +330,7 @@
330 330
                           }}
331 331
                         </div>
332 332
                       </div>
333
-                      
333
+
334 334
                     </div>
335 335
                     <div
336 336
                       class="row"
@@ -348,7 +348,7 @@
348 348
                                   .blood_access_part_id
349 349
                                 ? record.assessment_before_dislysis
350 350
                                     .blood_access_part_id
351
-                                : 0  
351
+                                : 0
352 352
                           }}
353 353
                           {{
354 354
                             record.assessment_before_dislysis &&
@@ -679,7 +679,7 @@
679 679
                           <span v-else>/</span>
680 680
                         </div>
681 681
                       </div>
682
-                      
682
+
683 683
                     </div>
684 684
 
685 685
                     <div
@@ -704,7 +704,7 @@
704 704
                                       .additional_weight
705 705
                                 ).toFixed(1)
706 706
                               : "未称重"
707
-                          }}</span>  
707
+                          }}</span>
708 708
                         </div>
709 709
                         kg
710 710
                       </div>
@@ -1092,7 +1092,7 @@
1092 1092
                           <td></td>
1093 1093
                           <td></td>
1094 1094
                           <td></td>
1095
-                          
1095
+
1096 1096
                           <td style="line-height:16px;padding:0px;">
1097 1097
                             <div
1098 1098
                               style="height:40px;line-height:20px; overflow:hidden;"
@@ -1519,8 +1519,8 @@
1519 1519
                           }}
1520 1520
                         </div>
1521 1521
                       </div>
1522
-                      
1523
-                      
1522
+
1523
+
1524 1524
                     </div>
1525 1525
 
1526 1526
                     <div
@@ -1767,7 +1767,7 @@
1767 1767
                             style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
1768 1768
                             v-if="
1769 1769
                               record.dialysis_order != null &&
1770
-                                record.dialysis_order.start_nurse ==
1770
+                               record.check.creater ==
1771 1771
                                   record.check.creater
1772 1772
                             "
1773 1773
                           >

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -111,8 +111,8 @@
111 111
           <label>目标超滤量 : </label>
112 112
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
113 113
           
114
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
114
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 47 && this.$store.getters.xt_user.template_info.org_id != 9555"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.template_id != 46 || this.$store.getters.xt_user.template_info.template_id != 47 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
116 116
         </li>
117 117
 
118 118
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">

+ 15 - 13
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -26,7 +26,7 @@
26 26
             <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
27 27
           </el-select>
28 28
         </el-form-item>
29
-        
29
+
30 30
         <el-form-item label="换药护士"  v-if="isShowFiled('换药护士')">
31 31
           <el-select v-model="form.change_nurse" placeholder="换药护士">
32 32
             <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
@@ -52,8 +52,8 @@
52 52
             </el-select>
53 53
         </el-form-item>
54 54
 
55
-     
56
-        <el-form-item label="引血(ml/min)" v-if="template_id == 6 && org_id != 10223">
55
+
56
+        <el-form-item label="引血(ml/min)" v-if="isShowFiled('引血')">
57 57
           <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
58 58
         </el-form-item>
59 59
 
@@ -157,13 +157,13 @@
157 157
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
158 158
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
159 159
       this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
160
-      
161
-     
160
+
161
+
162 162
       if (this.form.puncture_nurse_id == 0) {
163 163
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
164 164
       }
165
-      
166
-     
165
+
166
+
167 167
     },
168 168
     watch: {
169 169
       patient:{
@@ -203,7 +203,7 @@
203 203
         if(this.admins.length > 0 ){
204 204
           for(let i=0;i<this.admins.length;i++){
205 205
             this.adminRoles.push(this.admins[i])
206
-          } 
206
+          }
207 207
         }
208 208
         console.log("人员",this.adminRoles)
209 209
       }
@@ -245,7 +245,7 @@
245 245
         ParamsQuery['record_date'] = this.$route.query.date
246 246
         console.log("列表33333333333333333333",ParamsQuery)
247 247
         // console.log("路由",this.$route.query.date)
248
-       
248
+
249 249
         GetSchedualNumber(ParamsQuery).then(response => {
250 250
           if (response.data.state == 0) {
251 251
             this.$message.error(response.data.msg)
@@ -357,8 +357,8 @@
357 357
         console.log(this.dialysis_order)
358 358
         this.loading = true
359 359
         let mode = '1'
360
-
361
-        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse).then(rs => {
360
+        var blood_drawing =  this.form.blood_drawing.toString()
361
+        startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing).then(rs => {
362 362
           this.loading = false
363 363
           var resp = rs.data
364 364
           if (resp.state == 1) {
@@ -371,7 +371,7 @@
371 371
             // axios.get('/api/index/uppatient?org_id='+ orgId + '&admin_user_id='+ this.form.nurse_id + '&patient_id=' + this.patient_id + '&up_time=' + (new Date(this.form.start_time).getTime() / 1000)).then((res) => {
372 372
             //   console.log('res',res.data)
373 373
 
374
-            // }) 
374
+            // })
375 375
             this.hide()
376 376
             this.$emit('monitor', resp.data.monitor)
377 377
             this.$message.success('上机成功')
@@ -379,7 +379,8 @@
379 379
             this.$message.error(resp.msg)
380 380
           }
381 381
         })
382
-      }, editOrder() {
382
+      },
383
+      editOrder() {
383 384
         let ParamsQuery = {}
384 385
         ParamsQuery['schedual_type'] = this.schedual_type
385 386
         ParamsQuery['id'] = this.dialysis_order.id
@@ -391,6 +392,7 @@
391 392
         ParamsQuery['change_nurse'] = this.form.change_nurse
392 393
         ParamsQuery['difficult_puncture_nurse'] = this.form.difficult_puncture_nurse
393 394
         ParamsQuery['new_fistula_nurse'] = this.form.new_fistula_nurse
395
+        ParamsQuery["blood_drawing"] = this.form.blood_drawing
394 396
         ParamsQuery['mode'] = "2"
395 397
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
396 398
           ParamsQuery['mode'] = "3"

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -87,7 +87,7 @@
87 87
                     </el-col>
88 88
 
89 89
                     <el-col :span="8"
90
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
90
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
91 91
                         <el-form-item label="目标超滤量(ml):">
92 92
                             <el-input
93 93
                                     type="number"
@@ -98,7 +98,7 @@
98 98
 
99 99
 
100 100
                     <el-col :span="8"
101
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
101
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 47 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
102 102
                         <el-form-item label="目标超滤量(L):">
103 103
                             <el-input
104 104
                                     type="number"
@@ -369,7 +369,7 @@
369 369
 
370 370
 
371 371
                     <el-col :span="8"
372
-                            v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29)"
372
+                            v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46)"
373 373
                             v-show="zhiShow">
374 374
                         <el-form-item label="置换量(ml):">
375 375
                             <el-input
@@ -379,7 +379,7 @@
379 379
                         </el-form-item>
380 380
                     </el-col>
381 381
                     <el-col :span="8"
382
-                            v-if="isShows('置换量') && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40"
382
+                            v-if="isShows('置换量') && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 46"
383 383
                             v-show="zhiShow">
384 384
                         <el-form-item label="置换量(L):">
385 385
                             <el-input

File diff suppressed because it is too large
+ 1362 - 566
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue


+ 8 - 8
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -14,17 +14,17 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44  && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47  && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>
24
-          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29" width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47) " width="92px" > 置换率(ml/min) </th>
24
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47" width="92px" > 置换率(L/h)  </th>
25 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" width="92px"  > 置换量(ml)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" width="92px" > 置换量(L) </th>
26
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47)" width="92px"  > 置换量(ml)  </th>
27
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47)" width="92px" > 置换量(L) </th>
28 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29 29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30 30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 91 - 82
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

@@ -113,6 +113,13 @@
113 113
             >
114 114
               {{ item.name }}
115 115
             </div>
116
+            <div
117
+              class="under_line"
118
+              style="width: 100px; text-align: center"
119
+              v-if="!receiverTreatmentAccess.way"
120
+            >
121
+              /
122
+            </div>
116 123
           </div>
117 124
 
118 125
           <div class="inline_block">
@@ -126,6 +133,13 @@
126 133
             >
127 134
               {{ item.name }}
128 135
             </div>
136
+            <div
137
+              class="under_line"
138
+              style="width: 100px; text-align: center"
139
+              v-if="!receiverTreatmentAccess.consciousness"
140
+            >
141
+              /
142
+            </div>
129 143
           </div>
130 144
 
131 145
           <div class="inline_block" style="margin-left: 10px">
@@ -334,7 +348,7 @@
334 348
                       <div
335 349
                         class="under_line"
336 350
                         style="
337
-                          width: 180px;
351
+                          width: 250px;
338 352
                           text-align: center;
339 353
                           white-space: normal;
340 354
                         "
@@ -354,7 +368,7 @@
354 368
                       导管:
355 369
                       <div
356 370
                         class="under_line"
357
-                        style="width: 150px; text-align: center"
371
+                        style="width: 270px; text-align: center"
358 372
                       >
359 373
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
360 374
                       </div>
@@ -747,11 +761,11 @@
747 761
                         }}
748 762
                       </div>
749 763
                     </div>
750
-                    <div class="inline_block" style="flex: 1">
764
+                    <div class="inline_block" style="padding-right: 15px">
751 765
                       灌流器:
752 766
                       <div
753 767
                         class="under_line"
754
-                        style="width: 70px; text-align: center"
768
+                        style="width: 130px; text-align: center"
755 769
                       >
756 770
                         {{
757 771
                           prescription.dialysis_irrigation
@@ -763,30 +777,30 @@
763 777
 
764 778
                     <div class="inline_block" style="flex: 1">
765 779
                       穿刺方式:
766
-                        <div
767
-                          class="under_line"
768
-                          style="width: 100px; text-align: center">
769
-                         {{
770
-                            predialysis.puncture_way
771
-                              ? predialysis.puncture_way
772
-                              : "/"
773
-                          }}
774
-                        </div>
775
-
780
+                      <div
781
+                        class="under_line"
782
+                        style="width: 170px; text-align: center"
783
+                      >
784
+                        {{
785
+                          predialysis.puncture_way
786
+                            ? predialysis.puncture_way
787
+                            : "/"
788
+                        }}
789
+                      </div>
776 790
                     </div>
777 791
 
778 792
                     <div class="inline_block" style="flex: 1">
779 793
                       穿刺针:
780
-                         <div
781
-                          class="under_line"
782
-                          style="width: 100px; text-align: center"
783
-                        >
784
-                          {{
785
-                            predialysis.puncture_needle
786
-                              ? predialysis.puncture_needle
787
-                              : "/"
788
-                          }}
789
-                        </div>
794
+                      <div
795
+                        class="under_line"
796
+                        style="width: 170px; text-align: center"
797
+                      >
798
+                        {{
799
+                          predialysis.puncture_needle
800
+                            ? predialysis.puncture_needle
801
+                            : "/"
802
+                        }}
803
+                      </div>
790 804
                     </div>
791 805
                   </div>
792 806
 
@@ -1162,7 +1176,6 @@
1162 1176
                         >
1163 1177
                           置换量<br />(ml)
1164 1178
                         </td>
1165
-                        <td width="200" v-if="org_id == 9919">ktv</td>
1166 1179
                         <td width="200">病情变化及处理</td>
1167 1180
 
1168 1181
                         <!-- <td width="100">时间</td>
@@ -1183,6 +1196,7 @@
1183 1196
                         :key="monindex"
1184 1197
                       >
1185 1198
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1199
+                        <!-- 血压 -->
1186 1200
                         <td>
1187 1201
                           {{
1188 1202
                             monitor.systolic_blood_pressure
@@ -1195,6 +1209,7 @@
1195 1209
                               : ""
1196 1210
                           }}
1197 1211
                         </td>
1212
+                        <!-- 脉搏 -->
1198 1213
                         <td>
1199 1214
                           {{
1200 1215
                             monitor.pulse_frequency
@@ -1202,11 +1217,13 @@
1202 1217
                               : ""
1203 1218
                           }}
1204 1219
                         </td>
1220
+                        <!-- 呼吸 -->
1205 1221
                         <td>
1206 1222
                           {{
1207 1223
                             monitor.breathing_rate ? monitor.breathing_rate : ""
1208 1224
                           }}
1209 1225
                         </td>
1226
+                        <!-- 血流量 -->
1210 1227
                         <td>
1211 1228
                           {{
1212 1229
                             monitor.blood_flow_volume
@@ -1214,6 +1231,7 @@
1214 1231
                               : ""
1215 1232
                           }}
1216 1233
                         </td>
1234
+                        <!-- 静脉压 -->
1217 1235
                         <td>
1218 1236
                           {{
1219 1237
                             monitor.venous_pressure
@@ -1221,65 +1239,34 @@
1221 1239
                               : ""
1222 1240
                           }}
1223 1241
                         </td>
1242
+                        <!-- 跨膜压 -->
1224 1243
                         <td>
1225
-                          {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
1244
+                          {{
1245
+                            monitor.transmembrane_pressure
1246
+                              ? monitor.transmembrane_pressure
1247
+                              : ""
1248
+                          }}
1226 1249
                         </td>
1227
-                        <td v-if="org_id != 9836">
1250
+                        <!-- 透析液温度 -->
1251
+                        <td>
1228 1252
                           {{
1229 1253
                             monitor.dialysate_temperature
1230 1254
                               ? monitor.dialysate_temperature
1231 1255
                               : ""
1232 1256
                           }}
1233 1257
                         </td>
1234
-                        <td v-if="org_id == 9836">
1235
-                          {{ monitor.temperature ? monitor.temperature : "" }}
1236
-                        </td>
1237
-                        <td v-if="org_id != 9538">
1258
+                        <!-- 电导度 -->
1259
+                        <td>
1238 1260
                           {{ monitor.conductivity ? monitor.conductivity : "" }}
1239 1261
                         </td>
1240
-                        <td v-if="org_id == 9538">
1241
-                          {{
1242
-                            monitor.sodium_concentration
1243
-                              ? monitor.sodium_concentration
1244
-                              : ""
1245
-                          }}
1246
-                        </td>
1247
-                        <td
1248
-                          v-if="
1249
-                            (dialysisOrder &&
1250
-                              monitor.operate_time > dialysisOrder.end_time) ||
1251
-                            (dialysisOrder &&
1252
-                              monitor.operate_time < dialysisOrder.start_time)
1253
-                          "
1254
-                        >
1262
+                        <!-- 超滤量 -->
1263
+                        <td>
1255 1264
                           {{
1256 1265
                             monitor.ultrafiltration_volume
1257 1266
                               ? monitor.ultrafiltration_volume
1258 1267
                               : ""
1259 1268
                           }}
1260 1269
                         </td>
1261
-                        <td
1262
-                          v-if="
1263
-                            dialysisOrder &&
1264
-                            monitor.operate_time <= dialysisOrder.end_time &&
1265
-                            dialysisOrder &&
1266
-                            monitor.operate_time >= dialysisOrder.start_time
1267
-                          "
1268
-                        >
1269
-                          {{
1270
-                            monitor.ultrafiltration_volume
1271
-                              ? monitor.ultrafiltration_volume
1272
-                              : "0"
1273
-                          }}
1274
-                        </td>
1275
-                        <!-- <td style="width:50px">
1276
-                          <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
1277
-                            {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
1278
-                          </span>
1279
-                          <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time))">
1280
-                            {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
1281
-                          </span>
1282
-                        </td> -->
1283 1270
                         <td
1284 1271
                           v-if="
1285 1272
                             prescription.mode_id == 2 ||
@@ -1296,9 +1283,20 @@
1296 1283
                             }}
1297 1284
                           </span>
1298 1285
                         </td>
1299
-                        <td width="200" v-if="org_id == 9919">
1300
-                          {{ monitor.ktv }}
1301
-                        </td>
1286
+                        <!-- <td
1287
+                          v-if="
1288
+                            dialysisOrder &&
1289
+                            monitor.operate_time <= dialysisOrder.end_time &&
1290
+                            dialysisOrder &&
1291
+                            monitor.operate_time >= dialysisOrder.start_time
1292
+                          "
1293
+                        >
1294
+                          {{
1295
+                            monitor.ultrafiltration_volume
1296
+                              ? monitor.ultrafiltration_volume
1297
+                              : "0"
1298
+                          }}
1299
+                        </td> -->
1302 1300
                         <td style="line-height: 16px; padding: 0px">
1303 1301
                           <div
1304 1302
                             style="
@@ -1325,8 +1323,9 @@
1325 1323
                                   monitor.operate_time ==
1326 1324
                                     dialysisOrder.start_time
1327 1325
                                 "
1328
-                                >【开始透析】</template
1329
-                              >
1326
+                                >【开始透析】
1327
+                              </template>
1328
+
1330 1329
                               {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
1331 1330
                                 monitor.dispose
1332 1331
                               }}
@@ -1613,6 +1612,13 @@
1613 1612
               >
1614 1613
                 {{ item.name }}
1615 1614
               </div>
1615
+              <div
1616
+                class="under_line"
1617
+                style="width: 100px; text-align: center"
1618
+                v-if="!receiverTreatmentAccess.way"
1619
+              >
1620
+                /
1621
+              </div>
1616 1622
               <div class="inline_block">
1617 1623
                 意识状态:
1618 1624
                 <div
@@ -1624,6 +1630,13 @@
1624 1630
                 >
1625 1631
                   {{ item.name }}
1626 1632
                 </div>
1633
+                <div
1634
+                  class="under_line"
1635
+                  style="width: 100px; text-align: center"
1636
+                  v-if="!receiverTreatmentAccess.consciousness"
1637
+                >
1638
+                  /
1639
+                </div>
1627 1640
               </div>
1628 1641
             </div>
1629 1642
             <div class="inline_block" style="margin-left: 10px">
@@ -1895,13 +1908,10 @@
1895 1908
                       透析器凝血:
1896 1909
                       <div
1897 1910
                         class="under_line"
1898
-                        style="
1899
-                          width: 225px;
1900
-                          text-align: center;
1901
-                          white-space: normal;
1902
-                        "
1911
+                        style="width: 200px; text-align: center"
1903 1912
                       >
1904 1913
                         {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
1914
+                        
1905 1915
                       </div>
1906 1916
                     </div>
1907 1917
 
@@ -1920,7 +1930,6 @@
1920 1930
                             ? afterdialysis.pip_coagulation
1921 1931
                             : "/"
1922 1932
                         }}
1923
-                        
1924 1933
                       </div>
1925 1934
                     </div>
1926 1935
 
@@ -1929,9 +1938,9 @@
1929 1938
                       <div
1930 1939
                         class="under_line"
1931 1940
                         style="
1932
-                          width: 170px;
1933 1941
                           text-align: center;
1934
-                          white-space: normal;
1942
+                          min-width: 155px;
1943
+                          width: auto;
1935 1944
                         "
1936 1945
                       >
1937 1946
                         {{
@@ -1941,7 +1950,7 @@
1941 1950
                         }}
1942 1951
                       </div>
1943 1952
                     </div>
1944
-                    <div class="inline_block" style="flex: 2">
1953
+                    <div class="inline_block">
1945 1954
                       导管:
1946 1955
                       <div
1947 1956
                         class="under_line"

+ 420 - 291
src/xt_pages/hospitalStation/template/printOne.vue View File

@@ -1,354 +1,483 @@
1 1
 <template>
2
-  <div id='prescriptionPrint'>
3
-    <div v-for="(item,index) in advicePrint" :key="index">
4
-      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">{{orgname}}第一类精神药品处方笺</div>
6
-          <div class="printTitle" v-if="prescriptions[0].med_type == '1112'">{{orgname}}第二类精神药品处方笺</div>
7
-          <div class="printTitle" v-else>{{orgname}}处方笺</div>
2
+  <div id="prescriptionPrint">
3
+    <div v-for="(item, index) in advicePrint" :key="index">
4
+      <div
5
+        id="prescription-print"
6
+        class="prescription-print"
7
+        style="page-break-after: always"
8
+      >
9
+        <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">
10
+          {{ orgname }}第一类精神药品处方笺
11
+        </div>
12
+        <div class="printTitle" v-if="prescriptions[0].med_type == '1112'">
13
+          {{ orgname }}第二类精神药品处方笺
14
+        </div>
15
+        <div class="printTitle" v-else>{{ orgname }}处方笺</div>
8 16
 
9
-
10
-          <div class="infoTitle">
11
-              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
12
-              <p>性别:
13
-                <span v-if="item.patient.gender == 1">男</span>
14
-                <span v-if="item.patient.gender == 2">女</span>
15
-              </p>
16
-              <p>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</p>
17
+        <div class="infoTitle">
18
+          <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
19
+          <p>
20
+            性别:
21
+            <span v-if="item.patient.gender == 1">男</span>
22
+            <span v-if="item.patient.gender == 2">女</span>
23
+          </p>
24
+          <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
25
+        </div>
26
+        <div class="infoMain">
27
+          <div style="margin-bottom: 10px">
28
+            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
17 29
           </div>
18
-          <div class="infoMain">
19
-              <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
20
-              <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
21
-              <div style="margin-bottom: 10px;">医保卡号:{{""}}</div>
22
-              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
23
-              <div>地址:{{item.patient.home_address}}</div>
24
-              <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
30
+          <div style="margin-bottom: 10px">
31
+            科室:{{ item.info ? getDepart(item.info.departments) : "" }}
32
+          </div>
33
+          <div style="margin-bottom: 10px">医保卡号:{{ "" }}</div>
34
+          <div style="margin-bottom: 10px">电话:{{ item.patient.phone }}</div>
35
+          <div>地址:{{ item.patient.home_address }}</div>
36
+          <div style="display: flex; width: 50%">
37
+            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
38
+          </div>
39
+        </div>
40
+        <div class="prescriptionBox">
41
+          <div class="Rp">Rp:</div>
42
+          <div
43
+            class="drugsBox"
44
+            v-for="(it, index) in item.advices"
45
+            :key="index"
46
+          >
47
+            <!-- <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> -->
48
+            <div class="drugsOne">
49
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
50
+              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
51
+                v-if="it.drug.min_unit != it.drug.dose_unit"
52
+                >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
53
+              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
54
+                it.drug.max_unit
55
+              }}&nbsp;×&nbsp; {{ it.prescribing_number
56
+              }}{{ it.prescribing_number_unit }}
57
+            </div>
58
+            <div style="margin-left: 100px">
59
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
60
+              >&nbsp;&nbsp;<span
61
+                >{{ it.execution_frequency }}&nbsp;{{
62
+                  it.delivery_way
63
+                }}&nbsp;</span
64
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
65
+            </div>
66
+          </div>
67
+          <div
68
+            class="drugsBox"
69
+            v-for="(it, i) in item.additionalcharge"
70
+            :key="i"
71
+          >
72
+            <div class="drugsOne">
73
+              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
74
+                it.count
75
+              }}次
76
+            </div>
25 77
           </div>
26
-          <div class="prescriptionBox">
27
-              <div class="Rp">Rp:</div>
28
-              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
29
-                  <!-- <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> -->
30
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
31
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
32
-              </div>
33
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
34
-                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
35
-               </div>
36
-
37
-              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
38
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
39
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
40
-              </div>
41
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
42
-                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
43
-               </div>
44
-               <div style="text-align:center;" >(以下空白)</div>
45 78
 
79
+          <div
80
+            class="drugsBox"
81
+            v-for="(it, index) in item.project"
82
+            :key="index"
83
+          >
84
+            <div class="drugsOne">
85
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
86
+              >{{
87
+                it.type == 2
88
+                  ? getProjectName(it.project_id)
89
+                    ? getProjectName(it.project_id)
90
+                    : ""
91
+                  : it.good_info.good_name
92
+              }}&nbsp;&nbsp;{{ it.single_dose
93
+              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
94
+            </div>
95
+            <div style="margin-left: 100px">
96
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
97
+              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
98
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
99
+            </div>
46 100
           </div>
47
-          <div class="doctorBox">
48
-              <p>医师:{{item.doctor?item.doctor:""}}</p>
49
-              <p>日期:{{getTime(item.pre_time)?getTime(item.pre_time):""}}</p>
101
+          <div
102
+            class="drugsBox"
103
+            v-for="(it, i) in item.additionalcharge"
104
+            :key="i"
105
+          >
106
+            <div class="drugsOne">
107
+              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{ it.price }}元/{{
108
+                it.count
109
+              }}次
110
+            </div>
50 111
           </div>
51
-          <div class="actionBar">
52
-                 <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
112
+          <div style="text-align: center">(以下空白)</div>
113
+        </div>
114
+        <div class="doctorBox">
115
+          <p>
116
+            医师:
117
+            <span
118
+              style="width: 100px; display: inline-block"
119
+              v-if="setAdminUserES(item.creater) == ''"
120
+            >
121
+              {{ item.doctor }}
122
+            </span>
123
+            <img
124
+              style="height: 30px"
125
+              :src="setAdminUserES(item.creater)"
126
+              alt=""
127
+              srcset=""
128
+              v-else
129
+            />
130
+          </p>
131
+          <p>
132
+            日期:{{ getTime(item.pre_time) ? getTime(item.pre_time) : "" }}
133
+          </p>
134
+        </div>
135
+        <div class="actionBar">
136
+          <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
53 137
                  <p>配对:</p>
54 138
                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
55 139
                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
56 140
                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
57 141
 
58
-                 <p>审核:</p>
59
-                 <p>配对:</p>
60
-                 <p>核对:</p>
61
-                 <p>发药:</p>
62
-                 <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
63
-<!--            <p>药费:551.20元</p>-->
64
-
65
-          </div>
66
-          <div style="page-break-after:always"></div>
142
+          <p>审核:</p>
143
+          <p>配对:</p>
144
+          <p>核对:</p>
145
+          <p>发药:</p>
146
+          <p>
147
+            药费:{{
148
+              getTotalOne(item.id).toFixed(2)
149
+                ? getTotalOne(item.id).toFixed(2)
150
+                : 0
151
+            }}元
152
+          </p>
153
+          <!--            <p>药费:551.20元</p>-->
154
+        </div>
155
+        <div style="page-break-after: always"></div>
67 156
       </div>
68 157
     </div>
69
-
70 158
   </div>
71
-
72
-
73 159
 </template>
74 160
 <script>
75
-import { jsGetAge, uParseTime } from '@/utils/tools'
76
-import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
77
-import {getInitData} from "@/api/his/his"
161
+import { jsGetAge, uParseTime } from "@/utils/tools";
162
+import {
163
+  getAllDoctorList,
164
+  getPrescriptionPrint,
165
+  getHisPatientDetail,
166
+} from "@/api/project/project";
167
+import { getInitData } from "@/api/his/his";
78 168
 export default {
79
-    props:{
80
-      patient_id:Number,
81
-      record_date:String,
82
-      prescription_id:Number,
83
-      ids:String
169
+  props: {
170
+    patient_id: Number,
171
+    record_date: String,
172
+    prescription_id: Number,
173
+    ids: String,
174
+  },
175
+  data() {
176
+    return {
177
+      doctorList: [],
178
+      advicePrint: {},
179
+      patient: {},
180
+      tableData: [],
181
+      prescriptionInfo: [],
182
+      hisPatient: {},
183
+      department: [],
184
+      prescriptions: [],
185
+      projectList: [],
186
+      orgname: "",
187
+      diagnoses: [],
188
+      operatorMaps: {},
189
+    };
190
+  },
191
+  methods: {
192
+    // 电子签名
193
+    setAdminUserES(id) {
194
+      if (id == 0) {
195
+        return "";
196
+      }
197
+      if (id in this.operatorMaps) {
198
+        return this.operatorMaps[id].url;
199
+      } else {
200
+        return "";
201
+      }
84 202
     },
85
-    data(){
86
-      return {
87
-        doctorList:[],
88
-        advicePrint:{},
89
-        patient:{},
90
-        tableData:[],
91
-        prescriptionInfo:[],
92
-        hisPatient:{},
93
-        department:[],
94
-        prescriptions:[],
95
-        projectList:[],
96
-        orgname:"",
97
-        diagnoses:[],
203
+    getAge(patient) {
204
+      var thisLen = patient.id_card_no.length;
205
+      var birth = "";
206
+      if (thisLen == 15) {
207
+        birth = "19" + patient.id_card_no.substr(6, 6);
208
+      } else {
209
+        birth = patient.id_card_no.substr(6, 8);
98 210
       }
211
+      var births =
212
+        birth.substr(0, 4) +
213
+        "-" +
214
+        birth.substr(4, 2) +
215
+        "-" +
216
+        birth.substr(6, 2);
217
+      return jsGetAge(births, "-");
99 218
     },
100
-   methods:{
101
-     getAge(patient){
102
-       var thisLen = patient.id_card_no.length
103
-       var birth = ''
104
-       if (thisLen == 15) {
105
-         birth = '19' + patient.id_card_no.substr(6, 6)
106
-       } else {
107
-         birth = patient.id_card_no.substr(6, 8)
108
-       }
109
-       var births =
110
-         birth.substr(0, 4) +
111
-         '-' +
112
-         birth.substr(4, 2) +
113
-         '-' +
114
-         birth.substr(6, 2)
115
-       return jsGetAge(births, '-')
116 219
 
117
-     },
220
+    getAllDoctorList() {
221
+      getAllDoctorList().then((response) => {
222
+        if (response.data.state == 1) {
223
+          var doctor = response.data.data.doctor;
118 224
 
119
-     getAllDoctorList(){
120
-      getAllDoctorList().then(response=>{
121
-        if(response.data.state == 1){
122
-               var doctor =  response.data.data.doctor
123
-
124
-               this.doctorList = doctor
125
-             }
126
-         })
127
-     },
225
+          this.doctorList = doctor;
226
+        }
227
+      });
228
+    },
128 229
 
129
-      getDoctor(id){
130
-        var name = ""
131
-        for(let i=0;i<this.doctorList.length;i++){
132
-          if(id == this.doctorList[i].admin_user_id){
133
-              name = this.doctorList[i].user_name
230
+    getDoctor(id) {
231
+      var name = "";
232
+      for (let i = 0; i < this.doctorList.length; i++) {
233
+        if (id == this.doctorList[i].admin_user_id) {
234
+          name = this.doctorList[i].user_name;
235
+        }
236
+      }
237
+      return name;
238
+    },
239
+    getTime(value, temp) {
240
+      if (value != undefined) {
241
+        return uParseTime(value, temp);
242
+      }
243
+      return "";
244
+    },
245
+    getPrescriptionPrint() {
246
+      var params = {
247
+        // patient_id:this.patient_id,
248
+        // record_date:this.record_date,
249
+        // prescription_id:this.prescription_id,
250
+        patient_id: this.patient_id,
251
+        record_date: this.record_date,
252
+        prescription_id: this.prescription_id,
253
+        ids: this.ids,
254
+        p_type: 1,
255
+      };
256
+      console.log("params", params);
257
+      getPrescriptionPrint(params).then((response) => {
258
+        if (response.data.state == 1) {
259
+          var advicePrint = response.data.data.advicePrint;
260
+          console.log("adviceprint9999", advicePrint);
261
+          this.advicePrint = advicePrint;
262
+          this.prescriptions = advicePrint;
263
+          if (this.advicePrint.length > 0) {
264
+            var operatorsLen = this.advicePrint.length;
265
+            for (var index = 0; index < operatorsLen; index++) {
266
+              this.$set(
267
+                this.operatorMaps,
268
+                this.operators[index].creator,
269
+                this.operators[index]
270
+              );
271
+            }
134 272
           }
273
+          console.log("处方222222", this.prescriptions);
274
+          var hisPatient = response.data.data.hisHospitalRecord;
275
+          this.hisPatient = hisPatient;
276
+          var projectlist = response.data.data.projectlist;
277
+          console.log("所有项目列表", projectlist);
278
+          this.projectList = projectlist;
135 279
         }
136
-        return name
137
-      },
138
-      getTime(value, temp) {
139
-        if (value != undefined) {
140
-            return uParseTime(value, temp)
280
+      });
281
+    },
282
+    getHisPatientDetail() {
283
+      const params = {
284
+        patient_id: this.patient_id,
285
+      };
286
+      getHisPatientDetail(params).then((response) => {
287
+        if (response.data.state == 1) {
288
+          var hisPatient = response.data.data.hisHospitalRecord;
289
+          console.log("挂号病人", hisPatient);
290
+          this.hisPatient = hisPatient;
141 291
         }
142
-        return ''
143
-     },
144
-       getPrescriptionPrint(){
145
-         var params = {
146
-          // patient_id:this.patient_id,
147
-          // record_date:this.record_date,
148
-          // prescription_id:this.prescription_id,
149
-          patient_id:this.patient_id,
150
-          record_date:this.record_date,
151
-          prescription_id:this.prescription_id,
152
-          ids:this.ids,
153
-          p_type:1,
292
+      });
293
+    },
294
+    getInitData() {
295
+      getInitData().then((response) => {
296
+        if (response.data.state == 1) {
297
+          this.department = response.data.data.department;
298
+          this.diagnoses = response.data.data.diagnose;
299
+          console.log("争端", this.diagnoses);
154 300
         }
155
-        console.log("params",params)
156
-       getPrescriptionPrint(params).then(response=>{
157
-         if(response.data.state == 1){
158
-            var advicePrint =  response.data.data.advicePrint
159
-            console.log("adviceprint9999",advicePrint)
160
-            this.advicePrint = advicePrint
161
-            this.prescriptions = advicePrint
162
-            console.log("处方222222",this.prescriptions)
163
-            var hisPatient = response.data.data.hisHospitalRecord
164
-            this.hisPatient = hisPatient
165
-            var projectlist =  response.data.data.projectlist
166
-            console.log("所有项目列表",projectlist)
167
-            this.projectList = projectlist
168
-          }
169
-       })
170
-     },
171
-     getHisPatientDetail(){
172
-          const params = {
173
-              patient_id:this.patient_id,
174
-          }
175
-       getHisPatientDetail(params).then(response=>{
176
-          if(response.data.state == 1){
177
-             var hisPatient =  response.data.data.hisHospitalRecord
178
-             console.log("挂号病人",hisPatient)
179
-             this.hisPatient = hisPatient
180
-          }
181
-       })
182
-     },
183
-     getInitData(){
184
-       getInitData().then(response=>{
185
-          if(response.data.state == 1){
186
-            this.department = response.data.data.department
187
-            this.diagnoses = response.data.data.diagnose
188
-            console.log("争端",this.diagnoses)
189
-          }
190
-       })
191
-     },
192
-     getDepart(id){
193
-         var name = ""
194
-       for(let i=0;i<this.department.length;i++){
195
-           if(id == this.department[i].id){
196
-               name = this.department[i].name
197
-           }
198
-       }
199
-       return name
200
-     },
301
+      });
302
+    },
303
+    getDepart(id) {
304
+      var name = "";
305
+      for (let i = 0; i < this.department.length; i++) {
306
+        if (id == this.department[i].id) {
307
+          name = this.department[i].name;
308
+        }
309
+      }
310
+      return name;
311
+    },
201 312
     getTotalOne(id) {
202
-
203
-        var total = 0
204
-        var addtotal = 0
205
-        for (let i = 0; i < this.prescriptions.length; i++) {
206
-          if(id == this.prescriptions[i].id){
207
-            if (this.prescriptions[i].project != null) {
208
-              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
209
-                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
210
-              }
313
+      var total = 0;
314
+      var addtotal = 0;
315
+      for (let i = 0; i < this.prescriptions.length; i++) {
316
+        if (id == this.prescriptions[i].id) {
317
+          if (this.prescriptions[i].project != null) {
318
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
319
+              total =
320
+                total +
321
+                this.prescriptions[i].project[a].price *
322
+                  this.prescriptions[i].project[a].count;
211 323
             }
324
+          }
212 325
 
213
-            if (this.prescriptions[i].additionalcharge != null) {
214
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
215
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
216
-              }
326
+          if (this.prescriptions[i].additionalcharge != null) {
327
+            for (
328
+              let a = 0;
329
+              a < this.prescriptions[i].additionalcharge.length;
330
+              a++
331
+            ) {
332
+              addtotal =
333
+                addtotal +
334
+                this.prescriptions[i].additionalcharge[a].price *
335
+                  this.prescriptions[i].additionalcharge[a].count;
217 336
             }
218
-              addtotal =  Math.floor(addtotal * 100) / 100
337
+          }
338
+          addtotal = Math.floor(addtotal * 100) / 100;
219 339
         }
220
-
221
-       }
340
+      }
222 341
 
223 342
       for (let i = 0; i < this.prescriptions.length; i++) {
224
-          if(id == this.prescriptions[i].id){
225
-            if (this.prescriptions[i].advices != null) {
226
-              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
227
-                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
228
-              }
343
+        if (id == this.prescriptions[i].id) {
344
+          if (this.prescriptions[i].advices != null) {
345
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
346
+              total =
347
+                total +
348
+                this.prescriptions[i].advices[a].price *
349
+                  this.prescriptions[i].advices[a].prescribing_number;
229 350
             }
351
+          }
230 352
 
231
-            if (this.prescriptions[i].additionalcharge != null) {
232
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
233
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
234
-              }
353
+          if (this.prescriptions[i].additionalcharge != null) {
354
+            for (
355
+              let a = 0;
356
+              a < this.prescriptions[i].additionalcharge.length;
357
+              a++
358
+            ) {
359
+              addtotal =
360
+                addtotal +
361
+                this.prescriptions[i].additionalcharge[a].price *
362
+                  this.prescriptions[i].additionalcharge[a].count;
235 363
             }
236
-              addtotal =  Math.floor(addtotal * 100) / 100
364
+          }
365
+          addtotal = Math.floor(addtotal * 100) / 100;
237 366
         }
238
-       }
367
+      }
239 368
 
240
-        return total + addtotal
241
-      },
369
+      return total + addtotal;
370
+    },
242 371
 
243
-     getProjectName(id){
244
-        var project_name = ""
245
-        for(let i=0;i<this.projectList.length;i++){
246
-           if(id == this.projectList[i].id){
247
-               project_name = this.projectList[i].project_name
248
-           }
372
+    getProjectName(id) {
373
+      var project_name = "";
374
+      for (let i = 0; i < this.projectList.length; i++) {
375
+        if (id == this.projectList[i].id) {
376
+          project_name = this.projectList[i].project_name;
249 377
         }
250
-        return project_name
251
-     },
252
-
253
-     getDiagnosis(id) {
254
-       let arr = id.split(',')
255
-       var name = ''
256
-       for (let i = 0; i < this.diagnoses.length; i++) {
257
-         if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
258
-           name += this.diagnoses[i].class_name + ' '
259
-         }
260
-       }
261
-       return name
262
-     },
263
-
264
-   },
265
-   created(){
266
-      this.getAllDoctorList()
267
-      this.getInitData()
268
-      this.getPrescriptionPrint()
269
-      this.getHisPatientDetail()
270
-      var xtuser = this.$store.getters.xt_user;
271
-      this.orgname = xtuser.org.org_name;
378
+      }
379
+      return project_name;
380
+    },
272 381
 
273
-   },
274
-   watch:{
275
-     ids:function(val){
276
-      this.ids = val
277
-      this.getPrescriptionPrint()
278
-    }
279
-   }
280
-}
382
+    getDiagnosis(id) {
383
+      let arr = id.split(",");
384
+      var name = "";
385
+      for (let i = 0; i < this.diagnoses.length; i++) {
386
+        if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
387
+          name += this.diagnoses[i].class_name + " ";
388
+        }
389
+      }
390
+      return name;
391
+    },
392
+  },
393
+  created() {
394
+    this.getAllDoctorList();
395
+    this.getInitData();
396
+    this.getPrescriptionPrint();
397
+    this.getHisPatientDetail();
398
+    var xtuser = this.$store.getters.xt_user;
399
+    this.orgname = xtuser.org.org_name;
400
+  },
401
+  watch: {
402
+    ids: function (val) {
403
+      this.ids = val;
404
+      this.getPrescriptionPrint();
405
+    },
406
+  },
407
+};
281 408
 </script>
282 409
 
283 410
 
284 411
 <style lang="scss" scoped>
285
-.prescription-print{
286
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
287
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
288
-    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
289
-    margin-bottom: 20px;
290
-    padding:20px 10px;
412
+.prescription-print {
413
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
414
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
415
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
416
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
417
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
418
+  margin-bottom: 20px;
419
+  padding: 20px 10px;
291 420
 }
292
-.printTitle{
293
-    font-size: 22px;
294
-    text-align: center;
295
-    font-weight: bold;
421
+.printTitle {
422
+  font-size: 22px;
423
+  text-align: center;
424
+  font-weight: bold;
296 425
 }
297
-.infoTitle{
298
-    display: flex;
299
-    border-bottom: 2px solid #000;
300
-    margin-top:10px;
301
-    line-height: 24px;
302
-    padding:0 10px;
426
+.infoTitle {
427
+  display: flex;
428
+  border-bottom: 2px solid #000;
429
+  margin-top: 10px;
430
+  line-height: 24px;
431
+  padding: 0 10px;
303 432
 }
304
-.infoTitle p{
305
-    width: 200px;
433
+.infoTitle p {
434
+  width: 200px;
306 435
 }
307
-.infoMain{
308
-    display: flex;
309
-    flex-wrap: wrap;
310
-    border-bottom: 2px solid #000;
311
-    padding:0 10px;
436
+.infoMain {
437
+  display: flex;
438
+  flex-wrap: wrap;
439
+  border-bottom: 2px solid #000;
440
+  padding: 0 10px;
312 441
 }
313
-.infoMain div{
314
-    width: 50%;
315
-    line-height: 24px;
442
+.infoMain div {
443
+  width: 50%;
444
+  line-height: 24px;
316 445
 }
317
-.prescriptionBox{
318
-    padding:0 10px;
319
-    min-height:450px;
446
+.prescriptionBox {
447
+  padding: 0 10px;
448
+  min-height: 450px;
320 449
 }
321
-.Rp{
322
-    font-size: 22px;
323
-    font-weight: bold;
450
+.Rp {
451
+  font-size: 22px;
452
+  font-weight: bold;
324 453
 }
325
-.drugsBox{
326
-    padding-left: 40px;
327
-    margin-bottom: 10px;
454
+.drugsBox {
455
+  padding-left: 40px;
456
+  margin-bottom: 10px;
328 457
 }
329
-.drugsBox div{
330
-    line-height: 20px;
458
+.drugsBox div {
459
+  line-height: 20px;
331 460
 }
332
-.drugsOne{
333
-    line-height: 24px;
461
+.drugsOne {
462
+  line-height: 24px;
334 463
 }
335
-.drugsOne span{
336
-    margin-right: 20px;
464
+.drugsOne span {
465
+  margin-right: 20px;
337 466
 }
338
-.doctorBox{
339
-    display: flex;
340
-    justify-content: space-between;
341
-    padding:0 10px;
342
-    line-height: 24px;
343
-    border-bottom: 2px solid #000;
467
+.doctorBox {
468
+  display: flex;
469
+  justify-content: space-between;
470
+  padding: 0 10px;
471
+  line-height: 24px;
472
+  border-bottom: 2px solid #000;
344 473
 }
345
-.actionBar{
346
-    display: flex;
347
-    justify-content: space-between;
348
-    line-height: 24px;
349
-    padding:0 10px;
474
+.actionBar {
475
+  display: flex;
476
+  justify-content: space-between;
477
+  line-height: 24px;
478
+  padding: 0 10px;
350 479
 }
351
-.actionBar p{
352
-    width:150px;
480
+.actionBar p {
481
+  width: 150px;
353 482
 }
354 483
 </style>

File diff suppressed because it is too large
+ 599 - 417
src/xt_pages/hospitalStation/template/printThree.vue


+ 1 - 1
src/xt_pages/hospitalStation/template/printTwo.vue View File

@@ -15,7 +15,7 @@
15 15
             <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16 16
             <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17 17
             <div>地址:{{patient.home_address}}</div>
18
-            <div style="display:flex;width:50%;">临床诊断:22222{{ getDiagnosis(advicePrint[0].info.diagnosis) }}</div>
18
+            <div style="display:flex;width:50%;">临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}</div>
19 19
         </div>
20 20
         <div class="prescriptionBox">
21 21
             <div class="Rp">Rp:</div>

+ 9 - 3
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -11,9 +11,14 @@
11 11
           >打印</el-button
12 12
         >
13 13
       </template> -->
14
-
14
+<!-- 机构id列表
15
+3877 :测试
16
+10138、10243:百霖
17
+0:本地
18
+9675:测试
19
+ -->
15 20
     <div class="dialysisPage" style="padding-top: 40px">
16
-      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 9675">
21
+      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 4 && org_id !=0">
17 22
         <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18 23
 
19 24
         <!--        <printSix-->
@@ -55,7 +60,7 @@
55 60
 
56 61
         <!-- <printSix v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printSix> -->
57 62
       </div>
58
-      <div v-else-if="org_id == 10243 || org_id == 9675 || org_id == 0 ">
63
+      <div v-else-if="org_id == 10243 || org_id == 9675">
59 64
         <printSix
60 65
           v-bind:childResponse="childResponse"
61 66
           :advicePrint="advicePrint"
@@ -248,6 +253,7 @@ export default {
248 253
 
249 254
   created() {
250 255
     this.org_id = this.$store.getters.xt_user.org_id;
256
+    console.log(this.org_id,'机构id')
251 257
     this.getAllDoctorList();
252 258
     var record_date = this.paramsObj.record;
253 259
     this.record_date = record_date;

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

@@ -1,372 +1,525 @@
1 1
 <template>
2
-  <div id='prescriptionPrint'>
3
-    <div v-for="(item,index) in advicePrint" :key="index">
4
-      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
-          <div class="printTitle"  v-if="prescriptions[index].med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
-          <div class="printTitle" v-if="prescriptions[index].med_type != '1111' && prescriptions[index].med_type != '1112'">{{orgname}}处方笺</div>
8
-          <!--<div class="printTitle">{{orgname}}处方笺</div>-->
9
-          <div class="infoTitle">
10
-              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
11
-              <p>性别:
12
-                <span v-if="item.patient.gender == 1">男</span>
13
-                <span v-if="item.patient.gender == 2">女</span>
14
-              </p>
15
-              <p>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</p>
2
+  <div id="prescriptionPrint">
3
+    <div v-for="(item, index) in advicePrint" :key="index">
4
+      <div
5
+        id="prescription-print"
6
+        class="prescription-print"
7
+        style="page-break-after: always"
8
+      >
9
+        <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
10
+          {{ orgname }}第一类精神处方笺
11
+        </div>
12
+        <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13
+          {{ orgname }}第二类精神处方笺
14
+        </div>
15
+        <div
16
+          class="printTitle"
17
+          v-if="
18
+            prescriptions[index].med_type != '1111' &&
19
+            prescriptions[index].med_type != '1112'
20
+          "
21
+        >
22
+          {{ orgname }}处方笺
23
+        </div>
24
+        <!--<div class="printTitle">{{orgname}}处方笺</div>-->
25
+        <div class="infoTitle">
26
+          <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
+          <p>
28
+            性别:
29
+            <span v-if="item.patient.gender == 1">男</span>
30
+            <span v-if="item.patient.gender == 2">女</span>
31
+          </p>
32
+          <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
33
+        </div>
34
+        <div class="infoMain">
35
+          <div style="margin-bottom: 10px">
36
+            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
16 37
           </div>
17
-          <div class="infoMain">
18
-              <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
19
-              <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
20
-              <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
21
-              <div style="margin-bottom: 10px;" v-if="org_id != 10188">电话:{{item.patient.phone}}</div>
22
-              <div style="margin-bottom: 10px;" v-else>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</div>
23
-              <div>地址:{{item.patient.home_address}}</div>
24
-              <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
38
+          <div style="margin-bottom: 10px">
39
+            科室:{{ item.info ? getDepart(item.info.departments) : "" }}
25 40
           </div>
26
-          <div class="prescriptionBox">
27
-              <div class="Rp">Rp:</div>
28
-              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
29
-                  <!-- <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> -->
30
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
31
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
32
-              </div>
33
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
34
-                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
35
-               </div>
36
-
37
-              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
38
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.type == 2?getProjectName(it.project_id)?getProjectName(it.project_id):"":it.good_info.good_name}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
39
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
40
-              </div>
41
-              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
42
-                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price.toFixed(2)}}元/{{it.count}}次</div>
43
-               </div>
44
-               <div style="text-align:center;" >(以下空白)</div>
45
-
41
+          <div style="margin-bottom: 10px">
42
+            医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
+          </div>
44
+          <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
+            电话:{{ item.patient.phone }}
46
+          </div>
47
+          <div style="margin-bottom: 10px" v-else>
48
+            日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
46 49
           </div>
47
-          <div class="doctorBox" v-if="org_id != 10188">
48
-              <p>医师:{{item.doctor?item.doctor:""}}</p>
49
-              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
50
+          <div>地址:{{ item.patient.home_address }}</div>
51
+          <div style="display: flex; width: 50%">
52
+            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
53
+          </div>
54
+        </div>
55
+        <div class="prescriptionBox">
56
+          <div class="Rp">Rp:</div>
57
+          <div
58
+            class="drugsBox"
59
+            v-for="(it, index) in item.advices"
60
+            :key="index"
61
+          >
62
+            <!-- <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> -->
63
+            <div class="drugsOne">
64
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
65
+              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
66
+                v-if="it.drug.min_unit != it.drug.dose_unit"
67
+                >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
68
+              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
69
+                it.drug.max_unit
70
+              }}&nbsp;×&nbsp; {{ it.prescribing_number
71
+              }}{{ it.prescribing_number_unit }}
72
+            </div>
73
+            <div style="margin-left: 100px">
74
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
75
+              >&nbsp;&nbsp;<span
76
+                >{{ it.execution_frequency }}&nbsp;{{
77
+                  it.delivery_way
78
+                }}&nbsp;</span
79
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
80
+            </div>
81
+          </div>
82
+          <div
83
+            class="drugsBox"
84
+            v-for="(it, i) in item.additionalcharge"
85
+            :key="i"
86
+          >
87
+            <div class="drugsOne">
88
+              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
89
+                it.count
90
+              }}次
91
+            </div>
92
+          </div>
93
+
94
+          <div
95
+            class="drugsBox"
96
+            v-for="(it, index) in item.project"
97
+            :key="index"
98
+          >
99
+            <div class="drugsOne">
100
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
101
+              >{{
102
+                it.type == 2
103
+                  ? getProjectName(it.project_id)
104
+                    ? getProjectName(it.project_id)
105
+                    : ""
106
+                  : it.good_info.good_name
107
+              }}&nbsp;&nbsp;{{ it.single_dose
108
+              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
109
+            </div>
110
+            <div style="margin-left: 100px">
111
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
112
+              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
113
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
114
+            </div>
50 115
           </div>
51
-          <div class="doctorBox" v-else>
52
-            <p>药师:</p>
53
-            <p>医师:{{item.doctor?item.doctor:""}}</p>
116
+          <div
117
+            class="drugsBox"
118
+            v-for="(it, i) in item.additionalcharge"
119
+            :key="i"
120
+          >
121
+            <div class="drugsOne">
122
+              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
123
+                it.price.toFixed(2)
124
+              }}元/{{ it.count }}次
125
+            </div>
54 126
           </div>
55
-          <div class="actionBar" v-if="org_id != 10188">
56
-                 <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
127
+          <div style="text-align: center">(以下空白)</div>
128
+        </div>
129
+        <div class="doctorBox" v-if="org_id != 10188">
130
+          <p>
131
+            医师:
132
+            <!-- {{ item.doctor ? item.doctor : "" }} -->
133
+            <span
134
+              style="width: 100px; display: inline-block"
135
+              v-if="item.creator == ''"
136
+            >
137
+              {{ item.doctor }}
138
+            </span>
139
+            <img
140
+              style="height: 30px"
141
+              :src="setAdminUserES(item.creator)"
142
+              alt=""
143
+              srcset=""
144
+              v-else
145
+            />
146
+          </p>
147
+          <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
148
+        </div>
149
+        <div class="doctorBox" v-else>
150
+          <p>药师:</p>
151
+          <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
152
+        </div>
153
+        <div class="actionBar" v-if="org_id != 10188">
154
+          <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
57 155
                  <p>配对:</p>
58 156
                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
59 157
                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
60 158
                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
61 159
 
62
-                 <p>审核:</p>
63
-                 <p>配对:</p>
64
-                 <p>核对:</p>
65
-                 <p>发药:</p>
66
-                 <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
67
-<!--            <p>药费:466.2元</p>-->
68
-
69
-          </div>
70
-          <div class="actionBar" v-else>
71
-            <p style="visibility: hidden;">审核:</p>
72
-            <p style="visibility: hidden;">配对:</p>
73
-            <p style="visibility: hidden;">核对:</p>
74
-            <p style="visibility: hidden;">发药:</p>
75
-            <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
76
-<!--            <p>药费:551.2元</p>-->
77
-<!--            <p>药费:466.2元</p>-->
78
-
79
-
80
-          </div>
81
-          <div style="page-break-after:always"></div>
160
+          <p>审核:</p>
161
+          <p>配对:</p>
162
+          <p>核对:</p>
163
+          <p>发药:</p>
164
+          <p>
165
+            药费:{{
166
+              getTotalOne(item.id).toFixed(2)
167
+                ? getTotalOne(item.id).toFixed(2)
168
+                : 0
169
+            }}元
170
+          </p>
171
+          <!--            <p>药费:466.2元</p>-->
172
+        </div>
173
+        <div class="actionBar" v-else>
174
+          <p style="visibility: hidden">审核:</p>
175
+          <p style="visibility: hidden">配对:</p>
176
+          <p style="visibility: hidden">核对:</p>
177
+          <p style="visibility: hidden">发药:</p>
178
+          <p>
179
+            药费:{{
180
+              getTotalOne(item.id).toFixed(2)
181
+                ? getTotalOne(item.id).toFixed(2)
182
+                : 0
183
+            }}元
184
+          </p>
185
+          <!--            <p>药费:551.2元</p>-->
186
+          <!--            <p>药费:466.2元</p>-->
187
+        </div>
188
+        <div style="page-break-after: always"></div>
82 189
       </div>
83 190
     </div>
84
-
85 191
   </div>
86
-
87
-
88 192
 </template>
89 193
 <script>
90
-import { jsGetAge, uParseTime } from '@/utils/tools'
91
-import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
92
-import {getInitData} from "@/api/his/his"
194
+import { jsGetAge, uParseTime } from "@/utils/tools";
195
+import {
196
+  getAllDoctorList,
197
+  getPrescriptionPrint,
198
+  getHisPatientDetail,
199
+} from "@/api/project/project";
200
+import { getInitData } from "@/api/his/his";
93 201
 export default {
94
-    props:{
95
-      patient_id:Number,
96
-      record_date:String,
97
-      prescription_id:Number,
98
-      ids:String
202
+  props: {
203
+    patient_id: Number,
204
+    record_date: String,
205
+    prescription_id: Number,
206
+    ids: String,
207
+  },
208
+  data() {
209
+    return {
210
+      doctorList: [],
211
+      advicePrint: {},
212
+      patient: {},
213
+      tableData: [],
214
+      prescriptionInfo: [],
215
+      hisPatient: {},
216
+      department: [],
217
+      prescriptions: [],
218
+      projectList: [],
219
+      orgname: "",
220
+      diagnoses: [],
221
+      org_id: 0,
222
+      operatorMaps: {},
223
+      operators: [],
224
+      doctorList_1: []
225
+    };
226
+  },
227
+  methods: {
228
+    // 电子签名
229
+    setAdminUserES(id) {
230
+      if (id == 0) {
231
+        return "";
232
+      }
233
+      if (id in this.operatorMaps) {
234
+        return this.operatorMaps[id].url;
235
+      } else {
236
+        return "";
237
+      }
99 238
     },
100
-    data(){
101
-      return {
102
-        doctorList:[],
103
-        advicePrint:{},
104
-        patient:{},
105
-        tableData:[],
106
-        prescriptionInfo:[],
107
-        hisPatient:{},
108
-        department:[],
109
-        prescriptions:[],
110
-        projectList:[],
111
-        orgname:"",
112
-        diagnoses:[],
113
-        org_id: 0
239
+    getAge(patient) {
240
+      var thisLen = patient.id_card_no.length;
241
+      var birth = "";
242
+      if (thisLen == 15) {
243
+        birth = "19" + patient.id_card_no.substr(6, 6);
244
+      } else {
245
+        birth = patient.id_card_no.substr(6, 8);
114 246
       }
247
+      var births =
248
+        birth.substr(0, 4) +
249
+        "-" +
250
+        birth.substr(4, 2) +
251
+        "-" +
252
+        birth.substr(6, 2);
253
+      return jsGetAge(births, "-");
115 254
     },
116
-   methods:{
117
-     getAge(patient){
118
-       var thisLen = patient.id_card_no.length
119
-       var birth = ''
120
-       if (thisLen == 15) {
121
-         birth = '19' + patient.id_card_no.substr(6, 6)
122
-       } else {
123
-         birth = patient.id_card_no.substr(6, 8)
124
-       }
125
-       var births =
126
-         birth.substr(0, 4) +
127
-         '-' +
128
-         birth.substr(4, 2) +
129
-         '-' +
130
-         birth.substr(6, 2)
131
-       return jsGetAge(births, '-')
132 255
 
133
-     },
256
+    getAllDoctorList() {
257
+      getAllDoctorList().then((response) => {
258
+        if (response.data.state == 1) {
259
+          var doctor = response.data.data.doctor;
134 260
 
135
-     getAllDoctorList(){
136
-      getAllDoctorList().then(response=>{
137
-        if(response.data.state == 1){
138
-               var doctor =  response.data.data.doctor
261
+          this.doctorList = doctor;
262
+        }
263
+      });
264
+    },
139 265
 
140
-               this.doctorList = doctor
141
-             }
142
-         })
143
-     },
266
+    getDoctor(id) {
267
+      var name = "";
268
+      for (let i = 0; i < this.doctorList.length; i++) {
269
+        if (id == this.doctorList[i].admin_user_id) {
270
+          name = this.doctorList[i].user_name;
271
+        }
272
+      }
273
+      return name;
274
+    },
275
+    getTime(value, temp) {
276
+      if (value != undefined) {
277
+        return uParseTime(value, temp);
278
+      }
279
+      return "";
280
+    },
281
+    getPrescriptionPrint() {
282
+      var params = {
283
+        // patient_id:this.patient_id,
284
+        // record_date:this.record_date,
285
+        // prescription_id:this.prescription_id,
286
+        patient_id: this.patient_id,
287
+        record_date: this.record_date,
288
+        prescription_id: this.prescription_id,
289
+        ids: this.ids,
290
+        p_type: 2,
291
+      };
292
+      console.log("params", params);
293
+      getPrescriptionPrint(params).then((response) => {
294
+        if (response.data.state == 1) {
295
+          var advicePrint = response.data.data.advicePrint;
296
+          console.log("adviceprint9999", advicePrint);
297
+          this.advicePrint = advicePrint;
298
+          this.prescriptions = advicePrint;
144 299
 
145
-      getDoctor(id){
146
-        var name = ""
147
-        for(let i=0;i<this.doctorList.length;i++){
148
-          if(id == this.doctorList[i].admin_user_id){
149
-              name = this.doctorList[i].user_name
300
+          this.doctorList_1 = response.data.data.eles;
301
+          console.log(this.doctorList_1, "医生列表");
302
+          if (this.doctorList_1.length > 0) {
303
+            var operatorsLen = this.doctorList_1.length;
304
+            for (var index = 0; index < operatorsLen; index++) {
305
+              this.$set(
306
+                this.operatorMaps,
307
+                this.doctorList_1[index].creator,
308
+                this.doctorList_1[index]
309
+              );
310
+            }
150 311
           }
312
+
313
+          console.log("处方222222", this.prescriptions);
314
+          var hisPatient = response.data.data.hisPatient;
315
+          console.log("hisPatient", hisPatient);
316
+          this.hisPatient = hisPatient;
317
+          var projectlist = response.data.data.projectlist;
318
+          console.log("所有项目列表", projectlist);
319
+          this.projectList = projectlist;
320
+        }
321
+      });
322
+    },
323
+    getHisPatientDetail() {
324
+      const params = {
325
+        patient_id: this.patient_id,
326
+      };
327
+      getHisPatientDetail(params).then((response) => {
328
+        if (response.data.state == 1) {
329
+          var hisPatient = response.data.data.hisPatient;
330
+          console.log("挂号病人", hisPatient);
331
+          this.hisPatient = hisPatient;
151 332
         }
152
-        return name
153
-      },
154
-      getTime(value, temp) {
155
-        if (value != undefined) {
156
-            return uParseTime(value, temp)
333
+      });
334
+    },
335
+    getInitData() {
336
+      getInitData().then((response) => {
337
+        if (response.data.state == 1) {
338
+          this.department = response.data.data.department;
339
+          this.diagnoses = response.data.data.diagnose;
340
+          console.log("争端", this.diagnoses);
157 341
         }
158
-        return ''
159
-     },
160
-       getPrescriptionPrint(){
161
-         var params = {
162
-          // patient_id:this.patient_id,
163
-          // record_date:this.record_date,
164
-          // prescription_id:this.prescription_id,
165
-          patient_id:this.patient_id,
166
-          record_date:this.record_date,
167
-          prescription_id:this.prescription_id,
168
-          ids:this.ids,
169
-           p_type:2,
170
-
171
-         }
172
-        console.log("params",params)
173
-       getPrescriptionPrint(params).then(response=>{
174
-         if(response.data.state == 1){
175
-            var advicePrint =  response.data.data.advicePrint
176
-            console.log("adviceprint9999",advicePrint)
177
-            this.advicePrint = advicePrint
178
-            this.prescriptions = advicePrint
179
-            console.log("处方222222",this.prescriptions)
180
-            var hisPatient = response.data.data.hisPatient
181
-            console.log("hisPatient",hisPatient)
182
-            this.hisPatient = hisPatient
183
-            var projectlist =  response.data.data.projectlist
184
-            console.log("所有项目列表",projectlist)
185
-            this.projectList = projectlist
186
-          }
187
-       })
188
-     },
189
-     getHisPatientDetail(){
190
-          const params = {
191
-              patient_id:this.patient_id
192
-          }
193
-       getHisPatientDetail(params).then(response=>{
194
-          if(response.data.state == 1){
195
-             var hisPatient =  response.data.data.hisPatient
196
-             console.log("挂号病人",hisPatient)
197
-             this.hisPatient = hisPatient
198
-          }
199
-       })
200
-     },
201
-     getInitData(){
202
-       getInitData().then(response=>{
203
-          if(response.data.state == 1){
204
-            this.department = response.data.data.department
205
-            this.diagnoses = response.data.data.diagnose
206
-            console.log("争端",this.diagnoses)
207
-          }
208
-       })
209
-     },
210
-     getDepart(id){
211
-         var name = ""
212
-       for(let i=0;i<this.department.length;i++){
213
-           if(id == this.department[i].id){
214
-               name = this.department[i].name
215
-           }
216
-       }
217
-       return name
218
-     },
342
+      });
343
+    },
344
+    getDepart(id) {
345
+      var name = "";
346
+      for (let i = 0; i < this.department.length; i++) {
347
+        if (id == this.department[i].id) {
348
+          name = this.department[i].name;
349
+        }
350
+      }
351
+      return name;
352
+    },
219 353
     getTotalOne(id) {
220
-
221
-        var total = 0
222
-        var addtotal = 0
223
-        for (let i = 0; i < this.prescriptions.length; i++) {
224
-          if(id == this.prescriptions[i].id){
225
-            if (this.prescriptions[i].project != null) {
226
-              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
227
-                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
228
-              }
354
+      var total = 0;
355
+      var addtotal = 0;
356
+      for (let i = 0; i < this.prescriptions.length; i++) {
357
+        if (id == this.prescriptions[i].id) {
358
+          if (this.prescriptions[i].project != null) {
359
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
360
+              total =
361
+                total +
362
+                this.prescriptions[i].project[a].price *
363
+                  this.prescriptions[i].project[a].count;
229 364
             }
365
+          }
230 366
 
231
-            if (this.prescriptions[i].additionalcharge != null) {
232
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
233
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
234
-              }
367
+          if (this.prescriptions[i].additionalcharge != null) {
368
+            for (
369
+              let a = 0;
370
+              a < this.prescriptions[i].additionalcharge.length;
371
+              a++
372
+            ) {
373
+              addtotal =
374
+                addtotal +
375
+                this.prescriptions[i].additionalcharge[a].price *
376
+                  this.prescriptions[i].additionalcharge[a].count;
235 377
             }
236
-              addtotal =  Math.floor(addtotal * 100) / 100
378
+          }
379
+          addtotal = Math.floor(addtotal * 100) / 100;
237 380
         }
238
-
239
-       }
381
+      }
240 382
 
241 383
       for (let i = 0; i < this.prescriptions.length; i++) {
242
-          if(id == this.prescriptions[i].id){
243
-            if (this.prescriptions[i].advices != null) {
244
-              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
245
-                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
246
-              }
384
+        if (id == this.prescriptions[i].id) {
385
+          if (this.prescriptions[i].advices != null) {
386
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
387
+              total =
388
+                total +
389
+                this.prescriptions[i].advices[a].price *
390
+                  this.prescriptions[i].advices[a].prescribing_number;
247 391
             }
392
+          }
248 393
 
249
-            if (this.prescriptions[i].additionalcharge != null) {
250
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
251
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
252
-              }
394
+          if (this.prescriptions[i].additionalcharge != null) {
395
+            for (
396
+              let a = 0;
397
+              a < this.prescriptions[i].additionalcharge.length;
398
+              a++
399
+            ) {
400
+              addtotal =
401
+                addtotal +
402
+                this.prescriptions[i].additionalcharge[a].price *
403
+                  this.prescriptions[i].additionalcharge[a].count;
253 404
             }
254
-              addtotal =  Math.floor(addtotal * 100) / 100
405
+          }
406
+          addtotal = Math.floor(addtotal * 100) / 100;
255 407
         }
256
-       }
408
+      }
257 409
 
258
-        return total + addtotal
259
-      },
410
+      return total + addtotal;
411
+    },
260 412
 
261
-     getProjectName(id){
262
-        var project_name = ""
263
-        for(let i=0;i<this.projectList.length;i++){
264
-           if(id == this.projectList[i].id){
265
-               project_name = this.projectList[i].project_name
266
-           }
413
+    getProjectName(id) {
414
+      var project_name = "";
415
+      for (let i = 0; i < this.projectList.length; i++) {
416
+        if (id == this.projectList[i].id) {
417
+          project_name = this.projectList[i].project_name;
267 418
         }
268
-        return project_name
269
-     },
270
-
271
-     getDiagnosis(id){
272
-       let arr = id.split(',')
273
-       var name = ""
274
-       for(let i=0;i<this.diagnoses.length;i++){
275
-         if(arr.indexOf(String(this.diagnoses[i].id)) > -1){
276
-           name += this.diagnoses[i].class_name + ' '
277
-         }
278
-       }
279
-       return name
280
-     }
419
+      }
420
+      return project_name;
421
+    },
281 422
 
282
-   },
283
-   created(){
284
-      this.getAllDoctorList()
285
-      this.getInitData()
286
-      this.getPrescriptionPrint()
287
-      this.getHisPatientDetail()
288
-      var xtuser = this.$store.getters.xt_user;
289
-      this.orgname = xtuser.org.org_name;
290
-      this.org_id = xtuser.org.id
291
-   },
292
-   watch:{
293
-     ids:function(val){
294
-      this.ids = val
295
-      this.getPrescriptionPrint()
296
-    }
297
-   }
298
-}
423
+    getDiagnosis(id) {
424
+      let arr = id.split(",");
425
+      var name = "";
426
+      for (let i = 0; i < this.diagnoses.length; i++) {
427
+        if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
428
+          name += this.diagnoses[i].class_name + " ";
429
+        }
430
+      }
431
+      return name;
432
+    },
433
+  },
434
+  created() {
435
+    this.getAllDoctorList();
436
+    this.getInitData();
437
+    this.getPrescriptionPrint();
438
+    this.getHisPatientDetail();
439
+    var xtuser = this.$store.getters.xt_user;
440
+    this.orgname = xtuser.org.org_name;
441
+    this.org_id = xtuser.org.id;
442
+  },
443
+  watch: {
444
+    ids: function (val) {
445
+      this.ids = val;
446
+      this.getPrescriptionPrint();
447
+    },
448
+  },
449
+};
299 450
 </script>
300 451
 
301 452
 
302 453
 <style lang="scss" scoped>
303
-.prescription-print{
304
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
305
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
306
-    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
307
-    margin-bottom: 20px;
308
-    padding:20px 10px;
454
+.prescription-print {
455
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
456
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
457
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
458
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
459
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
460
+  margin-bottom: 20px;
461
+  padding: 20px 10px;
309 462
 }
310
-.printTitle{
311
-    font-size: 22px;
312
-    text-align: center;
313
-    font-weight: bold;
463
+.printTitle {
464
+  font-size: 22px;
465
+  text-align: center;
466
+  font-weight: bold;
314 467
 }
315
-.infoTitle{
316
-    display: flex;
317
-    border-bottom: 2px solid #000;
318
-    margin-top:10px;
319
-    line-height: 24px;
320
-    padding:0 10px;
468
+.infoTitle {
469
+  display: flex;
470
+  border-bottom: 2px solid #000;
471
+  margin-top: 10px;
472
+  line-height: 24px;
473
+  padding: 0 10px;
321 474
 }
322
-.infoTitle p{
323
-    width: 200px;
475
+.infoTitle p {
476
+  width: 200px;
324 477
 }
325
-.infoMain{
326
-    display: flex;
327
-    flex-wrap: wrap;
328
-    border-bottom: 2px solid #000;
329
-    padding:0 10px;
478
+.infoMain {
479
+  display: flex;
480
+  flex-wrap: wrap;
481
+  border-bottom: 2px solid #000;
482
+  padding: 0 10px;
330 483
 }
331
-.infoMain div{
332
-    width: 50%;
333
-    line-height: 24px;
484
+.infoMain div {
485
+  width: 50%;
486
+  line-height: 24px;
334 487
 }
335
-.prescriptionBox{
336
-    padding:0 10px;
337
-    min-height:450px;
488
+.prescriptionBox {
489
+  padding: 0 10px;
490
+  min-height: 450px;
338 491
 }
339
-.Rp{
340
-    font-size: 22px;
341
-    font-weight: bold;
492
+.Rp {
493
+  font-size: 22px;
494
+  font-weight: bold;
342 495
 }
343
-.drugsBox{
344
-    padding-left: 40px;
345
-    margin-bottom: 10px;
496
+.drugsBox {
497
+  padding-left: 40px;
498
+  margin-bottom: 10px;
346 499
 }
347
-.drugsBox div{
348
-    line-height: 20px;
500
+.drugsBox div {
501
+  line-height: 20px;
349 502
 }
350
-.drugsOne{
351
-    line-height: 24px;
503
+.drugsOne {
504
+  line-height: 24px;
352 505
 }
353
-.drugsOne span{
354
-    margin-right: 20px;
506
+.drugsOne span {
507
+  margin-right: 20px;
355 508
 }
356
-.doctorBox{
357
-    display: flex;
358
-    justify-content: space-between;
359
-    padding:0 10px;
360
-    line-height: 24px;
361
-    border-bottom: 2px solid #000;
509
+.doctorBox {
510
+  display: flex;
511
+  justify-content: space-between;
512
+  padding: 0 10px;
513
+  line-height: 24px;
514
+  border-bottom: 2px solid #000;
362 515
 }
363
-.actionBar{
364
-    display: flex;
365
-    justify-content: space-between;
366
-    line-height: 24px;
367
-    padding:0 10px;
516
+.actionBar {
517
+  display: flex;
518
+  justify-content: space-between;
519
+  line-height: 24px;
520
+  padding: 0 10px;
368 521
 }
369
-.actionBar p{
370
-    width:150px;
522
+.actionBar p {
523
+  width: 150px;
371 524
 }
372 525
 </style>

File diff suppressed because it is too large
+ 608 - 420
src/xt_pages/outpatientDoctorStation/template/printThree.vue


+ 3 - 1
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

@@ -13,7 +13,9 @@
13 13
       </template> -->
14 14
             
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne v-if="org_id != 10138 && org_id != 10278" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
+        <!-- 此下条为本地开发下页面 -->
17
+        <!-- <printTwo v-if="org_id == 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo> -->
18
+        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4&& org_id !=0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17 19
         <printTwo v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
18 20
       </div>
19 21
   </div>

File diff suppressed because it is too large
+ 558 - 411
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue


+ 3 - 3
src/xt_pages/stock/detail/print.vue View File

@@ -53,7 +53,7 @@
53 53
                 <span v-if="type == 2"> 
54 54
                   <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span> 
55 55
                    <span  v-if="org_id == 10265">{{getMySelfCount(item.good_id) }}</span>   
56
-                  <span v-else>{{getStockCount(item.good_id) }}</span>
56
+                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=10285&&org_id!=9583">{{getStockCount(item.good_id) }}</span>
57 57
                 </span>
58 58
                
59 59
                 <span v-if="type == 4"> {{ item.count }}</span>
@@ -78,7 +78,7 @@
78 78
                      {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}}
79 79
                   </span>
80 80
                   <span v-if="org_id == 10265">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
81
-                  <span v-else>{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
81
+                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
82 82
                 </span>
83 83
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
84 84
               </td>
@@ -101,7 +101,7 @@
101 101
                 <span v-if="type == 2">
102 102
                   <span v-if="org_id == 3907 || org_id == 9919">{{getWareOutTotalOne().toFixed(2)}}</span>
103 103
                   <span v-if="org_id == 10265">{{getWareOutTotalSix().toFixed(2)}}</span>
104
-                  <span v-else> {{getWareOutTotal().toFixed(2)}}</span>
104
+                  <span v-if="org_id!=3907 && org_id!=9919 && org_id!=10265"> {{getWareOutTotal().toFixed(2)}}</span>
105 105
                  </span> 
106 106
                 <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span> 
107 107
               </td>

+ 1 - 1
src/xt_pages/supply/components/addGoodReturn.vue View File

@@ -1231,7 +1231,7 @@ export default {
1231 1231
        warehouse_out_id:this.warehouse_out_id,
1232 1232
        id:this.id,
1233 1233
      }
1234
-     console.log("审核2322323232323",params)
1234
+    //  console.log("审核2322323232323",params)
1235 1235
  
1236 1236
      checkReturnOrder(params).then(response=>{
1237 1237
        if(response.data.state == 1){