|
|
@ -255,15 +255,7 @@ export default { |
|
|
|
anjuanQuery: {}, |
|
|
|
queryOption: [], |
|
|
|
anjuanInputSelect: '', |
|
|
|
stateOptions: [ // 搜索 - 状态选择 |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
|
{ value: '2', label: '未入' }, |
|
|
|
{ value: '3', label: '待入' }, |
|
|
|
{ value: '4', label: '在库' }, |
|
|
|
{ value: '5', label: '待借' }, |
|
|
|
{ value: '6', label: '已借' } |
|
|
|
], |
|
|
|
stateOptions: [], |
|
|
|
isAnjuan: true, // 用于判断卷内-新增/导出按钮 |
|
|
|
lengingVisible: false // 借阅 |
|
|
|
} |
|
|
@ -275,10 +267,31 @@ export default { |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
selectedCategory: function(newValue, oldValue) { |
|
|
|
console.log('selectedCategory', newValue.isType) |
|
|
|
this.query.queryTitle = '' |
|
|
|
this.query.archiveNo = '' |
|
|
|
this.query.archiveCtgNo = '' |
|
|
|
this.query.responsibleby = '' |
|
|
|
|
|
|
|
if (newValue.isType === 5) { |
|
|
|
this.stateOptions = [ |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
|
{ value: '2', label: '未入' }, |
|
|
|
{ value: '3', label: '待入' }, |
|
|
|
{ value: '4', label: '在库' }, |
|
|
|
{ value: '5', label: '待借' }, |
|
|
|
{ value: '6', label: '已借' } |
|
|
|
] |
|
|
|
} else { |
|
|
|
this.stateOptions = [ |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
|
{ value: '2', label: '未入' }, |
|
|
|
{ value: '3', label: '待入' }, |
|
|
|
{ value: '7', label: '已入' } |
|
|
|
] |
|
|
|
} |
|
|
|
this.resetQuery() |
|
|
|
}, |
|
|
|
tableDisplayFields(val) { |
|
|
@ -301,6 +314,25 @@ export default { |
|
|
|
created() { |
|
|
|
this.resetQuery() |
|
|
|
this.selections = [] |
|
|
|
if (this.selectedCategory.isType === 5) { |
|
|
|
this.stateOptions = [ |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
|
{ value: '2', label: '未入' }, |
|
|
|
{ value: '3', label: '待入' }, |
|
|
|
{ value: '4', label: '在库' }, |
|
|
|
{ value: '5', label: '待借' }, |
|
|
|
{ value: '6', label: '已借' } |
|
|
|
] |
|
|
|
} else { |
|
|
|
this.stateOptions = [ |
|
|
|
{ value: '0', label: '全部' }, |
|
|
|
{ value: '1', label: '未装' }, |
|
|
|
{ value: '2', label: '未入' }, |
|
|
|
{ value: '3', label: '待入' }, |
|
|
|
{ value: '7', label: '已入' } |
|
|
|
] |
|
|
|
} |
|
|
|
this.query.queryType = this.stateOptions[0].value |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -380,11 +412,12 @@ export default { |
|
|
|
tableDoubleClick(row) { |
|
|
|
if (this.selectedCategory.isType !== 5) { |
|
|
|
this.$refs.archivesInfo.isHasFile = false |
|
|
|
this.$refs.archivesInfo.isTidOrBorrow = false |
|
|
|
} else { |
|
|
|
this.$refs.archivesInfo.isHasFile = true |
|
|
|
this.$refs.archivesInfo.isTidOrBorrow = true |
|
|
|
} |
|
|
|
this.$refs.archivesInfo.isDetailsInfo = true |
|
|
|
this.$refs.archivesInfo.isTidOrBorrow = true |
|
|
|
this.arcId = row.id |
|
|
|
this.$refs.archivesInfo.detailTitle = '档案详情' |
|
|
|
this.$refs.archivesInfo.archivesInfoVisible = true |
|
|
|