|
|
@ -433,40 +433,42 @@ export default { |
|
|
|
return false; |
|
|
|
} |
|
|
|
this.$refs.ref_processinfo_add.getProcessInfo(); |
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_add.operationType; |
|
|
|
this.eventInfoData.operationType = |
|
|
|
this.$refs.ref_processinfo_add.operationType; |
|
|
|
if (this.formData.operationType === "0" || this.formData.operationType === "6") { |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo; |
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content; |
|
|
|
this.eventInfoData.status = this.replayInfo.status; |
|
|
|
this.eventInfoData.timeLimit = this.replayInfo.timeLimit; |
|
|
|
if (this.replayInfo.categoryId) { |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); |
|
|
|
} |
|
|
|
} else if (this.formData.operationType === "5") { |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo; |
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content; |
|
|
|
this.eventInfoData.status = this.replayInfo.status; |
|
|
|
this.eventInfoData.timeLimit = this.replayInfo.timeLimit; |
|
|
|
if (this.replayInfo.categoryId) { |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); |
|
|
|
if (this.$refs.ref_processinfo_add.okflag) { |
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_add.operationType; |
|
|
|
this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType; |
|
|
|
if (this.formData.operationType === "0" || this.formData.operationType === "6") { |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo; |
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content; |
|
|
|
this.eventInfoData.status = this.replayInfo.status; |
|
|
|
this.eventInfoData.timeLimit = this.replayInfo.timeLimit; |
|
|
|
if (this.replayInfo.categoryId) { |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); |
|
|
|
} |
|
|
|
} else if (this.formData.operationType === "5") { |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo; |
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content; |
|
|
|
this.eventInfoData.status = this.replayInfo.status; |
|
|
|
this.eventInfoData.timeLimit = this.replayInfo.timeLimit; |
|
|
|
if (this.replayInfo.categoryId) { |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); |
|
|
|
} |
|
|
|
} else if (this.formData.operationType === "2") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.project = {}; |
|
|
|
this.demand = this.$refs.ref_processinfo_add.demand; |
|
|
|
this.demand.gridId = this.eventInfoData.gridId; |
|
|
|
} else if (this.formData.operationType === "4") { |
|
|
|
this.replayInfo = {}; |
|
|
|
} |
|
|
|
} else if (this.formData.operationType === "2") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.project = {}; |
|
|
|
this.demand = this.$refs.ref_processinfo_add.demand; |
|
|
|
this.demand.gridId = this.eventInfoData.gridId; |
|
|
|
} else if (this.formData.operationType === "4") { |
|
|
|
this.replayInfo = {}; |
|
|
|
} |
|
|
|
|
|
|
|
this.formData = { |
|
|
|
...this.eventInfoData, |
|
|
|
// replayInfo: this.replayInfo, |
|
|
|
replayInfo: this.replayInfo, |
|
|
|
project: this.project, |
|
|
|
demand: this.demand, |
|
|
|
issueInfo: this.issueInfo, |
|
|
@ -503,6 +505,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async handelDispose() { |
|
|
|
console.log(this.$refs.ref_processinfo_dispose.okflag); |
|
|
|
this.$refs.ref_processinfo_dispose.getProcessInfo(); |
|
|
|
if (this.$refs.ref_processinfo_dispose.okflag) { |
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType; |
|
|
@ -510,6 +513,10 @@ export default { |
|
|
|
|| this.formData.operationType === '6') { |
|
|
|
this.project = {}; |
|
|
|
this.demand = {}; |
|
|
|
if(this.$refs.ref_processinfo_dispose.replayInfo.okflag){ |
|
|
|
this.endLoading(); |
|
|
|
return false |
|
|
|
} |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; |
|
|
|
this.replayInfo.icEventId = this.eventId; |
|
|
|
//回复属性赋值 |
|
|
@ -528,7 +535,6 @@ export default { |
|
|
|
this.demand = this.$refs.ref_processinfo_dispose.demand; |
|
|
|
//需求的属性同事件一样 |
|
|
|
this.demand.icEventId = this.eventId; |
|
|
|
console.log(this.eventDetailData); |
|
|
|
if (this.demand.gridId === '') { |
|
|
|
this.demand.gridId = this.eventDetailData.gridId |
|
|
|
} |
|
|
@ -540,7 +546,6 @@ export default { |
|
|
|
this.project = {}; |
|
|
|
this.issueInfo = this.$refs.ref_processinfo_dispose.issueInfo; |
|
|
|
//项目的属性同事件一样 |
|
|
|
console.log("issueInfo", this.issueInfo); |
|
|
|
let url = "/governance/icEventOld/icEventToIssue"; |
|
|
|
await this.submitDispose(url, this.issueInfo); |
|
|
|
} else { |
|
|
@ -556,7 +561,6 @@ export default { |
|
|
|
}); |
|
|
|
if (code === 0) { |
|
|
|
this.$message.success("操作成功!"); |
|
|
|
|
|
|
|
this.$emit("handleOk"); |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|