|
@ -70,9 +70,9 @@ |
|
|
<el-menu-item v-if="(isTitleType === 3 && selectedCategory.arrangeType === 2) && activeIndex === 0" index="2-3" @click="handleAdjustment('anjuan')">案卷顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="(isTitleType === 3 && selectedCategory.arrangeType === 2) && activeIndex === 0" index="2-3" @click="handleAdjustment('anjuan')">案卷顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1 " index="2-12" @click="handleJnSeqAdjustment">卷内顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1 " index="2-12" @click="handleJnSeqAdjustment">卷内顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && selectedCategory.arrangeType === 1" index="2-3" @click="handleAdjustment('file')">文件顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && selectedCategory.arrangeType === 1" index="2-3" @click="handleAdjustment('file')">文件顺序调整</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType !== 2 && !(isTitleType === 3 && (selectedCategory.arrangeType === 1|| selectedCategory.arrangeType === 2) && activeIndex === 1)" index="2-4" @click="handleFileNumberUpdate">档号更新</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 === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1 " index="2-5" @click="handleFileNumberUpdate">卷内档号更新</el-menu-item> |
|
|
|
|
|
|
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1 " index="2-5" @click="handleFileNumberUpdate(1)">卷内档号更新</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1" index="2-6" @click="handleUncoil">拆卷</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1" index="2-6" @click="handleUncoil">拆卷</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1" index="2-7" @click="handleCombineFile">合卷</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && activeIndex === 0 && selectedCategory.arrangeType !== 1" index="2-7" @click="handleCombineFile">合卷</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && selectedCategory.arrangeType !== 1" index="2-8" @click="handleInsertFile">插件</el-menu-item> |
|
|
<el-menu-item v-if="isTitleType === 3 && selectedCategory.arrangeType !== 1" index="2-8" @click="handleInsertFile">插件</el-menu-item> |
|
@ -170,26 +170,12 @@ |
|
|
<!-- 原文上传 --> |
|
|
<!-- 原文上传 --> |
|
|
<UploadOriginal ref="uploadOriginalRef" :selected-category="selectedCategory" :arc-id="arcId" @close-dialog="closeDialog" /> |
|
|
<UploadOriginal ref="uploadOriginalRef" :selected-category="selectedCategory" :arc-id="arcId" @close-dialog="closeDialog" /> |
|
|
<!-- 批量导入 --> |
|
|
<!-- 批量导入 --> |
|
|
<BlukImport ref="blukImportRef" /> |
|
|
|
|
|
|
|
|
<BlukImport ref="blukImportRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
<!-- 批量修改 --> |
|
|
<!-- 批量修改 --> |
|
|
<BlukEditing ref="blukEditingRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
<BlukEditing ref="blukEditingRef" :selected-category="selectedCategory" :collect-level="collectLevel" :selections="selections" @close-dialog="closeDialog" /> |
|
|
<!-- 档案调整 --> |
|
|
<!-- 档案调整 --> |
|
|
<FileNumberAdjustment ref="fileNumberAdjustmentRef" :selected-category="selectedCategory" :collect-level="collectLevel" /> |
|
|
<FileNumberAdjustment ref="fileNumberAdjustmentRef" :selected-category="selectedCategory" :collect-level="collectLevel" /> |
|
|
|
|
|
|
|
|
<!-- 档号更新 --> |
|
|
|
|
|
<el-dialog class="tip-dialog" title="档号更新" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :visible.sync="updateVisible"> |
|
|
|
|
|
<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="updateVisible = false">取消</el-button> |
|
|
|
|
|
<el-button type="primary" @click.native="handleUpdateConfirm">确定</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 卷内顺序调整 --> |
|
|
<!-- 卷内顺序调整 --> |
|
|
<FileSeqAdjustment ref="fileSeqAdjustmentRef" :selected-category="selectedCategory" /> |
|
|
<FileSeqAdjustment ref="fileSeqAdjustmentRef" :selected-category="selectedCategory" /> |
|
|
|
|
|
|
|
@ -314,7 +300,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 } from '@/api/collect/collect' |
|
|
|
|
|
|
|
|
import { FetchDetailsById, collectDel, FetchRemoveArchivesSingle, FetchDeleteArchivesFile, FetchUpdateArchivesNo } 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' |
|
@ -382,7 +368,6 @@ export default { |
|
|
delAllLoading: false, |
|
|
delAllLoading: false, |
|
|
deleteVisible: false, |
|
|
deleteVisible: false, |
|
|
moveVisible: false, |
|
|
moveVisible: false, |
|
|
updateVisible: false, |
|
|
|
|
|
uncoilVisible: false, |
|
|
uncoilVisible: false, |
|
|
filingVisible: false, |
|
|
filingVisible: false, |
|
|
exportVisible: false, |
|
|
exportVisible: false, |
|
@ -777,7 +762,7 @@ export default { |
|
|
// 案卷/文件顺序调整 |
|
|
// 案卷/文件顺序调整 |
|
|
handleAdjustment(type) { |
|
|
handleAdjustment(type) { |
|
|
if (this.selections.length < 2) { |
|
|
if (this.selections.length < 2) { |
|
|
this.$message('请选择多个案卷后进行操作!') |
|
|
|
|
|
|
|
|
this.$message('请选择多个' + (type === 'file' ? '文件' : '案卷') + '后进行操作!') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
if (type === 'anjuan') { |
|
|
if (type === 'anjuan') { |
|
@ -805,15 +790,41 @@ export default { |
|
|
this.$refs.fileSeqAdjustmentRef.adjustmentVisible = true |
|
|
this.$refs.fileSeqAdjustmentRef.adjustmentVisible = true |
|
|
}, |
|
|
}, |
|
|
// 档号更新 |
|
|
// 档号更新 |
|
|
handleFileNumberUpdate() { |
|
|
|
|
|
|
|
|
handleFileNumberUpdate(type) { |
|
|
if (this.selections.length === 0) { |
|
|
if (this.selections.length === 0) { |
|
|
this.$message('您还未勾选需要操作的条目,请先确认!') |
|
|
this.$message('您还未勾选需要操作的条目,请先确认!') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
this.updateVisible = true |
|
|
|
|
|
}, |
|
|
|
|
|
handleUpdateConfirm() { |
|
|
|
|
|
this.updateVisible = false |
|
|
|
|
|
|
|
|
this.$confirm('此操作将会自动重新生成档号' + '<span>你是否还要继续?</span>', '提示', { |
|
|
|
|
|
confirmButtonText: '继续', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
dangerouslyUseHTMLString: true |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
if (type === 0) { |
|
|
|
|
|
const archivesIds = [] |
|
|
|
|
|
this.selections.forEach(val => { |
|
|
|
|
|
archivesIds.push(val.id) |
|
|
|
|
|
}) |
|
|
|
|
|
const params = { |
|
|
|
|
|
'categoryId': this.selectedCategory.id, |
|
|
|
|
|
'categoryLevel': this.collectLevel, |
|
|
|
|
|
'archivesIds': archivesIds |
|
|
|
|
|
} |
|
|
|
|
|
console.log(params) |
|
|
|
|
|
FetchUpdateArchivesNo(params).then((res) => { |
|
|
|
|
|
if (res.code !== 500) { |
|
|
|
|
|
this.crud.notify('档号更新成功', CRUD.NOTIFICATION_TYPE.SUCCESS) |
|
|
|
|
|
this.handleSearch(this.collectLevel) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 拆卷 |
|
|
// 拆卷 |
|
|
handleUncoil() { |
|
|
handleUncoil() { |
|
|