Browse Source

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

XMLWAN 2 years ago
parent
commit
6702239364

+ 5 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

1897
       } else {
1897
       } else {
1898
         this.curMonthPrescriptions = {}
1898
         this.curMonthPrescriptions = {}
1899
       }
1899
       }
1900
+      console.log("~~~~~~")
1901
+      console.log(data[0])
1900
 
1902
 
1901
       if (data && data.length > 0) {
1903
       if (data && data.length > 0) {
1904
+        console.log("c")
1905
+
1902
         this.curPrescriptions = data[0]
1906
         this.curPrescriptions = data[0]
1903
 
1907
 
1904
       } else {
1908
       } else {
1909
+        console.log("b")
1905
         this.curPrescriptions = {}
1910
         this.curPrescriptions = {}
1906
       }
1911
       }
1907
 
1912
 

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

1000
                  }
1000
                  }
1001
               }
1001
               }
1002
             }
1002
             }
1003
-            
1003
+
1004
             this.drugs = drugs
1004
             this.drugs = drugs
1005
             console.log("所有药品信息",this.drugs)
1005
             console.log("所有药品信息",this.drugs)
1006
             this.allDrugs = response.data.data.drugs
1006
             this.allDrugs = response.data.data.drugs
1157
             } else {
1157
             } else {
1158
               this.case_history.is_infect = false
1158
               this.case_history.is_infect = false
1159
             }
1159
             }
1160
-            
1160
+
1161
             this.case_history.primary_disease = this.case_history.primary_disease
1161
             this.case_history.primary_disease = this.case_history.primary_disease
1162
             this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1162
             this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1163
             this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1163
             this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1164
             this.case_history.physical_examination = this.case_history.physical_examination
1164
             this.case_history.physical_examination = this.case_history.physical_examination
1165
             this.case_history.special_inspection = this.case_history.special_inspection
1165
             this.case_history.special_inspection = this.case_history.special_inspection
1166
             this.case_history.lab_apparatus = this.case_history.lab_apparatus
1166
             this.case_history.lab_apparatus = this.case_history.lab_apparatus
1167
-         
1168
-          
1167
+
1168
+
1169
             //处方相关
1169
             //处方相关
1170
             this.prescriptionList = response.data.data.prescription
1170
             this.prescriptionList = response.data.data.prescription
1171
 
1171
 
1427
 
1427
 
1428
               }
1428
               }
1429
             }
1429
             }
1430
+            console.log("~~~~~~~~---------")
1430
             this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
1431
             this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
1431
           }
1432
           }
1432
         })
1433
         })
1572
                   this.case_history.physical_examination = this.case_history.physical_examination
1573
                   this.case_history.physical_examination = this.case_history.physical_examination
1573
                   this.case_history.special_inspection = this.case_history.special_inspection
1574
                   this.case_history.special_inspection = this.case_history.special_inspection
1574
                   this.case_history.lab_apparatus = this.case_history.lab_apparatus
1575
                   this.case_history.lab_apparatus = this.case_history.lab_apparatus
1575
-                
1576
+
1576
                   this.prescriptionList = response.data.data.prescription
1577
                   this.prescriptionList = response.data.data.prescription
1577
 
1578
 
