Parcourir la source

11月14日 库存扣减更新

XMLWAN il y a 3 ans
Parent
révision
60dfe12007

+ 2 - 6
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Voir le fichier

853
       'dialysis_order.id': function() {
853
       'dialysis_order.id': function() {
854
         this.form['dialysis_order_id'] = this.dialysis_order.id
854
         this.form['dialysis_order_id'] = this.dialysis_order.id
855
       },
855
       },
856
-      doctor_advices: function() {
857
-        // this.handleSpanTempArr()
858
-        // this.hoverOrderArr = []
859
-        // this.handleStyle()
860
-      }
856
+     
861
     },
857
     },
862
     methods: {
858
     methods: {
863
       getContent: function() {
859
       getContent: function() {
2566
       this.patientid = this.$route.query.patient_id
2562
       this.patientid = this.$route.query.patient_id
2567
       this.request_record_date = this.record_date
2563
       this.request_record_date = this.record_date
2568
 
2564
 
2569
-      this.getDialysisScheduleDetail()
2565
+      // this.getDialysisScheduleDetail()
2570
        //获取自备药
2566
        //获取自备药
2571
       this.getSelfMedicalList()
2567
       this.getSelfMedicalList()
2572
     },mounted(){
2568
     },mounted(){

+ 68 - 23
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Voir le fichier

47
         <el-checkbox :label="replacement_total"></el-checkbox>
47
         <el-checkbox :label="replacement_total"></el-checkbox>
48
         <el-checkbox :label="blood_flow_volume"></el-checkbox>
48
         <el-checkbox :label="blood_flow_volume"></el-checkbox>
49
         <el-checkbox :label="dialysate_flow"></el-checkbox>
49
         <el-checkbox :label="dialysate_flow"></el-checkbox>
50
+        <el-checkbox :label="displace_liqui_value"></el-checkbox>
50
      </el-checkbox-group>
51
      </el-checkbox-group>
51
     </el-form>
52
     </el-form>
52
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
53
     <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
197
         anticoagulant_weichi:"维持:",
198
         anticoagulant_weichi:"维持:",
198
         anticoagulant_zongliang:"总量:",
199
         anticoagulant_zongliang:"总量:",
199
         displace_liqui_part:"置换液:",
200
         displace_liqui_part:"置换液:",
200
-        replacement_total:"置换量:",
201
+        replacement_total:"置换量:",
201
         blood_flow_volume:"处方血流量:",
202
         blood_flow_volume:"处方血流量:",
202
         dialysate_flow:"透析液流量:",
203
         dialysate_flow:"透析液流量:",
203
-        blood_access_part_opera_id:"通路类型:"
204
+        blood_access_part_opera_id:"通路类型:",
205
+        displace_liqui_value:"置换液总量:",
204
       }
206
       }
205
     }, methods: {
207
     }, methods: {
206
       
208
       
579
       changeBoxOne(val){
581
       changeBoxOne(val){
580
          var arr = []
582
          var arr = []
581
          var str = val.join(';')
583
          var str = val.join(';')
582
-         console.log("strw222222222",str)
584
+        
583
         if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
585
         if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
584
             arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
586
             arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
585
         }
587
         }
630
         }
632
         }
631
 
633
 
632
        if(str.indexOf("置换液")!=-1 && this.prescription!=null){
634
        if(str.indexOf("置换液")!=-1 && this.prescription!=null){
633
-           arr.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
635
+           arr.push("置换液:"+(this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):""))
634
         } 
636
         } 
635
 
637
 
636
        if(str.indexOf("置换液")!=-1 && this.prescription==null){
638
        if(str.indexOf("置换液")!=-1 && this.prescription==null){
637
            arr.push("置换液:")
639
            arr.push("置换液:")
638
         } 
640
         } 
639
       
641
       
640
-       if(str.indexOf("置换量")!=-1 && this.prescription!=null){
641
-           arr.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
642
+       if(str.indexOf("置换量")!=-1 && this.prescription!=null){
643
+           arr.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
642
         } 
644
         } 
643
 
645
 
644
-        if(str.indexOf("置换量")!=-1 && this.prescription==null){
645
-           arr.push("置换量:")
646
+        if(str.indexOf("置换量")!=-1 && this.prescription==null){
647
+           arr.push("置换量:")
646
         } 
648
         } 
647
 
649
 
648
        if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
650
        if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
660
        if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
662
        if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
661
            arr.push("透析液流量:")
663
            arr.push("透析液流量:")
662
         } 
