|
@@ -7464,9 +7464,10 @@
|
|
|
if (this.isSubstitude) {
|
|
|
formData.append('targetUids',this.workForm.userId[0]);
|
|
|
}
|
|
|
- for(var s in this.projectList) {
|
|
|
- if(j == this.projectList[s].projectName) {
|
|
|
- formData.append("projectId", this.projectList[s].id);
|
|
|
+ for(var s in this.selProjectList) {
|
|
|
+ if(j == this.selProjectList[s].projectName) {
|
|
|
+ formData.append("projectId", this.selProjectList[s].id);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
if(this.user.timeType.reportAuditType == 3){
|
|
@@ -7561,6 +7562,7 @@
|
|
|
var pItem = this.selProjectList[k];
|
|
|
var pName = pItem.projectName;
|
|
|
var j = pName;
|
|
|
+ var pid = pItem.id;
|
|
|
console.log('j==周报中的项目='+j);
|
|
|
if(zhoD[j].time && zhoD[j].time != 'null') {
|
|
|
flgs = true
|
|
@@ -7569,11 +7571,7 @@
|
|
|
if (this.isSubstitude) {
|
|
|
formData.append('targetUids',this.workForm.userId[0]);
|
|
|
}
|
|
|
- for(var s in this.projectList) {
|
|
|
- if(j == this.projectList[s].projectName) {
|
|
|
- formData.append("projectId", this.projectList[s].id);
|
|
|
- }
|
|
|
- }
|
|
|
+ formData.append("projectId", pid);
|
|
|
if(this.user.timeType.reportAuditType == 3){
|
|
|
let audItem = {}
|
|
|
if(this.user.timeType.auditLevel > 0){
|
|
@@ -7657,11 +7655,7 @@
|
|
|
if (this.isSubstitude) {
|
|
|
formData.append('targetUids',this.workForm.userId[0]);
|
|
|
}
|
|
|
- for(var s in this.projectList) {
|
|
|
- if(j == this.projectList[s].projectName) {
|
|
|
- formData.append("projectId", this.projectList[s].id);
|
|
|
- }
|
|
|
- }
|
|
|
+ formData.append("projectId", pItem.id);
|
|
|
if(this.user.timeType.reportAuditType == 3){
|
|
|
let audItem = {}
|
|
|
if(this.user.timeType.auditLevel > 0){
|