|
@ -67,7 +67,7 @@ |
|
|
<el-menu-item v-if="isTitleType !== 2" index="2-1" @click="handleBlukImport">批量导入</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType !== 2" index="2-1" @click="handleBlukImport">批量导入</el-menu-item> |
|
|
<!-- 项目 / 案卷 / 卷内 / 文件--> |
|
|
<!-- 项目 / 案卷 / 卷内 / 文件--> |
|
|
<el-menu-item v-if="activeIndex !== 1 || (isTitleType === 3 && selectedCategory.arrangeType === 1 && activeIndex === 1)" index="2-2" @click="handleBlukEditing">批量修改</el-menu-item> |
|
|
<el-menu-item v-if="activeIndex !== 1 || (isTitleType === 3 && selectedCategory.arrangeType === 1 && activeIndex === 1)" index="2-2" @click="handleBlukEditing">批量修改</el-menu-item> |
|
|
<el-menu-item v-if="(isTitleType === 3 && selectedCategory.arrangeType === 2) && activeIndex === 0" index="2-3" @click="handleJnSeqAdjustment('anjuan')">案卷顺序调整</el-menu-item> |
|
|
|
|
|
|
|
|
<el-menu-item v-if="(isTitleType === 3) && activeIndex === 0" index="2-3" @click="handleJnSeqAdjustment('anjuan')">案卷顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1 " index="2-12" @click="handleJnSeqAdjustment('juannei')">卷内顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1 " index="2-12" @click="handleJnSeqAdjustment('juannei')">卷内顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && selectedCategory.arrangeType === 1" index="2-3" @click="handleJnSeqAdjustment('file')">文件顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && selectedCategory.arrangeType === 1" index="2-3" @click="handleJnSeqAdjustment('file')">文件顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType !== 2 && !(isTitleType === 3 && (selectedCategory.arrangeType === 1|| selectedCategory.arrangeType === 2) && activeIndex === 1) && isTitleType !== 4" index="2-4" @click="handleFileNumberUpdate(0)">档号更新</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType !== 2 && !(isTitleType === 3 && (selectedCategory.arrangeType === 1|| selectedCategory.arrangeType === 2) && activeIndex === 1) && isTitleType !== 4" index="2-4" @click="handleFileNumberUpdate(0)">档号更新</el-menu-item> |
|
@ -179,24 +179,10 @@ |
|
|
<!-- 案卷/文件/卷内 顺序调整 --> |
|
|
<!-- 案卷/文件/卷内 顺序调整 --> |
|
|
<FileSeqAdjustment ref="fileSeqAdjustmentRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
<FileSeqAdjustment ref="fileSeqAdjustmentRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
|
|
|
|
|
|
<!-- 拆卷 --> |
|
|
|
|
|
<el-dialog class="tip-dialog" title="拆卷" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :visible.sync="uncoilVisible"> |
|
|
|
|
|
<div class="setting-dialog"> |
|
|
|
|
|
<div class="tip-content"> |
|
|
|
|
|
<p class="tipMsg">拆卷之后,对应的案卷数据将会自动删除</p> |
|
|
|
|
|
<span>你是否还要继续?</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button type="text" @click="uncoilVisible = false">取消</el-button> |
|
|
|
|
|
<el-button type="primary" @click.native="handleUncoilConfirm">确定</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 合卷 --> |
|
|
<!-- 合卷 --> |
|
|
<CombineFile ref="combineFileRef" /> |
|
|
|
|
|
|
|
|
<CombineFile ref="combineFileRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
<!-- 插件 --> |
|
|
<!-- 插件 --> |
|
|
<InsertFile ref="insertFileRef" /> |
|
|
|
|
|
|
|
|
<InsertFile ref="insertFileRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
<!-- 移动 --> |
|
|
<!-- 移动 --> |
|
|
<CollectMoveFile ref="collectMoveFileRef" /> |
|
|
<CollectMoveFile ref="collectMoveFileRef" /> |
|
|
|
|
|
|
|
@ -286,7 +272,7 @@ |
|
|
import CRUD, { crud } from '@crud/crud' |
|
|
import CRUD, { crud } from '@crud/crud' |
|
|
import { collectionLibraryCrud } from '../mixins/index' |
|
|
import { collectionLibraryCrud } from '../mixins/index' |
|
|
import { FetchInitCategoryInputFieldByPid } from '@/api/system/category/category' |
|
|
import { FetchInitCategoryInputFieldByPid } from '@/api/system/category/category' |
|
|
import { FetchDetailsById, collectDel, FetchRemoveArchivesSingle, FetchDeleteArchivesFile, FetchUpdateArchivesNo } from '@/api/collect/collect' |
|
|
|
|
|
|
|
|
import { FetchDetailsById, collectDel, FetchRemoveArchivesSingle, FetchDeleteArchivesFile, FetchUpdateArchivesNo, FetchDisbandArchives } from '@/api/collect/collect' |
|
|
import { FetchArchivesClassTree } from '@/api/system/archivesClass' |
|
|
import { FetchArchivesClassTree } from '@/api/system/archivesClass' |
|
|
import { FetchDictionaryTree } from '@/api/system/dict' |
|
|
import { FetchDictionaryTree } from '@/api/system/dict' |
|
|
import Treeselect from '@riophae/vue-treeselect' |
|
|
import Treeselect from '@riophae/vue-treeselect' |
|
@ -354,7 +340,6 @@ export default { |
|
|
delAllLoading: false, |
|
|
delAllLoading: false, |
|
|
deleteVisible: false, |
|
|
deleteVisible: false, |
|
|
moveVisible: false, |
|
|
moveVisible: false, |
|
|
uncoilVisible: false, |
|
|
|
|
|
filingVisible: false, |
|
|
filingVisible: false, |
|
|
returnVisible: false, |
|
|
returnVisible: false, |
|
|
downloadVisible: false, |
|
|
downloadVisible: false, |
|
@ -773,8 +758,6 @@ export default { |
|
|
this.$refs.fileSeqAdjustmentRef.isJuannei = false |
|
|
this.$refs.fileSeqAdjustmentRef.isJuannei = false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.$refs.fileSeqAdjustmentRef.adjustmentVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.fileSeqAdjustmentRef.getDoArchivesAdjust() |
|
|
this.$refs.fileSeqAdjustmentRef.getDoArchivesAdjust() |
|
|
}) |
|
|
}) |
|
@ -828,10 +811,33 @@ export default { |
|
|
this.$message('您还未勾选需要操作的条目,请先确认!') |
|
|
this.$message('您还未勾选需要操作的条目,请先确认!') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
this.uncoilVisible = true |
|
|
|
|
|
}, |
|
|
|
|
|
handleUncoilConfirm() { |
|
|
|
|
|
this.uncoilVisible = false |
|
|
|
|
|
|
|
|
this.$confirm('拆卷之后,对应的案卷数据将会自动删除' + '<span>你是否还要继续?</span>', '提示', { |
|
|
|
|
|
confirmButtonText: '继续', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
dangerouslyUseHTMLString: true |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
const archivesIds = [] |
|
|
|
|
|
this.selections.forEach(val => { |
|
|
|
|
|
archivesIds.push(val.id) |
|
|
|
|
|
}) |
|
|
|
|
|
const params = { |
|
|
|
|
|
'categoryId': this.selectedCategory.id, |
|
|
|
|
|
'archivesIds': archivesIds |
|
|
|
|
|
} |
|
|
|
|
|
console.log(params) |
|
|
|
|
|
FetchDisbandArchives(params).then((res) => { |
|
|
|
|
|
if (res.code !== 500) { |
|
|
|
|
|
this.crud.notify('拆卷成功', CRUD.NOTIFICATION_TYPE.SUCCESS) |
|
|
|
|
|
this.handleSearch(this.collectLevel) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.crud.notify('拆卷失败', CRUD.NOTIFICATION_TYPE.ERROR) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 合卷 |
|
|
// 合卷 |
|
|
handleCombineFile() { |
|
|
handleCombineFile() { |
|
@ -839,15 +845,32 @@ export default { |
|
|
this.$message('合卷操作至少勾选2个案卷,请重试!') |
|
|
this.$message('合卷操作至少勾选2个案卷,请重试!') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
this.$refs.combineFileRef.combineFileVisible = true |
|
|
|
|
|
|
|
|
this.$refs.combineFileRef.getTargetList() |
|
|
}, |
|
|
}, |
|
|
// 插件 |
|
|
// 插件 |
|
|
handleInsertFile() { |
|
|
handleInsertFile() { |
|
|
if (this.selections.length !== 1) { |
|
|
|
|
|
this.$message('插卷操作只可勾选唯一目标条目,请先确认!') |
|
|
|
|
|
return false |
|
|
|
|
|
|
|
|
if (this.collectLevel === 3) { |
|
|
|
|
|
if (this.selections.length === 0) { |
|
|
|
|
|
this.$confirm('您未勾选条目,否则直接选择所有条目' + '<span>你是否还要继续?</span>', '提示', { |
|
|
|
|
|
confirmButtonText: '继续', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
dangerouslyUseHTMLString: true |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.$refs.insertFileRef.getInsertViewTable() |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$refs.insertFileRef.getInsertViewTable() |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
if (this.selections.length !== 1) { |
|
|
|
|
|
this.$message('插卷操作只可勾选唯一目标条目,请先确认!') |
|
|
|
|
|
return false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$refs.insertFileRef.getInsertViewTable() |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
this.$refs.insertFileRef.insertFileVisible = true |
|
|
|
|
|
}, |
|
|
}, |
|
|
// 移动 |
|
|
// 移动 |
|
|
handleCollectMoveFile() { |
|
|
handleCollectMoveFile() { |
|
@ -996,11 +1019,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
closeDialog(data) { |
|
|
closeDialog(data) { |
|
|
this.formVisible = false |
|
|
this.formVisible = false |
|
|
// this.$parent.$parent.getTableDisplayFieldsLoading = true |
|
|
|
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.handleSearch(this.collectLevel) |
|
|
this.handleSearch(this.collectLevel) |
|
|
}) |
|
|
}) |
|
|
console.log('this', this) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|