see999 3 years ago
parent
commit
d10254233a

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

@@ -2430,7 +2430,7 @@
2430 2430
                 obj.type = 2
2431 2431
                 obj.custom_id = this.rand(10000000, 99999999)
2432 2432
                 obj.drug_specs = medicalList[i].drug_specs
2433
-                console.log("222",this.all_drug)
2433
+                // console.log("222",this.all_drug)
2434 2434
                 this.all_drug.push(obj)
2435 2435
               }
2436 2436
             }
@@ -2467,7 +2467,7 @@
2467 2467
                 obj.custom_id = this.rand(10000000, 99999999)
2468 2468
                 obj.drug_specs = base_drug_list[i].drug_specs
2469 2469
                 this.all_drug.push(obj)
2470
-                console.log("2222",this.all_drug)
2470
+                // console.log("2222",this.all_drug)
2471 2471
               }
2472 2472
             }
2473 2473
         })

+ 1 - 3
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -93,9 +93,7 @@
93 93
         <template slot-scope="scope">
94 94
           <div style="display:flex;">
95 95
             <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
96
-            {{scope.row.total}}
97
-
98
-            <div>{{scope.row.unit}}</div>
96
+            {{scope.row.total}} {{scope.row.unit}}
99 97
 
100 98
           </div>
101 99
         </template>

+ 8 - 8
src/xt_pages/outpatientCharges/summary.vue View File

@@ -65,34 +65,34 @@
65 65
           type="index"
66 66
         >
67 67
         </el-table-column>
68
-        <el-table-column align="center" prop="name" label="就诊号">
68
+        <el-table-column align="center" width="100" prop="name" label="就诊号">
69 69
           <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
70 70
         </el-table-column>
71
-        <el-table-column align="center" prop="name" label="患者名字">
71
+        <el-table-column align="center" width="90" prop="name" label="患者名字">
72 72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
73 73
         </el-table-column>
74 74
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
75 75
         <!--<template slot-scope="scope"></template>-->
76 76
         <!--</el-table-column>-->
77 77
 
78
-        <el-table-column align="center" prop="name" label="应收金额">
78
+        <el-table-column align="center" width="90" prop="name" label="应收金额">
79 79
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
80 80
         </el-table-column>
81
-        <el-table-column align="center" prop="name" label="实收金额">
81
+        <el-table-column align="center" width="90" prop="name" label="实收金额">
82 82
           <template slot-scope="scope">{{scope.row.reality_price}}</template>
83 83
         </el-table-column>
84
-        <el-table-column align="center" prop="name" label="科室">
84
+        <el-table-column align="center" width="90" prop="name" label="科室">
85 85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
86 86
         </el-table-column>
87
-        <el-table-column align="center" prop="name" label="收费日期">
87
+        <el-table-column align="center" width="100" prop="name" label="收费日期">
88 88
           <template slot-scope="scope">
