|
@@ -542,23 +542,21 @@ export const exportWordHandler = async (type: EXPORT_WORD_ENUM, data: Record<any
|
|
|
temp = {
|
|
|
...temp,
|
|
|
year: date.format('YYYY'),
|
|
|
- rtf: removeHtmlTags(JSON.parse(temp.rtf).txtArr[0].txt),
|
|
|
+ rtf: temp.rtf ? removeHtmlTags(JSON.parse(temp.rtf).txtArr[0].txt) : '',
|
|
|
authInfoRtf: removeHtmlTags(JSON.parse(temp.authInfoRtf).txtArr[0].txt),
|
|
|
authResultRtf: removeHtmlTags(JSON.parse(temp.authResultRtf).txtArr[0].txt)
|
|
|
}
|
|
|
break
|
|
|
+ case EXPORT_WORD_ENUM.COLLECTION_ARCHIVES:
|
|
|
case EXPORT_WORD_ENUM.COLLECTION_CARD:
|
|
|
+ console.log(temp)
|
|
|
temp = {
|
|
|
...temp,
|
|
|
year: date.format('YYYY'),
|
|
|
month: date.format('MM'),
|
|
|
day: date.format('DD'),
|
|
|
- pcs: temp.pcs + temp.pcsUnit,
|
|
|
- source: resJiLianFu(temp.source),
|
|
|
size: myTableTransferSize(temp),
|
|
|
- quality: temp.quality + temp.qualityUnit,
|
|
|
- dictTexture3: resJiLianFu(temp.dictTexture3),
|
|
|
- rtf: removeHtmlTags(JSON.parse(temp.rtf).txtArr[0].txt),
|
|
|
+ quality: temp?.qualityDictScope ? resJiLianFu(temp.qualityDictScope) : '',
|
|
|
deptName: (temp.records || []).length ? temp.records[0].deptName : '',
|
|
|
recordDate: (temp.records || []).length ? temp.records[0].createTime : '',
|
|
|
records: (temp.records || []).map(
|
|
@@ -566,9 +564,10 @@ export const exportWordHandler = async (type: EXPORT_WORD_ENUM, data: Record<any
|
|
|
`[${temp.dictLevel}],[${item.createTime}][${item.deptName}][${item.creatorName}]意见。`
|
|
|
)
|
|
|
}
|
|
|
- break
|
|
|
- case EXPORT_WORD_ENUM.COLLECTION_ARCHIVES:
|
|
|
- temp.imagePages = await arrangeImages(temp.imagePages)
|
|
|
+
|
|
|
+ if (type === EXPORT_WORD_ENUM.COLLECTION_ARCHIVES) {
|
|
|
+ temp.imagePages = await arrangeImages(temp.imagePages)
|
|
|
+ }
|
|
|
break
|
|
|
case EXPORT_WORD_ENUM.OUTSIDER_FORM:
|
|
|
const memberss = JSON.parse(temp.memberIds)
|