|
@@ -466,6 +466,7 @@
|
466
|
466
|
import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
|
467
|
467
|
import { getDataConfig } from '@/utils/data'
|
468
|
468
|
import store from "@/store";
|
|
469
|
+ const moment = require('moment')
|
469
|
470
|
export default {
|
470
|
471
|
components: {
|
471
|
472
|
|
|
@@ -593,6 +594,7 @@
|
593
|
594
|
partition_id:0,
|
594
|
595
|
zoneList:[],
|
595
|
596
|
org_id:0,
|
|
597
|
+
|
596
|
598
|
}
|
597
|
599
|
},
|
598
|
600
|
open(){
|
|
@@ -785,72 +787,155 @@
|
785
|
787
|
partion_type:this.partitionType,
|
786
|
788
|
selected_date:this.query.schedule_date,
|
787
|
789
|
}
|
|
790
|
+
|
|
791
|
+ var timeStamp = Date.parse(this.query.schedule_date)
|
|
792
|
+
|
|
793
|
+ var arrDateOne = (timeStamp/1000) -28800
|
|
794
|
+ console.log("时间搓",arrDateOne)
|
|
795
|
+ let dateone = moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
|
|
796
|
+ //方式一
|
|
797
|
+ let timeStampOne = Date.parse(dateone)
|
|
798
|
+
|
|
799
|
+ var arrDateTwo = (timeStampOne/1000)-28800
|
|
800
|
+
|
|
801
|
+ console.log("时间搓2222",arrDateTwo)
|
|
802
|
+
|
788
|
803
|
getDialysisParameterGoodList(params).then(response=>{
|
789
|
804
|
if(response.data.state == 1){
|
790
|
805
|
this.startdialogVisible = true
|
791
|
806
|
var list = response.data.data.list
|
792
|
807
|
var anticoagulantList = []
|
793
|
|
- if(list!=null && list.length>0){
|
794
|
|
- for(let i=0;i<list.length;i++){
|
795
|
|
- list[i].dialysis_dialyszers_arr = []
|
796
|
|
- list[i].dialyzer_perfusion_apparatus_arr = []
|
797
|
|
- list[i].dialysis_irrigation_arr = []
|
798
|
|
- list[i].dialysis_strainer_arr =[]
|
799
|
|
- if(list[i].dialysis_solution.dialysis_dialyszers!=""){
|
800
|
|
- list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
|
801
|
|
- }
|
802
|
|
- if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
|
803
|
|
- list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
|
804
|
|
- }
|
805
|
|
- if(list[i].dialysis_solution.dialysis_irrigation!=""){
|
806
|
|
- list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
|
807
|
|
- }
|
808
|
|
- if(list[i].dialysis_solution.dialysis_strainer!=""){
|
809
|
|
- list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
|
810
|
|
- }
|
|
808
|
+
|
|
809
|
+ if(arrDateOne > arrDateTwo){
|
|
810
|
+ if(list!=null && list.length>0){
|
|
811
|
+ for(let i=0;i<list.length;i++){
|
|
812
|
+ list[i].dialysis_dialyszers_arr = []
|
|
813
|
+ list[i].dialyzer_perfusion_apparatus_arr = []
|
|
814
|
+ list[i].dialysis_irrigation_arr = []
|
|
815
|
+ list[i].dialysis_strainer_arr =[]
|
|
816
|
+ if(list[i].dialysis_solution.dialysis_dialyszers!=""){
|
|
817
|
+ list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
|
|
818
|
+ }
|
|
819
|
+ if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
|
|
820
|
+ list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
|
|
821
|
+ }
|
|
822
|
+ if(list[i].dialysis_solution.dialysis_irrigation!=""){
|
|
823
|
+ list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
|
|
824
|
+ }
|
|
825
|
+ if(list[i].dialysis_solution.dialysis_strainer!=""){
|
|
826
|
+ list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
|
|
827
|
+ }
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+ if(list[i].dialysis_solution.anticoagulant == 1){
|
|
831
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
832
|
+ }
|
|
833
|
+ if(list[i].dialysis_solution.anticoagulant == 2){
|
|
834
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
835
|
+ }
|
|
836
|
+ if(list[i].dialysis_solution.anticoagulant == 3){
|
|
837
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
838
|
+ }
|
|
839
|
+ if(list[i].dialysis_solution.anticoagulant == 4){
|
|
840
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
841
|
+ }
|
|
842
|
+ if(list[i].dialysis_solution.anticoagulant == 5){
|
|
843
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
844
|
+ }
|
|
845
|
+ if(list[i].dialysis_solution.anticoagulant == 6){
|
|
846
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
847
|
+ }
|
|
848
|
+ if(list[i].dialysis_solution.anticoagulant == 7){
|
|
849
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
850
|
+ }
|
|
851
|
+ if(list[i].dialysis_solution.anticoagulant == 8){
|
|
852
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
853
|
+ }
|
|
854
|
+ if(list[i].dialysis_solution.anticoagulant == 9){
|
|
855
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
856
|
+ }
|
|
857
|
+ if(list[i].dialysis_solution.anticoagulant == 10){
|
|
858
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
859
|
+ }
|
|
860
|
+ if(list[i].dialysis_solution.anticoagulant == 11){
|
|
861
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
862
|
+ }
|
|
863
|
+ if(list[i].dialysis_solution.anticoagulant == 12){
|
|
864
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
865
|
+ }
|
|
866
|
+ if(list[i].dialysis_solution.anticoagulant == 13){
|
|
867
|
+ anticoagulantList.push(list[i].dialysis_solution)
|
|
868
|
+ }
|
|
869
|
+ }
|
|
870
|
+ }
|
|
871
|
+ }
|
811
|
872
|
|
812
|
|
-
|
813
|
|
- if(list[i].dialysis_solution.anticoagulant == 1){
|
814
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
815
|
|
- }
|
816
|
|
- if(list[i].dialysis_solution.anticoagulant == 2){
|
817
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
818
|
|
- }
|
819
|
|
- if(list[i].dialysis_solution.anticoagulant == 3){
|
820
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
821
|
|
- }
|
822
|
|
- if(list[i].dialysis_solution.anticoagulant == 4){
|
823
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
824
|
|
- }
|
825
|
|
- if(list[i].dialysis_solution.anticoagulant == 5){
|
826
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
827
|
|
- }
|
828
|
|
- if(list[i].dialysis_solution.anticoagulant == 6){
|
829
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
830
|
|
- }
|
831
|
|
- if(list[i].dialysis_solution.anticoagulant == 7){
|
832
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
833
|
|
- }
|
834
|
|
- if(list[i].dialysis_solution.anticoagulant == 8){
|
835
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
836
|
|
- }
|
837
|
|
- if(list[i].dialysis_solution.anticoagulant == 9){
|
838
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
839
|
|
- }
|
840
|
|
- if(list[i].dialysis_solution.anticoagulant == 10){
|
841
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
842
|
|
- }
|
843
|
|
- if(list[i].dialysis_solution.anticoagulant == 11){
|
844
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
845
|
|
- }
|
846
|
|
- if(list[i].dialysis_solution.anticoagulant == 12){
|
847
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
848
|
|
- }
|
849
|
|
- if(list[i].dialysis_solution.anticoagulant == 13){
|
850
|
|
- anticoagulantList.push(list[i].dialysis_solution)
|
851
|
|
- }
|
|
873
|
+ if(arrDateOne <= arrDateTwo){
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+ if(list!=null && list.length>0){
|
|
877
|
+ for(let i=0;i<list.length;i++){
|
|
878
|
+ list[i].dialysis_dialyszers_arr = []
|
|
879
|
+ list[i].dialyzer_perfusion_apparatus_arr = []
|
|
880
|
+ list[i].dialysis_irrigation_arr = []
|
|
881
|
+ list[i].dialysis_strainer_arr =[]
|
|
882
|
+ if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
|
|
883
|
+ list[i].dialysis_dialyszers_arr = list[i].dialysis_prescription.dialysis_dialyszers.split(",")
|
|
884
|
+ }
|
|
885
|
+ if(list[i].dialysis_prescription.dialyzer_perfusion_apparatus!=""){
|
|
886
|
+ list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_prescription.dialyzer_perfusion_apparatus.split(",")
|
|
887
|
+ }
|
|
888
|
+ if(list[i].dialysis_prescription.dialysis_irrigation!=""){
|
|
889
|
+ list[i].dialysis_irrigation_arr = list[i].dialysis_prescription.dialysis_irrigation.split(",")
|
|
890
|
+ }
|
|
891
|
+ if(list[i].dialysis_prescription.dialysis_strainer!=""){
|
|
892
|
+ list[i].dialysis_strainer_arr = list[i].dialysis_prescription.dialysis_strainer.split(",")
|
|
893
|
+ }
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+ if(list[i].dialysis_prescription.anticoagulant == 1){
|
|
897
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
898
|
+ }
|
|
899
|
+ if(list[i].dialysis_prescription.anticoagulant == 2){
|
|
900
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
901
|
+ }
|
|
902
|
+ if(list[i].dialysis_prescription.anticoagulant == 3){
|
|
903
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
904
|
+ }
|
|
905
|
+ if(list[i].dialysis_prescription.anticoagulant == 4){
|
|
906
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
907
|
+ }
|
|
908
|
+ if(list[i].dialysis_prescription.anticoagulant == 5){
|
|
909
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
910
|
+ }
|
|
911
|
+ if(list[i].dialysis_prescription.anticoagulant == 6){
|
|
912
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
913
|
+ }
|
|
914
|
+ if(list[i].dialysis_prescription.anticoagulant == 7){
|
|
915
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
916
|
+ }
|
|
917
|
+ if(list[i].dialysis_prescription.anticoagulant == 8){
|
|
918
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
919
|
+ }
|
|
920
|
+ if(list[i].dialysis_prescription.anticoagulant == 9){
|
|
921
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
922
|
+ }
|
|
923
|
+ if(list[i].dialysis_prescription.anticoagulant == 10){
|
|
924
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
925
|
+ }
|
|
926
|
+ if(list[i].dialysis_prescription.anticoagulant == 11){
|
|
927
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
928
|
+ }
|
|
929
|
+ if(list[i].dialysis_prescription.anticoagulant == 12){
|
|
930
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
931
|
+ }
|
|
932
|
+ if(list[i].dialysis_prescription.anticoagulant == 13){
|
|
933
|
+ anticoagulantList.push(list[i].dialysis_prescription)
|
|
934
|
+ }
|
|
935
|
+ }
|
852
|
936
|
}
|
853
|
937
|
}
|
|
938
|
+
|
854
|
939
|
console.log("anticoagulantList",anticoagulantList)
|
855
|
940
|
this.tableList = []
|
856
|
941
|
if(anticoagulantList!=null && anticoagulantList.length > 0){
|