瀏覽代碼

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

csx 2 年之前
父節點
當前提交
310fd41f26

+ 5 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

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

+ 6 - 5
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

@@ -1000,7 +1000,7 @@
1000 1000
                  }
1001 1001
               }
1002 1002
             }
1003
-            
1003
+
1004 1004
             this.drugs = drugs
1005 1005
             console.log("所有药品信息",this.drugs)
1006 1006
             this.allDrugs = response.data.data.drugs
@@ -1157,15 +1157,15 @@
1157 1157
             } else {
1158 1158
               this.case_history.is_infect = false
1159 1159
             }
1160
-            
1160
+
1161 1161
             this.case_history.primary_disease = this.case_history.primary_disease
1162 1162
             this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1163 1163
             this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1164 1164
             this.case_history.physical_examination = this.case_history.physical_examination
1165 1165
             this.case_history.special_inspection = this.case_history.special_inspection
1166 1166
             this.case_history.lab_apparatus = this.case_history.lab_apparatus
1167
-         
1168
-          
1167
+
1168
+
1169 1169
             //处方相关
1170 1170
             this.prescriptionList = response.data.data.prescription
1171 1171
 
@@ -1427,6 +1427,7 @@
1427 1427
 
1428 1428
               }
1429 1429
             }
1430
+            console.log("~~~~~~~~---------")
1430 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,7 +1573,7 @@
1572 1573
                   this.case_history.physical_examination = this.case_history.physical_examination
1573 1574
                   this.case_history.special_inspection = this.case_history.special_inspection
1574 1575
                   this.case_history.lab_apparatus = this.case_history.lab_apparatus
1575
-                
1576
+
1576 1577
                   this.prescriptionList = response.data.data.prescription
1577 1578
 
1578 1579
                   if (response.data.data.prescription.length > 0) {

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue 查看文件

@@ -19,9 +19,9 @@
19 19
           "
20 20
           :paramsObj="invoiceParams"
21 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 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 25
           :paramsObj="invoiceParams"
26 26
         ></printThree>
27 27
       </div>

+ 9 - 7
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue 查看文件

@@ -2,9 +2,9 @@
2 2
     <div id='invoice-print'>
3 3
 
4 4
         <div style="display:flex;justify-content: space-between;">
5
-            
5
+
6 6
             <div style="position: absolute;top:40px;left:40px"></div>
7
-            
7
+
8 8
             <div  style="position: absolute;top:40px;left:300px"></div>
9 9
 
10 10
             <div style="position: absolute;top:40px;left:560px"></div>
@@ -18,7 +18,7 @@
18 18
             <!-- <div></div> -->
19 19
             <!-- 发票序号 -->
20 20
             <!-- <div  style="position: absolute;left:560px;top:70px;">
21
-            
21
+
22 22
             </div> -->
23 23
              <div  style="position: absolute;left:650px;top:70px;">
24 24
             <!-- 类别 -->
@@ -98,7 +98,7 @@
98 98
 
99 99
         <div>
100 100
             <span>
101
-            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span> 
101
+            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
102 102
             <span  style="position: absolute;top:280px;left:180px">
103 103
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
104 104
                     {{ zhongwen.substring(0,1) }}十万
@@ -125,13 +125,15 @@
125 125
             </span>
126 126
             <span style="position: absolute;top:280px;left:350px">
127 127
                 <span v-if="zhongwen.indexOf('拾') > -1">
128
-                    {{ zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾
128
+<!--                    {{ // zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾-->
129
+                        {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
130
+
129 131
                 </span>
130 132
                 <span v-else>零拾</span>
131 133
             </span>
132 134
             <span  style="position: absolute;top:280px;left:390px">
133
-                <span v-if="zhongwen.indexOf('元') > -1">
134
-                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
135
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
136
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
135 137
                 </span>
136 138
                 <span v-else>零元</span>
137 139
             </span>

+ 34 - 7
src/xt_pages/hospitalStation/settlementTemplate/hospitalSettlePrint.vue 查看文件

@@ -555,8 +555,8 @@
555 555
               <tr>
556 556
                 <td>床位费</td>
557 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 560
                 <td>&nbsp;{{info.bed_cost_self_total?info.bed_cost_self_total:''}}</td>
561 561
                 <td>&nbsp;</td>
562 562
               </tr>
@@ -611,8 +611,8 @@
611 611
               <tr>
612 612
                 <td>卫生材料费</td>
613 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 616
                 <td>&nbsp;{{info.material_cost_self_total?info.material_cost_self_total:""}}</td>
617 617
                 <td>&nbsp;</td>
618 618
               </tr>
@@ -671,8 +671,8 @@
671 671
                     parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
672 672
                     parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
673 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 676
                 <td>
677 677
                 </td>
678 678
                 <td>&nbsp;</td>
@@ -834,6 +834,28 @@ export default {
834 834
     }
835 835
   },
836 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
+
837 859
     getJiaTotal(name){
838 860
       let total = 0.00
839 861
       for(let i = 0; i  < this.list.length; i++){
@@ -842,6 +864,9 @@ export default {
842 864
 
843 865
         }
844 866
       }
867
+      if (total == 0){
868
+        return ""
869
+      }
845 870
       return total
846 871
     },
847 872
     getYiTotal(name){
@@ -852,8 +877,10 @@ export default {
852 877
 
853 878
         }
854 879
       }
880
+      if (total == 0){
881
+        return ""
882
+      }
855 883
       return total
856
-
857 884
     },
858 885
     getNaty(naty){
859 886
       switch (naty){

+ 143 - 9
src/xt_pages/hospitalStation/statementPrint.vue 查看文件

@@ -81,6 +81,68 @@ export default {
81 81
     }
82 82
   },
83 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
+
84 146
     printThisPage() {
85 147
       var ptime = Math.round(new Date().getTime() / 1000)
86 148
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
@@ -157,6 +219,37 @@ export default {
157 219
           this.cal_two = cal_two
158 220
         }
159 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)
160 253
     },
161 254
 
162 255
     changePatient(row) {
@@ -317,17 +410,14 @@ export default {
317 410
                   tempDetails.push(response.data.data.order_info[b])
318 411
                 }
319 412
               }
320
-              obj.total = this.getTotal(tempDetails)
321
-              obj.jiaTotal = this.getJiaTotal(tempDetails)
322
-              obj.yiTotal = this.getYiTotal(tempDetails)
323
-              obj.noMedicineTotal = this.getNoMedicineTotal(tempDetails)
324
-              obj.bingTotal = this.getBingTotal(tempDetails)
325
-              obj.otherTotal = this.getOtherTotal(tempDetails)
326
-
327
-              obj.details = this.setNewData(tempDetails)
328
-              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)
329 418
 
330 419
             }
420
+            console.log(that.list)
331 421
           }
332 422
         })
