陈少旭 3 weeks ago
parent
commit
011fb99222

+ 46 - 45
src/xt_pages/Pharmacy/DrugDispensing.vue View File

239
                 {{ scope.row.frequency }}
239
                 {{ scope.row.frequency }}
240
               </template>
240
               </template>
241
             </el-table-column>
241
             </el-table-column>
242
-            
242
+
243
             <el-table-column
243
             <el-table-column
244
               prop="name"
244
               prop="name"
245
               label="天数"
245
               label="天数"
262
             </el-table-column>
262
             </el-table-column>
263
             <el-table-column label="药品追溯码" width="162" align="center">
263
             <el-table-column label="药品追溯码" width="162" align="center">
264
               <template slot-scope="scope">
264
               <template slot-scope="scope">
265
-                <div @click="getDrugCode(scope.row.ID,scope.row.data_sources,scope.row.DrugCode,scope.$index)"><el-input style="width: 100;" v-model="scope.row.DrugCode"></el-input></div> 
265
+                <div @click="getDrugCode(scope.row.ID,scope.row.data_sources,scope.row.DrugCode,scope.$index)"><el-input style="width: 100;" v-model="scope.row.DrugCode"></el-input></div>
266
               </template>
266
               </template>
267
             </el-table-column>
267
             </el-table-column>
268
             <el-table-column
268
             <el-table-column
574
         }else{
574
         }else{
575
           return ""
575
           return ""
576
         }
576
         }
577
-      
577
+
578
       }
578
       }
579
 
579
 
580
     },
580
     },
581
     // 追溯码
581
     // 追溯码
