|
@@ -486,12 +486,16 @@ export const exportWordHandler = async (type: EXPORT_WORD_ENUM, data: Record<any
|
|
|
}
|
|
|
break
|
|
|
case EXPORT_WORD_ENUM.SUB_PUT_BACK:
|
|
|
- console.log(temp)
|
|
|
temp = {
|
|
|
...temp,
|
|
|
num: dayjs(temp.date).format('YYYY') + temp.num,
|
|
|
date: dayjs(temp.date).format('YYYY年MM月DD日')
|
|
|
}
|
|
|
+ temp.goods.forEach((i: any) => {
|
|
|
+ if (i.numName !== '藏品总登记号') {
|
|
|
+ i.num = ''
|
|
|
+ }
|
|
|
+ })
|
|
|
break
|
|
|
case EXPORT_WORD_ENUM.COLLECTION_INVENTORY:
|
|
|
temp = {
|
|
@@ -595,6 +599,11 @@ export const exportWordHandler = async (type: EXPORT_WORD_ENUM, data: Record<any
|
|
|
imgs: stack2
|
|
|
}
|
|
|
|
|
|
+ if (temp.numName !== '藏品总登记号') {
|
|
|
+ temp.num2 = temp.num
|
|
|
+ temp.num = ''
|
|
|
+ }
|
|
|
+
|
|
|
if (type === EXPORT_WORD_ENUM.COLLECTION_ARCHIVES) {
|
|
|
temp.imagePages = await arrangeImages(temp.imagePages)
|
|
|
} else if (temp.thumb) {
|