664
         } 
665
+        if(str.indexOf("置换液总量")!=-1 && this.prescription!=null){
666
+           arr.push("置换液总量:"+(this.prescription.displace_liqui_value?this.prescription.displace_liqui_value:""))
667
+        } 
668
+        if(str.indexOf("置换液总量")!=-1 && this.prescription == null){
669
+           arr.push("置换液总量:")
670
+        }
663
         console.log("arr",arr)
671
         console.log("arr",arr)
664
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
672
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
665
         if(val.length>0){
673
         if(val.length>0){
671
       changeBoxTwo(val){
679
       changeBoxTwo(val){
672
          var arr = []
680
          var arr = []
673
          var str = val.join(';')
681
          var str = val.join(';')
674
-         console.log("strw222222222",str)
675
- 
682
+         
676
           if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
683
           if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
677
             arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
684
             arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
678
           
685
           
707
       changeBoxThree(val){
714
       changeBoxThree(val){
708
          var arr = []
715
          var arr = []
709
          var str = val.join(';')
716
          var str = val.join(';')
710
-         console.log("strw222222222",str)
717
+      
711
          if(str.indexOf('泵前补液测管未夹')!=-1){
718
          if(str.indexOf('泵前补液测管未夹')!=-1){
712
            arr.push("泵前补液测管未夹:")
719
            arr.push("泵前补液测管未夹:")
713
          }
720
          }
864
        }
871
        }
865
        return name
872
        return name
866
      },
873
      },
874
+   
867
      getBloodAccess(id){
875
      getBloodAccess(id){
868
        
876
        
869
         let vascular_access_desc = getDataConfig(
877
         let vascular_access_desc = getDataConfig(
877
           }
885
           }
878
         }
886
         }
879
         return name
887
         return name
880
-     }
888
+     },
889
+     getDisplace(id){
890
+       var name = ""
891
+       var arr = this.$store.getters.displace_liqui
892
+       console.log("arr233233233223",arr)
893
+       for(let i=0;i<arr.length;i++){
894
+        if(id == arr[i].id){
895
+          name = arr[i].name
896
+        }
897
+       }
898
+       return name
899
+     },
881
     },
900
     },
882
 
901
 