582
     getDrugCode(id,DataSources,DrugCode,index){
582
     getDrugCode(id,DataSources,DrugCode,index){
583
-      
583
+
584
       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 0){
584
       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 0){
585
         var params = {
585
         var params = {
586
             drug_id:this.drug_id,
586
             drug_id:this.drug_id,
587
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
587
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
588
         }
588
         }
589
-       
589
+
590
         getDrugTocalCount(params).then(response=>{
590
         getDrugTocalCount(params).then(response=>{
591
           if(response.data.state == 1){
591
           if(response.data.state == 1){
592
-            
592
+
593
             var adviceList = response.data.data.adviceList
593
             var adviceList = response.data.data.adviceList
594
 
594
 
595
            this.scan_code = response.data.data.drug.scan_code
595
            this.scan_code = response.data.data.drug.scan_code
596
-              
596
+
597
             var str = ""
597
             var str = ""
598
             if(adviceList!=null && adviceList.length>0){
598
             if(adviceList!=null && adviceList.length>0){
599
               for(let i=0;i<adviceList.length;i++){
599
               for(let i=0;i<adviceList.length;i++){
600
                 if(adviceList[i].drug_code!=""){
600
                 if(adviceList[i].drug_code!=""){
601
-                  str+=adviceList[i].drug_code 
601
+                  str+=adviceList[i].drug_code
602
                 }
602
                 }
603
-              
603
+
604
               }
604
               }
605
             }
605
             }
606
             var new_arr = str.split(",");
606
             var new_arr = str.split(",");
608
             console.log("adviceList==========",new_arr)
608
             console.log("adviceList==========",new_arr)
609
 
609
 
610
             if(new_arr!=null && new_arr.length>0){
610
             if(new_arr!=null && new_arr.length>0){
611
-              
611
+
612
               let dataInfo = {}
612
               let dataInfo = {}
613
               new_arr.forEach((item, index) => {
613
               new_arr.forEach((item, index) => {
614
                 if (!dataInfo[item]) {
614
                 if (!dataInfo[item]) {
615
                     dataInfo[item] = {
615
                     dataInfo[item] = {
616
                     drug_code:item,
616
                     drug_code:item,
617
-                    child: [], 
617
+                    child: [],
618
                   }
618
                   }
619
                 }
619
                 }
620
               })
620
               })
621
               let arr = Object.values(dataInfo)
621
               let arr = Object.values(dataInfo)
622
 
622
 
623
               if(arr!=null && arr.length>0){
623
               if(arr!=null && arr.length>0){
624
-                
624
+
625
                 for(let i=0;i<arr.length;i++){
625
                 for(let i=0;i<arr.length;i++){
626
                   for(let j=0;j<new_arr.length;j++){
626
                   for(let j=0;j<new_arr.length;j++){
627
                       if(arr[i].drug_code == new_arr[j]){
627
                       if(arr[i].drug_code == new_arr[j]){
630
                   }
630
                   }
631
                 }
631
                 }
632
               }
632
               }
633
-              
633
+
634
               this.newArrList = []
634
               this.newArrList = []
635
               this.newArrList = arr
635
               this.newArrList = arr
636
-               
637
-              this.id = id 
636
+
637
+              this.id = id
638
               var is_source =0
638
               var is_source =0
639
               if (DataSources == "his处方"){
639
               if (DataSources == "his处方"){
640
                   is_source = 1
640
                   is_source = 1
649
               this.$nextTick(()=>{
649
               this.$nextTick(()=>{
650
                 this.$refs.Datefrom.focus()
650
                 this.$refs.Datefrom.focus()
651
               })
651
               })
652
-              
652
+
653
             }
653
             }
654
           }
654
           }
655
         })
655
         })
656
 
656
 
657
       }else{
657
       }else{
658
-        this.id = id 
658
+        this.id = id
659
         var is_source =0
659
         var is_source =0
660
         if (DataSources == "his处方"){
660
         if (DataSources == "his处方"){
661
           is_source = 1
661
           is_source = 1
675
     saveTextArea(){
675
     saveTextArea(){
676
 
676
 
677
 
677
 
678
-      
678
+
679
        var params = {
679
        var params = {
680
         id:this.id,
680
         id:this.id,
681
         data_source:this.is_source,
681
         data_source:this.is_source,
682
         drug_code:this.textarea,
682
         drug_code:this.textarea,
683
        }
683
        }
684
        console.log("paramss",params)
684
        console.log("paramss",params)
685
-      
685
+
686
+
686
       changeDrugCode(params).then(response=>{
687
       changeDrugCode(params).then(response=>{
687
          if(response.data.state == 1){
688
          if(response.data.state == 1){
688
             this.$message.success("保存成功!")
689
             this.$message.success("保存成功!")
702
         var textarea = ""
703
         var textarea = ""
703
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
704
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
704
 
705
 
705
-      
706
+
706
         if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10726){
707
         if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10726){
707
-          
708
+
708
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
709
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
709
-         
710
+
710
           var total_one = 0
711
           var total_one = 0
711
           var total_two = 0
712
           var total_two = 0
712
 
713
 
713
-          
714
+
714
 
715
 
715
           var arr= []
716
           var arr= []
716
           arr = textarea.split(",")
717
           arr = textarea.split(",")
721
                 if (!dataInfo[item]) {
722
                 if (!dataInfo[item]) {
722
                     dataInfo[item] = {
723
                     dataInfo[item] = {
723
                     drug_code:item,
724
                     drug_code:item,
724
-                    child: [], 
725
+                    child: [],
725
                   }
726
                   }
726
                  }
727
                  }
727
                })
728
                })
728
                let new_arr = Object.values(dataInfo)
729
                let new_arr = Object.values(dataInfo)
729
 
730
 
730
                if(new_arr!=null && new_arr.length>0){
731
                if(new_arr!=null && new_arr.length>0){
731
-                
732
+
732
                  for(let i=0;i<new_arr.length;i++){
733
                  for(let i=0;i<new_arr.length;i++){
733
                    for(let j=0;j<arr.length;j++){
734
                    for(let j=0;j<arr.length;j++){
734
                       if(new_arr[i].drug_code == arr[j]){
735
                       if(new_arr[i].drug_code == arr[j]){
738
                  }
739
                  }
739
                }
740
                }
740
             arrList = new_arr
741
             arrList = new_arr
741
-            
742
+
742
           }
743
           }
743
 
744
 
744
           var is_err_check = false
745
           var is_err_check = false
745
           var i_index = ""
746
           var i_index = ""
746
           var drug_code = ""
747
           var drug_code = ""
747
-       
748
+
748
           if(arr!=null && arr.length>0){
749
           if(arr!=null && arr.length>0){
749
             for(let i=0;i<arr.length;i++){
750
             for(let i=0;i<arr.length;i++){
750
 
751
 
763
                     }
764
                     }
764
                   }
765
                   }
765
                  }
766
                  }
766
-                
767
-                
767
+
768
+
768
 
769
 
769
                }
770
                }
770
 
771
 
773
           if(is_err_check == true){
774
           if(is_err_check == true){
774
               arr.splice(i_index,1)
775
               arr.splice(i_index,1)
775
           }
776
           }
776
-         
777
+
777
           for(let i=0;i<this.newArrList.length;i++){
778
           for(let i=0;i<this.newArrList.length;i++){
778
              if(drug_code == this.newArrList[i].drug_code){
779
              if(drug_code == this.newArrList[i].drug_code){
779
                  total_one = this.newArrList[i].child.length
780
                  total_one = this.newArrList[i].child.length
788
 
789
 
789
           console.log("total_one-----------",total_one)
790
           console.log("total_one-----------",total_one)
790
           console.log("total_two-----------",total_two)
791
           console.log("total_two-----------",total_two)
791
-   
792
+
792
           if(this.scan_code>0){
793
           if(this.scan_code>0){
793
             if((total_one + total_two)>this.scan_code){
794
             if((total_one + total_two)>this.scan_code){
794
               this.$message.error("扫码次数已经超过限制!")
795
               this.$message.error("扫码次数已经超过限制!")
795
               arr.splice(i_index,1)
796
               arr.splice(i_index,1)
796
             }
797
             }
797
           }
798
           }
798
-         
799
+
799
          var is_arr = this.hasDuplicates(arr)
800
          var is_arr = this.hasDuplicates(arr)
800
 
801
 
801
-       
802
+
802
 
803
 
803
         this.textarea = arr.join(",")
804
         this.textarea = arr.join(",")
804
 
805
 
805
         }else{
806
         }else{
806
           var arr = textarea.split(",");
807
           var arr = textarea.split(",");
807
-          
808
+
808
           var lastElement = arr[arr.length - 2];
809
           var lastElement = arr[arr.length - 2];
809
 
810
 
810
           if(lastElement.length!=20){
811
           if(lastElement.length!=20){
812
             arr.splice(arr.length-2,1)
813
             arr.splice(arr.length-2,1)
813
           }
814
           }
814
           console.log("arr-------------",arr)
815
           console.log("arr-------------",arr)
815
-         
816
+
816
           this.textarea = ""
817
           this.textarea = ""
817
           this.textarea = arr.join(",")
818
           this.textarea = arr.join(",")
818
 
819
 
821
           // var i_index = ""
822
           // var i_index = ""
822
           // var arr = textarea.split(",")
823
           // var arr = textarea.split(",")
823
           // if(arr!=null && arr.length>0){
824
           // if(arr!=null && arr.length>0){
824
-            
825
+
825
           //   for(let i=0;i<arr.length;i++){
826
           //   for(let i=0;i<arr.length;i++){
826
           //     console.log("arrp[i].")
827
           //     console.log("arrp[i].")
827
           //     i_index = i
828
           //     i_index = i
832
           //       }else{
833
           //       }else{
833
           //         newArr.push(arr[i])
834
           //         newArr.push(arr[i])
834
           //       }
835
           //       }
835
-                
836
+
836
           //     }
837
           //     }
837
           //   }
838
           //   }
838
           // }
839
           // }
839
-         
840
+
840
           // if(is_err_check == 1){
841
           // if(is_err_check == 1){
841
           //    newArr.splice(i_index,1)
842
           //    newArr.splice(i_index,1)
842
           // }
843
           // }
843
 
844
 
844
-          
845
+
845
           // if(newArr!=null && newArr.length>0){
846
           // if(newArr!=null && newArr.length>0){
846
-           
847
+
847
           //   this.textarea = newArr.join(",")
848
           //   this.textarea = newArr.join(",")
848
           // }
849
           // }
849
           // this.textarea = textarea
850
           // this.textarea = textarea
850
         }
851
         }
851
-       
852
+
852
       }
853
       }
853
     },
854
     },
854
     tt() {},
855
     tt() {},
934
           data.forEach((el, index) => {
935
           data.forEach((el, index) => {
935
             dose_unit.push(this.getDose_unit(el.total));
936
             dose_unit.push(this.getDose_unit(el.total));
936
           });
937
           });
937
-        
938
+
938
           dose_unit = this.unique_unit(dose_unit);
939
           dose_unit = this.unique_unit(dose_unit);
939
           console.log(dose_unit,'dose_unit')
940
           console.log(dose_unit,'dose_unit')
940
           // // 数据合计
941
           // // 数据合计
1457
             this.tableData = []
1458
             this.tableData = []
1458
             this.tableData = list
1459
             this.tableData = list
1459
           }
1460
           }
1460
-         
1461
-         
1461
+
1462
+
1462
           this.total = res.data.data.total; //合计
1463
           this.total = res.data.data.total; //合计
1463
         } else {
1464
         } else {
1464
           this.$message.error(res.data.msg);
1465
           this.$message.error(res.data.msg);
1529
       return uniqueNumbers.length !== arr.length;
1530
       return uniqueNumbers.length !== arr.length;
1530
     },
1531
     },
1531
     getDrugIdentificationCode(id){
1532
     getDrugIdentificationCode(id){
1532
-       
1533
+
1533
       var drug_identification_code = ""
1534
       var drug_identification_code = ""
1534
       for(let i=0;i<this.baseList.length;i++){
1535
       for(let i=0;i<this.baseList.length;i++){
1535
           if(id == this.baseList[i].id){
1536
           if(id == this.baseList[i].id){

+ 3 - 3
src/xt_pages/Pharmacy/PatientDispensing.vue View File

1223
     },
1223
     },
1224
     getDrugCode(id,DataSources,DrugCode,index,DrugId,type){
1224
     getDrugCode(id,DataSources,DrugCode,index,DrugId,type){
1225
       this.drug_type = type
1225
       this.drug_type = type
1226
+      console.log(type)
1227
+      console.log( this.drug_type)
1226
       if (type == 1){
1228
       if (type == 1){
1227
         // 针对百霖
1229
         // 针对百霖
1228
         if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0|| this.$store.getters.xt_user.org.id==10726){
1230
         if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0|| this.$store.getters.xt_user.org.id==10726){
1315
       }else{
1317
       }else{
1316
         this.drug_id = DrugId
1318
         this.drug_id = DrugId
1317
         this.id = id
1319
         this.id = id
1318
-
1319
-        this.is_source = 1
1320
+        this.is_source = 3
1320
         this.textarea = DrugCode
1321
         this.textarea = DrugCode
1321
         this.currentIndex = index
1322
         this.currentIndex = index
1322
         this.dialogVisibleOne = true
1323
         this.dialogVisibleOne = true
1329
         id:this.id,
1330
         id:this.id,
1330
         data_source:this.is_source,
1331
         data_source:this.is_source,
1331
         drug_code:this.textarea,
1332
         drug_code:this.textarea,
1332
-        type:   this.drug_type,
1333
        }
1333
        }
1334
        console.log("paramss",params)
1334
        console.log("paramss",params)
1335
 
1335
 

+ 3 - 3
src/xt_pages/Pharmacy/drugCode.vue View File

271
       this.getlist()
271
       this.getlist()
272
     },
272
     },
273
     toUpload(row) {
273
     toUpload(row) {
274
-      if(this.is_type == 2){
274
+      if(this.is_type == 3){
275
         if (row.drug_code.length == 0) {
275
         if (row.drug_code.length == 0) {
276
           this.$message.error("追溯码不能为空");
276
           this.$message.error("追溯码不能为空");
277
           return
277
           return
495
           }
495
           }
496
        })
496
        })
497
       }
497
       }
498
-      if(this.is_type == 2){
498
+      if(this.is_type == 3){
499
         var params = {
499
         var params = {
500
           id: this.id,
500
           id: this.id,
501
           data_source: 2,
501
           data_source: 2,
642
       // 判断结束时间是否在一个月内
642
       // 判断结束时间是否在一个月内
643
       return endDate <= oneMonthLater;
643
       return endDate <= oneMonthLater;
644
     }, batchUpload() {
644
     }, batchUpload() {
645
-      if(this.is_type == 2 ){
645
+      if(this.is_type == 3){
646
         var that = this
646
         var that = this
647
         let ids  = ""
647
         let ids  = ""
648
         for (var i = 0; i < this.selection.length; i++){
648
         for (var i = 0; i < this.selection.length; i++){

+ 77 - 21
src/xt_pages/outpatientTool/gatherPrint.vue View File

97
                    {{item.count_number }}{{item.unit }}
97
                    {{item.count_number }}{{item.unit }}
98
                 </td>
98
                 </td>
99
                 <td style="text-align:center" >
99
                 <td style="text-align:center" >
100
-                   <span v-if="item.is_total == 1">{{ item.total }}</span>
101
-                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
100
+                   <span v-if="item.is_total == 1">{{ getAllPice() }}</span>
101
+                   <span v-if="item.is_total == 2">{{ getT(item) }}</span>
102
                 </td>
102
                 </td>
103
                 <td style="text-align:center" >
103
                 <td style="text-align:center" >
104
                   {{getChrgitmLv(item.medical_insurance_level)}}
104
                   {{getChrgitmLv(item.medical_insurance_level)}}
246
                 cost_type:"",
246
                 cost_type:"",
247
                 name:"",
247
                 name:"",
248
                 pric:item.pric,
248
                 pric:item.pric,
249
+                det_sun:item.det_item_fee_sumamt,
249
                 chrgitm_lv:"",
250
                 chrgitm_lv:"",
250
                 advice_id:item.advice_id,
251
                 advice_id:item.advice_id,
251
                 project_id:item.project_id,
252
                 project_id:item.project_id,
271
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
272
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
272
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
273
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
273
                   arr[i].medical_insurance_level = arr[i].child[0].chrgitm_lv
274
                   arr[i].medical_insurance_level = arr[i].child[0].chrgitm_lv
274
-
275
-
275
+                 // arr[i].record_date = arr[i].child[0].advice.advice_date
276
                }
276
                }
277
                if(arr[i].project_id > 0){
277
                if(arr[i].project_id > 0){
278
                   arr[i].record_date = arr[i].child[0].project.record_date
278
                   arr[i].record_date = arr[i].child[0].project.record_date
422
             }
422
             }
423
             this.tableList = []
423
             this.tableList = []
424
             this.tableList = tempList
424
             this.tableList = tempList
425
+            console.log("this.tableList")
426
+            console.log( this.tableList)
425
 
427
 
426
         }
428
         }
427
      })
429
      })
705
       var total_price = 0
707
       var total_price = 0
706
       for(let i=0;i<this.tableList.length;i++){
708
       for(let i=0;i<this.tableList.length;i++){
707
         if(this.tableList[i].is_total ==2){
709
         if(this.tableList[i].is_total ==2){
708
-          total_price += (this.tableList[i].pric * parseInt(this.tableList[i].count_number))
710
+          for(let a = 0; a < this.tableList[i].child.length; a++){
711
+            total_price += this.tableList[i].child[a].det_item_fee_sumamt
712
+          }
709
         }
713
         }
710
       }
714
       }
711
       if(total_price > 0){
715
       if(total_price > 0){
926
         }
930
         }
927
       }
931
       }
928
       return med_chrgitm_type
932
       return med_chrgitm_type
929
-    },
933
+    },getT(item){
934
+        let total = 0
935
+        // for()
936
+          for(let a = 0; a < item.child.length; a++){
937
+            total += item.child[a].det_item_fee_sumamt
938
+          }
939
+          return total.toFixed(2)
940
+        // console.log(item)
941
+      },
930
     getChrgitmLv(value){
942
     getChrgitmLv(value){
931
       var name = ""
943
       var name = ""
932
       for(let i=0;i<this.medicalInsuranceLevelList.length;i++){
944
       for(let i=0;i<this.medicalInsuranceLevelList.length;i++){
958
       var total_price = 0
970
       var total_price = 0
959
       for(let i=0;i<this.tableList.length;i++){
971
       for(let i=0;i<this.tableList.length;i++){
960
          if(this.tableList[i].cost_type == "西药"){
972
          if(this.tableList[i].cost_type == "西药"){
961
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
973
+           for(let a = 0; a < this.tableList[i].child.length; a++){
974
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
975
+           }
962
          }
976
          }
963
       }
977
       }
964
 
978
 
968
       var total_price = 0
982
       var total_price = 0
969
       for(let i=0;i<this.tableList.length;i++){
983
       for(let i=0;i<this.tableList.length;i++){
970
          if(this.tableList[i].cost_type == "中成药"){
984
          if(this.tableList[i].cost_type == "中成药"){
971
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
985
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
986
+           for(let a = 0; a < this.tableList[i].child.length; a++){
987
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
988
+           }
972
          }
989
          }
973
       }
990
       }
974
       return total_price.toFixed(2)
991
       return total_price.toFixed(2)
977
       var total_price = 0
994
       var total_price = 0
978
       for(let i=0;i<this.tableList.length;i++){
995
       for(let i=0;i<this.tableList.length;i++){
979
          if(this.tableList[i].cost_type == "中草药"){
996
          if(this.tableList[i].cost_type == "中草药"){
980
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
997
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
998
+           for(let a = 0; a < this.tableList[i].child.length; a++){
999
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1000
+           }
981
          }
1001
          }
982
       }
1002
       }
983
       return total_price.toFixed(2)
1003
       return total_price.toFixed(2)
986
       var total_price = 0
1006
       var total_price = 0
987
       for(let i=0;i<this.tableList.length;i++){
1007
       for(let i=0;i<this.tableList.length;i++){
988
          if(this.tableList[i].cost_type == "检验费"){
1008
          if(this.tableList[i].cost_type == "检验费"){
989
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1009
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1010
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1011
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1012
+           }
990
          }
1013
          }
991
       }
1014
       }
992
       return total_price.toFixed(2)
1015
       return total_price.toFixed(2)
995
      var total_price = 0
1018
      var total_price = 0
996
       for(let i=0;i<this.tableList.length;i++){
1019
       for(let i=0;i<this.tableList.length;i++){
997
          if(this.tableList[i].cost_type == "输氧费"){
1020
          if(this.tableList[i].cost_type == "输氧费"){
998
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1021
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1022
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1023
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1024
+           }
999
          }
1025
          }
1000
       }
1026
       }
1001
       return total_price.toFixed(2)
1027
       return total_price.toFixed(2)
1004
       var total_price = 0
1030
       var total_price = 0
1005
       for(let i=0;i<this.tableList.length;i++){
1031
       for(let i=0;i<this.tableList.length;i++){
1006
          if(this.tableList[i].cost_type == "手术费"){
1032
          if(this.tableList[i].cost_type == "手术费"){
1007
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1033
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1034
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1035
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1036
+           }
1008
          }
1037
          }
1009
       }
1038
       }
1010
       return total_price.toFixed(2)
1039
       return total_price.toFixed(2)
1013
       var total_price = 0
1042
       var total_price = 0
1014
       for(let i=0;i<this.tableList.length;i++){
1043
       for(let i=0;i<this.tableList.length;i++){
1015
          if(this.tableList[i].cost_type == "化验费"){
1044
          if(this.tableList[i].cost_type == "化验费"){
1016
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1045
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1046
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1047
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1048
+           }
1017
          }
1049
          }
1018
       }
1050
       }
1019
       return total_price.toFixed(2)
1051
       return total_price.toFixed(2)
1022
      var total_price = 0
1054
      var total_price = 0
1023
       for(let i=0;i<this.tableList.length;i++){
1055
       for(let i=0;i<this.tableList.length;i++){
1024
          if(this.tableList[i].cost_type == "输血费"){
1056
          if(this.tableList[i].cost_type == "输血费"){
1025
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1057
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1058
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1059
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1060
+           }
1026
          }
1061
          }
1027
       }
1062
       }
1028
       return total_price.toFixed(2)
1063
       return total_price.toFixed(2)
1031
       var total_price = 0
1066
       var total_price = 0
1032
       for(let i=0;i<this.tableList.length;i++){
1067
       for(let i=0;i<this.tableList.length;i++){
1033
          if(this.tableList[i].cost_type == "诊断费"){
1068
          if(this.tableList[i].cost_type == "诊断费"){
1034
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1069
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1070
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1071
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1072
+           }
1035
          }
1073
          }
1036
       }
1074
       }
