|
@@ -5210,7 +5210,16 @@
|
|
},
|
|
},
|
|
|
|
|
|
getGroupStages(domain, index, keepStage) {
|
|
getGroupStages(domain, index, keepStage) {
|
|
- // console.log(domain);
|
|
|
|
|
|
+ if(this.user.companyId == '7536') {
|
|
|
|
+ const taskGroupsList = domain.taskGroups
|
|
|
|
+ const groupId = domain.groupId
|
|
|
|
+ const taskGroupRow = taskGroupsList.find(item => item.id == groupId)
|
|
|
|
+ if(groupId && taskGroupRow.name.indexOf('出差工时') != '-1') {
|
|
|
|
+ domain.extraField4 = ''
|
|
|
|
+ domain.extraField5 = ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log(domain);
|
|
if(!domain.groupId){
|
|
if(!domain.groupId){
|
|
domain.projectAuditorId = ''
|
|
domain.projectAuditorId = ''
|
|
domain.stages = []
|
|
domain.stages = []
|
|
@@ -5218,6 +5227,7 @@
|
|
domain.taskId = ''
|
|
domain.taskId = ''
|
|
domain.sapServiceId = ''
|
|
domain.sapServiceId = ''
|
|
}
|
|
}
|
|
|
|
+
|
|
if(this.user.timeType.reportAuditType >= 1){
|
|
if(this.user.timeType.reportAuditType >= 1){
|
|
domain.auditUserList = []
|
|
domain.auditUserList = []
|
|
}
|
|
}
|
|
@@ -7091,7 +7101,21 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if(this.user.companyId == '7536') {
|
|
|
|
+ const taskGroupsList = this.zhoBao.taskGroups
|
|
|
|
+ const groupId = this.zhoBao.groupId
|
|
|
|
+ const taskGroupRow = taskGroupsList.find(item => item.id == groupId)
|
|
|
|
+ const extraField4 = this.zhoBao.extraField4
|
|
|
|
+ const extraField5 = this.zhoBao.extraField5
|
|
|
|
+ if(groupId && taskGroupRow.name.indexOf('研发工时') != '-1' && (extraField4 || extraField5)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: `选择了研发工时,请勿填写工单号和行号`,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
this.tianxieDialogVisible = false
|
|
this.tianxieDialogVisible = false
|
|
var zhong = this.zhoData
|
|
var zhong = this.zhoData
|
|
this.zhoBao.hasEdited = true;
|
|
this.zhoBao.hasEdited = true;
|
|
@@ -8892,7 +8916,24 @@
|
|
if(this.user.timeType.reportExtraField5Name) {
|
|
if(this.user.timeType.reportExtraField5Name) {
|
|
formData.append('extraField5', this.workForm.domains[i].extraField5 || '');
|
|
formData.append('extraField5', this.workForm.domains[i].extraField5 || '');
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(this.user.companyId == 7536) {
|
|
|
|
+ const taskGroupsList = this.workForm.domains[i].taskGroups
|
|
|
|
+ const groupId = this.workForm.domains[i].groupId
|
|
|
|
+ const taskGroupRow = taskGroupsList.find(item => item.id == groupId)
|
|
|
|
+ const extraField4 = this.workForm.domains[i].extraField4
|
|
|
|
+ const extraField5 = this.workForm.domains[i].extraField5
|
|
|
|
+ const projectName = this.workForm.domains[i].projectName
|
|
|
|
+ if(taskGroupRow.name.indexOf('研发工时') != '-1' && (extraField4 || extraField5)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: `【${projectName}】项目选择了研发工时,请勿填写工单号和行号`,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
this.submitingReport = true;
|
|
this.submitingReport = true;
|
|
this.http.uploadFile( this.port.report.editPort, formData,
|
|
this.http.uploadFile( this.port.report.editPort, formData,
|
|
res => {
|
|
res => {
|