883
     props: {
902
     props: {
920
          
939
          
921
         if(this.prescription!=null && this.prescription.id!=0){
940
         if(this.prescription!=null && this.prescription.id!=0){
922
           if(this.prescription.dialyzer_perfusion_apparatus !="" || this.prescription.dialysis_dialyszers!="" || this.prescription.dialysis_irrigation!=""){
941
           if(this.prescription.dialyzer_perfusion_apparatus !="" || this.prescription.dialysis_dialyszers!="" || this.prescription.dialysis_irrigation!=""){
923
-            this.diazes = ""
942
+            this.diazes = "透析器/灌流器:"
924
             this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
943
             this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
925
             this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
944
             this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
926
           }else{
945
           }else{
929
           }
948
           }
930
           
949
           
931
           if(this.prescription.dialysate_formulation!=""){
950
           if(this.prescription.dialysate_formulation!=""){
951
+            this.dialysate_formulation = "透析液配方:"
932
              this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
952
              this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
933
           }else{
953
           }else{
934
             this.dialysate_formulation = this.dialysate_formulation 
954
             this.dialysate_formulation = this.dialysate_formulation 
935
           }
955
           }
936
           
956
           
937
           if(this.prescription.kalium!=""){
957
           if(this.prescription.kalium!=""){
958
+            this.kalium = "钾:"
938
            this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
959
            this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
939
           }else{
960
           }else{
940
             this.kalium = this.kalium 
961
             this.kalium = this.kalium 
941
           }
962
           }
942
        
963
        
943
           if(this.prescription.calcium!=""){
964
           if(this.prescription.calcium!=""){
965
+           this.calcium = "钙:"
944
            this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
966
            this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
945
           }else{
967
           }else{
946
             this.calcium = this.calcium
968
             this.calcium = this.calcium
947
           }
969
           }
948
          
970
          
949
           if(this.prescription.mode_id > 0){
971
           if(this.prescription.mode_id > 0){
972
+            this.dialys_mode= "透析模式:"
950
             this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id) 
973
             this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id) 
951
           }else{
974
           }else{
952
              this.dialys_mode = this.dialys_mode
975
              this.dialys_mode = this.dialys_mode
953
           }
976
           }
954
           
977
           
955
           if(this.prescription.dialysis_duration_hour !="" || this.prescription.dialysis_duration_minute!=""){
978
           if(this.prescription.dialysis_duration_hour !="" || this.prescription.dialysis_duration_minute!=""){
979
+            this.long_time ="透析时长:"
956
             this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +(this.prescription.dialysis_duration_minute?this.prescription.dialysis_duration_minute:"") +"分"
980
             this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +(this.prescription.dialysis_duration_minute?this.prescription.dialysis_duration_minute:"") +"分"
957
           }else{
981
           }else{
958
              this.long_time = this.long_time
982
              this.long_time = this.long_time
959
           }
983
           }
960
           
984
           
961
           if(this.prescription.target_ultrafiltration!=""){
985
           if(this.prescription.target_ultrafiltration!=""){
986
+           this.target_ultrafiltration = "目标超滤量:"
962
            this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
987
            this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
963
           }else{
988
           }else{
964
             this.target_ultrafiltration = this.target_ultrafiltration
989
             this.target_ultrafiltration = this.target_ultrafiltration
965
           }
990
           }
966
           
991
           
967
           if(this.prescription.anticoagulant!=""){
992
           if(this.prescription.anticoagulant!=""){
968
-            this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
993
+            this.anticoagulant = "抗凝剂:"
994
+            this.anticoagulant = this.anticoagulant + (this.getAnticoagulant(this.prescription.anticoagulant)?this.getAnticoagulant(this.prescription.anticoagulant):"")
969
           }else{
995
           }else{
970
             this.anticoagulant = this.anticoagulant 
996
             this.anticoagulant = this.anticoagulant 
971
           }
997
           }
972
          
998
          
973
           if(this.prescription.anticoagulant_shouji!=""){
999
           if(this.prescription.anticoagulant_shouji!=""){
1000
+            this.anticoagulant_shouji="首剂:"
974
             this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
1001
             this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
975
           }else{
1002
           }else{
976
              this.anticoagulant_shouji = this.anticoagulant_shouji
1003
              this.anticoagulant_shouji = this.anticoagulant_shouji
977
           }
1004
           }
978
           
1005
           
979
           if(this.prescription.anticoagulant_weichi!=""){
1006
           if(this.prescription.anticoagulant_weichi!=""){
1007
+             this.anticoagulant_weichi = "维持:"
980
              this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
1008
              this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
981
           }else{
1009
           }else{
982
            this.anticoagulant_weichi = this.anticoagulant_weichi 
1010
            this.anticoagulant_weichi = this.anticoagulant_weichi 
983
           }
1011
           }
984
           
1012
           
985
           if(this.prescription.anticoagulant_zongliang!=""){
1013
           if(this.prescription.anticoagulant_zongliang!=""){
1014
+             this.anticoagulant_zongliang = "总量:"
986
              this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
1015
              this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
987
           }else{
1016
           }else{
988
              this.anticoagulant_zongliang = this.anticoagulant_zongliang
1017
              this.anticoagulant_zongliang = this.anticoagulant_zongliang
989
           }
1018
           }
990
        
1019
        
991
           if(this.prescription.displace_liqui_part!=""){
1020
           if(this.prescription.displace_liqui_part!=""){
992
-            this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
1021
+             this.displace_liqui_part="置换液:"
1022
+            this.displace_liqui_part = this.displace_liqui_part + (this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):"")
993
           }else{
1023
           }else{
994
-             this.displace_liqui_part = this.displace_liqui_part
1024
+             this.displace_liqui_part = this.getDisplace(this.displace_liqui_part)
995
           }
1025
           }
996
           
1026
           
997
           if(this.prescription.replacement_total!=""){
1027
           if(this.prescription.replacement_total!=""){
1028
+             this.replacement_total = "置换量:"
998
              this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
1029
              this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
999
           }else{
1030
           }else{
1000
              this.replacement_total = this.replacement_total
1031
              this.replacement_total = this.replacement_total
1001
           }
1032
           }
1002
         
1033
         
1003
           if(this.prescription.dialysate_flow!=""){
1034
           if(this.prescription.dialysate_flow!=""){
1035
+             this.dialysate_flow = "透析液流量:"
1004
              this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
1036
              this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
1005
           }else{
1037
           }else{
1006
              this.dialysate_flow = this.dialysate_flow
1038
              this.dialysate_flow = this.dialysate_flow
1007
           }
1039
           }
1008
-
1040
+         
1041
+          if(this.prescription.displace_liqui_value!=""){
1042
+            this.displace_liqui_value = "置换液总量:"
1043
+            this.displace_liqui_value = this.displace_liqui_value + this.prescription.displace_liqui_value
1044
+            console.log("置换液总量",this.displace_liqui_value)
1045
+          }
1046
+        
1009
         }
