|
@@ -3601,7 +3601,9 @@
|
|
|
time: this.report.time
|
|
|
}
|
|
|
if(this.user.timeType.type == 1) {
|
|
|
- this.workForm.domains[0].workingTime = this.user.timeType.allday+'.0'
|
|
|
+ var shuzhi = this.user.timeType.allday + ''
|
|
|
+ console.log('执行一次', shuzhi.indexOf('.'))
|
|
|
+ this.workForm.domains[0].workingTime = shuzhi.indexOf('.') == '-1' ? shuzhi + '.0' : shuzhi
|
|
|
}
|
|
|
if (this.timeBasecostList && this.timeBasecostList.length > 0) {
|
|
|
//默认给第一个,必填字段
|
|
@@ -3685,7 +3687,9 @@
|
|
|
}],
|
|
|
}
|
|
|
if(this.user.timeType.type == 1) {
|
|
|
- this.workForm.domains[0].workingTime = this.user.timeType.allday+'.0'
|
|
|
+ var shuzhi = this.user.timeType.allday + ''
|
|
|
+ console.log('执行二次')
|
|
|
+ this.workForm.domains[0].workingTime = shuzhi.indexOf('.') == '-1' ? shuzhi + '.0' : shuzhi
|
|
|
}
|
|
|
// console.log(this.workForm)
|
|
|
if (this.timeBasecostList&&this.timeBasecostList.length>0) {
|
|
@@ -3795,7 +3799,7 @@
|
|
|
const millisecond = 1000 * 60 * 60 * 24
|
|
|
const minusDay = week != 0 ? week - 1 : 4
|
|
|
const monday = new Date(currentDate.getTime() - minusDay * millisecond)
|
|
|
- const sunday = new Date(monday.getTime() + 4 * millisecond)
|
|
|
+ const sunday = new Date()
|
|
|
var stat = this.dealdate(monday)
|
|
|
var end = this.dealdate(sunday)
|
|
|
this.zhoRqi = [stat, end]
|
|
@@ -3873,7 +3877,15 @@
|
|
|
// 新增日期
|
|
|
newDates() {
|
|
|
// console.log(this.zhoRqi, '看卡')
|
|
|
+ let edate = new Date(this.zhoRqi[1])
|
|
|
+ let nowdate = new Date()
|
|
|
+ let nowdate2 = new Date(nowdate.getFullYear(),nowdate.getMonth(),nowdate.getDate())
|
|
|
+ if(edate >= nowdate2){
|
|
|
+ return
|
|
|
+ }
|
|
|
this.zhoRqi[1] = this.dateChange(1, this.zhoRqi[1])
|
|
|
+
|
|
|
+ console.log(this.zhoRqi[1]);
|
|
|
// console.log(this.zhoRqi[1])
|
|
|
var obj = {}
|
|
|
obj.zhoDataTime = this.zhoRqi[1]
|
|
@@ -4027,6 +4039,15 @@
|
|
|
}
|
|
|
},
|
|
|
zhoRqis() {
|
|
|
+ let nowdate = new Date()
|
|
|
+ let nowdate2 = new Date(nowdate.getFullYear(),nowdate.getMonth(),nowdate.getDate())
|
|
|
+ let edate = new Date(this.zhoRqi[1])
|
|
|
+ if(edate >= nowdate2){
|
|
|
+ let emon = nowdate2.getMonth() + 1
|
|
|
+ let eday = nowdate2.getDate()
|
|
|
+ let edate2 = nowdate2.getFullYear() + '-' + (emon < 10 ? '0' + emon : emon) + '-' + (eday < 10 ? '0' + eday : eday)
|
|
|
+ this.zhoRqi[1] = edate2
|
|
|
+ }
|
|
|
this.zhoData = []
|
|
|
if(this.zhoRqi) {
|
|
|
var stime = this.zhoRqi[0]
|