|
@@ -533,10 +533,10 @@ export default {
|
533
|
533
|
dafault: []
|
534
|
534
|
},
|
535
|
535
|
// 分区
|
536
|
|
- partitionsProp: {
|
537
|
|
- type: Object,
|
538
|
|
- dafault: {}
|
539
|
|
- },
|
|
536
|
+ // partitionsProp: {
|
|
537
|
+ // type: Object,
|
|
538
|
+ // dafault: {}
|
|
539
|
+ // },
|
540
|
540
|
config: {
|
541
|
541
|
type: Object,
|
542
|
542
|
dafault: {}
|
|
@@ -791,7 +791,7 @@ export default {
|
791
|
791
|
rowNumber = 0;
|
792
|
792
|
this.modeOptions = this.$store.getters.treatment_mode;
|
793
|
793
|
|
794
|
|
- this.partitions = this.partitionsProp;
|
|
794
|
+ // this.partitions = this.partitionsProp;
|
795
|
795
|
|
796
|
796
|
|
797
|
797
|
var contagions = this.$store.getters.contagions;
|
|
@@ -2792,15 +2792,15 @@ export default {
|
2792
|
2792
|
var strArr = this.zoneIdList.join(",")
|
2793
|
2793
|
|
2794
|
2794
|
this.strArr = strArr
|
2795
|
|
- this.getWeekPanels()
|
2796
|
|
- this.getgetSchedules()
|
|
2795
|
+ this.getWeekPanels()
|
|
2796
|
+ // this.getgetSchedules()
|
2797
|
2797
|
}
|
2798
|
2798
|
})
|
2799
|
2799
|
},
|
2800
|
2800
|
changePartiton(val) {
|
2801
|
2801
|
this.$emit('event1', val)
|
2802
|
2802
|
this.partition_id = val
|
2803
|
|
- this.getWeekPanels()
|
|
2803
|
+ // this.getWeekPanels()
|
2804
|
2804
|
|
2805
|
2805
|
this.getgetSchedules()
|
2806
|
2806
|
},
|
|
@@ -2832,9 +2832,285 @@ export default {
|
2832
|
2832
|
this.end_time = this.getTime(end)
|
2833
|
2833
|
console.log('44444',this.start_time)
|
2834
|
2834
|
console.log('555555',this.end_time )
|
2835
|
|
- this.getgetSchedules()
|
|
2835
|
+ this.getWeekPanels()
|
2836
|
2836
|
},
|
2837
|
|
- getgetSchedules(){
|
|
2837
|
+
|
|
2838
|
+ // 表格所有数据
|
|
2839
|
+ getWeekPanels() {
|
|
2840
|
+ console.log("触发232332323232")
|
|
2841
|
+ this.scheduleZone=[]
|
|
2842
|
+ var partionStr = this.partition_id
|
|
2843
|
+ var arr = this.zoneIdList.join(',')
|
|
2844
|
+
|
|
2845
|
+ var str = ""
|
|
2846
|
+ if(partionStr == 0){
|
|
2847
|
+ str = arr
|
|
2848
|
+ }
|
|
2849
|
+ if(partionStr != 0){
|
|
2850
|
+ str = partionStr.join(',')
|
|
2851
|
+ }
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+ getWeekPanelsOne(1,str).then(response => {
|
|
2855
|
+ if (response.data.state == 0) {
|
|
2856
|
+ return false
|
|
2857
|
+ }
|
|
2858
|
+ var partitions = response.data.data.partitions
|
|
2859
|
+ console.log("partitions",partitions)
|
|
2860
|
+ this.theWeek.thisWeek = response.data.data.theWeek
|
|
2861
|
+
|
|
2862
|
+ this.theWeek.lastWeek = this.theWeek.thisWeek - 1
|
|
2863
|
+ this.theWeek.nextWeek = this.theWeek.thisWeek + 1
|
|
2864
|
+ this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
|
|
2865
|
+ var that = this
|
|
2866
|
+ if (partitions.length > 0) {
|
|
2867
|
+ partitions.forEach(function(partition) {
|
|
2868
|
+ if (partition.jihaos.length == 0) {
|
|
2869
|
+ return false
|
|
2870
|
+ }
|
|
2871
|
+ that.scheduleZoneRow.push(partition.jihaos.length)
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+ that.partitions[partition.id] = partition
|
|
2875
|
+
|
|
2876
|
+ partition.jihaos.forEach(function(jihao) {
|
|
2877
|
+ var thisPa = {
|
|
2878
|
+ area: partition.name,
|
|
2879
|
+ zone_id: partition.id,
|
|
2880
|
+ zone_type: partition.type,
|
|
2881
|
+ cut: jihao.number,
|
|
2882
|
+ jihao_id: jihao.id,
|
|
2883
|
+ sort:jihao.sort,
|
|
2884
|
+
|
|
2885
|
+ Mon_M: {
|
|
2886
|
+ schedule_id: 0,
|
|
2887
|
+ mode_id: 0,
|
|
2888
|
+ mode_name: '',
|
|
2889
|
+ patient_id: 0,
|
|
2890
|
+ patient: '',
|
|
2891
|
+ dialysis_machine_name:'',
|
|
2892
|
+ schedule_date:"",
|
|
2893
|
+ Count:0,
|
|
2894
|
+ },
|
|
2895
|
+ Mon_A: {
|
|
2896
|
+ schedule_id: 0,
|
|
2897
|
+ mode_id: 0,
|
|
2898
|
+ mode_name: '',
|
|
2899
|
+ patient_id: 0,
|
|
2900
|
+ patient: '',
|
|
2901
|
+ dialysis_machine_name:'',
|
|
2902
|
+ schedule_date:"",
|
|
2903
|
+ Count:0,
|
|
2904
|
+ },
|
|
2905
|
+ Mon_N: {
|
|
2906
|
+ schedule_id: 0,
|
|
2907
|
+ mode_id: 0,
|
|
2908
|
+ mode_name: '',
|
|
2909
|
+ patient_id: 0,
|
|
2910
|
+ patient: '',
|
|
2911
|
+ dialysis_machine_name:'',
|
|
2912
|
+ schedule_date:"",
|
|
2913
|
+ Count:0,
|
|
2914
|
+ },
|
|
2915
|
+ Tue_M: {
|
|
2916
|
+ schedule_id: 0,
|
|
2917
|
+ mode_id: 0,
|
|
2918
|
+ mode_name: '',
|
|
2919
|
+ patient_id: 0,
|
|
2920
|
+ patient: '',
|
|
2921
|
+ dialysis_machine_name:'',
|
|
2922
|
+ schedule_date:"",
|
|
2923
|
+ Count:0,
|
|
2924
|
+ },
|
|
2925
|
+ Tue_A: {
|
|
2926
|
+ schedule_id: 0,
|
|
2927
|
+ mode_id: 0,
|
|
2928
|
+ mode_name: '',
|
|
2929
|
+ patient_id: 0,
|
|
2930
|
+ patient: '',
|
|
2931
|
+ dialysis_machine_name:'',
|
|
2932
|
+ schedule_date:"",
|
|
2933
|
+ Count:0,
|
|
2934
|
+ },
|
|
2935
|
+ Tue_N: {
|
|
2936
|
+ schedule_id: 0,
|
|
2937
|
+ mode_id: 0,
|
|
2938
|
+ mode_name: '',
|
|
2939
|
+ patient_id: 0,
|
|
2940
|
+ patient: '',
|
|
2941
|
+ dialysis_machine_name:'',
|
|
2942
|
+ schedule_date:"",
|
|
2943
|
+ Count:0,
|
|
2944
|
+ },
|
|
2945
|
+ Wed_M: {
|
|
2946
|
+ schedule_id: 0,
|
|
2947
|
+ mode_id: 0,
|
|
2948
|
+ mode_name: '',
|
|
2949
|
+ patient_id: 0,
|
|
2950
|
+ patient: '',
|
|
2951
|
+ dialysis_machine_name:'',
|
|
2952
|
+ schedule_date:"",
|
|
2953
|
+ Count:0,
|
|
2954
|
+ },
|
|
2955
|
+ Wed_A: {
|
|
2956
|
+ schedule_id: 0,
|
|
2957
|
+ mode_id: 0,
|
|
2958
|
+ mode_name: '',
|
|
2959
|
+ patient_id: 0,
|
|
2960
|
+ patient: '',
|
|
2961
|
+ dialysis_machine_name:'',
|
|
2962
|
+ schedule_date:"",
|
|
2963
|
+ Count:0,
|
|
2964
|
+ },
|
|
2965
|
+ Wed_N: {
|
|
2966
|
+ schedule_id: 0,
|
|
2967
|
+ mode_id: 0,
|
|
2968
|
+ mode_name: '',
|
|
2969
|
+ patient_id: 0,
|
|
2970
|
+ patient: '',
|
|
2971
|
+ dialysis_machine_name:'',
|
|
2972
|
+ schedule_date:"",
|
|
2973
|
+ Count:0,
|
|
2974
|
+ },
|
|
2975
|
+ Thurs_M: {
|
|
2976
|
+ schedule_id: 0,
|
|
2977
|
+ mode_id: 0,
|
|
2978
|
+ mode_name: '',
|
|
2979
|
+ patient_id: 0,
|
|
2980
|
+ patient: '',
|
|
2981
|
+ dialysis_machine_name:'',
|
|
2982
|
+ schedule_date:"",
|
|
2983
|
+ Count:0,
|
|
2984
|
+ },
|
|
2985
|
+ Thurs_A: {
|
|
2986
|
+ schedule_id: 0,
|
|
2987
|
+ mode_id: 0,
|
|
2988
|
+ mode_name: '',
|
|
2989
|
+ patient_id: 0,
|
|
2990
|
+ patient: '',
|
|
2991
|
+ dialysis_machine_name:'',
|
|
2992
|
+ schedule_date:"",
|
|
2993
|
+ Count:0,
|
|
2994
|
+ },
|
|
2995
|
+ Thurs_N: {
|
|
2996
|
+ schedule_id: 0,
|
|
2997
|
+ mode_id: 0,
|
|
2998
|
+ mode_name: '',
|
|
2999
|
+ patient_id: 0,
|
|
3000
|
+ patient: '',
|
|
3001
|
+ dialysis_machine_name:'',
|
|
3002
|
+ schedule_date:"",
|
|
3003
|
+ Count:0,
|
|
3004
|
+ },
|
|
3005
|
+ Fri_M: {
|
|
3006
|
+ schedule_id: 0,
|
|
3007
|
+ mode_id: 0,
|
|
3008
|
+ mode_name: '',
|
|
3009
|
+ patient_id: 0,
|
|
3010
|
+ patient: '',
|
|
3011
|
+ dialysis_machine_name:'',
|
|
3012
|
+ schedule_date:"",
|
|
3013
|
+ Count:0,
|
|
3014
|
+ },
|
|
3015
|
+ Fri_A: {
|
|
3016
|
+ schedule_id: 0,
|
|
3017
|
+ mode_id: 0,
|
|
3018
|
+ mode_name: '',
|
|
3019
|
+ patient_id: 0,
|
|
3020
|
+ patient: '',
|
|
3021
|
+ dialysis_machine_name:'',
|
|
3022
|
+ schedule_date:"",
|
|
3023
|
+ Count:0,
|
|
3024
|
+ },
|
|
3025
|
+ Fri_N: {
|
|
3026
|
+ schedule_id: 0,
|
|
3027
|
+ mode_id: 0,
|
|
3028
|
+ mode_name: '',
|
|
3029
|
+ patient_id: 0,
|
|
3030
|
+ patient: '',
|
|
3031
|
+ dialysis_machine_name:'',
|
|
3032
|
+ schedule_date:"",
|
|
3033
|
+ Count:0,
|
|
3034
|
+ },
|
|
3035
|
+ Sat_M: {
|
|
3036
|
+ schedule_id: 0,
|
|
3037
|
+ mode_id: 0,
|
|
3038
|
+ mode_name: '',
|
|
3039
|
+ patient_id: 0,
|
|
3040
|
+ patient: '',
|
|
3041
|
+ dialysis_machine_name:'',
|
|
3042
|
+ schedule_date:"",
|
|
3043
|
+ Count:0,
|
|
3044
|
+ },
|
|
3045
|
+ Sat_A: {
|
|
3046
|
+ schedule_id: 0,
|
|
3047
|
+ mode_id: 0,
|
|
3048
|
+ mode_name: '',
|
|
3049
|
+ patient_id: 0,
|
|
3050
|
+ patient: '',
|
|
3051
|
+ dialysis_machine_name:'',
|
|
3052
|
+ schedule_date:"",
|
|
3053
|
+ Count:0,
|
|
3054
|
+ },
|
|
3055
|
+ Sat_N: {
|
|
3056
|
+ schedule_id: 0,
|
|
3057
|
+ mode_id: 0,
|
|
3058
|
+ mode_name: '',
|
|
3059
|
+ patient_id: 0,
|
|
3060
|
+ patient: '',
|
|
3061
|
+ dialysis_machine_name:'',
|
|
3062
|
+ schedule_date:"",
|
|
3063
|
+ Count:0,
|
|
3064
|
+ },
|
|
3065
|
+ Sun_A: {
|
|
3066
|
+ schedule_id: 0,
|
|
3067
|
+ mode_id: 0,
|
|
3068
|
+ mode_name: '',
|
|
3069
|
+ patient_id: 0,
|
|
3070
|
+ patient: '',
|
|
3071
|
+ dialysis_machine_name:'',
|
|
3072
|
+ schedule_date:"",
|
|
3073
|
+ Count:0,
|
|
3074
|
+ },
|
|
3075
|
+ Sun_N: {
|
|
3076
|
+ schedule_id: 0,
|
|
3077
|
+ mode_id: 0,
|
|
3078
|
+ mode_name: '',
|
|
3079
|
+ patient_id: 0,
|
|
3080
|
+ patient: '',
|
|
3081
|
+ dialysis_machine_name:'',
|
|
3082
|
+ schedule_date:"",
|
|
3083
|
+ Count:0,
|
|
3084
|
+ },
|
|
3085
|
+ Sun_M: {
|
|
3086
|
+ schedule_id: 0,
|
|
3087
|
+ mode_id: 0,
|
|
3088
|
+ mode_name: '',
|
|
3089
|
+ patient_id: 0,
|
|
3090
|
+ patient: '',
|
|
3091
|
+ dialysis_machine_name:'',
|
|
3092
|
+ schedule_date:"",
|
|
3093
|
+ Count:0,
|
|
3094
|
+ },
|
|
3095
|
+ total: 0
|
|
3096
|
+ }
|
|
3097
|
+
|
|
3098
|
+ that.scheduleZone.push(thisPa)
|
|
3099
|
+
|
|
3100
|
+ })
|
|
3101
|
+ })
|
|
3102
|
+ }
|
|
3103
|
+ console.log("9wwoowowowowowowowo",that.scheduleZone)
|
|
3104
|
+ console.log("历史上午鹅鹅鹅饿",this.scheduleZone)
|
|
3105
|
+ this.scheduleZone.sort(this.compare('sort'))
|
|
3106
|
+ this.source_scheduleZone = this.scheduleZone
|
|
3107
|
+ this.getSchedules()
|
|
3108
|
+
|
|
3109
|
+ })
|
|
3110
|
+ },
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+ getSchedules(){
|
2838
|
3114
|
var partionStr = this.partition_id
|
2839
|
3115
|
var arr = this.zoneIdList.join(',')
|
2840
|
3116
|
var str = ""
|
|
@@ -2846,10 +3122,10 @@ export default {
|
2846
|
3122
|
}
|
2847
|
3123
|
const params = {
|
2848
|
3124
|
is_before:1,
|
2849
|
|
- // start_time: this.start_time + " 00:00:00",
|
2850
|
|
- // end_time:this.end_time + ' 23:59:59',
|
2851
|
|
- start_time: '2023-03-20' + " 00:00:00",
|
2852
|
|
- end_time:'2023-03-26' + ' 23:59:59',
|
|
3125
|
+ start_time: this.start_time + " 00:00:00",
|
|
3126
|
+ end_time:this.end_time + ' 23:59:59',
|
|
3127
|
+ // start_time: "2023-03-20" + " 00:00:00",
|
|
3128
|
+ // end_time:"2023-03-26" + "23:59:59",
|
2853
|
3129
|
weekTime: this.theType,
|
2854
|
3130
|
patitionid: str,
|
2855
|
3131
|
schedule_type: this.schedule_type,
|
|
@@ -2864,11 +3140,11 @@ export default {
|
2864
|
3140
|
var theSchedules = response.data.data.schdules;
|
2865
|
3141
|
var schedulesGroup = response.data.data.schedulesGroup
|
2866
|
3142
|
this.schedulesGroup = schedulesGroup
|
2867
|
|
-
|
|
3143
|
+
|
2868
|
3144
|
var that = this;
|
2869
|
|
-
|
2870
|
|
- this.scheduleZone.forEach(function (zone, index) {
|
2871
|
|
-
|
|
3145
|
+ console.log("历史周2332222😯o-----------",response.data.data.schdules)
|
|
3146
|
+ this.scheduleZone.forEach(function (zone, index) {
|
|
3147
|
+ console.log("之心3222222222222222222")
|
2872
|
3148
|
that.scheduleZone[index].Mon_M = {
|
2873
|
3149
|
mode_id: 0,
|
2874
|
3150
|
mode_name: "",
|
|
@@ -3059,12 +3335,13 @@ export default {
|
3059
|
3335
|
schedule_date: "",
|
3060
|
3336
|
Count: 0,
|
3061
|
3337
|
};
|
3062
|
|
-
|
|
3338
|
+ console.log("response.data.data.schdules++++++++",response.data.data)
|
3063
|
3339
|
that.scheduleZone[index].total = 0;
|
3064
|
|
-
|
|
3340
|
+ console.log("response.data.data.schdules-----",response.data.data.schdules)
|
|
3341
|
+
|
3065
|
3342
|
if (response.data.data.schdules.length > 0) {
|
3066
|
3343
|
theSchedules.forEach(function (schedule, sindex) {
|
3067
|
|
-
|
|
3344
|
+
|
3068
|
3345
|
if (zone.jihao_id == schedule.bed_id) {
|
3069
|
3346
|
|
3070
|
3347
|
var weekPath = that.weekPath(
|