1047
         }
1010
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
1048
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
1049
+          this.puncture_needle = "穿刺针:"
1011
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
1050
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
1012
           this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
1051
           this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
1013
         } 
1052
         } 
1014
         if(this.double_check !=null && this.double_check.id!=0){
1053
         if(this.double_check !=null && this.double_check.id!=0){
1015
-           console.log("双人核对",this.double_check)
1054
+        
1016
            if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
1055
            if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
1017
              this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
1056
              this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
1018
-             console.log("222222",this.checkList)
1057
+            
1019
            }
1058
            }
1020
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
1059
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
1060
+          
1021
               this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
1061
               this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
1022
            }
1062
            }
1023
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
1063
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
1030
                this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
1070
                this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
1031
            }
1071
            }
1032
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
1072
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
1073
+              
1033
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
1074
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
1034
            }
1075
            }
1035
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
1076
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
1039
               this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
1080
               this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
1040
            }
1081
            }
1041
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
1082
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
1042
-              this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
1083
+              this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant?this.prescription.anticoagulant:""))
1043
            }
1084
            }
1044
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
1085
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
1045
               this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
1086
               this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
1051
               this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
1092
               this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
1052
            }
1093
            }
1053
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
1094
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
1054
-              this.checkListOne.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
1095
+              this.checkListOne.push("置换液:"+(this.getDisplace(this.prescription.displace_liqui_part)?this.getDisplace(this.prescription.displace_liqui_part):""))
1055
            }
1096
            }
1056
-           if(this.double_check.dialysis_parameter_desc.indexOf("置换量")!=-1){
1057
-             this.checkListOne.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
1097
+           if(this.double_check.dialysis_parameter_desc.indexOf("置换量")!=-1){
1098
+             this.checkListOne.push("置换量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
1058
            }
1099
            }
1059
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
1100
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
1060
              this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
1101
              this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
1062
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1103
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1063
              this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1104
              this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1064
            }
1105
            }
1106
+
1107
+           if(this.double_check.dialysis_parameter_desc.indexOf("置换液总量")!=-1){
1108
+             this.checkListOne.push("置换液总量:"+(this.prescription.displace_liqui_value?this.prescription.displace_liqui_value:""))
1109
+           }
1065
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1110
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1066
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
1111
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
1067
            }
1112
            }

+ 6 - 6
src/xt_pages/dialysis/details/index.vue Voir le fichier

1207
         }
1207
         }
1208
        
1208
        
1209
        // 目标超滤量是否默认上次数据
1209
        // 目标超滤量是否默认上次数据
1210
-        // if (this.lastDialysisPrescribe != null) {
1211
-        //   delete this.lastDialysisPrescribe.target_ultrafiltration
1212
-        // }
1213
-        // if (this.solution != null) {
1214
-        //   delete this.solution.target_ultrafiltration
1215
-        // }
1210
+        if (this.lastDialysisPrescribe != null) {
1211
+          delete this.lastDialysisPrescribe.target_ultrafiltration
1212
+        }
1213
+        if (this.solution != null) {
1214
+          delete this.solution.target_ultrafiltration
1215
+        }
1216
         if(this.predialysis_evaluation.id > 0){
1216
         if(this.predialysis_evaluation.id > 0){
1217
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1217
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1218
         }
1218
         }

+ 9 - 2
src/xt_pages/stock/cancelStockOrderAdd.vue Voir le fichier

560
                }
560
                }
561
             }     
561
             }     
562
           }
562
           }
563
-
563
+          const loading = this.$loading({
564
+            lock: true,
565
+            text: 'Loading',
566
+            spinner: 'el-icon-loading',
567
+            background: 'rgba(0, 0, 0, 0.7)'
568
+          })
564
           const params = {
569
           const params = {
565
             cancelStock: this.recordInfo.recordData
570
             cancelStock: this.recordInfo.recordData
566
           };
571
           };
576
           ).then(response => {
581
           ).then(response => {
577
             if (response.data.state == 0) {
582
             if (response.data.state == 0) {
578
               this.$message.error(response.data.msg);
583
               this.$message.error(response.data.msg);
584
+              loading.close()
579
               return false;
585
               return false;
580
             } else {
586
             } else {
581
              var msg =  response.data.data.msg
587
              var msg =  response.data.data.msg
601
               });
607
               });
602
               this.recordInfo.recordData = [];
608
               this.recordInfo.recordData = [];
603
               this.$router.back(-1);
609
               this.$router.back(-1);
604
-             }        
610
+             }  
611
+             loading.close()      
605
             }
