|
@@ -2838,7 +2838,7 @@
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
|
|
|
- getGroupStages(domain, index) {
|
|
|
+ getGroupStages(domain, index, keepStage) {
|
|
|
// console.log(domain);
|
|
|
if(!domain.groupId){
|
|
|
domain.projectAuditorId = ''
|
|
@@ -2852,7 +2852,9 @@
|
|
|
this.http.post("/stages/getProjectStagesByGroup", {groupId: domain.groupId},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
- domain.stage = '';
|
|
|
+ if (!keepStage) {
|
|
|
+ domain.stage = '';
|
|
|
+ }
|
|
|
domain.stages = res.data;
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
@@ -3979,16 +3981,21 @@
|
|
|
sss.con = item.con
|
|
|
sss.progress = item.progress
|
|
|
sss.time = item.time
|
|
|
+ sss.groupId = item.groupId
|
|
|
+ sss.stage = item.stage;
|
|
|
sss.workingTime = item.workingTime
|
|
|
sss.projectAuditorId = item.projectAuditorId;
|
|
|
if (this.timeBasecostList && this.timeBasecostList.length > 0) {
|
|
|
//默认选中第一个
|
|
|
sss.basecostId = this.timeBasecostList[0].id;
|
|
|
}
|
|
|
+
|
|
|
var that = this
|
|
|
setTimeout(() =>{
|
|
|
+ var isFirstEdit = false;
|
|
|
if(Object.keys(item).length < 5) {
|
|
|
- // console.log(456)
|
|
|
+ //首次点开当前的这个cell,初始化数据
|
|
|
+ isFirstEdit = true;
|
|
|
sss.subProjectId = that.workForm.domains[0].subProjectId
|
|
|
sss.stage = that.workForm.domains[0].stage
|
|
|
sss.subProjectList = that.workForm.domains[0].subProjectList
|
|
@@ -4002,6 +4009,8 @@
|
|
|
sss.stages = item.stages
|
|
|
sss.taskGroups = item.taskGroups;
|
|
|
sss.auditUserList = obj.auditUserList;
|
|
|
+ sss.degreeId = item.degreeId;
|
|
|
+ sss.customData = item.customData;
|
|
|
}
|
|
|
if (sss.auditUserList != null && sss.auditUserList.length==1) {
|
|
|
//只有一个审核人,自动设置上去
|
|
@@ -4013,30 +4022,16 @@
|
|
|
that.zhoBaoName = names
|
|
|
that.zhoBao = sss
|
|
|
that.zhis = row
|
|
|
+ if (sss.groupId) {
|
|
|
+ //最后一个参数表示是否保留stage的值,不要重置为空
|
|
|
+ this.getGroupStages(that.zhoBao, 0, !isFirstEdit)
|
|
|
+ }
|
|
|
that.$forceUpdate();
|
|
|
- },500);
|
|
|
- // if(Object.keys(sss).length <= 4) {
|
|
|
- // sss.subProjectId = this.workForm.domains[0].subProjectId
|
|
|
- // sss.stage = this.workForm.domains[0].stage
|
|
|
- // sss.subProjectList = this.workForm.domains[0].subProjectList
|
|
|
- // sss.stages = this.workForm.domains[0].stages
|
|
|
- // } else {
|
|
|
- // sss.subProjectId = item.subProjectId
|
|
|
- // sss.stage = item.stage
|
|
|
- // sss.subProjectList = item.subProjectList
|
|
|
- // sss.stages = item.stages
|
|
|
- // }
|
|
|
- // console.log(sss, '数据')
|
|
|
- // this.zhoBaoIdx = i
|
|
|
- // this.zhoBaoName = names
|
|
|
- // this.zhoBao = sss
|
|
|
- // this.zhis = row
|
|
|
- // this.selectProject(row[0], i)
|
|
|
+ },600);
|
|
|
},
|
|
|
// 按周填报里内容的填写点击确定
|
|
|
btnTianxiaes() {
|
|
|
if (this.zhoBao.projectAuditorId) {
|
|
|
-
|
|
|
let errtips = ''
|
|
|
if(this.user.timeType.customDegreeStatus == 1 && this.zhoBao.wuduList.length != 0 && !this.zhoBao.degreeId) {
|
|
|
errtips += this.user.timeType.customDegreeName + '、'
|
|
@@ -4057,8 +4052,6 @@
|
|
|
type: 'warning'
|
|
|
})
|
|
|
}else {
|
|
|
-
|
|
|
-
|
|
|
this.tianxieDialogVisible = false
|
|
|
var zhong = this.zhoData
|
|
|
zhong[this.zhoBaoIdx][this.zhoBaoName] = this.zhoBao
|
|
@@ -4557,6 +4550,9 @@
|
|
|
formData.append("content", zhiZhi)
|
|
|
formData.append("isOvertime", 0)
|
|
|
formData.append("professionProgress", "[]")
|
|
|
+ if (zhoD[j].groupId) {
|
|
|
+ formData.append("groupId",zhoD[j].groupId)
|
|
|
+ }
|
|
|
zhoD[j].stage ? formData.append("stage", zhoD[j].stage) : formData.append("stage", '');
|
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
|
if (zhoD[j].projectAuditorId) {
|
|
@@ -4609,6 +4605,9 @@
|
|
|
zhoD[j].con == '' || zhoD[j].con == null ? formData.append("content", '-') : formData.append("content", zhoD[j].con)
|
|
|
formData.append("isOvertime", 0)
|
|
|
formData.append("professionProgress", "[]")
|
|
|
+ if (zhoD[j].groupId) {
|
|
|
+ formData.append("groupId",zhoD[j].groupId)
|
|
|
+ }
|
|
|
zhoD[j].stage ? formData.append("stage", zhoD[j].stage) : formData.append("stage", '');
|
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
|
if (zhoD[j].projectAuditorId) {
|
|
@@ -4664,6 +4663,9 @@
|
|
|
zhoD[j].con == '' || zhoD[j].con == null ? formData.append("content", '-') : formData.append("content", zhoD[j].con)
|
|
|
formData.append("isOvertime", 0)
|
|
|
formData.append("professionProgress", "[]")
|
|
|
+ if (zhoD[j].groupId) {
|
|
|
+ formData.append("groupId",zhoD[j].groupId)
|
|
|
+ }
|
|
|
zhoD[j].stage ? formData.append("stage", zhoD[j].stage) : formData.append("stage", '');
|
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
|
if (zhoD[j].projectAuditorId) {
|