1037
       return total_price.toFixed(2)
1075
       return total_price.toFixed(2)
1040
      var total_price = 0
1078
      var total_price = 0
1041
       for(let i=0;i<this.tableList.length;i++){
1079
       for(let i=0;i<this.tableList.length;i++){
1042
          if(this.tableList[i].cost_type == "治疗费"){
1080
          if(this.tableList[i].cost_type == "治疗费"){
1043
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1081
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1082
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1083
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1084
+           }
1044
          }
1085
          }
1045
       }
1086
       }
1046
       return total_price.toFixed(2)
1087
       return total_price.toFixed(2)
1049
       var total_price = 0
1090
       var total_price = 0
1050
       for(let i=0;i<this.tableList.length;i++){
1091
       for(let i=0;i<this.tableList.length;i++){
1051
          if(this.tableList[i].cost_type == "护理费"){
1092
          if(this.tableList[i].cost_type == "护理费"){
1052
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1093
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1094
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1095
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1096
+           }
1053
          }
1097
          }
1054
       }
1098
       }
1055
       return total_price.toFixed(2)
1099
       return total_price.toFixed(2)
1058
       var total_price = 0
1102
       var total_price = 0
1059
       for(let i=0;i<this.tableList.length;i++){
1103
       for(let i=0;i<this.tableList.length;i++){
1060
          if(this.tableList[i].cost_type == "床位费"){
1104
          if(this.tableList[i].cost_type == "床位费"){
1061
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1105
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1106
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1107
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1108
+           }
1062
          }
1109
          }
1063
       }