612
             }
606
           });
613
           });
607
         } else {
614
         } else {

+ 9 - 2
src/xt_pages/stock/cancelStockOrderEdit.vue Voir le fichier

527
                 }
527
                 }
528
               }     
528
               }     
529
             }
529
             }
530
-
530
+            const loading = this.$loading({
531
+              lock: true,
532
+              text: 'Loading',
533
+              spinner: 'el-icon-loading',
534
+              background: 'rgba(0, 0, 0, 0.7)'
535
+            })
531
             const params = {
536
             const params = {
532
               'cancelStock': this.recordInfo.recordData
537
               'cancelStock': this.recordInfo.recordData
533
             }
538
             }
536
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
541
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
537
               if (response.data.state == 0) {
542
               if (response.data.state == 0) {
538
                 this.$message.error(response.data.msg)
543
                 this.$message.error(response.data.msg)
544
+                loading.close()
539
                 return false
545
                 return false
540
               } else {
546
               } else {
541
                 var msg =  response.data.data.msg
547
                 var msg =  response.data.data.msg
561
                   });
567
                   });
562
                   this.recordInfo.recordData = [];
568
                   this.recordInfo.recordData = [];
563
                   this.$router.back(-1);
569
                   this.$router.back(-1);
564
-                }        
570
+                }  
571
+                loading.close()       
565
               }
572
               }
566
             })
573
             })
567
           } else {
574
           } else {

+ 0 - 40
src/xt_pages/stock/drugs/components/drugInOrder.vue Voir le fichier

73
       </div>
73
       </div>
74
     </div>
74
     </div>
75
 
75
 
76
-    
77
-
78
-    <!-- <div class="cell clearfix">
79
-      <label class="title"><span class="name">单据类型</span> : </label>
80
-      <el-select
81
-        size="small"
82
-        v-model="order_type"
83
-        clearable
84
-        placeholder="单据类型"
85
-        @change="changeType"
86
-      >
87
-        <el-option
88
-          v-for="item in orderTypeArr"
89
-          :key="item.value"
90
-          :label="item.label"
91
-          :value="item.value"
92
-        >
93
-        </el-option>
94
-      </el-select>
95
-    </div> -->
96
-
97
-    <!-- <div class="cell clearfix">
98
-      <label class="title"><span class="name">其它</span> : </label>
99
-      <el-select
100
-        size="small"
101
-        v-model="manufacturer_id"
102
-        clearable
103
-        placeholder="厂商"
104
-        @change="changeManufacturer"
105
-      >
106
-        <el-option
107
-          v-for="item in manufacturer"
108
-          :key="item.id"
109
-          :label="item.manufacturer_name"
110
-          :value="item.id"
111
-        >
112
-        </el-option>
113
-      </el-select>
114
-    </div> -->
115
-
116
     <el-row :gutter="12" style="margin-top: 10px">
76
     <el-row :gutter="12" style="margin-top: 10px">
117
       <el-table
77
       <el-table
118
         :data="cancelStockDate"
78
         :data="cancelStockDate"

+ 15 - 36
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Voir le fichier

26
 
26
 
27
     <div class="app-container">
27
     <div class="app-container">
28
   
28
   
29
-
30
-      <!-- <drugs-stock-dialog
31
-        ref="dialog" :propForm="propForm"
32
-        :visibility="isVisibility"
33
-        v-on:dialog-comfirm="comfirm"
34
-        v-on:dialog-cancle="cancle"
35
-      ></drugs-stock-dialog> -->
36
-
37
-
38
       <div class="cell clearfix">
29
       <div class="cell clearfix">
39
         <label class="title"><span class="name">出库时间</span> : </label>
30
         <label class="title"><span class="name">出库时间</span> : </label>
40
         <el-date-picker
31
         <el-date-picker
54
     
45
     
55
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
46
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
56
         <el-table
47
         <el-table
48
+           v-loading="listLoading"
57
           :data="recordInfo.recordData"
49
           :data="recordInfo.recordData"
58
           :class="signAndWeighBoxPatients"
50
           :class="signAndWeighBoxPatients"
59
           style="width: 100%"
51
           style="width: 100%"
116
               </el-form-item>
108
               </el-form-item>
117
             </template>
109
             </template>
118
           </el-table-column>
110
           </el-table-column>
119
-          <!-- <el-table-column align="center" width="150">
120
-            <template slot="header" slot-scope="scope" >
121
-                  <span>批号</span>
122
-              </template>
123
-                <template slot-scope="scope">
124
-                  <el-form-item style="padding-top: 20px">
125
-                    <el-select v-model="scope.row.batch_number" filterable placeholder="请选择" @change="changeBatchNumber(scope.row)">
126
-                      <el-option
127
-                        v-for="(item,index) in numberList"
128
-                        :key="index"
129
-                        :label="item.batch_number"
130
-                        :value="item.id">
131
-                      </el-option>
132
-                    </el-select>
133
-                  </el-form-item>
134
-              </template>
135
-          </el-table-column> -->
111
+          
136
           <el-table-column width="200" align="center">
112
           <el-table-column width="200" align="center">
137
             <template slot="header" slot-scope="scope">
113
             <template slot="header" slot-scope="scope">
138
               <span>出库数量<span style="color: red">*</span></span>
114
               <span>出库数量<span style="color: red">*</span></span>
368
       drugTypeList:[],
344
       drugTypeList:[],
369
       totalPrice:0,
345
       totalPrice:0,
370
       unitList:[],
346
       unitList:[],
371
-      numberList:[]
347
+      numberList:[],
348
+      listLoading: false,
372
     };
