|
@@ -260,24 +260,26 @@ export default {
|
|
|
/**
|
|
/**
|
|
|
* 处理重新发起数据
|
|
* 处理重新发起数据
|
|
|
*/
|
|
*/
|
|
|
- dealReStartData(data, type) {
|
|
|
|
|
|
|
+ dealReStartData(data, type, loop = 'out') {
|
|
|
|
|
+ const { opinionList } = this.formParams.formOpinionData || {}
|
|
|
if (type === 'obj') {
|
|
if (type === 'obj') {
|
|
|
for (const key in data) {
|
|
for (const key in data) {
|
|
|
if (key === 'id') {
|
|
if (key === 'id') {
|
|
|
data.id = ''
|
|
data.id = ''
|
|
|
} else if (key === 'shiFouGuoShen') {
|
|
} else if (key === 'shiFouGuoShen') {
|
|
|
- data.shiFouGuoShen = ''
|
|
|
|
|
|
|
+ data.shiFouGuoShen =
|
|
|
|
|
+ loop === 'in' ? '' : '已' + opinionList[1].taskName
|
|
|
} else if (key === 'tenantId') {
|
|
} else if (key === 'tenantId') {
|
|
|
data.tenantId = ''
|
|
data.tenantId = ''
|
|
|
} else if (key === 'parentId') {
|
|
} else if (key === 'parentId') {
|
|
|
data.parentId = ''
|
|
data.parentId = ''
|
|
|
} else if (Array.isArray(data[key]) && data[key].length > 0) {
|
|
} else if (Array.isArray(data[key]) && data[key].length > 0) {
|
|
|
- this.dealReStartData(data[key], 'arr')
|
|
|
|
|
|
|
+ this.dealReStartData(data[key], 'arr', 'in')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} else if (type === 'arr') {
|
|
} else if (type === 'arr') {
|
|
|
data.forEach((e) => {
|
|
data.forEach((e) => {
|
|
|
- this.dealReStartData(e, 'obj')
|
|
|
|
|
|
|
+ this.dealReStartData(e, 'obj', 'in')
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -294,7 +296,7 @@ export default {
|
|
|
} = this.getFormEL() || {}
|
|
} = this.getFormEL() || {}
|
|
|
if (!formData) return
|
|
if (!formData) return
|
|
|
if (this.reSign && this.reSign === 'reStart') {
|
|
if (this.reSign && this.reSign === 'reStart') {
|
|
|
- this.dealReStartData(formData, 'obj')
|
|
|
|
|
|
|
+ this.dealReStartData(formData, 'obj', 'out')
|
|
|
}
|
|
}
|
|
|
// 暂存后直接提交,已有数据ID
|
|
// 暂存后直接提交,已有数据ID
|
|
|
if (this.$utils.isNotEmpty(this.bizKey)) {
|
|
if (this.$utils.isNotEmpty(this.bizKey)) {
|