Browse Source

bug修复

master
xuhuajiao 1 year ago
parent
commit
b24154bc5e
  1. 2
      src/assets/styles/archives-manage.scss
  2. 2
      src/assets/styles/mixin.scss
  3. 2
      src/assets/styles/yxk-admin.scss
  4. 1
      src/views/archiveKeeping/caseManage/caseList/index.vue
  5. 10
      src/views/archivesManage/managementLibrary/index.vue
  6. 2
      src/views/archivesManage/managementLibrary/mixins/index.js
  7. 33
      src/views/archivesManage/managementLibrary/module/collectHeader.vue
  8. 12
      src/views/collectReorganizi/collectionLibrary/index.vue
  9. 2
      src/views/collectReorganizi/collectionLibrary/mixins/index.js
  10. 152
      src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
  11. 2
      src/views/collectReorganizi/collectionLibrary/project/index.vue
  12. 6
      src/views/components/category/PreviewForm.vue
  13. 5
      src/views/system/archivesCategory/index.vue
  14. 2
      src/views/system/fileLibraryManage/descriptionPreview/index.vue
  15. 5
      src/views/system/fileLibraryManage/index.vue

2
src/assets/styles/archives-manage.scss

@ -616,7 +616,7 @@
.el-drawer__body{ .el-drawer__body{
position: relative; position: relative;
overflow: visible; overflow: visible;
padding-top: 57px;
padding-top: 54px;
} }
[data-theme=dark] .el-drawer__body{ [data-theme=dark] .el-drawer__body{

2
src/assets/styles/mixin.scss

@ -731,7 +731,7 @@
li{ li{
margin-right: 60px; margin-right: 60px;
&.active-tab-nav{ &.active-tab-nav{
padding-bottom: 13px;
padding-bottom: 10px;
color: #0348F3; color: #0348F3;
border-bottom: 3px solid #0348F3; border-bottom: 3px solid #0348F3;
} }

2
src/assets/styles/yxk-admin.scss

@ -97,7 +97,7 @@
li{ li{
margin-right: 60px; margin-right: 60px;
&.active-tab-nav{ &.active-tab-nav{
padding-bottom: 13px;
padding-bottom: 10px;
color: #0348F3; color: #0348F3;
border-bottom: 3px solid #0348F3; border-bottom: 3px solid #0348F3;
} }

1
src/views/archiveKeeping/caseManage/caseList/index.vue

@ -36,6 +36,7 @@
</el-select> </el-select>
</el-input> </el-input>
<rrOperation /> <rrOperation />
<el-button class="filter-rfid" type="success" disabled><i class="iconfont icon-duqu" />读取</el-button>
</div> </div>
<div class="handle-container"> <div class="handle-container">
<crudOperation :permission="permission"> <crudOperation :permission="permission">

10
src/views/archivesManage/managementLibrary/index.vue

@ -10,17 +10,17 @@
<div class="tree-scroll"> <div class="tree-scroll">
<el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree arc-tree-01" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick"> <el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree arc-tree-01" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick">
<span slot-scope="{ node, data }" class="custom-tree-node"> <span slot-scope="{ node, data }" class="custom-tree-node">
<el-tooltip :content="node.label" placement="left" effect="dark">
<el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
<span v-if="data.isType === 1 " class="iconFolder"> <span v-if="data.isType === 1 " class="iconFolder">
{{ data.cnName }} {{ data.cnName }}
</span> </span>
</el-tooltip> </el-tooltip>
<el-tooltip :content="node.label" placement="left" effect="dark">
<el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
<span v-if="data.isType === 2" class="iconArch"> <span v-if="data.isType === 2" class="iconArch">
{{ data.cnName }} {{ data.cnName }}
</span> </span>
</el-tooltip> </el-tooltip>
<el-tooltip :content="node.label" placement="left" effect="dark">
<el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
<span v-if="data.isType === 3" class="iconFile"> <span v-if="data.isType === 3" class="iconFile">
{{ data.cnName }} {{ data.cnName }}
</span> </span>
@ -507,6 +507,10 @@ export default {
font-size: 14px; font-size: 14px;
} }
::v-deep .custom-tree-node{
font-size: 14px;
}
[data-theme=light] .elect-cont-right { [data-theme=light] .elect-cont-right {
padding: 0 20px !important; padding: 0 20px !important;
} }

2
src/views/archivesManage/managementLibrary/mixins/index.js

@ -96,7 +96,7 @@ export const manageLibraryCrud = {
if (res) { if (res) {
this.arrySort = [] this.arrySort = []
this.tableDisplayFields = res this.tableDisplayFields = res
const orderSortArry = this.tableDisplayFields.filter(item => item.displayOrder).sort((a, b) => a.displayOrder - b.displayOrder)
const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue)
orderSortArry.forEach(item => { orderSortArry.forEach(item => {
if (item.displayOrderBy) { if (item.displayOrderBy) {
this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) this.arrySort.push(item.fieldName + ',' + item.displayOrderBy)

33
src/views/archivesManage/managementLibrary/module/collectHeader.vue

@ -38,7 +38,16 @@
placeholder="请选择" placeholder="请选择"
@input="handleSearch(collectLevel)" @input="handleSearch(collectLevel)"
@select="handleSearch(collectLevel)" @select="handleSearch(collectLevel)"
/>
>
<p
slot="option-label"
slot-scope="{node}"
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;"
:title="node.label"
>
<template> {{ node.label }} </template>
</p>
</treeselect>
<treeselect <treeselect
v-if="isTitleType !== 6" v-if="isTitleType !== 6"
v-model="query.archive_ctg_no" v-model="query.archive_ctg_no"
@ -50,7 +59,15 @@
placeholder="请选择档案分类" placeholder="请选择档案分类"
@input="handleSearch(collectLevel)" @input="handleSearch(collectLevel)"
@select="handleSearch(collectLevel)" @select="handleSearch(collectLevel)"
/>
><p
slot="option-label"
slot-scope="{node}"
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;"
:title="node.label"
>
<template> {{ node.label }} </template>
</p>
</treeselect>
</div> </div>
<div v-if="isTitleType !== 6" class="head-search"> <div v-if="isTitleType !== 6" class="head-search">
<!-- 搜索 --> <!-- 搜索 -->
@ -230,6 +247,7 @@ export default {
inject: ['parentsData'], inject: ['parentsData'],
data() { data() {
return { return {
value: null,
statusOptions: [ statusOptions: [
{ {
label: '标签状态', label: '标签状态',
@ -463,7 +481,7 @@ export default {
} }
return { return {
id: node.code, id: node.code,
label: node.name,
label: `${node.name} - ${node.code}`,
children: node.childArchivesClass children: node.childArchivesClass
} }
}, },
@ -476,7 +494,6 @@ export default {
filteredItems = this.addLevelToDictionaryList(filteredItems, 1) filteredItems = this.addLevelToDictionaryList(filteredItems, 1)
if (this.selectedCategory.arrangeType === 3 && this.isTitleType === 3) { if (this.selectedCategory.arrangeType === 3 && this.isTitleType === 3) {
this.projectOptions = filteredItems this.projectOptions = filteredItems
// console.log(this.projectOptions)
} else { } else {
this.projectOptions = this.filterData(filteredItems, filteredItems[0].id) this.projectOptions = this.filterData(filteredItems, filteredItems[0].id)
} }
@ -506,13 +523,16 @@ export default {
}) })
return dictionaryList return dictionaryList
}, },
getLabel(node) {
return `ID: ${node.id}, Name: ${node.label}`
},
normalizerProject(node) { normalizerProject(node) {
if ((node.childDictionarys && !node.childDictionarys.length) || node.childDictionarys === null) { if ((node.childDictionarys && !node.childDictionarys.length) || node.childDictionarys === null) {
delete node.childDictionarys delete node.childDictionarys
} }
return { return {
id: node.dictionaryName, id: node.dictionaryName,
label: node.dictionaryName,
label: node.level !== 1 ? `${node.dictionaryName} - ${node.dictionaryCode}` : `${node.dictionaryName}`,
children: node.childDictionarys, children: node.childDictionarys,
isDisabled: this.isTitleType === 3 ? node.level !== 3 : node.level === 1 isDisabled: this.isTitleType === 3 ? node.level !== 3 : node.level === 1
} }
@ -886,4 +906,7 @@ export default {
} }
} }
} }
::v-deep .vue-treeselect__list-item{
width: 200px;
}
</style> </style>

12
src/views/collectReorganizi/collectionLibrary/index.vue

@ -10,17 +10,17 @@
<div class="tree-scroll"> <div class="tree-scroll">
<el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree arc-tree-01" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick"> <el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree arc-tree-01" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick">
<span slot-scope="{ node, data }" class="custom-tree-node"> <span slot-scope="{ node, data }" class="custom-tree-node">
<el-tooltip :content="node.label" placement="left" effect="dark">
<el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
<span v-if="data.isType === 1 " class="iconFolder"> <span v-if="data.isType === 1 " class="iconFolder">
{{ data.cnName }} {{ data.cnName }}
</span> </span>
</el-tooltip> </el-tooltip>
<el-tooltip :content="node.label" placement="left" effect="dark">
<el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
<span v-if="data.isType === 2" class="iconArch"> <span v-if="data.isType === 2" class="iconArch">
{{ data.cnName }} {{ data.cnName }}
</span> </span>
</el-tooltip> </el-tooltip>
<el-tooltip :content="node.label" placement="left" effect="dark">
<el-tooltip :content="node.label" placement="top" :enterable="false" effect="dark">
<span v-if="data.isType === 3" class="iconFile"> <span v-if="data.isType === 3" class="iconFile">
{{ data.cnName }} {{ data.cnName }}
</span> </span>
@ -509,8 +509,12 @@ export default {
font-size: 14px; font-size: 14px;
} }
::v-deep .custom-tree-node{
font-size: 14px;
}
[data-theme=light] .elect-cont-right { [data-theme=light] .elect-cont-right {
padding: 20px 0 !important;
padding: 15px 0 !important;
} }
[data-theme=dark] .elect-cont-right { [data-theme=dark] .elect-cont-right {
margin-top: 0 !important; margin-top: 0 !important;

2
src/views/collectReorganizi/collectionLibrary/mixins/index.js

@ -92,7 +92,7 @@ export const collectionLibraryCrud = {
if (res) { if (res) {
this.arrySort = [] this.arrySort = []
this.tableDisplayFields = res this.tableDisplayFields = res
const orderSortArry = this.tableDisplayFields.filter(item => item.displayOrder).sort((a, b) => a.displayOrder - b.displayOrder)
const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue)
orderSortArry.forEach(item => { orderSortArry.forEach(item => {
if (item.displayOrderBy) { if (item.displayOrderBy) {
this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) this.arrySort.push(item.fieldName + ',' + item.displayOrderBy)

152
src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue

@ -14,7 +14,16 @@
placeholder="请选择" placeholder="请选择"
@input="handleSearch(collectLevel)" @input="handleSearch(collectLevel)"
@select="handleSearch(collectLevel)" @select="handleSearch(collectLevel)"
/>
>
<p
slot="option-label"
slot-scope="{node}"
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;"
:title="node.label"
>
<template> {{ node.label }} </template>
</p>
</treeselect>
<treeselect <treeselect
v-if="isTitleType !== 6" v-if="isTitleType !== 6"
v-model="query.archive_ctg_no" v-model="query.archive_ctg_no"
@ -26,7 +35,16 @@
placeholder="请选择档案分类" placeholder="请选择档案分类"
@input="handleSearch(collectLevel)" @input="handleSearch(collectLevel)"
@select="handleSearch(collectLevel)" @select="handleSearch(collectLevel)"
/>
>
<p
slot="option-label"
slot-scope="{node}"
style="display:flex; justify-content: space-between ;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; width: 90%;"
:title="node.label"
>
<template> {{ node.label }} </template>
</p>
</treeselect>
</div> </div>
<div v-if="isTitleType !== 6" class="head-search"> <div v-if="isTitleType !== 6" class="head-search">
<!-- 搜索 --> <!-- 搜索 -->
@ -424,7 +442,7 @@ export default {
} }
return { return {
id: node.code, id: node.code,
label: node.name,
label: `${node.name} - ${node.code}`,
children: node.childArchivesClass children: node.childArchivesClass
} }
}, },
@ -472,7 +490,7 @@ export default {
} }
return { return {
id: node.dictionaryName, id: node.dictionaryName,
label: node.dictionaryName,
label: node.level !== 1 ? `${node.dictionaryName} - ${node.dictionaryCode}` : `${node.dictionaryName}`,
children: node.childDictionarys, children: node.childDictionarys,
isDisabled: this.isTitleType === 3 ? node.level !== 3 : node.level === 1 isDisabled: this.isTitleType === 3 ? node.level !== 3 : node.level === 1
} }
@ -484,7 +502,7 @@ export default {
handleForm(type, isPaper) { handleForm(type, isPaper) {
if (type === 'add') { if (type === 'add') {
if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) { if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) {
this.$message('当前档案处于归档流程中,不可操作新增,请先确认!')
this.$message({ message: '当前档案处于归档流程中,不可操作新增,请先确认!', offset: 8 })
return false return false
} }
this.arcId = null this.arcId = null
@ -498,13 +516,13 @@ export default {
} else if (type === 'edit') { } else if (type === 'edit') {
this.quickPaper = false this.quickPaper = false
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} else if (this.selections.length > 1) { } else if (this.selections.length > 1) {
this.$message('编辑操作只可勾选唯一目标条目,请先确认!')
this.$message({ message: '编辑操作只可勾选唯一目标条目,请先确认!', offset: 8 })
return false return false
} else if (this.selections[0].collect_formal === 2) { } else if (this.selections[0].collect_formal === 2) {
this.$message('当前所选的档案处于归档流程中,不可操作编辑,请先确认!')
this.$message({ message: '当前所选的档案处于归档流程中,不可操作编辑,请先确认!', offset: 8 })
return false return false
} }
this.arcId = this.selections[0].id this.arcId = this.selections[0].id
@ -568,17 +586,17 @@ export default {
// //
toDelete() { toDelete() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作删除,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作删除,请先确认!', offset: 8 })
return false return false
} }
if (this.collectLevel === 4) { if (this.collectLevel === 4) {
if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) { if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) {
this.$message('当前档案处于归档流程中,不可操作删除,请先确认!')
this.$message({ message: '当前档案处于归档流程中,不可操作删除,请先确认!', offset: 8 })
return false return false
} }
} }
@ -587,12 +605,12 @@ export default {
// - // -
toMove() { toMove() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作删除,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作删除,请先确认!', offset: 8 })
return false return false
} }
this.moveVisible = true this.moveVisible = true
@ -612,12 +630,12 @@ export default {
}) })
FetchDeleteArchivesFile(params).then((res) => { FetchDeleteArchivesFile(params).then((res) => {
if (res === 'SUCCESS') { if (res === 'SUCCESS') {
this.crud.notify('删除成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: '删除成功', type: 'success', offset: 8 })
this.delAllLoading = false this.delAllLoading = false
this.deleteVisible = false this.deleteVisible = false
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify('删除所选电子原文失败', CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: '删除所选电子原文失败', type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
this.delAllLoading = false this.delAllLoading = false
@ -635,12 +653,12 @@ export default {
} }
collectDel(params).then((res) => { collectDel(params).then((res) => {
if (res.includes('成功')) { if (res.includes('成功')) {
this.crud.notify('删除成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: '删除成功', type: 'success', offset: 8 })
this.delAllLoading = false this.delAllLoading = false
this.deleteVisible = false this.deleteVisible = false
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify('删除所选档案失败', CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: '删除所选档案失败', type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
this.delAllLoading = false this.delAllLoading = false
@ -662,10 +680,10 @@ export default {
} }
FetchRemoveArchivesSingle(params).then((res) => { FetchRemoveArchivesSingle(params).then((res) => {
if (res === true) { if (res === true) {
this.crud.notify('移出成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: '移出成功', type: 'success', offset: 8 })
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify('移出失败', CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: '移出失败', type: 'error', offset: 8 })
} }
this.moveVisible = false this.moveVisible = false
}).catch(err => { }).catch(err => {
@ -677,22 +695,22 @@ export default {
if (uploadType !== 2) { if (uploadType !== 2) {
if (this.isTitleType !== 6) { if (this.isTitleType !== 6) {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
if (this.selections.length > 1) { if (this.selections.length > 1) {
this.$message('上传操作只可勾选唯一目标条目,请先确认!')
this.$message({ message: '上传操作只可勾选唯一目标条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作原文上传,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作原文上传,请先确认!', offset: 8 })
return false return false
} }
this.arcId = this.selections[0].id this.arcId = this.selections[0].id
} else { } else {
if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) { if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) {
this.$message('当前档案处于归档流程中,不可操作原文上传,请先确认!')
this.$message({ message: '当前档案处于归档流程中,不可操作原文上传,请先确认!', offset: 8 })
return false return false
} }
@ -724,7 +742,7 @@ export default {
// //
handleBlukImport() { handleBlukImport() {
if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) { if (this.parentsData.parentsAnjuanRow && this.parentsData.parentsAnjuanRow.collect_formal === 2) {
this.$message('当前档案处于归档流程中,不可操作批量导入,请先确认!')
this.$message({ message: '当前档案处于归档流程中,不可操作批量导入,请先确认!', offset: 8 })
return false return false
} }
this.$refs.blukImportRef.bulkImportVisible = true this.$refs.blukImportRef.bulkImportVisible = true
@ -732,12 +750,12 @@ export default {
// //
handleBlukEditing() { handleBlukEditing() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作批量修改,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作批量修改,请先确认!', offset: 8 })
return false return false
} }
this.$nextTick(() => { this.$nextTick(() => {
@ -748,16 +766,16 @@ export default {
handleJnSeqAdjustment(type) { handleJnSeqAdjustment(type) {
if (type === 'juannei') { if (type === 'juannei') {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
if (this.selections.length > 1) { if (this.selections.length > 1) {
this.$message('卷内顺序调整操作只可勾选唯一目标条目,请先确认!')
this.$message({ message: '卷内顺序调整操作只可勾选唯一目标条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作卷内顺序调整,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作卷内顺序调整,请先确认!', offset: 8 })
return false return false
} }
this.$nextTick(() => { this.$nextTick(() => {
@ -766,12 +784,12 @@ export default {
}) })
} else { } else {
if (this.selections.length < 2) { if (this.selections.length < 2) {
this.$message('请选择多个' + (type === 'file' ? '文件' : '案卷') + '后进行操作!')
this.$message({ message: '请选择多个' + (type === 'file' ? '文件' : '案卷') + '后进行操作!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作案卷/文件顺序调整,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作案卷/文件顺序调整,请先确认!', offset: 8 })
return false return false
} }
this.$nextTick(() => { this.$nextTick(() => {
@ -790,12 +808,12 @@ export default {
// //
handleFileNumberUpdate(type) { handleFileNumberUpdate(type) {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作档号更新,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作档号更新,请先确认!', offset: 8 })
return false return false
} }
this.$confirm('此操作将会自动重新生成档号' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('此操作将会自动重新生成档号' + '<span>你是否还要继续?</span>', '提示', {
@ -823,10 +841,10 @@ export default {
} }
FetchUpdateArchivesNo(params).then((res) => { FetchUpdateArchivesNo(params).then((res) => {
if (res.code !== 500) { if (res.code !== 500) {
this.crud.notify('档号更新成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: '档号更新成功', type: 'success', offset: 8 })
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: res.message, type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -837,12 +855,12 @@ export default {
// //
handleUncoil() { handleUncoil() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作拆卷,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作拆卷,请先确认!', offset: 8 })
return false return false
} }
this.$confirm('拆卷之后,对应的案卷数据将会自动删除' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('拆卷之后,对应的案卷数据将会自动删除' + '<span>你是否还要继续?</span>', '提示', {
@ -861,10 +879,10 @@ export default {
} }
FetchDisbandArchives(params).then((res) => { FetchDisbandArchives(params).then((res) => {
if (res.code !== 500) { if (res.code !== 500) {
this.crud.notify('拆卷成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: '拆卷成功', type: 'success', offset: 8 })
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify('拆卷失败', CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: '拆卷失败', type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -875,12 +893,12 @@ export default {
// //
handleCombineFile() { handleCombineFile() {
if (this.selections.length < 2) { if (this.selections.length < 2) {
this.$message('合卷操作至少勾选2个案卷,请重试!')
this.$message({ message: '合卷操作至少勾选2个案卷,请重试!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作合卷,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作合卷,请先确认!', offset: 8 })
return false return false
} }
this.$refs.combineFileRef.getTargetList() this.$refs.combineFileRef.getTargetList()
@ -905,10 +923,10 @@ export default {
} else { } else {
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (this.selections.length !== 1) { if (this.selections.length !== 1) {
this.$message('插卷操作只可勾选唯一目标条目,请先确认!')
this.$message({ message: '插卷操作只可勾选唯一目标条目,请先确认!', offset: 8 })
return false return false
} else if (isHasFillFormal) { } else if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作插件,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作插件,请先确认!', offset: 8 })
return false return false
} else { } else {
this.$refs.insertFileRef.getInsertViewTable() this.$refs.insertFileRef.getInsertViewTable()
@ -918,12 +936,12 @@ export default {
// //
handleCollectMoveFile() { handleCollectMoveFile() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作移动,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作移动,请先确认!', offset: 8 })
return false return false
} }
this.$refs.collectMoveFileRef.collectMoveFileVisible = true this.$refs.collectMoveFileRef.collectMoveFileVisible = true
@ -931,12 +949,12 @@ export default {
// //
handleFiling() { handleFiling() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,勿重复操作,请先确认!!')
this.$message({ message: '您所选的条目有正在归档流程中,勿重复操作,请先确认!!', offset: 8 })
return false return false
} }
this.$refs.archivesFillingRef.archivesFillingVisible = true this.$refs.archivesFillingRef.archivesFillingVisible = true
@ -944,12 +962,12 @@ export default {
// 退 // 退
handleReturn() { handleReturn() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作退回预归档库,请先确认!!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作退回预归档库,请先确认!!', offset: 8 })
return false return false
} }
this.$confirm('此操作将把会所选条目退回到预归档库' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('此操作将把会所选条目退回到预归档库' + '<span>你是否还要继续?</span>', '提示', {
@ -966,13 +984,14 @@ export default {
FetchReturnReDocument(params).then((res) => { FetchReturnReDocument(params).then((res) => {
if (res.code !== 500) { if (res.code !== 500) {
if (res === 0) { if (res === 0) {
this.crud.notify('当前数据中不包含预归档数据,无法返回', CRUD.NOTIFICATION_TYPE.INFO)
this.crud.notify('', CRUD.NOTIFICATION_TYPE.INFO)
this.$message({ message: '当前数据中不包含预归档数据,无法返回', offset: 8 })
} else { } else {
this.crud.notify('已成功返回' + res + '条来自预归档的数据', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: '已成功返回' + res + '条来自预归档的数据', type: 'success', offset: 8 })
} }
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: res.message, type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -983,7 +1002,7 @@ export default {
// //
handleExport() { handleExport() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
this.$confirm('此操作将导出所选数据' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('此操作将导出所选数据' + '<span>你是否还要继续?</span>', '提示', {
@ -1028,12 +1047,12 @@ export default {
// //
handleFourTest() { handleFourTest() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
const isHasFillFormal = this.selections.some(item => item.collect_formal === 2) const isHasFillFormal = this.selections.some(item => item.collect_formal === 2)
if (isHasFillFormal) { if (isHasFillFormal) {
this.$message('您所选的条目有正在归档流程中,不可操作四性检测,请先确认!')
this.$message({ message: '您所选的条目有正在归档流程中,不可操作四性检测,请先确认!', offset: 8 })
return false return false
} }
this.$refs.fourTestRef.fourTestVisible = true this.$refs.fourTestRef.fourTestVisible = true
@ -1042,7 +1061,7 @@ export default {
// //
handleCatalogDownload() { handleCatalogDownload() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
this.$confirm('此操作将下载所选条目目录' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('此操作将下载所选条目目录' + '<span>你是否还要继续?</span>', '提示', {
@ -1071,7 +1090,7 @@ export default {
// //
handlePaper() { handlePaper() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
@ -1081,20 +1100,20 @@ export default {
// //
handleOriginalDownload() { handleOriginalDownload() {
if (this.selections.length > 1 || this.selections.length === 0) { if (this.selections.length > 1 || this.selections.length === 0) {
this.$message('下载操作只可勾选唯一目标条目,请先确认!')
this.$message({ message: '下载操作只可勾选唯一目标条目,请先确认!', offset: 8 })
return false return false
} }
const url = this.baseApi + '/downloadFile' + this.selections[0].file_path const url = this.baseApi + '/downloadFile' + this.selections[0].file_path
fetch(url).then(res => res.blob()).then(blob => { fetch(url).then(res => res.blob()).then(blob => {
downloadFile(blob, this.selections[0].file_name.split('.')[0], this.selections[0].file_type) downloadFile(blob, this.selections[0].file_name.split('.')[0], this.selections[0].file_type)
}).catch(() => { }).catch(() => {
this.$message.error('下载文件失败!')
this.$message({ message: '下载文件失败!', type: 'error', offset: 8 })
}) })
}, },
// - // -
toRecover() { toRecover() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
this.$confirm('此恢复将会把所选条目及其子集一并恢复' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('此恢复将会把所选条目及其子集一并恢复' + '<span>你是否还要继续?</span>', '提示', {
@ -1115,10 +1134,10 @@ export default {
FetchRestoreArchives(params).then((res) => { FetchRestoreArchives(params).then((res) => {
if (res.code !== 500) { if (res.code !== 500) {
console.log(res) console.log(res)
this.crud.notify(res, CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: res, type: 'success', offset: 8 })
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify('回复所选档案失败', CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: '回复所选档案失败', type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -1129,7 +1148,7 @@ export default {
// - // -
toCompletelyDelete() { toCompletelyDelete() {
if (this.selections.length === 0) { if (this.selections.length === 0) {
this.$message('您还未勾选需要操作的条目,请先确认!')
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 })
return false return false
} }
this.$confirm('此删除将把会所选条目与其子集彻底删除' + '<span>你是否还要继续?</span>', '提示', { this.$confirm('此删除将把会所选条目与其子集彻底删除' + '<span>你是否还要继续?</span>', '提示', {
@ -1149,10 +1168,10 @@ export default {
} }
FetchCompleteDelArchives(params).then((res) => { FetchCompleteDelArchives(params).then((res) => {
if (res.code !== 500) { if (res.code !== 500) {
this.crud.notify(res, CRUD.NOTIFICATION_TYPE.SUCCESS)
this.$message({ message: res, type: 'success', offset: 8 })
this.handleSearch(this.collectLevel) this.handleSearch(this.collectLevel)
} else { } else {
this.crud.notify('删除所选档案失败', CRUD.NOTIFICATION_TYPE.ERROR)
this.$message({ message: '删除所选档案失败', type: 'error', offset: 8 })
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -1172,4 +1191,7 @@ export default {
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>
::v-deep .vue-treeselect__list-item{
width: 220px;
}
</style> </style>

2
src/views/collectReorganizi/collectionLibrary/project/index.vue

@ -197,7 +197,7 @@ export default {
<style lang='scss' scoped> <style lang='scss' scoped>
@import "~@/assets/styles/collect-reorganizi.scss"; @import "~@/assets/styles/collect-reorganizi.scss";
.collect-no-tab{ .collect-no-tab{
padding-top: 36px;
padding-top: 33px;
} }
[data-theme=dark] .collect-no-tab{ [data-theme=dark] .collect-no-tab{
padding-top: 0; padding-top: 0;

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

@ -53,7 +53,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="!isHasCode && isDesFormType === 'prearchiveLibrary'" class="preview-form-bottom prearch-bottom">
<el-row v-if="isDesFormType === 'prearchiveLibrary'" class="preview-form-bottom prearch-bottom">
<el-col> <el-col>
<el-form-item label="电子原件" prop="fileOriginal" class="prearch-upload" :rules="[{ required: true, message: '请上传原文',trigger: 'blur' }]"> <el-form-item label="电子原件" prop="fileOriginal" class="prearch-upload" :rules="[{ required: true, message: '请上传原文',trigger: 'blur' }]">
<el-input <el-input
@ -69,7 +69,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="!isHasCode && isDesFormType !== 'prearchiveLibrary' && isDesFormType !== 'mergeFile'" class="preview-form-bottom prearch-bottom">
<el-row v-if="isDesFormType !== 'prearchiveLibrary' && isDesFormType !== 'mergeFile' && isDesFormType !== 'category'" class="preview-form-bottom prearch-bottom">
<el-col v-for="(item,index) in formPreviewData" :key="index"> <el-col v-for="(item,index) in formPreviewData" :key="index">
<el-form-item v-if="item.fieldName === 'is_entity'" label="有无实体" :prop="item.fieldName" :rules="[{ required: true, message: '请选择',trigger: 'change' }]" class="pbysical-style"> <el-form-item v-if="item.fieldName === 'is_entity'" label="有无实体" :prop="item.fieldName" :rules="[{ required: true, message: '请选择',trigger: 'change' }]" class="pbysical-style">
<el-radio-group v-model="addOrUpdateForm[item.fieldName]"> <el-radio-group v-model="addOrUpdateForm[item.fieldName]">
@ -142,7 +142,7 @@ export default {
name: 'PreviewForm', name: 'PreviewForm',
components: { draggable, Treeselect }, components: { draggable, Treeselect },
mixins: [crud()], mixins: [crud()],
inject: ['parentsData'] | '',
inject: ['parentsData'],
props: { props: {
isDisabled: { isDisabled: {
type: Boolean, type: Boolean,

5
src/views/system/archivesCategory/index.vue

@ -135,6 +135,11 @@ export default {
] ]
}, },
mixins: [presenter(), header()], mixins: [presenter(), header()],
provide() {
return {
parentsData: this
}
},
data() { data() {
return { return {
permission: { permission: {

2
src/views/system/fileLibraryManage/descriptionPreview/index.vue

@ -92,7 +92,7 @@ export default {
editField: {}, editField: {},
isInputFields: [], isInputFields: [],
loading: false, loading: false,
isDesFormType: 'prearchiveLibrary'
isDesFormType: 'category'
} }
}, },
watch: { watch: {

5
src/views/system/fileLibraryManage/index.vue

@ -126,6 +126,11 @@ export default {
] ]
}, },
mixins: [presenter(), header()], mixins: [presenter(), header()],
provide() {
return {
parentsData: this
}
},
data() { data() {
return { return {
permission: { permission: {

Loading…
Cancel
Save