1578
                   if (response.data.data.prescription.length > 0) {
1579
                   if (response.data.data.prescription.length > 0) {

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue View File

19
           "
19
           "
20
           :paramsObj="invoiceParams"
20
           :paramsObj="invoiceParams"
21
         ></printOne>
21
         ></printOne>
22
-        <printTwo v-if="org_id == 10215" :paramsObj="invoiceParams"></printTwo>
22
+        <printTwo v-if="org_id == 10215  || org_id == 0 " :paramsObj="invoiceParams"></printTwo>
23
         <printThree
23
         <printThree
24
-          v-if="org_id == 10265 || org_id == 0 || org_id == 4 || org_id == 9675"
24
+          v-if="org_id == 10265|| org_id == 4 || org_id == 9675"
25
           :paramsObj="invoiceParams"
25
           :paramsObj="invoiceParams"
26
         ></printThree>
26
         ></printThree>
27
       </div>
27
       </div>

+ 26 - 21
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

2
     <div id='invoice-print'>
2
     <div id='invoice-print'>
3
 
3
 
4
         <div style="display:flex;justify-content: space-between;">
4
         <div style="display:flex;justify-content: space-between;">
5
-            
6
-            <div style="position: absolute;top:40px;left:40px"></div>
7
-            
5
+
6
+            <div style="position: absolute;top:5px;left:30px">
7
+                <!-- 发票代码 -->
8
+
9
+            </div>
10
+                
8
             <div  style="position: absolute;top:40px;left:300px"></div>
11
             <div  style="position: absolute;top:40px;left:300px"></div>
9
 
12
 
10
             <div style="position: absolute;top:40px;left:560px"></div>
13
             <div style="position: absolute;top:40px;left:560px"></div>
18
             <!-- <div></div> -->
21
             <!-- <div></div> -->
19
             <!-- 发票序号 -->
22
             <!-- 发票序号 -->
20
             <!-- <div  style="position: absolute;left:560px;top:70px;">
23
             <!-- <div  style="position: absolute;left:560px;top:70px;">
21
-            
24
+
22
             </div> -->
25
             </div> -->
23
              <div  style="position: absolute;left:650px;top:70px;">
26
              <div  style="position: absolute;left:650px;top:70px;">
24
-            <!-- 类别 -->
25
-            类别:医保
27
+            <!-- 类别(改成城乡医保或者职工医保,具体对应住院的挂号选的那个医保) -->
28
+            类别:
26
             </div>
29
             </div>
27
         </div>
30
         </div>
28
 
31
 
30
             <!-- 姓名 -->
33
             <!-- 姓名 -->
31
             <div style="position: absolute;top:90px;left:40px;"> 姓名:{{ paramsObj.name }}</div>
34
             <div style="position: absolute;top:90px;left:40px;"> 姓名:{{ paramsObj.name }}</div>
32
             <!-- 个人电脑编号 -->
35
             <!-- 个人电脑编号 -->
33
-            <div style="position: absolute;top:90px;left:220px;">个人电脑编号:{{psn_no}}</div>
36
+            <div style="position: absolute;top:90px;left:220px;">个人编号:{{psn_no}}</div>
34
             <!-- 科室 -->
37
             <!-- 科室 -->
35
             <div style="position: absolute;top:90px;left:530px;">科室:{{'血液透析室'}}</div>
38
             <div style="position: absolute;top:90px;left:530px;">科室:{{'血液透析室'}}</div>
36
             <!-- 床号 -->
39
             <!-- 床号 -->
61
             <div style="position: absolute;top:160px;left:220px">检查费</div>
64
             <div style="position: absolute;top:160px;left:220px">检查费</div>
62
             <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal }}</div>
65
             <div style="position: absolute;top:160px;left:290px">{{ list.checkCostTotal }}</div>
63
             <div style="position: absolute;top:160px;left:400px">材料费</div>
66
             <div style="position: absolute;top:160px;left:400px">材料费</div>
64
-            <div style="position: absolute;top:160px;left:470px"></div>
67
+            <div style="position: absolute;top:160px;left:470px">0</div>
65
             <div style="position: absolute;top:160px;left:580px">麻醉费</div>
68
             <div style="position: absolute;top:160px;left:580px">麻醉费</div>
66
-            <div style="position: absolute;top:160px;left:650px"></div>
69
+            <div style="position: absolute;top:160px;left:650px">0</div>
67
         </div>
70
         </div>
68
         <div style="display:flex;justify-content: space-between;">
71
         <div style="display:flex;justify-content: space-between;">
69
             <div style="position: absolute;top:190px;left:40px">中成药费</div>
72
             <div style="position: absolute;top:190px;left:40px">中成药费</div>
70
-            <div style="position: absolute;top:190px;left:110px"></div>
73
+            <div style="position: absolute;top:190px;left:110px">0</div>
71
             <div style="position: absolute;top:190px;left:220px">治疗费</div>
74
             <div style="position: absolute;top:190px;left:220px">治疗费</div>
72
             <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal}}</div>
75
             <div style="position: absolute;top:190px;left:290px">{{list.treatCostTotal}}</div>
73
             <div style="position: absolute;top:190px;left:400px">护理费</div>
76
             <div style="position: absolute;top:190px;left:400px">护理费</div>
74
-            <div style="position: absolute;top:190px;left:470px"></div>
77
+            <div style="position: absolute;top:190px;left:470px">0</div>
75
             <div style="position: absolute;top:190px;left:580px">床位费</div>
78
             <div style="position: absolute;top:190px;left:580px">床位费</div>
76
-            <div style="position: absolute;top:190px;left:650px"></div>
79
+            <div style="position: absolute;top:190px;left:650px">0</div>
77
         </div>
80
         </div>
78
         <div style="display:flex;justify-content: space-between;">
81
         <div style="display:flex;justify-content: space-between;">
79
             <div style="position: absolute;top:220px;left:40px">中草药费</div>
82
             <div style="position: absolute;top:220px;left:40px">中草药费</div>
80
-            <div style="position: absolute;top:220px;left:110px"></div>
83
+            <div style="position: absolute;top:220px;left:110px">0</div>
81
             <div style="position: absolute;top:220px;left:220px">手术费</div>