349
     };
373
   },
350
   },
374
   methods: {
351
   methods: {
575
           const params = {
552
           const params = {
576
             stockOut: this.recordInfo.recordData
553
             stockOut: this.recordInfo.recordData
577
           };
554
           };
578
-          console.log("params222222",params)
579
-        
555
+          const loading = this.$loading({
556
+            lock: true,
557
+            text: 'Loading',
558
+            spinner: 'el-icon-loading',
559
+            background: 'rgba(0, 0, 0, 0.7)'
560
+          })
580
           postDrugWarehouseOut(
561
           postDrugWarehouseOut(
581
             params,
562
             params,
582
             this.warehouse_out_time,
563
             this.warehouse_out_time,
586
           ).then(response => {
567
           ).then(response => {
587
             if (response.data.state == 0) {
568
             if (response.data.state == 0) {
588
               this.$message.error("库存不足");
569
               this.$message.error("库存不足");
570
+              loading.close()
589
               return false;
571
               return false;
590
             } else {
572
             } else {
573
+              this.loading = false
574
+              loading.close()
591
               var msg = response.data.data.msg
575
               var msg = response.data.data.msg
592
               var drug_name =  response.data.data.drug_name
576
               var drug_name =  response.data.data.drug_name
593
-              console.log("drug_name",drug_name)
594
               var dose = response.data.data.dose
577
               var dose = response.data.data.dose
595
-              console.log("dose",dose)
596
               var dose_unit = response.data.data.dose_unit
578
               var dose_unit = response.data.data.dose_unit
597
-              console.log("dose_unit",dose_unit)
598
               var min_number = response.data.data.min_number
579
               var min_number = response.data.data.min_number
599
-              console.log("min_number",min_number)
600
               var min_unit =  response.data.data.min_unit
580
               var min_unit =  response.data.data.min_unit
601
-              console.log("min_unit",min_unit)
602
               var max_unit =  response.data.data.max_unit
581
               var max_unit =  response.data.data.max_unit
603
-              console.log("max_unit",max_unit)
604
               var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
582
               var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
605
-              console.log("str22222222",str)
583
+      
606
               if(msg == 1){
584
               if(msg == 1){
607
                 this.$message.error(str + "库存不足")
585
                 this.$message.error(str + "库存不足")
608
               }else{
586
               }else{
587
+                loading.close()
609
                 this.$message.success("出库成功");
588
                 this.$message.success("出库成功");
610
                 this.recordInfo.recordData = [];
589
                 this.recordInfo.recordData = [];
611
                 this.$router.back(-1);
590
                 this.$router.back(-1);

+ 10 - 1
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Voir le fichier

583
                }
583
                }
584
 
584
 
585
             }
585
             }
586
+            const loading = this.$loading({
587
+              lock: true,
588
+              text: 'Loading',
589
+              spinner: 'el-icon-loading',
590
+              background: 'rgba(0, 0, 0, 0.7)'
591
+            })
586
             const params = {
592
             const params = {
587
               'stockOut': this.recordInfo.recordData
593
               'stockOut': this.recordInfo.recordData
588
             }
594
             }
591
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
597
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
592
               if (response.data.state == 0) {
598
               if (response.data.state == 0) {
593
                 this.$message.error(response.data.msg)
599
                 this.$message.error(response.data.msg)
600
+                loading.close()
594
                 return false
601
                 return false
595
               } else {
602
               } else {
596
                 var msg = response.data.data.msg
603
                 var msg = response.data.data.msg
601
                 var min_unit =  response.data.data.min_unit
608
                 var min_unit =  response.data.data.min_unit
602
                 var max_unit =  response.data.data.max_unit
609
                 var max_unit =  response.data.data.max_unit
603
                 var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
610
                 var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
604
-               
611
+               loading.close()  
605
               if(msg == 1){
612
               if(msg == 1){
606
                 this.$message.error(str + "库存不足,请入库")
613
                 this.$message.error(str + "库存不足,请入库")
614
+                loading.close()
607
               }else{
615
               }else{
608
                 this.$message.success("出库成功");
616
                 this.$message.success("出库成功");
609
                 this.recordInfo.recordData = [];
617
                 this.recordInfo.recordData = [];
610
                 this.$router.back(-1);
618
                 this.$router.back(-1);
619
+                loading.close()
611
               }
620
               }
612
               }
621
               }
613
             })
622
             })

+ 8 - 1
src/xt_pages/stock/stockInOrderAdd.vue Voir le fichier

676
                  }
676
                  }
