|
|
|
@ -270,18 +270,20 @@
|
|
|
|
|
sortConditions: [],
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
arrRes.data.forEach((item) => {
|
|
|
|
|
values.attachments.forEach((e) => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
attachments.push({
|
|
|
|
|
taskMailId: values.id,
|
|
|
|
|
templateId: item.id,
|
|
|
|
|
fileName: values[item.id] ? values[item.id] : item.templateName,
|
|
|
|
|
fileType: values[`${item.id}-fileType`],
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (values.attachments) {
|
|
|
|
|
arrRes.data.forEach((item) => {
|
|
|
|
|
values.attachments.forEach((e) => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
attachments.push({
|
|
|
|
|
taskMailId: values.id,
|
|
|
|
|
templateId: item.id,
|
|
|
|
|
fileName: values[item.id] ? values[item.id] : item.templateName,
|
|
|
|
|
fileType: values[`${item.id}-fileType`],
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
values.attachments = attachments
|
|
|
|
|
values.receivers = []
|
|
|
|
|