84
             <div style="position: absolute;top:220px;left:220px">手术费</div>
82
             <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal }}</div>
85
             <div style="position: absolute;top:220px;left:290px">{{ list.operationCostTotal }}</div>
83
             <div style="position: absolute;top:220px;left:400px">输血费</div>
86
             <div style="position: absolute;top:220px;left:400px">输血费</div>
84
-            <div style="position: absolute;top:220px;left:470px"></div>
87
+            <div style="position: absolute;top:220px;left:470px">0</div>
85
             <div style="position: absolute;top:220px;left:580px">取暖费</div>
88
             <div style="position: absolute;top:220px;left:580px">取暖费</div>
86
-            <div style="position: absolute;top:220px;left:650px"></div>
89
+            <div style="position: absolute;top:220px;left:650px">0</div>
87
         </div>
90
         </div>
88
         <div style="display:flex;justify-content: space-between;">
91
         <div style="display:flex;justify-content: space-between;">
89
             <div style="position: absolute;top:250px;left:40px">高压氧费</div>
92
             <div style="position: absolute;top:250px;left:40px">高压氧费</div>
90
-            <div style="position: absolute;top:250px;left:110px"></div>
93
+            <div style="position: absolute;top:250px;left:110px">0</div>
91
             <div style="position: absolute;top:250px;left:220px">化验费</div>
94
             <div style="position: absolute;top:250px;left:220px">化验费</div>
92
             <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal }}</div>
95
             <div style="position: absolute;top:250px;left:290px">{{ list.laboratoryCostTotal }}</div>
93
             <div style="position: absolute;top:250px;left:400px">氧气费</div>
96
             <div style="position: absolute;top:250px;left:400px">氧气费</div>
94
-            <div style="position: absolute;top:250px;left:470px"></div>
97
+            <div style="position: absolute;top:250px;left:470px">0</div>
95
             <div style="position: absolute;top:250px;left:580px">其他费</div>
98
             <div style="position: absolute;top:250px;left:580px">其他费</div>
96
             <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal }}</div>
99
             <div style="position: absolute;top:250px;left:650px">{{ list.otherCostTotal }}</div>
97
         </div>
100
         </div>
98
 
101
 
99
         <div>
102
         <div>
100
             <span>
103
             <span>
101
-            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span> 
104
+            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
102
             <span  style="position: absolute;top:280px;left:180px">
105
             <span  style="position: absolute;top:280px;left:180px">
103
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
106
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
104
                     {{ zhongwen.substring(0,1) }}十万
107
                     {{ zhongwen.substring(0,1) }}十万
125
             </span>
128
             </span>
126
             <span style="position: absolute;top:280px;left:350px">
129
             <span style="position: absolute;top:280px;left:350px">
127
                 <span v-if="zhongwen.indexOf('拾') > -1">
130
                 <span v-if="zhongwen.indexOf('拾') > -1">