677
               }
677
               }
678
             }
678
             }
679
+            const loading = this.$loading({
680
+              lock: true,
681
+              text: 'Loading',
682
+              spinner: 'el-icon-loading',
683
+              background: 'rgba(0, 0, 0, 0.7)'
684
+            })
679
             const params = {
685
             const params = {
680
               'stockIn': this.recordInfo.recordData
686
               'stockIn': this.recordInfo.recordData
681
             }
687
             }
684
             postWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
690
             postWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
685
               if (response.data.state == 0) {
691
               if (response.data.state == 0) {
686
                 this.$message.error(response.data.msg)
692
                 this.$message.error(response.data.msg)
693
+                loading.close()
687
                 return false
694
                 return false
688
               } else {
695
               } else {
696
+                loading.close()
689
                 this.$message.success('入库成功')
697
                 this.$message.success('入库成功')
690
-
691
                 this.$router.back(-1)
698
                 this.$router.back(-1)
692
               }
699
               }
693
             })
700
             })

+ 8 - 2
src/xt_pages/stock/stockInOrderEdit.vue Voir le fichier

667
             stockIn: this.recordInfo.recordData
667
             stockIn: this.recordInfo.recordData
668
           };
668
           };
669
           console.log("params2222",params)
669
           console.log("params2222",params)
670
-          
670
+          const loading = this.$loading({
671
+            lock: true,
672
+            text: 'Loading',
673
+            spinner: 'el-icon-loading',
674
+            background: 'rgba(0, 0, 0, 0.7)'
675
+          })
671
           EditWarehouse(
676
           EditWarehouse(
672
             params,
677
             params,
673
             this.warehousing_time,
678
             this.warehousing_time,
678
           ).then(response => {
683
           ).then(response => {
679
             if (response.data.state == 0) {
684
             if (response.data.state == 0) {
680
               this.$message.error(response.data.msg);
685
               this.$message.error(response.data.msg);
686
+              loading.close()
681
               return false;
687
               return false;
682
             } else {
688
             } else {
689
+              loading.close()
683
               this.$message.success("入库成功");
690
               this.$message.success("入库成功");
684
-
685
               this.$router.back(-1);
691
               this.$router.back(-1);
686
             }
692
             }
687
           });
693
           });

+ 9 - 2
src/xt_pages/stock/stockOutOrderAdd.vue Voir le fichier

594
           const params = {
594
           const params = {
595
             stockOut: this.recordInfo.recordData
595
             stockOut: this.recordInfo.recordData
596
           };
596
           };