333 423
 
@@ -410,6 +500,50 @@ export default {
410 500
                 that.info['diagnosis'] = response.data.data.diagnosis
411 501
                 that.info['his'] = response.data.data.his_hospital
412 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
+
413 547
               }
414 548
             })
415 549
             .catch(function(error) {

+ 3 - 2
src/xt_pages/hospitalStation/summary.vue 查看文件

@@ -762,6 +762,7 @@
762 762
               let obj = {
763 763
                 '单号': order.number,
764 764
                 '人员编号':order.his_hospital_patient.psn_no,
765
+                '保地医保区':order.his_hospital_patient.insuplc_admdvs,
765 766
                 '身份证号':order.patient.id_card_no,
766 767
                 '患者姓名': name,
767 768
                 '险种':order.insutype,
@@ -796,8 +797,8 @@
796 797
               list.push(obj)
797 798
             }
798 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 802
               const data = this.formatJson(filterVal, list)
802 803
               excel.export_json_to_excel({
803 804
                 header: tHeader,

+ 2 - 1
src/xt_pages/outpatientCharges/allListPrint.vue 查看文件

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

+ 3 - 2
src/xt_pages/outpatientCharges/listPrint.vue 查看文件

@@ -199,7 +199,8 @@
199 199
             }
200 200
           }
201 201
         })
202
-      },getJiaTotal(items){
202
+      },
203
+      getJiaTotal(items){
203 204
         console.log(items)
204 205
         let total = 0
205 206
         for(let i = 0; i < items.length; i++){
@@ -296,7 +297,7 @@
296 297
                 obj['name'] = details[a].advice.advice_name
297 298
                 // obj['spec'] = details[a].advice.drug.drug_spec
298 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 301
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
301 302
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
302 303
                 obj['price'] = parseFloat(details[a].pric)

+ 5 - 3
src/xt_pages/outpatientCharges/listTemplate/printTwo10265.vue 查看文件

@@ -12,8 +12,8 @@
12 12
       </div>
13 13
 
14 14
       <div class="listInfo">
15
-        <div>入院科室:血透</div>
16
-        <div>出院科室:血透</div>
15
+        <div>入院科室:血析室</div>
16
+        <div>出院科室:血析室</div>
17 17
         <div>入院日期:{{hospital_record.in_hosptial_time.split(' ')[0]}}</div>
18 18
         <div>出院日期:{{hospital_record.out_hosptial_time.split(' ')[0]}}</div>
19 19
         <div>住院天数:{{getDay(hospital_record.in_hosptial_time.split(' ')[0] ,hospital_record.out_hosptial_time.split(' ')[0])}}</div>
@@ -25,7 +25,9 @@
25 25
       >
26 26
         <div>出院诊断:尿毒症</div>
27 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 31
       </div>
30 32
 
31 33
       <table

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/privateChargePrint.vue 查看文件

@@ -76,7 +76,7 @@
76 76
       <tr>
77 77
         <td colspan="12" style="text-align:left;padding-left:10px;">
78 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 80
           (起付线 {{info.act_pay_dedc}}元, 先自付 {{info.preselfpay_amt}}元, 段内自付 {{info.medfee_sumamt}}元 )
81 81
 
82 82
         </td>