128
-                    {{ zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾
131
+<!--                    {{ // zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾-->
132
+                        {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
133
+
129
                 </span>
134
                 </span>
130
                 <span v-else>零拾</span>
135
                 <span v-else>零拾</span>
131
             </span>
136
             </span>
132
             <span  style="position: absolute;top:280px;left:390px">
137
             <span  style="position: absolute;top:280px;left:390px">
133
-                <span v-if="zhongwen.indexOf('元') > -1">
134
-                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
138
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
139
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
135
                 </span>
140
                 </span>
136
                 <span v-else>零元</span>
141
                 <span v-else>零元</span>
137
             </span>
142
             </span>

+ 5 - 4
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

110
             </span>
110
             </span>
111
             <span style="position: absolute;top:235px;left:320px">
111
             <span style="position: absolute;top:235px;left:320px">
112
                 <span v-if="zhongwen.indexOf('拾') > -1">
112
                 <span v-if="zhongwen.indexOf('拾') > -1">
113
-                    {{ zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
113
+                    {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
114
                 </span>
114
                 </span>
115
                 <span v-else>零</span>
115
                 <span v-else>零</span>
116
-            </span>
116
+            </span> 
117
             <span  style="position: absolute;top:235px;left:350px">
117
             <span  style="position: absolute;top:235px;left:350px">
118
-                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) != '拾'">
118
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
119
                     {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
119
                     {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
120
                 </span>
120
                 </span>
121
                 <span v-else>零</span>
121
                 <span v-else>零</span>
252
             }
252
             }
253
 
253
 
254
             this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
254
             this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
255
-            console.log(this.zhongwen)
255
+            console.log(this.zhongwen,'中文')
256
+            console.log(this.zhongwen.substring(this.zhongwen.indexOf('拾') - 1,this.zhongwen.indexOf('拾')),'op')
256
         },
257
         },
257
         getTime(value, temp) {
258
         getTime(value, temp) {
258
             if (value == 0) {
259
             if (value == 0) {

+ 39 - 7
src/xt_pages/hospitalStation/settlementTemplate/hospitalSettlePrint.vue View File

555
               <tr>
555
               <tr>
556
                 <td>床位费</td>
556
                 <td>床位费</td>
557
                 <td>&nbsp;{{info.bed_cost_total?info.bed_cost_total:''}}</td>
557
                 <td>&nbsp;{{info.bed_cost_total?info.bed_cost_total:''}}</td>
558
-                <td>&nbsp;getJiaTotal('床位费')</td>
559
-                <td>&nbsp;getYiTotal('床位费')</td>
558
+                <td>&nbsp;{{getJiaTotal('床位费')}}</td>
559
+                <td>&nbsp;{{getYiTotal('床位费')}}</td>
560
                 <td>&nbsp;{{info.bed_cost_self_total?info.bed_cost_self_total:''}}</td>
560
                 <td>&nbsp;{{info.bed_cost_self_total?info.bed_cost_self_total:''}}</td>
561
                 <td>&nbsp;</td>
561
                 <td>&nbsp;</td>
562
               </tr>
562
               </tr>
611
               <tr>
611
               <tr>
612
                 <td>卫生材料费</td>
612
                 <td>卫生材料费</td>
613
                 <td>&nbsp;{{info.material_cost_total?info.material_cost_total:""}}</td>
613
                 <td>&nbsp;{{info.material_cost_total?info.material_cost_total:""}}</td>
614
-                <td>&nbsp;{{getJiaTotal('卫生材料费')}}</td>
615
-                <td>&nbsp;{{getYiTotal('卫生材料费')}}</td>
614
+                <td>&nbsp;{{getJiaTotal('材料费')}}</td>
615
+                <td>&nbsp;{{getYiTotal('材料费')}}</td>
616
                 <td>&nbsp;{{info.material_cost_self_total?info.material_cost_self_total:""}}</td>
616
                 <td>&nbsp;{{info.material_cost_self_total?info.material_cost_self_total:""}}</td>
617
                 <td>&nbsp;</td>
617
                 <td>&nbsp;</td>
618
               </tr>
618
               </tr>
671
                     parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
671
                     parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
672
                     parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
672
                     parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
673
                     parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}</td>
673
                     parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}</td>
674
-                <td>&nbsp;</td>
675
-                <td>&nbsp;</td>
674
+                <td>&nbsp;{{getAllJiaTotal()}}</td>
675
+                <td>&nbsp;{{getAllYiTotal()}}</td>
676
                 <td>
676
                 <td>
677
                 </td>
677
                 </td>
678
                 <td>&nbsp;</td>
678
                 <td>&nbsp;</td>
821
       default: function() {
821
       default: function() {
822
         return {}
822
         return {}
823
       }
823
       }
824
+    },list:{
825
+      type: Array,
826
+      default: function() {
827
+        return []
828
+      }
824
     }
829
     }
825
   },
830
   },
826
   data(){
831
   data(){
829
     }
834
     }
830
   },
835
   },
831
   methods:{
836
   methods:{
837
+    getAllJiaTotal(){
838
+      let total = 0.00
839
+      for(let i = 0; i  < this.list.length; i++){
840
+          total = parseFloat(total) + parseFloat(this.list[i].jiaTotal)
841
+      }
842
+      if (total == 0){
843
+        return ""
844
+      }
845
+      return total.toFixed(2)
846
+
847
+    },getAllYiTotal(){
848
+      let total = 0.00
849
+      for(let i = 0; i  < this.list.length; i++){
850
+        total = parseFloat(total) + parseFloat(this.list[i].yiTotal)
851
+      }
852
+      if (total == 0){
853
+        return ""
854
+      }
855
+      return total.toFixed(2)
856
+
857
+    },
858
+
832
     getJiaTotal(name){
859
     getJiaTotal(name){
833
       let total = 0.00
860
       let total = 0.00
834
       for(let i = 0; i  < this.list.length; i++){
861
       for(let i = 0; i  < this.list.length; i++){
837
 
864
 
838
         }
865
         }
839
       }
866
       }
867
+      if (total == 0){
868
+        return ""
869
+      }
840
       return total
870
       return total
841
     },
871
     },
842
     getYiTotal(name){
872
     getYiTotal(name){
847
 
877
 
848
         }
878
         }
849
       }
879
       }
880
+      if (total == 0){
881
+        return ""
882
+      }
850
       return total
883
       return total
