|
@@ -139,7 +139,7 @@
|
|
<el-link v-if="user.timeType.enableNewWeeklyfill == 1" type="primary" style="margin-right:10px;" :underline="false" @click="isSubstitude=false;fillInReportCustom()">{{ $t('textLink.fillInAWeek') }}</el-link>
|
|
<el-link v-if="user.timeType.enableNewWeeklyfill == 1" type="primary" style="margin-right:10px;" :underline="false" @click="isSubstitude=false;fillInReportCustom()">{{ $t('textLink.fillInAWeek') }}</el-link>
|
|
<!-- <el-link type="primary" style="margin-right:10px;" :underline="false" @click="isSubstitude=false;fillInReportCustom()">按周填报123</el-link> -->
|
|
<!-- <el-link type="primary" style="margin-right:10px;" :underline="false" @click="isSubstitude=false;fillInReportCustom()">按周填报123</el-link> -->
|
|
<el-link type="primary" style="margin-right:10px;" :underline="false" @click="isSubstitude=false;weekIndex++,fillWeekDialogVisiCustomTwo=true" v-if="user.timeType.enableNewWeeklyfill==2">按周填报</el-link>
|
|
<el-link type="primary" style="margin-right:10px;" :underline="false" @click="isSubstitude=false;weekIndex++,fillWeekDialogVisiCustomTwo=true" v-if="user.timeType.enableNewWeeklyfill==2">按周填报</el-link>
|
|
- <el-link type="primary" v-if="user.companyId != 5978 && permissions.reportsFillOut && user.timeType.enableNewWeeklyfill != 1" style="margin-right:10px;" :underline="false" @click="isSubstitude=true; fillInReport(-1,0)">{{$t('textLink.helpToFillIn')}}</el-link>
|
|
|
|
|
|
+ <el-link type="primary" v-if="user.companyId != 5978 && permissions.reportsFillOut && user.timeType.enableNewWeeklyfill != 1" style="margin-right:10px;" :underline="false" @click="isSubstitude=true; fillInReport(-1,user.companyId == 5814?2:0)">{{$t('textLink.helpToFillIn')}}</el-link>
|
|
<!-- 苏州景昱,按周填报的模式进行代填日报 -->
|
|
<!-- 苏州景昱,按周填报的模式进行代填日报 -->
|
|
<el-link type="primary" v-if="user.companyId == 5978 && permissions.reportsFillOut && user.timeType.enableNewWeeklyfill != 1" style="margin-right:10px;" :underline="false" @click="isSubstitude=true; fillInReportss();">{{$t('textLink.helpToFillIn')}}</el-link>
|
|
<el-link type="primary" v-if="user.companyId == 5978 && permissions.reportsFillOut && user.timeType.enableNewWeeklyfill != 1" style="margin-right:10px;" :underline="false" @click="isSubstitude=true; fillInReportss();">{{$t('textLink.helpToFillIn')}}</el-link>
|
|
|
|
|
|
@@ -205,7 +205,7 @@
|
|
<span v-else>
|
|
<span v-else>
|
|
<span v-if="item2.isDeptAudit==0">
|
|
<span v-if="item2.isDeptAudit==0">
|
|
<span v-if="item2.projectAuditState==0">
|
|
<span v-if="item2.projectAuditState==0">
|
|
- <!-- 待项目审核人 --> {{user.companyId == 469?(item2.auditorDeptName?('待'+item2.auditorDeptName):"待部门主管"):$t('other.waitForTheProjectReviewer')}}
|
|
|
|
|
|
+ <!-- 待项目审核人 --> {{user.companyId == 469?(item2.projectAuditorName=='程君健'?('待总经办'):"待部门主管"):$t('other.waitForTheProjectReviewer')}}
|
|
<span v-if="item2.projectAuditorName != null">(
|
|
<span v-if="item2.projectAuditorName != null">(
|
|
<!-- {{item2.projectAuditorName}} -->
|
|
<!-- {{item2.projectAuditorName}} -->
|
|
<TranslationOpenData :configurationItems="{ openType: 'userName', openId: item2.projectAuditorName, renderIndex: 0 }" />
|
|
<TranslationOpenData :configurationItems="{ openType: 'userName', openId: item2.projectAuditorName, renderIndex: 0 }" />
|
|
@@ -213,7 +213,7 @@
|
|
<!-- 审核 --> {{$t('other.audit')}}
|
|
<!-- 审核 --> {{$t('other.audit')}}
|
|
</span>
|
|
</span>
|
|
<span style="color:#32CD32;" v-else-if="item2.projectAuditState==1">
|
|
<span style="color:#32CD32;" v-else-if="item2.projectAuditState==1">
|
|
- <!-- 项目审核人 --> {{user.companyId == 469?(item2.auditorDeptName?('待'+item2.auditorDeptName):"待部门主管"):$t('other.projectAuditor')}}
|
|
|
|
|
|
+ <!-- 项目审核人 --> {{user.companyId == 469?(item2.projectAuditorName=='程君健'?('待总经办'):"待部门主管"):$t('other.projectAuditor')}}
|
|
<span v-if="item2.projectAuditorName != null">(
|
|
<span v-if="item2.projectAuditorName != null">(
|
|
<!-- {{item2.projectAuditorName}} -->
|
|
<!-- {{item2.projectAuditorName}} -->
|
|
<TranslationOpenData :configurationItems="{ openType: 'userName', openId: item2.projectAuditorName, renderIndex: 0 }" />
|
|
<TranslationOpenData :configurationItems="{ openType: 'userName', openId: item2.projectAuditorName, renderIndex: 0 }" />
|
|
@@ -378,7 +378,7 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 填写日报的dialog -->
|
|
<!-- 填写日报的dialog -->
|
|
- <el-dialog :title="editTitle[isBatch]" :visible.sync="dialogVisible" width="60%" :close-on-click-modal="false" @closed="guanbi()" :top="'5.5vh'" custom-class="editReportDialog" ref="editReportDialog">
|
|
|
|
|
|
+ <el-dialog :title="isSubstitude?$t('textLink.helpToFillIn'):editTitle[isBatch]" :visible.sync="dialogVisible" width="60%" :close-on-click-modal="false" @closed="guanbi()" :top="'5.5vh'" custom-class="editReportDialog" ref="editReportDialog">
|
|
<div style="height: 65vh;overflow: auto;">
|
|
<div style="height: 65vh;overflow: auto;">
|
|
<el-form ref="workForm" :model="workForm" :rules="workRules" label-width="120px">
|
|
<el-form ref="workForm" :model="workForm" :rules="workRules" label-width="120px">
|
|
<el-form-item :label="$t('screening.selectPeople')" v-if="isSubstitude">
|
|
<el-form-item :label="$t('screening.selectPeople')" v-if="isSubstitude">
|
|
@@ -395,6 +395,10 @@
|
|
{{$t('defaultText.pleaseSelectAsubstitute')}}
|
|
{{$t('defaultText.pleaseSelectAsubstitute')}}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- <el-radio-group v-model="singleDate" style="margin-left:10px;">
|
|
|
|
+ <el-radio :label="1">单日代填</el-radio>
|
|
|
|
+ <el-radio :label="2">多日代填</el-radio>
|
|
|
|
+ </el-radio-group> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('screening.workingDate')" prop="createDate">
|
|
<el-form-item :label="$t('screening.workingDate')" prop="createDate">
|
|
<el-date-picker v-model="workForm.createDate" :editable="false" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
<el-date-picker v-model="workForm.createDate" :editable="false" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
@@ -423,7 +427,7 @@
|
|
<!--针对明夷,批量填报(不含代填)情况下显示考勤时长-->
|
|
<!--针对明夷,批量填报(不含代填)情况下显示考勤时长-->
|
|
<span v-if="!isSubstitude && isBatch && user.company.companyName === mingyiName">,{{ $t('workAttendance') }}:{{this.workTimeForMinYi}}{{$t('time.hour')}}</span>
|
|
<span v-if="!isSubstitude && isBatch && user.company.companyName === mingyiName">,{{ $t('workAttendance') }}:{{this.workTimeForMinYi}}{{$t('time.hour')}}</span>
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading"
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading"
|
|
- v-if="!isBatch && user.timeType.syncCorpwxTime==1" icon="el-icon-refresh"
|
|
|
|
|
|
+ v-if="!isBatch && user.timeType.syncCorpwxTime==1 && !isSubstitude" icon="el-icon-refresh"
|
|
@click="refreshWXCardTime(workForm.createDate)"></el-button>
|
|
@click="refreshWXCardTime(workForm.createDate)"></el-button>
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading"
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading"
|
|
v-if="isBatch && user.company.companyName === mingyiName" icon="el-icon-refresh"
|
|
v-if="isBatch && user.company.companyName === mingyiName" icon="el-icon-refresh"
|
|
@@ -1901,11 +1905,11 @@
|
|
<!--驳回弹出框 -->
|
|
<!--驳回弹出框 -->
|
|
<el-dialog :title="$t('defaultText.pleaseEnterTheReason')" v-if="denyReasonDialog" :visible.sync="denyReasonDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
<el-dialog :title="$t('defaultText.pleaseEnterTheReason')" v-if="denyReasonDialog" :visible.sync="denyReasonDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
<div>
|
|
<div>
|
|
- <el-input type="textarea" v-model="denyForm.reason" rows="2" :placeholder="$t('defaultText.pleaseEnterYourDecision')+(denyForm.i==0?$t('btn.rejected'):$t('btn.undo'))+$t('other.reason')" />
|
|
|
|
|
|
+ <span style="color:red;">*</span><el-input type="textarea" v-model="denyForm.reason" rows="2" :placeholder="$t('defaultText.pleaseEnterYourDecision')+(denyForm.i==0?$t('btn.rejected'):$t('btn.undo'))+$t('other.reason')" />
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="denyReasonDialog = false" >{{$t('btn.cancel')}}</el-button>
|
|
<el-button @click="denyReasonDialog = false" >{{$t('btn.cancel')}}</el-button>
|
|
- <el-button type="primary" :loading="isDenying" @click="deny()" >{{$t('btn.submit')}}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" :loading="isDenying" @click="deny()" :disabled="user.timeType.forceRejectReason && !denyForm.reason">{{$t('btn.submit')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 通过弹出框 -->
|
|
<!-- 通过弹出框 -->
|
|
@@ -2289,6 +2293,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ singleDate:1,
|
|
subFillProjectList:[],
|
|
subFillProjectList:[],
|
|
curAuditNode: 1,
|
|
curAuditNode: 1,
|
|
refreshingTime: false,
|
|
refreshingTime: false,
|
|
@@ -2839,7 +2844,6 @@
|
|
let sdate = new Date(this.workForm.createDate[0]);
|
|
let sdate = new Date(this.workForm.createDate[0]);
|
|
let edate = new Date(this.workForm.createDate[1]);
|
|
let edate = new Date(this.workForm.createDate[1]);
|
|
let days = (edate.getTime() - sdate.getTime())/(24*3600*1000) + 1;
|
|
let days = (edate.getTime() - sdate.getTime())/(24*3600*1000) + 1;
|
|
- console.log('days===', days)
|
|
|
|
if (days < 0) {
|
|
if (days < 0) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -2880,9 +2884,7 @@
|
|
if (selectPid && domainItem.extraField1) {
|
|
if (selectPid && domainItem.extraField1) {
|
|
//是否非项目
|
|
//是否非项目
|
|
var isPublic = domainItem.isPublic;//this.fillProjectList.filter(p=>p.id == selectPid)[0].isPublic;
|
|
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));
|
|
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;
|
|
domainItem.filteredRespList = filteredRespList;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3107,13 +3109,11 @@
|
|
},
|
|
},
|
|
|
|
|
|
handlePictureCardPreview(file, index) {
|
|
handlePictureCardPreview(file, index) {
|
|
- console.log(file, index)
|
|
|
|
let arr = []
|
|
let arr = []
|
|
let imgArr = this.workForm.domains[index].imgListUrl
|
|
let imgArr = this.workForm.domains[index].imgListUrl
|
|
for(var i in imgArr) {
|
|
for(var i in imgArr) {
|
|
arr.push(imgArr[i].url)
|
|
arr.push(imgArr[i].url)
|
|
}
|
|
}
|
|
- console.log(arr, '图片数据')
|
|
|
|
const $viewer = this.$viewerApi({
|
|
const $viewer = this.$viewerApi({
|
|
images: arr
|
|
images: arr
|
|
});
|
|
});
|
|
@@ -3121,7 +3121,6 @@
|
|
},
|
|
},
|
|
// 图片上传
|
|
// 图片上传
|
|
addImg(e, index) {
|
|
addImg(e, index) {
|
|
- console.log(e, '数据')
|
|
|
|
let formData = new FormData()
|
|
let formData = new FormData()
|
|
formData.append('multipartFile', e.file)
|
|
formData.append('multipartFile', e.file)
|
|
this.http.uploadFile('/common/uploadFile', formData,
|
|
this.http.uploadFile('/common/uploadFile', formData,
|
|
@@ -3140,7 +3139,6 @@
|
|
} else {
|
|
} else {
|
|
this.$message({message: res.msg,type: "error"});
|
|
this.$message({message: res.msg,type: "error"});
|
|
}
|
|
}
|
|
- console.log(this.workForm.domains[index])
|
|
|
|
},
|
|
},
|
|
error => {this.$message({message: error,type: "error"});
|
|
error => {this.$message({message: error,type: "error"});
|
|
});
|
|
});
|
|
@@ -3148,7 +3146,6 @@
|
|
|
|
|
|
// 删除图片
|
|
// 删除图片
|
|
delImg(file,fileList, index) {
|
|
delImg(file,fileList, index) {
|
|
- console.log(file, fileList)
|
|
|
|
let idx = 0
|
|
let idx = 0
|
|
for(let i in fileList) {
|
|
for(let i in fileList) {
|
|
if(fileList[i].uid == file.uid) {
|
|
if(fileList[i].uid == file.uid) {
|
|
@@ -3157,7 +3154,6 @@
|
|
}
|
|
}
|
|
this.workForm.domains[index].imgList.splice(idx, 1)
|
|
this.workForm.domains[index].imgList.splice(idx, 1)
|
|
this.workForm.domains[index].imgListUrl.splice(idx, 1)
|
|
this.workForm.domains[index].imgListUrl.splice(idx, 1)
|
|
- console.log(this.workForm.domains[index])
|
|
|
|
},
|
|
},
|
|
test(){
|
|
test(){
|
|
console.log('test',this.workForm.domains);
|
|
console.log('test',this.workForm.domains);
|
|
@@ -3332,7 +3328,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.approvalProcessData = res.data
|
|
this.approvalProcessData = res.data
|
|
- console.log(this.approvalProcessData, '数据卡看')
|
|
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -3483,7 +3478,6 @@
|
|
lastMonth = month - 1;
|
|
lastMonth = month - 1;
|
|
}
|
|
}
|
|
this.ratioYmonth = lastMonthYear+''+(lastMonth < 10 ? '0' + lastMonth : lastMonth)
|
|
this.ratioYmonth = lastMonthYear+''+(lastMonth < 10 ? '0' + lastMonth : lastMonth)
|
|
- console.log('赋值 ==>', this.ratioYmonth)
|
|
|
|
},
|
|
},
|
|
confirmDownloadRatio() {
|
|
confirmDownloadRatio() {
|
|
this.startRatioExporting = true;
|
|
this.startRatioExporting = true;
|
|
@@ -3836,7 +3830,6 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
seleChn(e,domain) {
|
|
seleChn(e,domain) {
|
|
- console.log('===========修改时间==========');
|
|
|
|
if(e == 1) {
|
|
if(e == 1) {
|
|
for(var i in this.workForm.domains) {
|
|
for(var i in this.workForm.domains) {
|
|
if(this.workForm.domains[i].timeType == 0) {
|
|
if(this.workForm.domains[i].timeType == 0) {
|
|
@@ -3848,15 +3841,12 @@
|
|
}
|
|
}
|
|
var quanbu = 0
|
|
var quanbu = 0
|
|
var spl = this.workForm.domains
|
|
var spl = this.workForm.domains
|
|
- console.log(spl)
|
|
|
|
var zhi = ''
|
|
var zhi = ''
|
|
for(var i in spl) {
|
|
for(var i in spl) {
|
|
var sp = +spl[i].workingTime + 0
|
|
var sp = +spl[i].workingTime + 0
|
|
- console.log('this.jsDay==='+this.jsDay);
|
|
|
|
zhi = this.jsDay * sp
|
|
zhi = this.jsDay * sp
|
|
quanbu = +quanbu + zhi
|
|
quanbu = +quanbu + zhi
|
|
}
|
|
}
|
|
- console.log('quanbu========'+quanbu);
|
|
|
|
this.jsTime = quanbu
|
|
this.jsTime = quanbu
|
|
this.totalReportHours = quanbu
|
|
this.totalReportHours = quanbu
|
|
let worktime = this.jsTime
|
|
let worktime = this.jsTime
|
|
@@ -4633,7 +4623,6 @@
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.$set(this.workForm,'time', res.data);
|
|
this.$set(this.workForm,'time', res.data);
|
|
- console.log(res.data);
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
@@ -4811,7 +4800,6 @@
|
|
let sdate = new Date(this.workForm.createDate[0]);
|
|
let sdate = new Date(this.workForm.createDate[0]);
|
|
let edate = new Date(this.workForm.createDate[1]);
|
|
let edate = new Date(this.workForm.createDate[1]);
|
|
let days = (edate.getTime() - sdate.getTime())/(24*3600*1000) + 1;
|
|
let days = (edate.getTime() - sdate.getTime())/(24*3600*1000) + 1;
|
|
- console.log('days===', days)
|
|
|
|
if (days < 0) {
|
|
if (days < 0) {
|
|
days = 0;
|
|
days = 0;
|
|
}
|
|
}
|
|
@@ -4858,7 +4846,6 @@
|
|
if(this.yonghuUser.customDegreeActive == 1) {
|
|
if(this.yonghuUser.customDegreeActive == 1) {
|
|
this.selectDegreeId(domain, index)
|
|
this.selectDegreeId(domain, index)
|
|
}
|
|
}
|
|
- // console.log('projectId===',domain.projectId);
|
|
|
|
domain.projectName = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].projectName;
|
|
domain.projectName = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].projectName;
|
|
domain.isPublic = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].isPublic;
|
|
domain.isPublic = this.fillProjectList.filter(p=>p.id == domain.projectId)[0].isPublic;
|
|
this.http.post('/sub-project/list',{
|
|
this.http.post('/sub-project/list',{
|
|
@@ -4908,10 +4895,8 @@
|
|
domain.projectAuditorName = null;
|
|
domain.projectAuditorName = null;
|
|
domain.auditUserList = null;
|
|
domain.auditUserList = null;
|
|
}
|
|
}
|
|
- console.log('this.reportTimeType.type==='+this.reportTimeType.type);
|
|
|
|
if (this.reportTimeType.type == 3) {
|
|
if (this.reportTimeType.type == 3) {
|
|
//新增项目时,自动计算
|
|
//新增项目时,自动计算
|
|
- console.log('===time====='+this.reportTimeType.allday * domain.progress/100);
|
|
|
|
domain.workingTime = (this.reportTimeType.allday * domain.progress/100).toFixed(1);
|
|
domain.workingTime = (this.reportTimeType.allday * domain.progress/100).toFixed(1);
|
|
}
|
|
}
|
|
//加载昱众的工作职责
|
|
//加载昱众的工作职责
|
|
@@ -5297,9 +5282,7 @@
|
|
this.dataLoading = false
|
|
this.dataLoading = false
|
|
}
|
|
}
|
|
// return
|
|
// return
|
|
- console.log(textList, '<=== textList')
|
|
|
|
this.seluserforTextin(this.seluserText, newData, textList)
|
|
this.seluserforTextin(this.seluserText, newData, textList)
|
|
- console.log(newData, 'Data')
|
|
|
|
this.data = newData;
|
|
this.data = newData;
|
|
this.calculateMembCount(this.data);
|
|
this.calculateMembCount(this.data);
|
|
this.data[0].membCount = this.membCount;//总人数
|
|
this.data[0].membCount = this.membCount;//总人数
|
|
@@ -5343,7 +5326,6 @@
|
|
localStorage.setItem('nodeModelDataKey', JSON.stringify(this.nodeModelData))
|
|
localStorage.setItem('nodeModelDataKey', JSON.stringify(this.nodeModelData))
|
|
},
|
|
},
|
|
nodeChangeCollapse(data) {
|
|
nodeChangeCollapse(data) {
|
|
- console.log(this.nodeModelData)
|
|
|
|
this.nodeModelData.some((item, i) => {
|
|
this.nodeModelData.some((item, i) => {
|
|
if (item === data.id) {
|
|
if (item === data.id) {
|
|
this.nodeModelData.length = i
|
|
this.nodeModelData.length = i
|
|
@@ -5438,7 +5420,6 @@
|
|
this.setUserToDept(noAllData);
|
|
this.setUserToDept(noAllData);
|
|
this.deptMembData = noAllData;
|
|
this.deptMembData = noAllData;
|
|
this.deptMembDataBackups = JSON.parse(JSON.stringify(this.deptMembData))
|
|
this.deptMembDataBackups = JSON.parse(JSON.stringify(this.deptMembData))
|
|
- console.log(this.deptMembData, '代填人员数据')
|
|
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -5460,9 +5441,7 @@
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
var list1 = JSON.parse(JSON.stringify(res.data));
|
|
var list1 = JSON.parse(JSON.stringify(res.data));
|
|
-
|
|
|
|
this.deptOptionList = this.changeArr(list1);
|
|
this.deptOptionList = this.changeArr(list1);
|
|
- console.log(this.deptOptionList, '部门')
|
|
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -6016,8 +5995,6 @@
|
|
}
|
|
}
|
|
param.stateKey = this.stateKey
|
|
param.stateKey = this.stateKey
|
|
// param.departmentId = this.user.departmentId
|
|
// param.departmentId = this.user.departmentId
|
|
- console.log(param, '《=== 导出传的参数');
|
|
|
|
- console.log('开始调用exportReport接口');
|
|
|
|
this.http.post(this.port.report.export, param,
|
|
this.http.post(this.port.report.export, param,
|
|
res => {
|
|
res => {
|
|
this.exportingData = false;
|
|
this.exportingData = false;
|
|
@@ -6157,8 +6134,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.projectList = res.data;
|
|
this.projectList = res.data;
|
|
-
|
|
|
|
- console.log("项目列表",this.projectList);
|
|
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -6448,7 +6423,6 @@
|
|
time: list.time,
|
|
time: list.time,
|
|
showRefresh: list.showRefresh
|
|
showRefresh: list.showRefresh
|
|
}
|
|
}
|
|
- console.log('workForm', this.workForm)
|
|
|
|
} else {
|
|
} else {
|
|
this.workForm = {
|
|
this.workForm = {
|
|
createDate: this.workForm.createDate,
|
|
createDate: this.workForm.createDate,
|
|
@@ -6522,7 +6496,6 @@
|
|
} else {
|
|
} else {
|
|
this.falsss = true
|
|
this.falsss = true
|
|
}
|
|
}
|
|
- console.log('this.isSubstitude=='+this.isSubstitude);
|
|
|
|
if (this.isSubstitude) {
|
|
if (this.isSubstitude) {
|
|
this.getSubstitudeUserDeptList();
|
|
this.getSubstitudeUserDeptList();
|
|
} else {
|
|
} else {
|
|
@@ -6589,7 +6562,6 @@
|
|
|
|
|
|
//按周填报的弹窗口中编辑单项目相关数据
|
|
//按周填报的弹窗口中编辑单项目相关数据
|
|
setWeekFormReportItem(reportId, i, names, row,sss) {
|
|
setWeekFormReportItem(reportId, i, names, row,sss) {
|
|
- console.log(sss)
|
|
|
|
this.http.post('/report/getReportById', {
|
|
this.http.post('/report/getReportById', {
|
|
reportId: reportId
|
|
reportId: reportId
|
|
},
|
|
},
|
|
@@ -6669,7 +6641,6 @@
|
|
sss.progress = item.progress
|
|
sss.progress = item.progress
|
|
sss.time = item.time
|
|
sss.time = item.time
|
|
sss.content = item.content;
|
|
sss.content = item.content;
|
|
- console.log('333', sss.content)
|
|
|
|
if (sss.time == '' && this.reportTimeType.type == 2) {
|
|
if (sss.time == '' && this.reportTimeType.type == 2) {
|
|
//取已填时间范围中最大的一个作为开始时间
|
|
//取已填时间范围中最大的一个作为开始时间
|
|
var startTime = '09:00';
|
|
var startTime = '09:00';
|
|
@@ -6708,7 +6679,6 @@
|
|
sss.subProjectList = item.subProjectList
|
|
sss.subProjectList = item.subProjectList
|
|
sss.stages = item.stages
|
|
sss.stages = item.stages
|
|
sss.taskGroups = item.taskGroups;
|
|
sss.taskGroups = item.taskGroups;
|
|
- console.log(sss.taskGroups, '33333');
|
|
|
|
sss.auditUserList = obj.auditUserList;
|
|
sss.auditUserList = obj.auditUserList;
|
|
sss.degreeId = item.degreeId;
|
|
sss.degreeId = item.degreeId;
|
|
sss.customData = item.customData;
|
|
sss.customData = item.customData;
|
|
@@ -6728,7 +6698,6 @@
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
|
|
|
this.getWeeklyTaskList(sss)
|
|
this.getWeeklyTaskList(sss)
|
|
- console.log('最后的周报 ===>', this.zhoBao)
|
|
|
|
} else {
|
|
} else {
|
|
//第一次打开,获取数据
|
|
//第一次打开,获取数据
|
|
if (sss.id == -1) {
|
|
if (sss.id == -1) {
|
|
@@ -7371,7 +7340,6 @@
|
|
this.dateAr = []
|
|
this.dateAr = []
|
|
var alp = []
|
|
var alp = []
|
|
var zhis = zhi[i]
|
|
var zhis = zhi[i]
|
|
- console.log(zhis)
|
|
|
|
for(var j in zhis) {
|
|
for(var j in zhis) {
|
|
if(j != 'zhoDataTime' && j != 'he' && zhis[j].time != null && zhis[j].time != 'null' && zhis[j].time != '') {
|
|
if(j != 'zhoDataTime' && j != 'he' && zhis[j].time != null && zhis[j].time != 'null' && zhis[j].time != '') {
|
|
let objs = {}
|
|
let objs = {}
|
|
@@ -7381,7 +7349,6 @@
|
|
alp.push(objs)
|
|
alp.push(objs)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(alp)
|
|
|
|
this.dateAr = alp
|
|
this.dateAr = alp
|
|
if (this.reportTimeType.timeCanOverlap == 0) {
|
|
if (this.reportTimeType.timeCanOverlap == 0) {
|
|
let str = this.$t('message.Filledtimeperiodsoverlap')
|
|
let str = this.$t('message.Filledtimeperiodsoverlap')
|
|
@@ -7436,7 +7403,6 @@
|
|
if(zhi[n].corpTime && parseInt(zhi[n].he) > zhi[n].corpTime.workHours){
|
|
if(zhi[n].corpTime && parseInt(zhi[n].he) > zhi[n].corpTime.workHours){
|
|
overcorp += zhi[n].zhoDataTime + ','
|
|
overcorp += zhi[n].zhoDataTime + ','
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
if(this.user.companyId != 5978 && overcorp != ''){
|
|
if(this.user.companyId != 5978 && overcorp != ''){
|
|
overcorp = overcorp.substring(0,overcorp.length - 1)
|
|
overcorp = overcorp.substring(0,overcorp.length - 1)
|
|
@@ -8760,10 +8726,6 @@
|
|
this.isDenying = false;
|
|
this.isDenying = false;
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
var ids = item.id;
|
|
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};
|
|
this.denyForm = {id: id ,i:i, date: this.date +day, reportIds: ids, reason:null};
|
|
},
|
|
},
|
|
// 未通过日报
|
|
// 未通过日报
|
|
@@ -8827,7 +8789,6 @@
|
|
this.workForm.domains[obj.idx].projectAuditorId = obj.id
|
|
this.workForm.domains[obj.idx].projectAuditorId = obj.id
|
|
},
|
|
},
|
|
vueCasader(obj) {
|
|
vueCasader(obj) {
|
|
- console.log(obj, '看看值', this.departmentList)
|
|
|
|
if(obj.distinction == 1 && obj.item) {
|
|
if(obj.distinction == 1 && obj.item) {
|
|
let arr = []
|
|
let arr = []
|
|
arr.push(obj.item.value)
|
|
arr.push(obj.item.value)
|
|
@@ -8888,7 +8849,6 @@
|
|
},
|
|
},
|
|
//景昱变更提醒
|
|
//景昱变更提醒
|
|
changeReminder(item){
|
|
changeReminder(item){
|
|
- console.log("============",item)
|
|
|
|
let parameter={
|
|
let parameter={
|
|
startDate: this.WorktimeDatepickValue[0],
|
|
startDate: this.WorktimeDatepickValue[0],
|
|
endDate: this.WorktimeDatepickValue[1],
|
|
endDate: this.WorktimeDatepickValue[1],
|
|
@@ -8966,7 +8926,6 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleThreeData(userList) {
|
|
handleThreeData(userList) {
|
|
- console.log(userList, '人员数据')
|
|
|
|
let deptMembDataBackups = JSON.parse(JSON.stringify(this.deptMembDataBackups))
|
|
let deptMembDataBackups = JSON.parse(JSON.stringify(this.deptMembDataBackups))
|
|
this.deptMembData = this.filterTreeNodes(deptMembDataBackups, userList)
|
|
this.deptMembData = this.filterTreeNodes(deptMembDataBackups, userList)
|
|
},
|
|
},
|
|
@@ -9023,7 +8982,6 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
changeTreeNodeStatus(node) {
|
|
changeTreeNodeStatus(node) {
|
|
- console.log(node)
|
|
|
|
let allZt = true
|
|
let allZt = true
|
|
node.expanded = allZt
|
|
node.expanded = allZt
|
|
for (let i = 0; i < node.childNodes.length; i++) {
|
|
for (let i = 0; i < node.childNodes.length; i++) {
|
|
@@ -9035,16 +8993,13 @@
|
|
},
|
|
},
|
|
// 按周填报获取相关任务
|
|
// 按周填报获取相关任务
|
|
async getWeeklyTaskList(item) {
|
|
async getWeeklyTaskList(item) {
|
|
- console.log(item, '<=== 数据')
|
|
|
|
const { projectId, groupId, stage, taskId } = item
|
|
const { projectId, groupId, stage, taskId } = item
|
|
- console.log(projectId, groupId, stage)
|
|
|
|
let parms = { projectId, isSubstitude: 0 }
|
|
let parms = { projectId, isSubstitude: 0 }
|
|
groupId ? parms.groupId = groupId : ''
|
|
groupId ? parms.groupId = groupId : ''
|
|
stage ? parms.stage = stage : ''
|
|
stage ? parms.stage = stage : ''
|
|
const { data } = await this.postData('/task/getRecentTask', parms)
|
|
const { data } = await this.postData('/task/getRecentTask', parms)
|
|
this.zhoBao.taskId = taskId
|
|
this.zhoBao.taskId = taskId
|
|
this.$set(this.zhoBao, 'taskList', data)
|
|
this.$set(this.zhoBao, 'taskList', data)
|
|
- console.log(this.zhoBao)
|
|
|
|
},
|
|
},
|
|
// 封装 post 请求
|
|
// 封装 post 请求
|
|
postData(url, params) {
|
|
postData(url, params) {
|
|
@@ -9064,7 +9019,6 @@
|
|
},
|
|
},
|
|
// 自定义事件
|
|
// 自定义事件
|
|
selectCal(obj) {
|
|
selectCal(obj) {
|
|
- console.log(obj, '传数据来源')
|
|
|
|
if(obj.distinction == '1') {
|
|
if(obj.distinction == '1') {
|
|
this.zhoBao.projectAuditorId = obj.id
|
|
this.zhoBao.projectAuditorId = obj.id
|
|
} else if(obj.distinction == '2') {
|
|
} else if(obj.distinction == '2') {
|