浏览代码

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

csx 3 年前
父节点
当前提交
310fd41f26

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

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 查看文件

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 查看文件

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>

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

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
-            
5
+
6
             <div style="position: absolute;top:40px;left:40px"></div>
6
             <div style="position: absolute;top:40px;left:40px"></div>
7
-            
7
+
8
             <div  style="position: absolute;top:40px;left:300px"></div>
8
             <div  style="position: absolute;top:40px;left:300px"></div>
9
 
9
 
10
             <div style="position: absolute;top:40px;left:560px"></div>
10
             <div style="position: absolute;top:40px;left:560px"></div>
18
             <!-- <div></div> -->
18
             <!-- <div></div> -->
19
             <!-- 发票序号 -->
19
             <!-- 发票序号 -->
20
             <!-- <div  style="position: absolute;left:560px;top:70px;">
20
             <!-- <div  style="position: absolute;left:560px;top:70px;">
21
-            
21
+
22
             </div> -->
22
             </div> -->
23
              <div  style="position: absolute;left:650px;top:70px;">
23
              <div  style="position: absolute;left:650px;top:70px;">
24
             <!-- 类别 -->
24
             <!-- 类别 -->
98
 
98
 
99
         <div>
99
         <div>
100
             <span>
100
             <span>
101
-            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span> 
101
+            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
102
             <span  style="position: absolute;top:280px;left:180px">
102
             <span  style="position: absolute;top:280px;left:180px">
103
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
103
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
104
                     {{ zhongwen.substring(0,1) }}十万
104
                     {{ zhongwen.substring(0,1) }}十万
125
             </span>
125
             </span>
126
             <span style="position: absolute;top:280px;left:350px">
126
             <span style="position: absolute;top:280px;left:350px">
127
                 <span v-if="zhongwen.indexOf('拾') > -1">
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
                 </span>
131
                 </span>
130
                 <span v-else>零拾</span>
132
                 <span v-else>零拾</span>
131
             </span>
133
             </span>
132
             <span  style="position: absolute;top:280px;left:390px">
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
                 </span>
137
                 </span>
136
                 <span v-else>零元</span>
138
                 <span v-else>零元</span>
137
             </span>
139
             </span>

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

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>
834
     }
834
     }
835
   },
835
   },
836
   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
+
837
     getJiaTotal(name){
859
     getJiaTotal(name){
838
       let total = 0.00
860
       let total = 0.00
839
       for(let i = 0; i  < this.list.length; i++){
861
       for(let i = 0; i  < this.list.length; i++){
842
 
864
 
843
         }
865
         }
844
       }
866
       }
867
+      if (total == 0){
868
+        return ""
869
+      }
845
       return total
870
       return total
846
     },
871
     },
847
     getYiTotal(name){
872
     getYiTotal(name){
852
 
877
 
853
         }
878
         }
854
       }
879
       }
880
+      if (total == 0){
881
+        return ""
882
+      }
855
       return total
883
       return total
856
-
857
     },
884
     },
858
     getNaty(naty){
885
     getNaty(naty){
859
       switch (naty){
886
       switch (naty){

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

81
     }
81
     }
82
   },
82
   },
83
   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
+
84
     printThisPage() {
146
     printThisPage() {
85
       var ptime = Math.round(new Date().getTime() / 1000)
147
       var ptime = Math.round(new Date().getTime() / 1000)
86
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
148
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
157
           this.cal_two = cal_two
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
     changePatient(row) {
255
     changePatient(row) {
317
                   tempDetails.push(response.data.data.order_info[b])
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
                 that.info['diagnosis'] = response.data.data.diagnosis
500
                 that.info['diagnosis'] = response.data.data.diagnosis
411
                 that.info['his'] = response.data.data.his_hospital
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
             .catch(function(error) {
549
             .catch(function(error) {

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

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 查看文件

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

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

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)

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

12
       </div>
12
       </div>
13
 
13
 
14
       <div class="listInfo">
14
       <div class="listInfo">
15
-        <div>入院科室:血透</div>
16
-        <div>出院科室:血透</div>
15
+        <div>入院科室:血析室</div>
16
+        <div>出院科室:血析室</div>
17
         <div>入院日期:{{hospital_record.in_hosptial_time.split(' ')[0]}}</div>
17
         <div>入院日期:{{hospital_record.in_hosptial_time.split(' ')[0]}}</div>
18
         <div>出院日期:{{hospital_record.out_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>
19
         <div>住院天数:{{getDay(hospital_record.in_hosptial_time.split(' ')[0] ,hospital_record.out_hosptial_time.split(' ')[0])}}</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

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

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>