597
- 
597
+          const loading = this.$loading({
598
+            lock: true,
599
+            text: 'Loading',
600
+            spinner: 'el-icon-loading',
601
+            background: 'rgba(0, 0, 0, 0.7)'
602
+          })
598
           postWarehouseOut(
603
           postWarehouseOut(
599
             params,
604
             params,
600
             this.warehouse_out_time,
605
             this.warehouse_out_time,
604
           ).then(response => {
609
           ).then(response => {
605
             if (response.data.state == 0) {
610
             if (response.data.state == 0) {
606
               this.$message.error("库存不足")
611
               this.$message.error("库存不足")
612
+              loading.close()
607
               return false;
613
               return false;
608
             } else {
614
             } else {
609
                var msg = response.data.data.msg
615
                var msg = response.data.data.msg
614
                if(msg == 1){
620
                if(msg == 1){
615
                   this.$message.error(str)
621
                   this.$message.error(str)
616
                }
622
                }
623
+              
617
                if(msg == 2){
624
                if(msg == 2){
618
                  this.$message.success("出库成功");
625
                  this.$message.success("出库成功");
619
                  this.recordInfo.recordData = [];
626
                  this.recordInfo.recordData = [];
620
                  this.$router.back(-1);
627
                  this.$router.back(-1);
621
                }
628
                }
622
-             
629
+               loading.close()
623
              
630
              
624
             }
631
             }
625
           });
632
           });

+ 10 - 2
src/xt_pages/stock/stockOutOrderEdit.vue Voir le fichier

523
         this.$router.go(-1)
523
         this.$router.go(-1)
524
       },
524
       },
525
        submit() {
525
        submit() {
526
+       
526
         this.$refs['tableForm'].validate((valid) => {
527
         this.$refs['tableForm'].validate((valid) => {
527
           if (valid) {
528
           if (valid) {
528
             const array = this.recordInfo.recordData
529
             const array = this.recordInfo.recordData
529
-            console.log("2332232323232323",array)
530
             for (let i = 0; i < array.length; i++) {
530
             for (let i = 0; i < array.length; i++) {
531
               if (array[i].good_type_id == 0) {
531
               if (array[i].good_type_id == 0) {
532
                 this.$message.error('商品类型不能为空')
532
                 this.$message.error('商品类型不能为空')
566
                }
566
                }
567
              }
567
              }
568
             }
568
             }
569
+              const loading = this.$loading({
570
+                lock: true,
571
+                text: 'Loading',
572
+                spinner: 'el-icon-loading',
573
+                background: 'rgba(0, 0, 0, 0.7)'
574
+            })
569
             const params = {
575
             const params = {
570
               'warehouse_out_time':this.warehouse_out_time,
576
               'warehouse_out_time':this.warehouse_out_time,
571
               'stockOut': this.recordInfo.recordData,
577
               'stockOut': this.recordInfo.recordData,
577
             editWarehouseoutInfo(params, this.warehouse_out_time, warehout_id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
583
             editWarehouseoutInfo(params, this.warehouse_out_time, warehout_id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
578
               if (response.data.state == 0) {
584
               if (response.data.state == 0) {
579
                 this.$message.error(response.data.msg)
585
                 this.$message.error(response.data.msg)
586
+                loading.close()
580
                 return false
587
                 return false
581
               } else {
588
               } else {
582
                 if(response.data.data.msg == 1){
589
                 if(response.data.data.msg == 1){
583
                   this.$message.success('保存成功')
590
                   this.$message.success('保存成功')
584
                   this.$router.back(-1)
591
                   this.$router.back(-1)
592
+                   loading.close()
585
                 }
593
                 }
586
 
594
 
587
                 if(response.data.data.msg == 5){
595
                 if(response.data.data.msg == 5){
600
                 if(response.data.data.msg == 6){
608
                 if(response.data.data.msg == 6){
601
                   this.$message.error("该耗材的退库数量大于入库数量,无法出库,请新增出库另一个批次")
609
                   this.$message.error("该耗材的退库数量大于入库数量,无法出库,请新增出库另一个批次")
602
                 }
610
                 }
603
-                
611
+                loading.close()
604
               }
612
               }
605
             })
613
             })
606
           } else {
614
           } else {

+ 2 - 1
src/xt_pages/user/components/PatientDetail.vue Voir le fichier

955
               <div class="proj">
955
               <div class="proj">
956
                 <span class="proj_title">日期:</span>
956
                 <span class="proj_title">日期:</span>
957
                 <!-- {{ getTime(patientPrint.created_time) }} -->
957
                 <!-- {{ getTime(patientPrint.created_time) }} -->
958
-                {{printDate}}
958
+                <span v-if="org_id ==3907 || org_id == 9671">{{ getTime(patientPrint.created_time) }}</span>
959
+                <span v-else>{{printDate}}</span> 
959
               </div>
960
               </div>
960
               <div class="proj"><span class="proj_title">医生签名:</span></div>
961
               <div class="proj"><span class="proj_title">医生签名:</span></div>
961
             </div>
962
             </div>