|
@@ -603,13 +603,13 @@
|
603
|
603
|
radio:'',
|
604
|
604
|
|
605
|
605
|
|
606
|
|
- xcg_date:'',
|
607
|
|
- gkwz_date:'',
|
608
|
|
- tdx_date:'',
|
609
|
|
- shjc_date:'',
|
610
|
|
- yyyyz_date:'',
|
611
|
|
- crbxzb_date:'',
|
612
|
|
- jh_date:'',
|
|
606
|
+ xcg_date:[],
|
|
607
|
+ gkwz_date:[],
|
|
608
|
+ tdx_date:[],
|
|
609
|
+ shjc_date:[],
|
|
610
|
+ yyyyz_date:[],
|
|
611
|
+ crbxzb_date:[],
|
|
612
|
+ jh_date:[],
|
613
|
613
|
|
614
|
614
|
|
615
|
615
|
|
|
@@ -690,6 +690,16 @@
|
690
|
690
|
}
|
691
|
691
|
},
|
692
|
692
|
created() {
|
|
693
|
+ var start_time = new Date(this.getQuarterStartDate().replace(/-/g, '/')).getTime()
|
|
694
|
+ var end_time = new Date(this.getQuarterEndDate().replace(/-/g, '/')).getTime()
|
|
695
|
+ this.xcg_date.push(start_time,end_time)
|
|
696
|
+ this.gkwz_date.push(start_time,end_time)
|
|
697
|
+ this.tdx_date.push(start_time,end_time)
|
|
698
|
+ this.shjc_date.push(start_time,end_time)
|
|
699
|
+ this.yyyyz_date.push(start_time,end_time)
|
|
700
|
+ this.crbxzb_date.push(start_time,end_time)
|
|
701
|
+ this.jh_date.push(start_time,end_time)
|
|
702
|
+
|
693
|
703
|
},
|
694
|
704
|
methods: {
|
695
|
705
|
GetInitInspections(){
|
|
@@ -716,6 +726,7 @@
|
716
|
726
|
return uParseTime(val, '{y}年{m}月{d}日')
|
717
|
727
|
}, GetUploadInspections(id,start_time,end_time,type,project) {
|
718
|
728
|
this.patient_id = id
|
|
729
|
+
|
719
|
730
|
let params = {
|
720
|
731
|
patient: id,
|
721
|
732
|
project_id: project,
|
|
@@ -967,6 +978,59 @@
|
967
|
978
|
|
968
|
979
|
|
969
|
980
|
|
|
981
|
+ }, getQuarterStartDate: function() {
|
|
982
|
+ var now = new Date() //当前日期
|
|
983
|
+ var nowYear = now.getFullYear() //当前年
|
|
984
|
+ nowYear += (nowYear < 2000) ? 1900 : 0
|
|
985
|
+
|
|
986
|
+ var quarterStartDate = new Date(nowYear, this.getQuarterStartMonth(), 1)
|
|
987
|
+ return this.formatDate(quarterStartDate)
|
|
988
|
+ }, getQuarterEndDate: function() {
|
|
989
|
+ var now = new Date() //当前日期
|
|
990
|
+ var nowYear = now.getFullYear() //当前年
|
|
991
|
+ nowYear += (nowYear < 2000) ? 1900 : 0
|
|
992
|
+ var quarterEndMonth = this.getQuarterStartMonth() + 2
|
|
993
|
+ var quarterStartDate = new Date(nowYear, quarterEndMonth, this.getMonthDays(quarterEndMonth))
|
|
994
|
+ return this.formatDate(quarterStartDate)
|
|
995
|
+ }, formatDate: function(date) {
|
|
996
|
+ var myyear = date.getFullYear()
|
|
997
|
+ var mymonth = date.getMonth() + 1
|
|
998
|
+ var myweekday = date.getDate()
|
|
999
|
+
|
|
1000
|
+ if (mymonth < 10) {
|
|
1001
|
+ mymonth = '0' + mymonth
|
|
1002
|
+ }
|
|
1003
|
+ if (myweekday < 10) {
|
|
1004
|
+ myweekday = '0' + myweekday
|
|
1005
|
+ }
|
|
1006
|
+ return (myyear + '-' + mymonth + '-' + myweekday)
|
|
1007
|
+ }, getQuarterStartMonth: function() {
|
|
1008
|
+ var now = new Date() //当前日期
|
|
1009
|
+ var nowMonth = now.getMonth() //当前月
|
|
1010
|
+
|
|
1011
|
+ var quarterStartMonth = 0
|
|
1012
|
+ if (nowMonth < 3) {
|
|
1013
|
+ quarterStartMonth = 0
|
|
1014
|
+ }
|
|
1015
|
+ if (2 < nowMonth && nowMonth < 6) {
|
|
1016
|
+ quarterStartMonth = 3
|
|
1017
|
+ }
|
|
1018
|
+ if (5 < nowMonth && nowMonth < 9) {
|
|
1019
|
+ quarterStartMonth = 6
|
|
1020
|
+ }
|
|
1021
|
+ if (nowMonth > 8) {
|
|
1022
|
+ quarterStartMonth = 9
|
|
1023
|
+ }
|
|
1024
|
+ return quarterStartMonth
|
|
1025
|
+ }, //获得某月的天数
|
|
1026
|
+ getMonthDays(myMonth) {
|
|
1027
|
+ var now = new Date() //当前日期
|
|
1028
|
+ var nowYear = now.getYear() //当前年
|
|
1029
|
+ nowYear += (nowYear < 2000) ? 1900 : 0
|
|
1030
|
+ var monthStartDate = new Date(nowYear, myMonth, 1)
|
|
1031
|
+ var monthEndDate = new Date(nowYear, myMonth + 1, 1)
|
|
1032
|
+ var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
|
|
1033
|
+ return days
|
970
|
1034
|
}
|
971
|
1035
|
|
972
|
1036
|
}
|
|
@@ -1153,7 +1217,7 @@
|
1153
|
1217
|
}
|
1154
|
1218
|
.copy {
|
1155
|
1219
|
float: left;
|
1156
|
|
- margin-left: 20px;
|
|
1220
|
+ margin-left: 20px !important;
|
1157
|
1221
|
margin-top: 6px;
|
1158
|
1222
|
}
|
1159
|
1223
|
.copy1 {
|