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

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

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