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
733d8a0532

+ 10 - 10
src/xt_pages/hospitalStation/components/dialysisIndex.vue View File

@@ -145,7 +145,7 @@
145 145
           title="治疗小结"
146 146
         ></treatment-of>
147 147
       </div>
148
-      
148
+
149 149
     </div>
150 150
     <div style="padding-top: 56px;width:100%;text-align:center;font-size:22px;color:red;" v-else>该患者未排班,请先去排班</div>
151 151
   </div>
@@ -319,8 +319,8 @@ export default {
319 319
     var date = this.record_date
320 320
     this.patient_id = patient_id
321 321
     this.date = date
322
-    var ymd = parseTime(new Date(), '{y}-{m}-{d}')
323
-    getDialysisSchedules(ymd).then(rs => {
322
+    // var ymd = parseTime(this.record_date, '{y}-{m}-{d}')
323
+    getDialysisSchedules(this.record_date).then(rs => {
324 324
       var resp = rs.data
325 325
       if (resp.state == 1) {
326 326
         var schedules = resp.data.schedules
@@ -343,22 +343,22 @@ export default {
343 343
       }
344 344
     })
345 345
 
346
-    
346
+
347 347
 
348 348
   },
349 349
   mounted() {
350 350
     if(this.dialysisShow == true){
351
-      
351
+
352 352
       this.getScheduleDetail()
353 353
       this.getLongAdvice()
354 354
     }
355
-    
355
+
356 356
   },
357 357
   watch:{
358 358
         patientid:{
359 359
             handler(newVal){
360
-              var ymd = parseTime(new Date(), '{y}-{m}-{d}')
361
-              getDialysisSchedules(ymd).then(rs => {
360
+              // var ymd = parseTime(new Date(), '{y}-{m}-{d}')
361
+              getDialysisSchedules(this.record_date).then(rs => {
362 362
                 var resp = rs.data
363 363
                 if (resp.state == 1) {
364 364
                   var schedules = resp.data.schedules
@@ -582,7 +582,7 @@ export default {
582 582
         if (resp.state == 1) {
583 583
           var patient = resp.data.patient // 患者信息
584 584
           var schedual = resp.data.schedual // 患者排班信息
585
-         
585
+
586 586
           var prescription = resp.data.prescription // 透析处方
587 587
           console.log("投产出大发大发233232323232233232",prescription)
588 588
           if (prescription != null) {
@@ -592,7 +592,7 @@ export default {
592 592
           }
593 593
 
594 594
           var solution = resp.data.solution // 透析方案
595
-         
595
+
596 596
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
597 597
 
598 598
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估

+ 6 - 5
src/xt_pages/hospitalStation/listPrint.vue View File

@@ -3,7 +3,6 @@
3 3
     <template>
4 4
       <el-button
5 5
         style="position:fixed;right:25px;z-index:999"
6
-        :loading="loading"
7 6
         size="small"
8 7
         icon="el-icon-printer"
9 8
         @click="printThisPage"
@@ -59,7 +58,6 @@
59 58
           } else {
60 59
             this.order = response.data.data.order
61 60
             this.patient = response.data.data.patient
62
-            console.log(this.patient)
63 61
             this.admin = response.data.data.admin_info
64 62
 
65 63
 
@@ -70,15 +68,14 @@
70 68
                 price: infos.pric,
71 69
                 count: infos.cnt
72 70
               }
73
-              console.log(infos)
71
+              console.log("-----1-------")
72
+
74 73
               if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
75 74
                 obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
76 75
                 if(infos.project.type == 2){
77 76
                   obj['name'] = infos.project.project.project_name
78 77
 
79
-
80 78
                 }else if (infos.project.type == 3){
81
-
82 79
                   obj['name'] = infos.project.good_info.good_name
83 80
 
84 81
                 }
@@ -86,6 +83,7 @@
86 83
                 obj['unit'] = infos.project.unit
87 84
 
88 85
               }
86
+              console.log("-----2-------")
89 87
 
90 88
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
91 89
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
@@ -94,10 +92,13 @@
94 92
                 obj['unit'] = infos.advice.drug.max_unit
95 93
 
96 94
               }
95
+              console.log("~~~3~~~~~~")
96
+
97 97
               this.list.push(obj)
98 98
               this.list.sort(function(a, b) {
99 99
                 return b.p_time < a.p_time ? 1 : -1
100 100
               })
101
+              console.log(this.list)
101 102
 
102 103
             }
103 104
           }

+ 1 - 2
src/xt_pages/outpatientCharges/listPrint.vue View File

@@ -14,9 +14,8 @@
14 14
     </template>
15 15
 
16 16
     <div class='dialysisPage' style="padding-top:40px;">
17
-      <printOne v-if="org_id != 10106 && this.paramsObj.balance_accounts_type != 2" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
17
+      <printOne v-if="org_id != 10106" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18 18
       <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
19
-      <!--<printThree v-if="org_id == 0 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printThree>-->
20 19
       <print-three v-if="org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
21 20
     </div>
22 21
   </div>