851
-
852
     },
884
     },
853
     getNaty(naty){
885
     getNaty(naty){
854
       switch (naty){
886
       switch (naty){

+ 146 - 11
src/xt_pages/hospitalStation/statementPrint.vue View File

21
 <!--      <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>-->
21
 <!--      <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>-->
22
 <!--      <printOne :info="info" v-else></printOne>-->
22
 <!--      <printOne :info="info" v-else></printOne>-->
23
 <!--      <print-one :info="info" ></print-one>-->
23
 <!--      <print-one :info="info" ></print-one>-->
24
-      <hospital-settle-print :info="info"></hospital-settle-print>
24
+      <hospital-settle-print :info="info" :list="list"></hospital-settle-print>
25
     </div>
25
     </div>
26
 
26
 
27
 <!--    <div class='dialysisPage' style="padding-top:40px;" v-else>-->
27
 <!--    <div class='dialysisPage' style="padding-top:40px;" v-else>-->
76
       prescription_id: 0,
76
       prescription_id: 0,
77
       ids: '',
77
       ids: '',
78
       info: null,
78
       info: null,
79
-      org_id: ''
79
+      org_id: '',
80
+      list:[],
80
     }
81
     }
81
   },
82
   },
82
   methods: {
83
   methods: {
84
+    getType(med_chrgitm_type){
85
+      switch (med_chrgitm_type) {
86
+        case '01':
87
+          return '床位费'
88
+          break
89
+        case '02':
90
+          return '诊察费'
91
+
92
+          break
93
+        case '03':
94
+          return '检查费'
95
+
96
+          break
97
+        case '04':
98
+          return '化验费'
99
+          break
100
+        case '05':
101
+          return '治疗费'
102
+
103
+          break
104
+        case '06':
105
+          return '手术费'
106
+
107
+          break
108
+        case '07':
109
+          return '护理费'
110
+
111
+          break
112
+        case '08':
113
+          return '材料费'
114
+
115
+          break
116
+        case '09':
117
+          return '西药费'
118
+
119
+          break
120
+        case '10':
121
+          return '中药饮片费'
122
+
123
+          break
124
+        case '11':
125
+          return '中成药费'
126
+
127
+          break
128
+        case '12':
129
+          return '一般诊疗费'
130
+
131
+          break
132
+        case '13':
133
+          return '挂号费'
134
+
135
+          break
136
+        case '14':
137
+          return '其他费'
138
+
139
+          break
140
+
141
+      }
142
+
143
+
144
+    },
145
+
83
     printThisPage() {
146
     printThisPage() {
84
       var ptime = Math.round(new Date().getTime() / 1000)
147
       var ptime = Math.round(new Date().getTime() / 1000)
85
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
148
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
156
           this.cal_two = cal_two
219
           this.cal_two = cal_two
157
         }
220
         }
158
       })
221
       })
222
+    },getJiaTotal(items){
223
+      console.log(items)
224
+      let total = 0
225
+      for(let i = 0; i < items.length; i++){
226
+        if(items[i].chrgitm_lv == "01") {
227
+          total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
228
+
229
+        }
230
+      }
231
+      return total.toFixed(2)
232
+    },getYiTotal(items){
233
+      let total = 0
234
+      for(let i = 0; i < items.length; i++){
235
+        if(items[i].chrgitm_lv == "02") {
236
+          total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
237
+
238
+          // total = Number(total) + Number((parseFloat(items[i].count) * parseFloat(items[i].price)).toFixed(2))
239
+        }
240
+      }
241
+      return total.toFixed(2)
242
+    },getBingTotal(items){
243
+
244
+      let total = 0
245
+      for(let i = 0; i < items.length; i++){
246
+        if(items[i].chrgitm_lv == "03") {
247
+          total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
248
+
249
+          // total = Number(total) + Number((parseFloat(items[i].count) * parseFloat(items[i].price)).toFixed(2))
250
+        }
251
+      }
252
+      return total.toFixed(2)
159
     },
253
     },
160
 
254
 
161
     changePatient(row) {
255
     changePatient(row) {
316
                   tempDetails.push(response.data.data.order_info[b])
410
                   tempDetails.push(response.data.data.order_info[b])
317
                 }
411
                 }
318
               }
412
               }
319
-              obj.total = this.getTotal(tempDetails)
320
-              obj.jiaTotal = this.getJiaTotal(tempDetails)
321
-              obj.yiTotal = this.getYiTotal(tempDetails)
322
-              obj.noMedicineTotal = this.getNoMedicineTotal(tempDetails)
323
-              obj.bingTotal = this.getBingTotal(tempDetails)
324
-              obj.otherTotal = this.getOtherTotal(tempDetails)
325
-
326
-              obj.details = this.setNewData(tempDetails)
327
-              this.list.push(obj)
413
+              obj.jiaTotal = that.getJiaTotal(tempDetails)
414
+              obj.yiTotal = that.getYiTotal(tempDetails)
415
+              obj.bingTotal = that.getBingTotal(tempDetails)
416
+              obj.details = that.setNewData(tempDetails)
417
+              that.list.push(obj)
328
 
