|
@ -165,6 +165,7 @@ |
|
|
:is-des-form-type="isDesFormType" |
|
|
:is-des-form-type="isDesFormType" |
|
|
:is-title-type="isTitleType" |
|
|
:is-title-type="isTitleType" |
|
|
:collect-level="collectLevel" |
|
|
:collect-level="collectLevel" |
|
|
|
|
|
:category-menu="categoryMenu" |
|
|
@close-dialog="closeDialog" |
|
|
@close-dialog="closeDialog" |
|
|
/> |
|
|
/> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<div slot="footer" class="dialog-footer"> |
|
@ -207,7 +208,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { crud } from '@crud/crud' |
|
|
import { crud } from '@crud/crud' |
|
|
import { manageLibraryCrud } from '../mixins/index' |
|
|
import { manageLibraryCrud } from '../mixins/index' |
|
|
import { FetchInitCategoryInputFieldByPid } from '@/api/system/category/category' |
|
|
|
|
|
|
|
|
import { FetchInitCategoryInputFieldByPid, FetchCategoryMenu } from '@/api/system/category/category' |
|
|
import { FetchDetailsById, FetchCompleteDelArchives, FetchRestoreArchives } from '@/api/collect/collect' |
|
|
import { FetchDetailsById, FetchCompleteDelArchives, FetchRestoreArchives } from '@/api/collect/collect' |
|
|
import { FetchArchivesClassTree } from '@/api/system/archivesClass' |
|
|
import { FetchArchivesClassTree } from '@/api/system/archivesClass' |
|
|
|
|
|
|
|
@ -266,6 +267,7 @@ export default { |
|
|
more: ['admin', 'archives:more'] |
|
|
more: ['admin', 'archives:more'] |
|
|
}, |
|
|
}, |
|
|
value: null, |
|
|
value: null, |
|
|
|
|
|
categoryMenu: [], |
|
|
statusOptions: [ |
|
|
statusOptions: [ |
|
|
{ |
|
|
{ |
|
|
label: '标签状态', |
|
|
label: '标签状态', |
|
@ -472,8 +474,14 @@ export default { |
|
|
if (localStorage.getItem('statusBarFixedType') !== 'undefined') { |
|
|
if (localStorage.getItem('statusBarFixedType') !== 'undefined') { |
|
|
this.parentsData.fixedStatusBar = JSON.parse(localStorage.getItem('statusBarFixedType')) === true |
|
|
this.parentsData.fixedStatusBar = JSON.parse(localStorage.getItem('statusBarFixedType')) === true |
|
|
} |
|
|
} |
|
|
|
|
|
this.getCategoryDataTree() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getCategoryDataTree() { |
|
|
|
|
|
FetchCategoryMenu().then(res => { |
|
|
|
|
|
this.categoryMenu = res |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
resetQuery() { |
|
|
resetQuery() { |
|
|
this.selectStatus = [] |
|
|
this.selectStatus = [] |
|
|
this.query = { |
|
|
this.query = { |
|
@ -519,13 +527,15 @@ export default { |
|
|
this.formTitle = '新增' + this.collectTitle |
|
|
this.formTitle = '新增' + this.collectTitle |
|
|
this.arcId = null |
|
|
this.arcId = null |
|
|
} else if (type === 'edit') { |
|
|
} else if (type === 'edit') { |
|
|
console.log(this.selections) |
|
|
|
|
|
if (this.selections.length === 0) { |
|
|
if (this.selections.length === 0) { |
|
|
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 }) |
|
|
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 }) |
|
|
return false |
|
|
return false |
|
|
} else if (this.selections.length > 1) { |
|
|
} else if (this.selections.length > 1) { |
|
|
this.$message({ message: '编辑操作只可勾选唯一目标条目,请先确认!', offset: 8 }) |
|
|
this.$message({ message: '编辑操作只可勾选唯一目标条目,请先确认!', offset: 8 }) |
|
|
return false |
|
|
return false |
|
|
|
|
|
} else if (this.selections[0].process_status !== 1) { |
|
|
|
|
|
this.$message({ message: '当前所选的档案处于流程中,不可操作编辑,请先确认!', offset: 8 }) |
|
|
|
|
|
return false |
|
|
} |
|
|
} |
|
|
this.arcId = this.selections[0].id |
|
|
this.arcId = this.selections[0].id |
|
|
this.formTitle = '编辑' + this.collectTitle |
|
|
this.formTitle = '编辑' + this.collectTitle |
|
@ -591,7 +601,11 @@ export default { |
|
|
this.$message({ message: '只可勾选唯一目标条目,请先确认!', offset: 8 }) |
|
|
this.$message({ message: '只可勾选唯一目标条目,请先确认!', offset: 8 }) |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const isHasFillFormal = this.selections.some(item => item.process_status !== 1) |
|
|
|
|
|
if (isHasFillFormal) { |
|
|
|
|
|
this.$message({ message: '您所选的条目有正在流程中,不可操作绑定标签,请先确认!', offset: 8 }) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
if (data[0].tid) { |
|
|
if (data[0].tid) { |
|
|
// this.$refs.bindingTag.isBinding = true |
|
|
// this.$refs.bindingTag.isBinding = true |
|
|
this.$refs.bindingTag.tidCode = data[0].tid |
|
|
this.$refs.bindingTag.tidCode = data[0].tid |
|
@ -691,7 +705,6 @@ export default { |
|
|
} |
|
|
} |
|
|
FetchRestoreArchives(params).then((res) => { |
|
|
FetchRestoreArchives(params).then((res) => { |
|
|
if (res.code !== 500) { |
|
|
if (res.code !== 500) { |
|
|
console.log(res) |
|
|
|
|
|
this.$message({ message: res, type: 'success', offset: 8 }) |
|
|
this.$message({ message: res, type: 'success', offset: 8 }) |
|
|
this.handleSearch(this.collectLevel) |
|
|
this.handleSearch(this.collectLevel) |
|
|
} else { |
|
|
} else { |
|
@ -743,6 +756,11 @@ export default { |
|
|
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 }) |
|
|
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 }) |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
const isHasFillFormal = this.selections.some(item => item.process_status !== 1) |
|
|
|
|
|
if (isHasFillFormal) { |
|
|
|
|
|
this.$message({ message: '您所选的条目有正在流程中,不可操作装盒,请先确认!', offset: 8 }) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
if (this.selectedCategory.arrangeType === 2) { |
|
|
if (this.selectedCategory.arrangeType === 2) { |
|
|
if (type === 1) { |
|
|
if (type === 1) { |
|
|
if (this.selections.length > 1) { |
|
|
if (this.selections.length > 1) { |
|
@ -765,7 +783,6 @@ export default { |
|
|
// this.$message('所选条目中存在已装盒档案,请勿重复操作!') |
|
|
// this.$message('所选条目中存在已装盒档案,请勿重复操作!') |
|
|
// return false |
|
|
// return false |
|
|
// } |
|
|
// } |
|
|
console.log('box', this.parentsData.listCategory) |
|
|
|
|
|
this.$refs.packingBox.packingVisible = true |
|
|
this.$refs.packingBox.packingVisible = true |
|
|
this.$refs.packingBox.isPackingOrPartType = type |
|
|
this.$refs.packingBox.isPackingOrPartType = type |
|
|
this.$refs.packingBox.packFileCategory = this.parentsData.listCategory |
|
|
this.$refs.packingBox.packFileCategory = this.parentsData.listCategory |
|
@ -821,6 +838,11 @@ export default { |
|
|
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 }) |
|
|
this.$message({ message: '您还未勾选需要操作的条目,请先确认!', offset: 8 }) |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
const isHasFillFormal = this.selections.some(item => item.process_status !== 1) |
|
|
|
|
|
if (isHasFillFormal) { |
|
|
|
|
|
this.$message({ message: '您所选的条目有正在流程中,不可操作档案退回,请先确认!', offset: 8 }) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
this.$confirm('此移出将把会所选条目退回到收集库' + '<span>你是否还要继续?</span>', '提示', { |
|
|
this.$confirm('此移出将把会所选条目退回到收集库' + '<span>你是否还要继续?</span>', '提示', { |
|
|
confirmButtonText: '继续', |
|
|
confirmButtonText: '继续', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|