89 89
             {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
90 90
           </template>
91 91
         </el-table-column>
92
-        <el-table-column align="center" prop="name" label="收费员">
92
+        <el-table-column align="center" width="90" prop="name" label="收费员">
93 93
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
94 94
         </el-table-column>
95
-        <el-table-column align="center" prop="name" label="状态">
95
+        <el-table-column align="center" width="80" prop="name" label="状态">
96 96
           <template slot-scope="scope">
97 97
             <div v-if="scope.row.order_status == 1">待结算</div>
98 98
             <div v-if="scope.row.order_status == 2">已结算</div>

+ 201 - 152
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue View File

@@ -7,143 +7,146 @@
7 7
       element-loading-text="拼命加载中"
8 8
       element-loading-spinner="el-icon-loading"
9 9
       element-loading-background="rgba(0, 0, 0, 0.8)"
10
+      v-if="dialysisShow"
10 11
     >
11
-    <div style="padding-top: 56px;width:100%;">
12
-
13
-      <nav-igation
14
-        ref="nav"
15
-        title="弹窗导航"
16
-        @advice="adviceFunc"
17
-        :patient="patient"
18
-        :schedual="schedual"
19
-        :prescription="prescription"
20
-        :solution="solution"
21
-        :receiver_treatment_access="receiver_treatment_access"
22
-        :predialysis_evaluation="predialysis_evaluation"
23
-        :doctor_advices="doctor_advices"
24
-        :double_check="double_check"
25
-        :assessment_after_dislysis="assessment_after_dislysis"
26
-        :treatment_summary="treatment_summary"
27
-        :monitor_records="monitor_records"
28
-        :dialysis_order="dialysis_order"
29
-        :admin_users="admin_users"
30
-        :devices="devices"
31
-        :device_numbers="device_numbers"
32
-        :admin_user_map="admin_user_map"
33
-        :device_map="device_map"
34
-        :device_number_map="device_number_map"
35
-        :niprocart_info="niprocart_info"
36
-        :jms_info="jms_info"
37
-        :fistula_needle_set_info="fistula_needle_set_info"
38
-        :fistula_needle_set_16_info="fistula_needle_set_16_info"
39
-        :hemoperfusion_info="hemoperfusion_info"
40
-        :dialyser_sterilised_info="dialyser_sterilised_info"
41
-        :filtryzer_info="filtryzer_info"
42
-        :dialyzers_info="dialyzers_info"
43
-        :injector_info="injector_info"
44
-        :bloodlines_info="bloodlines_info"
45
-        :tubingHemodialysis_info="tubingHemodialysis_info"
46
-        :safe_package_info="safe_package_info"
47
-        :aliquid_info="aliquid_info"
48
-        :config="config"
49
-        :longAdvices="longAdvices"
50
-        :waitUploadAdvices="waitUploadAdvices"
51
-        :is_open="is_open"
52
-        :last_predialysis_evaluation="lastPredialysisEvaluation"
53
-        :last_monitor_record="lastMonitorRecord"
54
-        :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
55
-        :last_dialysis_prescribe="lastDialysisPrescribe"
56
-        :last_dryWeight_dislysis="lastDryWeightDislysis"
57
-        :special_premission="headNurses"
58
-        @assessmentAfterDislysis="assessmentAfterDislysisFunc"
59
-        :system_prescribe="system_prescribe"
60
-        :his_is_open="his_is_open"
61
-        :lastAssessment="lastAssessment"
62
-        :stockType="stockType"
63
-      >
64
-      </nav-igation>
65
-
66
-
67
-
68
-      <basic-infor
69
-        :patient="patient"
70
-        :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
71
-        :steps="steps"
72
-        title="基本信息"
73
-      ></basic-infor>
74
-
75
-      <dialysis-prescription
76
-        :prescription="prescription"
77
-        :solution="solution"
78
-        :device_map="device_map"
79
-        :preparestock="preparestock"
80
-        title="透析处方"
81
-      ></dialysis-prescription>
82
-
83
-
84
-
85
-    <!-- <past-data class="往期数据"></past-data> -->
86
-      <div style="height: 20px;background-color: #f6f8f9"></div>
87
-      <accepts-assessment
88
-        :record="receiver_treatment_access"
89
-        title="接诊评估"
90
-      ></accepts-assessment>
91
-
92
-      <assessment-before
93
-        :record="predialysis_evaluation"
94
-        ref="assessment_before"
95
-        title="透前评估"
96
-      ></assessment-before>
97
-
98
-      <stat-order
99
-        ref="stat_order"
100
-        :advices="doctor_advices"
101
-        :doctor_map="admin_user_map"
102
-        title="临时医嘱"
103
-      ></stat-order>
104
-
105
-      <double-check
106
-        ref="double_check"
107
-        :record="double_check"
108
-        :admin_map="admin_user_map"
109
-        title="双人核对 "
110
-      ></double-check>
111
-
112
-      <dialysis-computer
113
-        ref="dialysis_computer"
114
-        :record="dialysis_order"
115
-        :admin_map="admin_user_map"
116
-        :device_number_map="device_number_map"
117
-        title="透析上机 "
118
-      ></dialysis-computer>
119
-
120
-      <dialysis-monitoring
121
-        ref="monitoring"
122
-        :monitores="monitor_records"
123
-        title="透析监测"
124
-      ></dialysis-monitoring>
125
-
126
-
127
-      <dialysis-off
128
-        ref="dialysis_off"
129
-        :record="dialysis_order"
130
-        :admin_map="admin_user_map"
131
-        title="透析下机 "
132
-      ></dialysis-off>
133
-
134
-      <assessment-after
135
-        ref="assessment_after"
136
-        :record="assessment_after_dislysis"
137
-        title="透后评估"
138
-      ></assessment-after>
139
-
140
-      <treatment-of
141
-        ref="treatment_of"
142
-        :record="treatment_summary"
143
-        title="治疗小结"
144
-      ></treatment-of>
12
+      <div style="padding-top: 56px;width:100%;" >
13
+
14
+        <nav-igation
15
+          ref="nav"
16
+          title="弹窗导航"
17
+          @advice="adviceFunc"
18
+          :patient="patient"
19
+          :schedual="schedual"
20
+          :prescription="prescription"
21
+          :solution="solution"
22
+          :receiver_treatment_access="receiver_treatment_access"
23
+          :predialysis_evaluation="predialysis_evaluation"
24
+          :doctor_advices="doctor_advices"
25
+          :double_check="double_check"
26
+          :assessment_after_dislysis="assessment_after_dislysis"
27
+          :treatment_summary="treatment_summary"
28
+          :monitor_records="monitor_records"
29
+          :dialysis_order="dialysis_order"
30
+          :admin_users="admin_users"
31
+          :devices="devices"
32
+          :device_numbers="device_numbers"
33
+          :admin_user_map="admin_user_map"
34
+          :device_map="device_map"
35
+          :device_number_map="device_number_map"
36
+          :niprocart_info="niprocart_info"
37
+          :jms_info="jms_info"
38
+          :fistula_needle_set_info="fistula_needle_set_info"
39
+          :fistula_needle_set_16_info="fistula_needle_set_16_info"
40
+          :hemoperfusion_info="hemoperfusion_info"
41
+          :dialyser_sterilised_info="dialyser_sterilised_info"
42
+          :filtryzer_info="filtryzer_info"
43
+          :dialyzers_info="dialyzers_info"
44
+          :injector_info="injector_info"
45
+          :bloodlines_info="bloodlines_info"
46
+          :tubingHemodialysis_info="tubingHemodialysis_info"
47
+          :safe_package_info="safe_package_info"
48
+          :aliquid_info="aliquid_info"
49
+          :config="config"
50
+          :longAdvices="longAdvices"
51
+          :waitUploadAdvices="waitUploadAdvices"
52
+          :is_open="is_open"
53
+          :last_predialysis_evaluation="lastPredialysisEvaluation"
54
+          :last_monitor_record="lastMonitorRecord"
55
+          :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
56
+          :last_dialysis_prescribe="lastDialysisPrescribe"
57
+          :last_dryWeight_dislysis="lastDryWeightDislysis"
58
+          :special_premission="headNurses"
59
+          @assessmentAfterDislysis="assessmentAfterDislysisFunc"
60
+          :system_prescribe="system_prescribe"
61
+          :his_is_open="his_is_open"
62
+          :lastAssessment="lastAssessment"
63
+          :stockType="stockType"
64
+        >
65
+        </nav-igation>
66
+
67
+
68
+
69
+        <basic-infor
70
+          :patient="patient"
71
+          :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
72
+          :steps="steps"
73
+          title="基本信息"
74
+        ></basic-infor>
75
+
76
+        <dialysis-prescription
77
+          :prescription="prescription"
78
+          :solution="solution"
79
+          :device_map="device_map"
80
+          :preparestock="preparestock"
81
+          title="透析处方"
82
+        ></dialysis-prescription>
83
+
84
+
85
+
86
+      <!-- <past-data class="往期数据"></past-data> -->
87
+        <div style="height: 20px;background-color: #f6f8f9"></div>
88
+        <accepts-assessment
89
+          :record="receiver_treatment_access"
90
+          title="接诊评估"
91
+        ></accepts-assessment>
92
+
93
+        <assessment-before
94
+          :record="predialysis_evaluation"
95
+          ref="assessment_before"
96
+          title="透前评估"
97
+        ></assessment-before>
98
+
99
+        <stat-order
100
+          ref="stat_order"
101
+          :advices="doctor_advices"
102
+          :doctor_map="admin_user_map"
103
+          title="临时医嘱"
104
+        ></stat-order>
105
+
106
+        <double-check
107
+          ref="double_check"
108
+          :record="double_check"
109
+          :admin_map="admin_user_map"
110
+          title="双人核对 "
111
+        ></double-check>
112
+
113
+        <dialysis-computer
114
+          ref="dialysis_computer"
115
+          :record="dialysis_order"
116
+          :admin_map="admin_user_map"
117
+          :device_number_map="device_number_map"
118
+          title="透析上机 "
119
+        ></dialysis-computer>
120
+
121
+        <dialysis-monitoring
122
+          ref="monitoring"
123
+          :monitores="monitor_records"
124
+          title="透析监测"
125
+        ></dialysis-monitoring>
126
+
127
+
128
+        <dialysis-off
129
+          ref="dialysis_off"
130
+          :record="dialysis_order"
131
+          :admin_map="admin_user_map"
132
+          title="透析下机 "
133
+        ></dialysis-off>
134
+
135
+        <assessment-after
136
+          ref="assessment_after"
137
+          :record="assessment_after_dislysis"
138
+          title="透后评估"
139
+        ></assessment-after>
140
+
141
+        <treatment-of
142
+          ref="treatment_of"
143
+          :record="treatment_summary"
144
+          title="治疗小结"
145
+        ></treatment-of>
145 146
       </div>
147
+      
146 148
     </div>
149
+    <div style="padding-top: 56px;width:100%;text-align:center;font-size:22px;color:red;" v-else>该患者未排班,请先去排班</div>
147 150
   </div>
148 151
 </template>
149 152
 
@@ -194,7 +197,8 @@ export default {
194 197
   },
195 198
   props:{
196 199
     record_date:String,
197
-    patientid:String
200
+    patientid:Number,
201
+    dialysisShow:Boolean
198 202
   },
199 203
   data() {
200 204
     return {
@@ -304,7 +308,8 @@ export default {
304 308
 
305 309
       queueConfig:{},
306 310
       stockType:[],
307
-      preparestock:[]
311
+      preparestock:[],
312
+      dialysisShow:false
308 313
     }
309 314
   },
310 315
   created() {
@@ -312,22 +317,73 @@ export default {
312 317
     var date = this.record_date
313 318
     this.patient_id = patient_id
314 319
     this.date = date
320
+    var ymd = parseTime(new Date(), '{y}-{m}-{d}')
321
+    getDialysisSchedules(ymd).then(rs => {
322
+      var resp = rs.data
323
+      if (resp.state == 1) {
324
+        var schedules = resp.data.schedules
325
+        let arr = []
326
+        schedules.map(item => {
327
+          if(item.patient_id == this.patient_id){
328
+            arr.push(item.patient_id)
329
+          }
330
+        })
331
+        if(arr.length > 0){
332
+          this.dialysisShow = true
333
+        }else{
334
+          this.dialysisShow = false
335
+        }
336
+        console.log('this.dialysisShowthis.dialysisShowthis.dialysisShow',this.dialysisShow)
337
+      } else {
338
+        this.$message.error(resp.msg)
339
+      }
340
+    })
315 341
 
316 342
     
317 343
 
318 344
   },
319 345
   mounted() {
320
-    this.getScheduleDetail()
321
-    this.getLongAdvice()
346
+    if(this.dialysisShow == true){
347
+      
348
+      this.getScheduleDetail()
349
+      this.getLongAdvice()
350
+    }
351
+    
322 352
   },
323 353
   watch:{
324 354
         patientid:{
325 355
             handler(newVal){
356
+              var ymd = parseTime(new Date(), '{y}-{m}-{d}')
357
+              getDialysisSchedules(ymd).then(rs => {
358
+                var resp = rs.data
359
+                if (resp.state == 1) {
360
+                  var schedules = resp.data.schedules
361
+                  let arr = []
362
+                  schedules.map(item => {
363
+                    if(item.patient_id == this.patient_id){
364
+                      arr.push(item.patient_id)
365
+                    }
366
+                  })
367
+                  if(arr.length > 0){
368
+                    this.dialysisShow = true
369
+                  }else{
370
+                    this.dialysisShow = false
371
+                  }
372
+                  console.log('this.dialysisShowthis.dialysisShowthis.dialysisShow',this.dialysisShow)
373
+                } else {
374
+                  this.$message.error(resp.msg)
375
+                }
376
+              })
377
+              console.log('执行执行执行执行执行执行',this.dialysisShow)
378
+              if(this.dialysisShow == true){
379
+                console.log('执行')
326 380
                 this.patient_id = newVal
327 381
                 this.getScheduleDetail()
328 382
                 this.getLongAdvice()
329
-            }
330
-        }
383
+              }
384
+            },
385
+            deep:true
386
+        },
331 387
   },
332 388
   computed: {
333 389
     websocket() {
@@ -444,14 +500,6 @@ export default {
444 500
       // return schedules
445 501
     }
446 502
   },
447
-  beforeDestroy(){
448
-
449
-    let unObj = {
450
-      cmd: "queue/unjoin",
451
-      data: {type:3},
452
-    };
453
-    this.websocketSend(unObj)
454
-  },
455 503
   methods: {
456 504
     adviceFunc() {
457 505
       this.getScheduleDetail()
@@ -521,12 +569,13 @@ export default {
521 569
       }
522 570
     },
523 571
     getScheduleDetail: function() {
572
+      
524 573
       this.loading = true
525 574
     //   var dateStr = parseTime(this.date, '{y}-{m}-{d}')
526
-      if(this.$route.query.showView == true){
527
-        this.loading = false
528
-        return
529
-      }
575
+      // if(this.$route.query.showView == true){
576
+      //   this.loading = false
577
+      //   return
578
+      // }
530 579
         console.log('this.patient_id',this.patient_id)
531 580
         console.log('this.date',this.date)
532 581
       this.doctor_advices = []

+ 4 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -92,7 +92,7 @@
92 92
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
93 93
                      :hisPatientInfo="hisPatientInfo" v-if="titleType == '电子病历'" :detalid="detalid"
94 94
                      ref="child"></desk-record>
95
-        <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>
95
+        <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid' :dialysisShow="dialysisShow"></dialysis-index>
96 96
         <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
97 97
         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
98 98
       </div>
@@ -240,6 +240,7 @@
240 240
         recordVisible: false,
241 241
         recordObj: {},
242 242
         additions: [],
243
+        dialysisShow:true
243 244
 
244 245
       }
245 246
     },
@@ -988,7 +989,7 @@
988 989
       },
989 990
 
990 991
       choosePatient(val) {
991
-        console.log(val);
992
+        console.log(111111,val);
992 993
         if(this.titleType == '电子病历'){
993 994
           console.log('this.$refs.child.watchSign',this.$refs.child.watchSign);
994 995
           if(this.$refs.child.watchSign > 2){
@@ -2007,7 +2008,7 @@
2007 2008
         // console.log("99999",this.selecting_schs)
2008 2009
       },
2009 2010
       handleClick() {
2010
-
2011
+        
2011 2012
       },
2012 2013
       savePrint() {
2013 2014
         var arr = [];

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

@@ -13,7 +13,8 @@
13 13
       </template>
14 14
             
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne 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>
16
+      <printOne v-if="org_id != 10088" 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>
17
+      <printFour v-else 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"></printFour>
17 18
     </div>
18 19
   </div>
19 20
 </template>
@@ -29,12 +30,14 @@ import { jsGetAge, uParseTime } from "@/utils/tools";
29 30
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
30 31
 import print from "print-js";
31 32
 import printOne from "./template/printOne"
33
+import printFour from "./template/printFour"
32 34
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
33 35
 export default {
34 36
   name: "dialysisPrintOrder",
35 37
   components: {
36 38
     BreadCrumb,
37
-    printOne
39
+    printOne,
40
+    printFour
38 41
   },
39 42
   props:{
40 43
     paramsObj:Object
@@ -56,7 +59,8 @@ export default {
56 59
        patient_id:"",
57 60
        prescription_id:"",
58 61
        ids:'',
59
-       paramsObj:{}
62
+       paramsObj:{},
63
+       org_id:''
60 64
     };
61 65
   },
62 66
   methods:{
@@ -154,6 +158,7 @@ export default {
154 158
   },
155 159
 
156 160
   created() {
161
+    this.org_id = this.$store.getters.xt_user.org_id
157 162
     this.getAllDoctorList()
158 163
     var record_date = this.paramsObj.record
159 164
     this.record_date = record_date

+ 330 - 0
src/xt_pages/outpatientDoctorStation/template/printFour.vue View File

@@ -0,0 +1,330 @@
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">{{orgname}}处方笺</div>
6
+          <div class="infoTitle">
7
+              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
+              <p>性别:
9
+                <span v-if="item.patient.gender == 1">男</span>
10
+                <span v-if="item.patient.gender == 2">女</span>
11
+              </p>
12
+              <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
13
+          </div>
14
+          <div class="infoMain">
15
+              <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
16
+              <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
17
+              <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18
+              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19
+              <div>地址:{{item.patient.home_address}}</div>
20
+              <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
21
+          </div>
22
+          <div class="prescriptionBox">
23
+              <div class="Rp">Rp:</div>
24
+              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
25
+                  <!-- <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> -->
26
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<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>
27
+                  <div style="margin-left:100px;"><span>{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</span></div>
28
+              </div>
29
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
30
+                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
31
+               </div>
32
+               
33
+              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
34
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{getProjectName(it.project_id)?getProjectName(it.project_id):""}}&nbsp;&nbsp;<span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
35
+                  <div style="margin-left:100px;"><span>{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</span></div>
36
+              </div>
37
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
38
+                <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
39
+               </div>
40
+               <div style="text-align:center;" >(以下空白)</div>
41
+
42
+          </div>
43
+          <div class="doctorBox">
44
+              <p>医师:{{item.doctor?item.doctor:""}}</p>
45
+              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
46
+          </div>
47
+          <div class="actionBar">
48
+                 <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
49
+                 <p>配对:</p>
50
+                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
51
+                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
52
+                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
53
+
54
+                 <p>审核:</p>
55
+                 <p>配对:</p>
56
+                 <p>核对:</p>
57
+                 <p>发药:</p>
58
+                 <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
59
+          </div>
60
+          <div style="page-break-after:always"></div>
61
+      </div>
62
+    </div>
63
+    
64
+  </div>
65
+
66
+    
67
+</template>
68
+<script>
69
+import { jsGetAge, uParseTime } from '@/utils/tools'
70
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
71
+import {getInitData} from "@/api/his/his"
72
+export default {
73
+    props:{
74
+      patient_id:Number,
75
+      record_date:String,
76
+      prescription_id:Number,
77
+      ids:String
78
+    }, 
79
+    data(){
80
+      return {
81
+        doctorList:[],
82
+        advicePrint:{},
83
+        patient:{},
84
+        tableData:[],
85
+        prescriptionInfo:[],
86
+        hisPatient:{},
87
+        department:[],
88
+        prescriptions:[],
89
+        projectList:[],
90
+        orgname:"",
91
+        diagnoses:[],
92
+      }
93
+    },
94
+   methods:{
95
+     
96
+     getAllDoctorList(){
97
+      getAllDoctorList().then(response=>{
98
+        if(response.data.state == 1){
99
+               var doctor =  response.data.data.doctor
100
+               
101
+               this.doctorList = doctor
102
+             }
103
+         })   
104
+     },
105
+
106
+      getDoctor(id){
107
+        var name = ""
108
+        for(let i=0;i<this.doctorList.length;i++){
109
+          if(id == this.doctorList[i].admin_user_id){
110
+              name = this.doctorList[i].user_name
111
+          }
112
+        }
113
+        return name
114
+      },
115
+      getTime(value, temp) {
116
+        if (value != undefined) {
117
+            return uParseTime(value, temp)
118
+        }
119
+        return ''
120
+     },
121
+       getPrescriptionPrint(){
122
+         var params = {
123
+          // patient_id:this.patient_id,
124
+          // record_date:this.record_date,
125
+          // prescription_id:this.prescription_id,
126
+          patient_id:this.patient_id,
127
+          record_date:this.record_date,
128
+          prescription_id:this.prescription_id,
129
+          ids:this.ids
130
+        }
131
+        console.log("params",params)
132
+       getPrescriptionPrint(params).then(response=>{
133
+         if(response.data.state == 1){
134
+            var advicePrint =  response.data.data.advicePrint
135
+            console.log("adviceprint9999",advicePrint)
136
+            this.advicePrint = advicePrint
137
+            this.prescriptions = advicePrint
138
+            console.log("处方222222",this.prescriptions)
139
+            var hisPatient = response.data.data.hisPatient
140
+            console.log("hisPatient",hisPatient)
141
+            this.hisPatient = hisPatient
142
+            var projectlist =  response.data.data.projectlist
143
+            console.log("所有项目列表",projectlist)
144
+            this.projectList = projectlist
145
+          }
146
+       })
147
+     },
148
+     getHisPatientDetail(){
149
+          const params = {
150
+              patient_id:this.patient_id
151
+          }
152
+       getHisPatientDetail(params).then(response=>{
153
+          if(response.data.state == 1){
154
+             var hisPatient =  response.data.data.hisPatient
155
+             console.log("挂号病人",hisPatient)
156
+             this.hisPatient = hisPatient
157
+          }
158
+       })
159
+     },
160
+     getInitData(){
161
+       getInitData().then(response=>{
162
+          if(response.data.state == 1){
163
+            this.department = response.data.data.department
164
+            this.diagnoses = response.data.data.diagnose
165
+            console.log("争端",this.diagnoses)
166
+          }
167
+       })
168
+     },
169
+     getDepart(id){
170
+         var name = ""
171
+       for(let i=0;i<this.department.length;i++){
172
+           if(id == this.department[i].id){
173
+               name = this.department[i].name
174
+           }
175
+       }
176
+       return name
177
+     },
178
+    getTotalOne(id) {
179
+
180
+        var total = 0
181
+        var addtotal = 0
182
+        for (let i = 0; i < this.prescriptions.length; i++) {
183
+          if(id == this.prescriptions[i].id){
184
+            if (this.prescriptions[i].project != null) {
185
+              for (let a = 0; a < this.prescriptions[i].project.length; a++) {
186
+                total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
187
+              }
188
+            }
189
+
190
+            if (this.prescriptions[i].additionalcharge != null) {
191
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
192
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
193
+              }
194
+            }
195
+              addtotal =  Math.floor(addtotal * 100) / 100
196
+        }
197
+       
198
+       }
199
+
200
+      for (let i = 0; i < this.prescriptions.length; i++) {
201
+          if(id == this.prescriptions[i].id){
202
+            if (this.prescriptions[i].advices != null) {
203
+              for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
204
+                total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
205
+              }
206
+            }
207
+          
208
+            if (this.prescriptions[i].additionalcharge != null) {
209
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
210
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
211
+              }
212
+            }
213
+              addtotal =  Math.floor(addtotal * 100) / 100
214
+        }
215
+       }
216
+
217
+        return total + addtotal
218
+      },
219
+      
220
+     getProjectName(id){
221
+        var project_name = ""
222
+        for(let i=0;i<this.projectList.length;i++){
223
+           if(id == this.projectList[i].id){
224
+               project_name = this.projectList[i].project_name
225
+           }
226
+        }
227
+        return project_name
228
+     },
229
+
230
+     getDiagnosis(id){
231
+        var name = ""
232
+        for(let i=0;i<this.diagnoses.length;i++){
233
+          if(id == this.diagnoses[i].id){
234
+             name = this.diagnoses[i].class_name
235
+          }
236
+        }
237
+        return name
238
+     }
239
+
240
+   },
241
+   created(){
242
+      this.getAllDoctorList()
243
+      this.getInitData()
244
+      this.getPrescriptionPrint()
245
+      this.getHisPatientDetail()
246
+      var xtuser = this.$store.getters.xt_user;
247
+      this.orgname = xtuser.org.org_name;
248
+     
249
+   },
250
+   watch:{
251
+     ids:function(val){
252
+      this.ids = val
253
+      this.getPrescriptionPrint()
254
+    }
255
+   }
256
+}
257
+</script>
258
+
259
+
260
+<style lang="scss" scoped>
261
+.prescription-print{
262
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
263
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
264
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
265
+    margin-bottom: 20px;
266
+    padding:20px 10px;
267
+}
268
+.printTitle{
269
+    font-size: 22px;
270
+    text-align: center;
271
+    font-weight: bold;
272
+}
273
+.infoTitle{
274
+    display: flex;
275
+    border-bottom: 2px solid #000;
276
+    margin-top:10px;
277
+    line-height: 24px;
278
+    padding:0 10px;
279
+}
280
+.infoTitle p{
281
+    width: 200px;
282
+}
283
+.infoMain{
284
+    display: flex;
285
+    flex-wrap: wrap;
286
+    border-bottom: 2px solid #000;
287
+    padding:0 10px;
288
+}
289
+.infoMain div{
290
+    width: 50%;
291
+    line-height: 24px;
292
+}
293
+.prescriptionBox{
294
+    padding:0 10px;
295
+    min-height:450px;
296
+}
297
+.Rp{
298
+    font-size: 22px;
299
+    font-weight: bold;
300
+}
301
+.drugsBox{
302
+    padding-left: 40px;
303
+    margin-bottom: 10px;
304
+}
305
+.drugsBox div{
306
+    line-height: 20px;
307
+}
308
+.drugsOne{
309
+    line-height: 24px;
310
+}
311
+.drugsOne span{
312
+    margin-right: 20px;
313
+}
314
+.doctorBox{
315
+    display: flex;
316
+    justify-content: space-between;
317
+    padding:0 10px;
318
+    line-height: 24px;
319
+    border-bottom: 2px solid #000;
320
+}
321
+.actionBar{
322
+    display: flex;
323
+    justify-content: space-between; 
324
+    line-height: 24px;
325
+    padding:0 10px;
326
+}
327
+.actionBar p{
328
+    width:150px;
329
+}
330
+</style>

+ 2 - 1
src/xt_pages/stock/stockOutOrderDetailPrint.vue View File

@@ -164,8 +164,9 @@ export default {
164 164
             console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData);
165 165
             var total_price = 0;
166 166
             for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
167
-              total_price += this.getOutStockCount(this.warehousingOutInfo.warehousingOutData[i].good_id)*this.warehousingOutInfo.warehousingOutData[i].price
167
+              total_price += this.warehousingOutInfo.warehousingOutData[i].total_price   
168 168
             }
169
+            console.log('this.allPrice',this.allPrice)
169 170
            this.allPrice = total_price;
170 171
 
171 172
            var wareoutList =  response.data.data.wareoutList;

+ 1 - 1
src/xt_pages/workforce/scheduleTablePrint.vue View File

@@ -793,7 +793,7 @@ export default {
793 793
             return [weekArr[week], typeArr[schedule_type]];
794 794
         },
795 795
         printAction: function() {
796
-            const style = '@media print {#scheduleTable{font-size:14px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
796
+            const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
797 797
 
798 798
             printJS({
799 799
             printable: 'scheduleTable',