|
|
|
@ -200,8 +200,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { crud } from '@crud/crud' |
|
|
|
import { FetchDoeditIsRepeat } from '@/api/archivesManage/archivesList' |
|
|
|
import { collectAdd, collectEdit, FetchIsRepeatByArchivesNo, FetchIsRepeatAllByArchivesNo, FetchMaxItemNoByArchivesNo } from '@/api/collect/collect' |
|
|
|
import { collectAdd, collectEdit, FetchIsRepeatByArchivesNo, FetchIsRepeatAllByArchivesNo, FetchMaxItemNoByArchivesNo, FetchIsRepeatByField } from '@/api/collect/collect' |
|
|
|
import { prearchEdit, FetchMergeToFile, FetchReDoeditIsRepeat } from '@/api/prearchiveLibrary/prearchiveLibrary' |
|
|
|
import { getNoFormatField } from '@/api/system/category/fileNoFormat' |
|
|
|
import draggable from 'vuedraggable' |
|
|
|
@ -1197,7 +1196,7 @@ export default { |
|
|
|
// 判断重复api |
|
|
|
handlerIsRepeat(params, item) { |
|
|
|
if (this.isDesFormType !== 'prearchiveLibrary') { |
|
|
|
FetchDoeditIsRepeat(params).then(res => { |
|
|
|
FetchIsRepeatByField(params).then(res => { |
|
|
|
if (res) { |
|
|
|
this.$message({ message: item.fieldCnName + '不可重复', type: 'error', offset: 8 }) |
|
|
|
} |
|
|
|
@ -1219,9 +1218,10 @@ export default { |
|
|
|
const params = this.isDesFormType !== 'prearchiveLibrary' |
|
|
|
? { |
|
|
|
'categoryId': this.selectedCategory.id, |
|
|
|
'archivesId': this.arcId, |
|
|
|
// 'archivesId': this.arcId, |
|
|
|
'categoryLevel': this.collectLevel, |
|
|
|
'fieldName': item.fieldName, |
|
|
|
'value': this.addOrUpdateForm[item.fieldName] |
|
|
|
'fieldValue': this.addOrUpdateForm[item.fieldName] |
|
|
|
} |
|
|
|
: { |
|
|
|
'documentId': this.selectedCategory.id, |
|
|
|
@ -1278,9 +1278,10 @@ export default { |
|
|
|
const params = this.isDesFormType !== 'prearchiveLibrary' && this.isDesFormType !== 'mergeFile' |
|
|
|
? { |
|
|
|
'categoryId': this.selectedCategory.id, |
|
|
|
'archivesId': this.arcId, |
|
|
|
// 'archivesId': this.arcId, |
|
|
|
'categoryLevel': this.collectLevel, |
|
|
|
'fieldName': this.treeCurrentFiled.fieldName, |
|
|
|
'value': val.dictionaryName |
|
|
|
'fieldValue': val.dictionaryName |
|
|
|
} |
|
|
|
: { |
|
|
|
'documentId': this.selectedCategory.id, |
|
|
|
|