|
@@ -1923,7 +1923,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
test(){
|
|
test(){
|
|
- console.log('test',this.depData,this.data[0].membCount,this.reportList.length);
|
|
|
|
|
|
+ // console.log('test',this.depData,this.data[0].membCount,this.reportList.length);
|
|
},
|
|
},
|
|
weeklyFilledTimeClick(parameterDate){ //按周填报-已填工时-点击
|
|
weeklyFilledTimeClick(parameterDate){ //按周填报-已填工时-点击
|
|
this.weeklyFilledTimeDialog = true
|
|
this.weeklyFilledTimeDialog = true
|
|
@@ -3501,7 +3501,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
stateChange() {
|
|
stateChange() {
|
|
- console.log(this.allData,'alldate');
|
|
|
|
|
|
+ // console.log(this.allData,'alldate');
|
|
this.membCount = 0;
|
|
this.membCount = 0;
|
|
if (this.selectState == -1) {
|
|
if (this.selectState == -1) {
|
|
//全部状态
|
|
//全部状态
|
|
@@ -3991,7 +3991,7 @@
|
|
let monthdate = new Date(sessionStorage.msg)
|
|
let monthdate = new Date(sessionStorage.msg)
|
|
this.choseDay = monthdate.getDate() - 1
|
|
this.choseDay = monthdate.getDate() - 1
|
|
this.curDate = (monthdate.getMonth() + 1) + this.$t('weekDay.month') + monthdate.getDate() + this.$t('weekDay.day')
|
|
this.curDate = (monthdate.getMonth() + 1) + this.$t('weekDay.month') + monthdate.getDate() + this.$t('weekDay.day')
|
|
- console.log('choseday',sessionStorage.msg,this.choseDay,monthdate.getDate());
|
|
|
|
|
|
+ // console.log('choseday',sessionStorage.msg,this.choseDay,monthdate.getDate());
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
this.choseDay = parseInt(sessionStorage.msg.split('-')[2]) - 1
|
|
this.choseDay = parseInt(sessionStorage.msg.split('-')[2]) - 1
|
|
@@ -4704,14 +4704,14 @@
|
|
},
|
|
},
|
|
// 减去时间
|
|
// 减去时间
|
|
dateChange(num = 1,date = false) {
|
|
dateChange(num = 1,date = false) {
|
|
- if (!date) {
|
|
|
|
- date = new Date();//没有传入值时,默认是当前日期
|
|
|
|
- date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
|
|
|
|
- }
|
|
|
|
- date += " 00:00:00";//设置为当天凌晨12点
|
|
|
|
- date = Date.parse(new Date(date))/1000;//转换为时间戳
|
|
|
|
- date += (86400) * num;//修改后的时间戳
|
|
|
|
- var newDate = new Date(parseInt(date) * 1000);//转换为时间
|
|
|
|
|
|
+ if (!date) {
|
|
|
|
+ date = new Date();//没有传入值时,默认是当前日期
|
|
|
|
+ date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
|
|
|
|
+ }
|
|
|
|
+ date += " 00:00:00";//设置为当天凌晨12点
|
|
|
|
+ date = Date.parse(new Date(date))/1000;//转换为时间戳
|
|
|
|
+ date += (86400) * num;//修改后的时间戳
|
|
|
|
+ var newDate = new Date(parseInt(date) * 1000);//转换为时间
|
|
var nian = newDate.getFullYear()
|
|
var nian = newDate.getFullYear()
|
|
var yue = ''
|
|
var yue = ''
|
|
var ri = ''
|
|
var ri = ''
|
|
@@ -5870,12 +5870,12 @@
|
|
} else {
|
|
} else {
|
|
formData.append("stage", "-");
|
|
formData.append("stage", "-");
|
|
}
|
|
}
|
|
- console.log(this.workForm.domains[i].projectAuditorId, '审核人的id')
|
|
|
|
|
|
+ // console.log(this.workForm.domains[i].projectAuditorId, '审核人的id')
|
|
if (this.workForm.domains[i].projectAuditorId) {
|
|
if (this.workForm.domains[i].projectAuditorId) {
|
|
formData.append("projectAuditorId", this.workForm.domains[i].projectAuditorId);
|
|
formData.append("projectAuditorId", this.workForm.domains[i].projectAuditorId);
|
|
} else {
|
|
} else {
|
|
- console.log('执行到了这里')
|
|
|
|
- console.log(this.user.timeType.reportAuditType)
|
|
|
|
|
|
+ // console.log('执行到了这里')
|
|
|
|
+ // console.log(this.user.timeType.reportAuditType)
|
|
if (this.user.timeType.reportAuditType == 0) {
|
|
if (this.user.timeType.reportAuditType == 0) {
|
|
this.$message({
|
|
this.$message({
|
|
message: this.$t('message.Pleasespecifyaprojectreviewer'),
|
|
message: this.$t('message.Pleasespecifyaprojectreviewer'),
|
|
@@ -6003,7 +6003,7 @@
|
|
|
|
|
|
//撤回日报
|
|
//撤回日报
|
|
cancel(item,e) {
|
|
cancel(item,e) {
|
|
- console.log('can can need',item);
|
|
|
|
|
|
+ // console.log('can can need',item);
|
|
this.logining = true;
|
|
this.logining = true;
|
|
|
|
|
|
var ids = '';
|
|
var ids = '';
|
|
@@ -6104,12 +6104,12 @@
|
|
},
|
|
},
|
|
// 触发 selectCat 组件更改他的值
|
|
// 触发 selectCat 组件更改他的值
|
|
selectCatCli(obj) {
|
|
selectCatCli(obj) {
|
|
- console.log(obj, '看看')
|
|
|
|
|
|
+ // console.log(obj, '看看')
|
|
// obj.id 是 选中人员的id, obj.idx 是 当前的索引
|
|
// obj.id 是 选中人员的id, obj.idx 是 当前的索引
|
|
this.workForm.domains[obj.idx].projectAuditorId = obj.id
|
|
this.workForm.domains[obj.idx].projectAuditorId = obj.id
|
|
},
|
|
},
|
|
vueCasader(obj) {
|
|
vueCasader(obj) {
|
|
- console.log(obj, '看看值')
|
|
|
|
|
|
+ // console.log(obj, '看看值')
|
|
if(obj.distinction == 1) {
|
|
if(obj.distinction == 1) {
|
|
let arr = []
|
|
let arr = []
|
|
arr.push(obj.item.id)
|
|
arr.push(obj.item.id)
|