ソースを参照

HIS 系统提交

XMLWAN 4 年 前
コミット
73c9d9bc93

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue ファイルの表示

@@ -548,7 +548,7 @@
548 548
           } else {
549 549
             this.patientTableData = []
550 550
             for (let i = 0; i < response.data.data.list.length; i++) {
551
-
551
+               console.log("99999999",response.data.data.list)
552 552
               if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
553 553
                 this.patientTableData.push(response.data.data.list[i])
554 554
               }

+ 29 - 31
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue ファイルの表示

@@ -2,14 +2,14 @@
2 2
     <div id='prescription-print' class="prescription-print">
3 3
         <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
4 4
         <div class="infoMain">
5
-            <p class="infoP">医院(药店)编号:H8D50</p>
5
+            <p class="infoP">医院(药店)编号:</p>
6 6
             <p class="infoP">名称:血液透析中心</p>
7
-            <p class="infoP">医生工号:H8D50</p>
8
-            <p class="infoP">门诊流水号:H8D50</p>
7
+            <p class="infoP">医生工号:</p>
8
+            <p class="infoP">门诊流水号:</p>
9 9
             <p class="infoP">科别:{{list.p_info.departments}}</p>
10
-            <p class="infoP">处方单据号:H8D50</p>
11
-            <p class="infoP">姓名:{{list.patient.name}}</p>
12
-            <p class="infoP">医疗账号:98798798</p>
10
+            <p class="infoP">处方单据号:</p>
11
+            <p class="infoP">姓名:{{patient.name}}</p>
12
+            <p class="infoP">医疗账号:</p>
13 13
             <p class="infoP">医疗类别:普通</p>
14 14
         </div>
15 15
         <div class="chargeBox">
@@ -28,64 +28,58 @@
28 28
             </div>
29 29
             <div style="display:flex;justify-content: space-between;">
30 30
                 <div style="width:20%;">
31
-                    <div class="chargeUl" v-for="item in 3">
31
+                    <div class="chargeUl" v-for="(item,index) in 1" :key="index">
32 32
                         <p style="width:50%;">材料费</p>
33
-                        <p style="width:50%;">122</p>
33
+                        <p style="width:50%;"></p>
34 34
                     </div>
35 35
                     <div class="chargeUl" style="border-top:1px solid #000;"> 
36 36
                         <p style="width:50%;">费用合计</p>
37
-                        <p style="width:50%;">123</p>
37
+                        <p style="width:50%;"></p>
38 38
                     </div>
39 39
                     <div class="chargeUl" style="border-top:1px solid #000;">
40 40
                         <p style="width:50%;">记账支付</p>
41
-                        <p style="width:50%;">123</p>
41
+                        <p style="width:50%;"></p>
42 42
                     </div>
43 43
                     <div class="chargeUl" style="border-top:1px solid #000;">
44 44
                         <p style="width:50%;">个人账号</p>
45
-                        <p style="width:50%;">123</p>
45
+                        <p style="width:50%;"></p>
46 46
                     </div>
47 47
                     <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
48 48
                         <p style="width:50%;">现金支付</p>
49
-                        <p style="width:50%;">123</p>
49
+                        <p style="width:50%;"></p>
50 50
                     </div>
51 51
                 </div>
52 52
                 <div style="width:80%;display:flex;height:600px;">
53
-                    <!-- <ul class="chargeUl" v-for="item in 4">
54
-                        <li style="width:20%;">血压透析器(进口)FFX60</li>
55
-                        <li style="width:20%;">次</li>
56
-                        <li style="width:20%;">1个</li>
57
-                        <li style="width:20%;">123</li>
58
-                        <li style="width:20%;">123</li>
59
-                    </ul> -->
53
+                  
60 54
                     <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
61
-                        <p v-for="(item,i) in prescription" :key="i" class="chargeP">血压透析器(进口)FFX60</p>
55
+                        <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">{{item.advice_name}}</p>
62 56
                     </div>
63 57
                     <div style="border-right:1px solid #000;width:15%;text-align:center;">
64
-                        <p v-for="(item,y) in prescription" :key="y" class="chargeP">次</p>
58
+                        <p v-for="(item,y) in prescription[0].advices" :key="y" class="chargeP">{{item.advice_desc}}</p>
65 59
                     </div>
66 60
                     <div style="border-right:1px solid #000;width:15%;text-align:center;">
67
-                        <p v-for="(item,z) in prescription" :key="z" class="chargeP">1个</p>
61
+                        <p v-for="(item,z) in prescription[0].advices" :key="z" class="chargeP">{{item.single_dose}}个</p>
68 62
                     </div>
69 63
                     <div style="border-right:1px solid #000;width:15%;text-align:center;">
70
-                        <p v-for="(item,f) in prescription" :key="f" class="chargeP">123</p>
64
+                        <p v-for="(item,f) in prescription[0].advices" :key="f" class="chargeP">{{item.price}}</p>
71 65
                     </div>
72 66
                     <div style="width:15%;text-align:center;">
73
-                        <p v-for="(item,d) in prescription" :key="d" class="chargeP">123</p>
67
+                        <p v-for="(item,d) in prescription[0].advices" :key="d" class="chargeP">{{item.single_dose * item.price}}</p>
74 68
                     </div>
75 69
                 </div>
76 70
             </div>
77 71
             
78 72
         </div>
79 73
         <div class="moneyBox">
80
-            <p>实收金:111</p>
81
-            <p>记账前金额:111</p>
82
-            <p>扣款金额:111</p>
83
-            <p>记账后金额:111</p>
84
-            <p>找赎金:111</p>
74
+            <p>实收金:</p>
75
+            <p>记账前金额:</p>
76
+            <p>扣款金额:</p>
77
+            <p>记账后金额:</p>
78
+            <p>找赎金:</p>
85 79
         </div>
86 80
         <div class="actionBar">
87 81
             <p>收费员:</p>
88
-            <p>日期:</p>
82
+            <p>日期:{{this.$route.query.record_date}}</p>
89 83
         </div>
90 84
     </div>
91 85
 </template>
@@ -95,7 +89,8 @@ export default {
95 89
     data(){
96 90
       return{
97 91
           list:{},
98
-          prescription:[]
92
+          prescription:[],
93
+          patient:{},
99 94
       } 
100 95
     },
101 96
     methods:{
@@ -114,6 +109,9 @@ export default {
114 109
                var prescription = response.data.data.prescription
115 110
                console.log("prescription",prescription)
116 111
                this.prescription = prescription
112
+               var patient = response.data.data.patient
113
+               console.log("patient",patient)
114
+               this.patient  = patient
117 115
             }
118 116
          })
119 117
        }

+ 11 - 2
src/xt_pages/outpatientRegistration/index.vue ファイルの表示

@@ -130,7 +130,7 @@
130 130
 <script>
131 131
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
132 132
 import { basename } from 'path'
133
-import { getAllDoctorList,saveHisPatient } from "@/api/project/project"
133
+import { getAllDoctorList,saveHisPatient,getTodaySchedulePatient } from "@/api/project/project"
134 134
 const moment = require('moment')
135 135
 export default {
136 136
     components:{
@@ -445,11 +445,20 @@ export default {
445 445
              } 
446 446
           })
447 447
         },
448
-      
448
+       getTodaySchedulePatient(){
449
+          getTodaySchedulePatient().then(response=>{
450
+             if(response.data.state == 1){
451
+               var patient =  response.data.data.patient
452
+               console.log("今日排班患者",patient)
453
+             }
454
+          }) 
455
+       }
449 456
     },
450 457
     created(){
451 458
       //获取当前机构有人员信息
452 459
       this.getAllDoctorList()   
460
+      //获取今日排班的患者
461
+      this.getTodaySchedulePatient()
453 462
     }
454 463
 }
455 464
 </script>