418
 
329
             }
419
             }
420
+            console.log(that.list)
330
           }
421
           }
331
         })
422
         })
332
 
423
 
409
                 that.info['diagnosis'] = response.data.data.diagnosis
500
                 that.info['diagnosis'] = response.data.data.diagnosis
410
                 that.info['his'] = response.data.data.his_hospital
501
                 that.info['his'] = response.data.data.his_hospital
411
 
502
 
503
+                console.log("22222222")
504
+
505
+                //获取所有项目类型进行去重
506
+                let med_chrgitm_types = []
507
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
508
+                  med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
509
+                }
510
+                console.log(med_chrgitm_types)
511
+
512
+                const obj = {}
513
+                med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
514
+                  obj[next] ? '' : obj[next] = true && cur.push(next)
515
+                  return cur
516
+                }, []) // 设置cur默认类型为数组,并且初始值为空的数组
517
+                console.log(med_chrgitm_types)
518
+                console.log("1111111")
519
+                for (let i = 0; i < med_chrgitm_types.length; i++) {
520
+                  let obj = {
521
+                    details: [],
522
+                    med_chrgitm_name: that.getType(med_chrgitm_types[i]),
523
+                    jiaTotal: 0,
524
+                    total: 0,
525
+                    yiTotal: 0,
526
+                    noMedicineTotal: 0,
527
+                    bingTotal: 0,
528
+                    otherTotal: 0,
529
+                  }
530
+                  console.log("222233333333211111222")
531
+
532
+                  let tempDetails = []
533
+                  for (let b = 0; b < response.data.data.order_infos.length; b++) {
534
+                    if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
535
+                      tempDetails.push(response.data.data.order_infos[b])
536
+                    }
537
+                  }
538
+                  console.log("2222211111222")
539
+                  obj.jiaTotal = that.getJiaTotal(tempDetails)
540
+                  obj.yiTotal = that.getYiTotal(tempDetails)
541
+                  obj.bingTotal = that.getBingTotal(tempDetails)
542
+                  that.list.push(obj)
543
+                  console.log(that.list)
544
+                }
545
+                console.log(that.list)
546
+
412
               }
547
               }
413
             })
548
             })
