Browse Source

预归档库追加条目

master
xuhuajiao 2 weeks ago
parent
commit
dd5633c834
  1. 2
      src/views/components/category/PreviewForm.vue
  2. 13
      src/views/prearchiveLibrary/index.vue

2
src/views/components/category/PreviewForm.vue

@ -1593,7 +1593,7 @@ export default {
this.$emit('formLoadingShow', true)
//
if (this.isDesFormType === 'prearchiveLibrary') {
if (this.fileOriginal === null) {
if (this.fileOriginal === null || this.fileOriginal === '') {
this.$message({ message: '请上传电子原件', type: 'error', offset: 8 })
this.$emit('formLoadingShow', false)
return false

13
src/views/prearchiveLibrary/index.vue

@ -32,6 +32,7 @@
<i class="iconfont icon-daochu" />
导出
</el-button>
<el-button size="mini" :disabled="crud.selections.length !== 1" @click="handleForm('copy')"><i class="iconfont icon-xinzeng" />追加复制</el-button>
</template>
<template v-slot:rightButtonGroup>
<div>
@ -359,6 +360,13 @@ export default {
documentId: this.selectedDocument.id,
archivesId: this.crud.selections[0].id
}
} else if (type === 'copy') {
this.formTitle = '复制文件'
this.arcId = this.crud.selections[0].id
params = {
documentId: this.selectedDocument.id,
archivesId: this.crud.selections[0].id
}
}
this.getFormInfo(params, type)
},
@ -405,6 +413,11 @@ export default {
this.$refs.previewForm.fileJsonString = fileJsonString
console.log('fileJsonString', JSON.parse(fileJsonString))
console.log('fileJsonString', JSON.parse(fileJsonString).length)
} else if (type === 'copy') {
this.$refs.previewForm.archivesType = 'add'
this.$refs.previewForm.addOrUpdateForm = data.echo
this.$refs.previewForm.fileOriginal = ''
this.$refs.previewForm.fileJsonString = ''
} else {
this.$refs.previewForm.archivesType = 'add'
}

Loading…
Cancel
Save