|
@@ -2839,7 +2839,6 @@
|
|
|
let sdate = new Date(this.workForm.createDate[0]);
|
|
|
let edate = new Date(this.workForm.createDate[1]);
|
|
|
let days = (edate.getTime() - sdate.getTime())/(24*3600*1000) + 1;
|
|
|
- console.log('days===', days)
|
|
|
if (days < 0) {
|
|
|
return;
|
|
|
}
|
|
@@ -2880,9 +2879,7 @@
|
|
|
if (selectPid && domainItem.extraField1) {
|
|
|
//是否非项目
|
|
|
var isPublic = domainItem.isPublic;//this.fillProjectList.filter(p=>p.id == selectPid)[0].isPublic;
|
|
|
- console.log('==========','isPublic=='+isPublic);
|
|
|
var filteredRespList = this.jobResponseList.filter(j=>j.timeType == (isPublic?this.$t('fei-xiang-mu-gong-shi'):this.$t('xiangMuGongShi')) && j.role == (this.roleList.filter(r=>r.value==domainItem.extraField1)[0].label));
|
|
|
- console.log(filteredRespList);
|
|
|
domainItem.filteredRespList = filteredRespList;
|
|
|
}
|
|
|
|
|
@@ -3107,13 +3104,11 @@
|
|
|
},
|
|
|
|
|
|
handlePictureCardPreview(file, index) {
|
|
|
- console.log(file, index)
|
|
|
let arr = []
|
|
|
let imgArr = this.workForm.domains[index].imgListUrl
|
|
|
for(var i in imgArr) {
|
|
|
arr.push(imgArr[i].url)
|
|
|
}
|
|
|
- console.log(arr, '图片数据')
|
|
|
const $viewer = this.$viewerApi({
|
|
|
images: arr
|
|
|
});
|
|
@@ -3121,7 +3116,6 @@
|
|
|
},
|
|
|
// 图片上传
|
|
|
addImg(e, index) {
|
|
|
- console.log(e, '数据')
|
|
|
let formData = new FormData()
|
|
|
formData.append('multipartFile', e.file)
|
|
|
this.http.uploadFile('/common/uploadFile', formData,
|
|
@@ -3140,7 +3134,6 @@
|
|
|
} else {
|
|
|
this.$message({message: res.msg,type: "error"});
|
|
|
}
|
|
|
- console.log(this.workForm.domains[index])
|
|
|
},
|
|
|
error => {this.$message({message: error,type: "error"});
|
|
|
});
|
|
@@ -3148,7 +3141,6 @@
|
|
|
|
|
|
// 删除图片
|
|
|
delImg(file,fileList, index) {
|
|
|
- console.log(file, fileList)
|
|
|
let idx = 0
|
|
|
for(let i in fileList) {
|
|
|
if(fileList[i].uid == file.uid) {
|
|
@@ -3157,7 +3149,6 @@
|
|
|
}
|
|
|
this.workForm.domains[index].imgList.splice(idx, 1)
|
|
|
this.workForm.domains[index].imgListUrl.splice(idx, 1)
|
|
|
- console.log(this.workForm.domains[index])
|
|
|
},
|
|
|
test(){
|
|
|
console.log('test',this.workForm.domains);
|
|
@@ -3332,7 +3323,6 @@
|
|
|
}
|
|
|
}
|
|
|
this.approvalProcessData = res.data
|
|
|
- console.log(this.approvalProcessData, '数据卡看')
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -3483,7 +3473,6 @@
|
|
|
lastMonth = month - 1;
|
|
|
}
|
|
|
this.ratioYmonth = lastMonthYear+''+(lastMonth < 10 ? '0' + lastMonth : lastMonth)
|
|
|
- console.log('赋值 ==>', this.ratioYmonth)
|
|
|
},
|
|
|
confirmDownloadRatio() {
|
|
|
this.startRatioExporting = true;
|
|
@@ -3836,7 +3825,6 @@
|
|
|
}
|
|
|
},
|
|
|
seleChn(e,domain) {
|
|
|
- console.log('===========修改时间==========');
|
|
|
if(e == 1) {
|
|
|
for(var i in this.workForm.domains) {
|
|
|
if(this.workForm.domains[i].timeType == 0) {
|
|
@@ -3848,15 +3836,12 @@
|
|
|
}
|
|
|
var quanbu = 0
|
|
|
var spl = this.workForm.domains
|
|
|
- console.log(spl)
|
|
|
var zhi = ''
|
|
|
for(var i in spl) {
|
|
|
var sp = +spl[i].workingTime + 0
|
|
|
- console.log('this.jsDay==='+this.jsDay);
|
|
|
zhi = this.jsDay * sp
|
|
|
quanbu = +quanbu + zhi
|
|
|
}
|
|
|
- console.log('quanbu========'+quanbu);
|
|
|
this.jsTime = quanbu
|
|
|
this.totalReportHours = quanbu
|
|
|
let worktime = this.jsTime
|
|
@@ -4633,7 +4618,6 @@
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.$set(this.workForm,'time', res.data);
|
|
|
- console.log(res.data);
|
|
|
}
|
|
|
},
|
|
|
error => {
|
|
@@ -4811,7 +4795,6 @@
|
|
|
let sdate = new Date(this.workForm.createDate[0]);
|
|
|
let edate = new Date(this.workForm.createDate[1]);
|
|
|
let days = (edate.getTime() - sdate.getTime())/(24*3600*1000) + 1;
|
|
|
- console.log('days===', days)
|
|
|
if (days < 0) {
|
|
|
days = 0;
|
|
|
}
|
|
@@ -4858,7 +4841,6 @@
|
|
|
if(this.yonghuUser.customDegreeActive == 1) {
|
|
|
this.selectDegreeId(domain, index)
|
|
|
}
|
|
|
- // console.log('projectId===',domain.projectId);
|
|
|
domain.projectName = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].projectName;
|
|
|
domain.isPublic = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].isPublic;
|
|
|
this.http.post('/sub-project/list',{
|
|
@@ -4908,10 +4890,8 @@
|
|
|
domain.projectAuditorName = null;
|
|
|
domain.auditUserList = null;
|
|
|
}
|
|
|
- console.log('this.reportTimeType.type==='+this.reportTimeType.type);
|
|
|
if (this.reportTimeType.type == 3) {
|
|
|
//新增项目时,自动计算
|
|
|
- console.log('===time====='+this.reportTimeType.allday * domain.progress/100);
|
|
|
domain.workingTime = (this.reportTimeType.allday * domain.progress/100).toFixed(1);
|
|
|
}
|
|
|
//加载昱众的工作职责
|
|
@@ -5297,9 +5277,7 @@
|
|
|
this.dataLoading = false
|
|
|
}
|
|
|
// return
|
|
|
- console.log(textList, '<=== textList')
|
|
|
this.seluserforTextin(this.seluserText, newData, textList)
|
|
|
- console.log(newData, 'Data')
|
|
|
this.data = newData;
|
|
|
this.calculateMembCount(this.data);
|
|
|
this.data[0].membCount = this.membCount;//总人数
|
|
@@ -5343,7 +5321,6 @@
|
|
|
localStorage.setItem('nodeModelDataKey', JSON.stringify(this.nodeModelData))
|
|
|
},
|
|
|
nodeChangeCollapse(data) {
|
|
|
- console.log(this.nodeModelData)
|
|
|
this.nodeModelData.some((item, i) => {
|
|
|
if (item === data.id) {
|
|
|
this.nodeModelData.length = i
|
|
@@ -5438,7 +5415,6 @@
|
|
|
this.setUserToDept(noAllData);
|
|
|
this.deptMembData = noAllData;
|
|
|
this.deptMembDataBackups = JSON.parse(JSON.stringify(this.deptMembData))
|
|
|
- console.log(this.deptMembData, '代填人员数据')
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -5460,9 +5436,7 @@
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
var list1 = JSON.parse(JSON.stringify(res.data));
|
|
|
-
|
|
|
this.deptOptionList = this.changeArr(list1);
|
|
|
- console.log(this.deptOptionList, '部门')
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -6016,8 +5990,6 @@
|
|
|
}
|
|
|
param.stateKey = this.stateKey
|
|
|
// param.departmentId = this.user.departmentId
|
|
|
- console.log(param, '《=== 导出传的参数');
|
|
|
- console.log('开始调用exportReport接口');
|
|
|
this.http.post(this.port.report.export, param,
|
|
|
res => {
|
|
|
this.exportingData = false;
|
|
@@ -6157,8 +6129,6 @@
|
|
|
}
|
|
|
}
|
|
|
this.projectList = res.data;
|
|
|
-
|
|
|
- console.log("项目列表",this.projectList);
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -6448,7 +6418,6 @@
|
|
|
time: list.time,
|
|
|
showRefresh: list.showRefresh
|
|
|
}
|
|
|
- console.log('workForm', this.workForm)
|
|
|
} else {
|
|
|
this.workForm = {
|
|
|
createDate: this.workForm.createDate,
|
|
@@ -6522,7 +6491,6 @@
|
|
|
} else {
|
|
|
this.falsss = true
|
|
|
}
|
|
|
- console.log('this.isSubstitude=='+this.isSubstitude);
|
|
|
if (this.isSubstitude) {
|
|
|
this.getSubstitudeUserDeptList();
|
|
|
} else {
|
|
@@ -6589,7 +6557,6 @@
|
|
|
|
|
|
//按周填报的弹窗口中编辑单项目相关数据
|
|
|
setWeekFormReportItem(reportId, i, names, row,sss) {
|
|
|
- console.log(sss)
|
|
|
this.http.post('/report/getReportById', {
|
|
|
reportId: reportId
|
|
|
},
|
|
@@ -6669,7 +6636,6 @@
|
|
|
sss.progress = item.progress
|
|
|
sss.time = item.time
|
|
|
sss.content = item.content;
|
|
|
- console.log('333', sss.content)
|
|
|
if (sss.time == '' && this.reportTimeType.type == 2) {
|
|
|
//取已填时间范围中最大的一个作为开始时间
|
|
|
var startTime = '09:00';
|
|
@@ -6708,7 +6674,6 @@
|
|
|
sss.subProjectList = item.subProjectList
|
|
|
sss.stages = item.stages
|
|
|
sss.taskGroups = item.taskGroups;
|
|
|
- console.log(sss.taskGroups, '33333');
|
|
|
sss.auditUserList = obj.auditUserList;
|
|
|
sss.degreeId = item.degreeId;
|
|
|
sss.customData = item.customData;
|
|
@@ -6728,7 +6693,6 @@
|
|
|
this.$forceUpdate();
|
|
|
|
|
|
this.getWeeklyTaskList(sss)
|
|
|
- console.log('最后的周报 ===>', this.zhoBao)
|
|
|
} else {
|
|
|
//第一次打开,获取数据
|
|
|
if (sss.id == -1) {
|
|
@@ -7371,7 +7335,6 @@
|
|
|
this.dateAr = []
|
|
|
var alp = []
|
|
|
var zhis = zhi[i]
|
|
|
- console.log(zhis)
|
|
|
for(var j in zhis) {
|
|
|
if(j != 'zhoDataTime' && j != 'he' && zhis[j].time != null && zhis[j].time != 'null' && zhis[j].time != '') {
|
|
|
let objs = {}
|
|
@@ -7381,7 +7344,6 @@
|
|
|
alp.push(objs)
|
|
|
}
|
|
|
}
|
|
|
- console.log(alp)
|
|
|
this.dateAr = alp
|
|
|
if (this.reportTimeType.timeCanOverlap == 0) {
|
|
|
let str = this.$t('message.Filledtimeperiodsoverlap')
|
|
@@ -8760,10 +8722,6 @@
|
|
|
this.isDenying = false;
|
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
|
var ids = item.id;
|
|
|
- // var data = item.data;
|
|
|
- // data.forEach(element => {
|
|
|
- // ids +=(element.id+',');
|
|
|
- // });
|
|
|
this.denyForm = {id: id ,i:i, date: this.date +day, reportIds: ids, reason:null};
|
|
|
},
|
|
|
// 未通过日报
|
|
@@ -8827,7 +8785,6 @@
|
|
|
this.workForm.domains[obj.idx].projectAuditorId = obj.id
|
|
|
},
|
|
|
vueCasader(obj) {
|
|
|
- console.log(obj, '看看值', this.departmentList)
|
|
|
if(obj.distinction == 1 && obj.item) {
|
|
|
let arr = []
|
|
|
arr.push(obj.item.value)
|
|
@@ -8888,7 +8845,6 @@
|
|
|
},
|
|
|
//景昱变更提醒
|
|
|
changeReminder(item){
|
|
|
- console.log("============",item)
|
|
|
let parameter={
|
|
|
startDate: this.WorktimeDatepickValue[0],
|
|
|
endDate: this.WorktimeDatepickValue[1],
|
|
@@ -8966,7 +8922,6 @@
|
|
|
}
|
|
|
},
|
|
|
handleThreeData(userList) {
|
|
|
- console.log(userList, '人员数据')
|
|
|
let deptMembDataBackups = JSON.parse(JSON.stringify(this.deptMembDataBackups))
|
|
|
this.deptMembData = this.filterTreeNodes(deptMembDataBackups, userList)
|
|
|
},
|
|
@@ -9023,7 +8978,6 @@
|
|
|
})
|
|
|
},
|
|
|
changeTreeNodeStatus(node) {
|
|
|
- console.log(node)
|
|
|
let allZt = true
|
|
|
node.expanded = allZt
|
|
|
for (let i = 0; i < node.childNodes.length; i++) {
|
|
@@ -9035,16 +8989,13 @@
|
|
|
},
|
|
|
// 按周填报获取相关任务
|
|
|
async getWeeklyTaskList(item) {
|
|
|
- console.log(item, '<=== 数据')
|
|
|
const { projectId, groupId, stage, taskId } = item
|
|
|
- console.log(projectId, groupId, stage)
|
|
|
let parms = { projectId, isSubstitude: 0 }
|
|
|
groupId ? parms.groupId = groupId : ''
|
|
|
stage ? parms.stage = stage : ''
|
|
|
const { data } = await this.postData('/task/getRecentTask', parms)
|
|
|
this.zhoBao.taskId = taskId
|
|
|
this.$set(this.zhoBao, 'taskList', data)
|
|
|
- console.log(this.zhoBao)
|
|
|
},
|
|
|
// 封装 post 请求
|
|
|
postData(url, params) {
|
|
@@ -9064,7 +9015,6 @@
|
|
|
},
|
|
|
// 自定义事件
|
|
|
selectCal(obj) {
|
|
|
- console.log(obj, '传数据来源')
|
|
|
if(obj.distinction == '1') {
|
|
|
this.zhoBao.projectAuditorId = obj.id
|
|
|
} else if(obj.distinction == '2') {
|