414
             .catch(function(error) {
549
             .catch(function(error) {

+ 3 - 2
src/xt_pages/hospitalStation/summary.vue View File

762
               let obj = {
762
               let obj = {
763
                 '单号': order.number,
763
                 '单号': order.number,
764
                 '人员编号':order.his_hospital_patient.psn_no,
764
                 '人员编号':order.his_hospital_patient.psn_no,
765
+                '保地医保区':order.his_hospital_patient.insuplc_admdvs,
765
                 '身份证号':order.patient.id_card_no,
766
                 '身份证号':order.patient.id_card_no,
766
                 '患者姓名': name,
767
                 '患者姓名': name,
767
                 '险种':order.insutype,
768
                 '险种':order.insutype,
796
               list.push(obj)
797
               list.push(obj)
797
             }
798
             }
798
             import('@/vendor/Export2Excel').then(excel => {
799
             import('@/vendor/Export2Excel').then(excel => {
799
-              const tHeader = ['单号', '人员编号', '身份证号', '患者姓名', '险种', '医疗类别', '就诊id', '登记日期', '出院日期', '结算id', '结算日期', '医疗费总额', '全自费金额', '超限价自费金额', '先行自付金额', '符合政策范围金额', '实际支付起付线', '基本医疗保险统筹基金支出', '基本医疗保险统筹基金支付比例', '公务员医疗补助基金支出', '企业补充医疗保险基金支出', '居民大病保险基金支出', '职工大额医疗费用补助基金支出', '医疗救助基金支出', '其他支出','基金支付总额','个人负担总金额','个人账户支付金额','个人现金支出','医院总负担金额','余额','个账共济支付金额']
800
-              const filterVal = ['单号', '人员编号', '身份证号', '患者姓名', '险种', '医疗类别', '就诊id', '登记日期', '出院日期', '结算id', '结算日期', '医疗费总额', '全自费金额', '超限价自费金额', '先行自付金额', '符合政策范围金额', '实际支付起付线', '基本医疗保险统筹基金支出', '基本医疗保险统筹基金支付比例', '公务员医疗补助基金支出', '企业补充医疗保险基金支出', '居民大病保险基金支出', '职工大额医疗费用补助基金支出', '医疗救助基金支出', '其他支出','基金支付总额','个人负担总金额', '个人账户支付金额','个人现金支出','医院总负担金额','余额','个账共济支付金额']
800
+              const tHeader = ['单号', '人员编号','保地医保区', '身份证号', '患者姓名', '险种', '医疗类别', '就诊id', '登记日期', '出院日期', '结算id', '结算日期', '医疗费总额', '全自费金额', '超限价自费金额', '先行自付金额', '符合政策范围金额', '实际支付起付线', '基本医疗保险统筹基金支出', '基本医疗保险统筹基金支付比例', '公务员医疗补助基金支出', '企业补充医疗保险基金支出', '居民大病保险基金支出', '职工大额医疗费用补助基金支出', '医疗救助基金支出', '其他支出','基金支付总额','个人负担总金额','个人账户支付金额','个人现金支出','医院总负担金额','余额','个账共济支付金额']
801
+              const filterVal = ['单号', '人员编号','保地医保区', '身份证号', '患者姓名', '险种', '医疗类别', '就诊id', '登记日期', '出院日期', '结算id', '结算日期', '医疗费总额', '全自费金额', '超限价自费金额', '先行自付金额', '符合政策范围金额', '实际支付起付线', '基本医疗保险统筹基金支出', '基本医疗保险统筹基金支付比例', '公务员医疗补助基金支出', '企业补充医疗保险基金支出', '居民大病保险基金支出', '职工大额医疗费用补助基金支出', '医疗救助基金支出', '其他支出','基金支付总额','个人负担总金额', '个人账户支付金额','个人现金支出','医院总负担金额','余额','个账共济支付金额']
801
               const data = this.formatJson(filterVal, list)
802
               const data = this.formatJson(filterVal, list)
802
               excel.export_json_to_excel({
803
               excel.export_json_to_excel({
803
                 header: tHeader,
804
                 header: tHeader,

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

278
           }
278
           }
279
         }
279
         }
280
         return res
280
         return res
281
-      },getType(med_chrgitm_type){
281
+      },
282
+      getType(med_chrgitm_type){
282
         switch (med_chrgitm_type) {
283
         switch (med_chrgitm_type) {
283
           case '01':
284
           case '01':
284
             return '床位费'
285
             return '床位费'

+ 4 - 3
src/xt_pages/outpatientCharges/listPrint.vue View File

199
             }
199
             }
200
           }
200
           }
201
         })
201
         })
202
-      },getJiaTotal(items){
202
+      },
203
+      getJiaTotal(items){
203
         console.log(items)
204
         console.log(items)
204
         let total = 0
205
         let total = 0
205
         for(let i = 0; i < items.length; i++){
206
         for(let i = 0; i < items.length; i++){
296
                 obj['name'] = details[a].advice.advice_name
297
                 obj['name'] = details[a].advice.advice_name
297
                 // obj['spec'] = details[a].advice.drug.drug_spec
298
                 // obj['spec'] = details[a].advice.drug.drug_spec
298
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
299
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
299
-                obj['unit'] = details[a].advice.drug.min_unit
300
+                obj['unit'] = details[a].advice.drug.max_unit
300
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
301
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
301
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
302
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
302
                 obj['price'] = parseFloat(details[a].pric)
303
                 obj['price'] = parseFloat(details[a].pric)
435
       },
436
       },
436
       printThisPage() {
437
       printThisPage() {
437
         if(this.org_id != 10106){
438
         if(this.org_id != 10106){
438
-          if(this.org_id == 10215 || this.org_id == 0){
439
+          if(this.org_id == 10215){
439
             const style =
440
             const style =
440
                 '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
441
                 '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
441
             printJS({
442
             printJS({

+ 18 - 16
src/xt_pages/outpatientCharges/listTemplate/printTwo10265.vue View File

12
       </div>
12
       </div>
13
 
13
 
14
       <div class="listInfo">
14
       <div class="listInfo">
15
-        <div>入院科室:血透</div>
16
-        <div>出院科室:血透</div>
17
-        <div>入院日期:{{hospital_record.in_hosptial_time.split(' ')[0]}}</div>
18
-        <div>出院日期:{{hospital_record.out_hosptial_time.split(' ')[0]}}</div>
19
-        <div>住院天数:{{getDay(hospital_record.in_hosptial_time.split(' ')[0] ,hospital_record.out_hosptial_time.split(' ')[0])}}</div>
15
+        <div>入院科室:血析室</div>
16
+        <div>出院科室:血析室</div>
17
+        <!-- <div>入院日期:{{hospital_record.in_hosptial_time.split(' ')[0]}}</div> -->
18
+        <!-- <div>出院日期:{{hospital_record.out_hosptial_time.split(' ')[0]}}</div> -->
19
+        <!-- <div>住院天数:{{getDay(hospital_record.in_hosptial_time.split(' ')[0] ,hospital_record.out_hosptial_time.split(' ')[0])}}</div> -->
20
       </div>
20
       </div>
21
 
21
 
22
       <div
22
       <div
25
       >
25
       >
26
         <div>出院诊断:尿毒症</div>
26
         <div>出院诊断:尿毒症</div>
27
         <div>床位号:</div>
27
         <div>床位号:</div>
28
-        <div>费别:医保</div>
28
+        <div v-if="order&&order.insutype == '390'">费别:城乡居民基本医疗保险</div>
29
+        <div v-if="order&&order.insutype == '310'">费别:职工基本医疗保险</div>
30
+
29
       </div>
31
       </div>
30
 
32
 
31
       <table
33
       <table
46
           <td style="width: 20%">金额(元)</td>
48
           <td style="width: 20%">金额(元)</td>
47
         </tr>
49
         </tr>
48
         <tr v-for="subItem in item.details">
50
         <tr v-for="subItem in item.details">
49
-          <td style="width: 19%">{{subItem.name}}</td>
50
-          <td style="width: 21%"></td>
51
+          <td style="width: 19%;white-space: nowrap;">{{subItem.name}}</td>
52
+          <td style="width: 21%;white-space: nowrap;"></td>
51
           <td style="width: 14%">{{ subItem.spec }}</td>
53
           <td style="width: 14%">{{ subItem.spec }}</td>
52
-          <td style="width: 10%">{{ subItem.medicine_insurance_kind }}</td>
54
+          <td style="width: 10%;white-space: nowrap;">{{ subItem.medicine_insurance_kind }}</td>
53
           <td style="width: 10%">{{ subItem.price.toFixed(2) }}</td>
55
           <td style="width: 10%">{{ subItem.price.toFixed(2) }}</td>
54
-          <td style="width: 6%">{{ subItem.count }}{{ subItem.unit }}</td>
56
+          <td style="width: 6%;white-space: nowrap;">{{ subItem.count }}{{ subItem.unit }}</td>
55
           <td style="width: 20%">{{ (subItem.price * subItem.count).toFixed(2) }}</td>
57
           <td style="width: 20%">{{ (subItem.price * subItem.count).toFixed(2) }}</td>
56
         </tr>
58
         </tr>
57
 
59
 
58
         <tr>
60
         <tr>
59
-          <td style="width: 20%">甲类:{{item.jiaTotal}}</td>
60
-          <td style="width: 20%">乙类药品:{{item.yiTotal}}</td>
61
-          <td style="width: 5%">非药品:{{0.00}}</td>
62
-          <td style="width: 5%">丙类:{{item.bingTotal}}</td>
63
-          <td style="width: 5%">其他:{{0.00}}</td>
61
+          <td style="width: 20%;white-space: nowrap;">甲类:{{item.jiaTotal}}</td>
62
+          <td style="width: 20%;white-space: nowrap;">乙类药品:{{item.yiTotal}}</td>
63
+          <td style="width: 5%;white-space: nowrap;">非药品:{{0.00}}</td>
64
+          <td style="width: 5%;white-space: nowrap;">丙类:{{item.bingTotal}}</td>
65
+          <td style="width: 5%;white-space: nowrap;">其他:{{0.00}}</td>
64
           <td></td>
66
           <td></td>
65
-          <td style="width: 20%">小计:{{item.total}}</td>
67
+          <td style="width: 20%;white-space: nowrap;">小计:{{item.total}}</td>
66
 
68
 
67
         </tr>
69
         </tr>
68
       </table>
70
       </table>

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/privateChargePrint.vue View File

76
       <tr>
76
       <tr>
77
         <td colspan="12" style="text-align:left;padding-left:10px;">
77
         <td colspan="12" style="text-align:left;padding-left:10px;">
78
 <!--          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.medfee_sumamt}}元。-->
78
 <!--          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.medfee_sumamt}}元。-->
79
-          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.psn_pay}}元。
79
+          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.medfee_sumamt}}元。
80
           (起付线 {{info.act_pay_dedc}}元, 先自付 {{info.preselfpay_amt}}元, 段内自付 {{info.medfee_sumamt}}元 )
80
           (起付线 {{info.act_pay_dedc}}元, 先自付 {{info.preselfpay_amt}}元, 段内自付 {{info.medfee_sumamt}}元 )
81
 
81
 
82
         </td>
82
         </td>