1110
       }
1064
       return total_price.toFixed(2)
1111
       return total_price.toFixed(2)
1067
       var total_price = 0
1114
       var total_price = 0
1068
       for(let i=0;i<this.tableList.length;i++){
1115
       for(let i=0;i<this.tableList.length;i++){
1069
          if(this.tableList[i].cost_type == "麻醉费"){
1116
          if(this.tableList[i].cost_type == "麻醉费"){
1070
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1117
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1118
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1119
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1120
+           }
1071
          }
1121
          }
1072
       }
1122
       }
1073
       return total_price.toFixed(2)
1123
       return total_price.toFixed(2)
1076
       var total_price = 0
1126
       var total_price = 0
1077
       for(let i=0;i<this.tableList.length;i++){
1127
       for(let i=0;i<this.tableList.length;i++){
1078
          if(this.tableList[i].cost_type == "材料费"){
1128
          if(this.tableList[i].cost_type == "材料费"){
1079
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1129
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1130
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1131
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1132
+           }
1080
          }
1133
          }
1081
       }
1134
       }
1082
       return total_price.toFixed(2)
1135
       return total_price.toFixed(2)
1085
       var total_price = 0
1138
       var total_price = 0
1086
       for(let i=0;i<this.tableList.length;i++){
1139
       for(let i=0;i<this.tableList.length;i++){
1087
          if(this.tableList[i].cost_type == "其他"){
1140
          if(this.tableList[i].cost_type == "其他"){
1088
-            total_price += this.tableList[i].count_number * this.tableList[i].pric
1141
+            // total_price += this.tableList[i].count_number * this.tableList[i].pric
1142
+           for(let a = 0; a < this.tableList[i].child.length; a++){
1143
+             total_price += this.tableList[i].child[a].det_item_fee_sumamt
1144
+           }
1089
          }
1145
          }
1090
       }
1146
       }
1091
       return total_price.toFixed(2)
1147
       return total_price.toFixed(2)