|
|
|
@ -27,6 +27,24 @@ |
|
|
|
<i slot="prefix" class="iconfont icon-zhuangtai-fanbai" /> |
|
|
|
<el-option v-for="item in stateOptions" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-if="!recycleMain.isRecycle" |
|
|
|
v-model="ctgValue" |
|
|
|
class="filter-item" |
|
|
|
filterable |
|
|
|
placeholder="请选择档案类目筛选" |
|
|
|
clearable |
|
|
|
@click="getIntellClassify()" |
|
|
|
@change="getTableList()" |
|
|
|
@clear="handleCtgClear" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in ctgOptions" |
|
|
|
:key="item.dicCode" |
|
|
|
:label="item.dicName" |
|
|
|
:value="item.dicCode" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
<el-input v-model="anjuanQuery[anjuanInputSelect]" clearable size="small" placeholder="请输入关键词" style="width: 220px;" class="input-prepend filter-item" @clear="getTableList()" @keyup.enter.native="getTableList"> |
|
|
|
<el-select slot="prepend" v-model="anjuanInputSelect" style="width: 90px" @change="querySelect(anjuanInputSelect)"> |
|
|
|
<el-option |
|
|
|
@ -209,6 +227,7 @@ import { header, form } from '@crud/crud' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import { archivesCrud } from '../mixins/archives' |
|
|
|
import { FetchIsExistBorrow, FetchAddArchivesWaitRegister } from '@/api/archivesManage/lendManage' |
|
|
|
import { getDicts } from '@/api/archivesConfig/dict' |
|
|
|
import PreviewForm from '@/views/components/category/PreviewForm' |
|
|
|
import ArchivesInfo from '../module/archivesInfo/index' |
|
|
|
import Packing from '../module/packing/index' |
|
|
|
@ -275,7 +294,9 @@ export default { |
|
|
|
lengingVisible: false, // 借阅 |
|
|
|
codeLoading: false, |
|
|
|
printDialogVisible: false, // 打印弹窗显示状态 |
|
|
|
printLabelList: [] // 传递给打印组件的标签数据 |
|
|
|
printLabelList: [], // 传递给打印组件的标签数据 |
|
|
|
ctgValue: '', |
|
|
|
ctgOptions: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -354,8 +375,28 @@ export default { |
|
|
|
this.query.queryType = this.stateOptions[0].value |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getIntellClassify() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 分类下拉框清空事件 |
|
|
|
handleCtgClear() { |
|
|
|
this.ctgValue = '' // 确保值被清空 |
|
|
|
this.getTableList() // 清空后刷新列表 |
|
|
|
}, |
|
|
|
getIntellClassify() { |
|
|
|
// 如果已有分类数据,不再重复请求 |
|
|
|
if (this.ctgOptions.length > 0) return |
|
|
|
|
|
|
|
getDicts().then(data => { |
|
|
|
if (data) { |
|
|
|
const res = data.filter(item => { |
|
|
|
item.checked = false |
|
|
|
return item.dicCode === 'DALM' |
|
|
|
}) |
|
|
|
this.ctgOptions = res[0]?.childMenus || [] // 增加可选链,避免报错 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 打印条码 |
|
|
|
onPrint(res) { |
|
|
|
this.codeLoading = true |
|
|
|
@ -410,10 +451,11 @@ export default { |
|
|
|
|
|
|
|
// 文件/案卷重置query |
|
|
|
resetQuery() { |
|
|
|
this.ctgValue = '' |
|
|
|
if (this.selectedCategory.isType === 5) { |
|
|
|
this.queryOption = [ |
|
|
|
{ value: 'queryTitle', label: '姓名' }, |
|
|
|
{ value: 'archiveNo', label: '编号' } |
|
|
|
{ value: 'queryTitle', label: '题名' }, |
|
|
|
{ value: 'archiveNo', label: '档号' } |
|
|
|
// { value: 'responsibleby', label: '责任者' }, |
|
|
|
// { value: 'docNo', label: '发文字号 ' }, |
|
|
|
// { value: 'barcode', label: '条形码' }, |
|
|
|
@ -422,7 +464,7 @@ export default { |
|
|
|
] |
|
|
|
} else { |
|
|
|
this.queryOption = [ |
|
|
|
{ value: 'queryTitle', label: '姓名' }, |
|
|
|
{ value: 'queryTitle', label: '题名' }, |
|
|
|
{ value: 'archiveNo', label: '档号' } |
|
|
|
// { value: 'archiveCtgNo', label: '实体分类号' }, |
|
|
|
// { value: 'barcode', label: '条形码' }, |
|
|
|
@ -444,17 +486,23 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
// list |
|
|
|
// list |
|
|
|
getTableList() { |
|
|
|
// this.query.queryType = null |
|
|
|
this.query.queryTitle = '' |
|
|
|
this.query.archiveNo = '' |
|
|
|
this.query.archiveCtgNo = '' |
|
|
|
// 注释/删除:原本清空archiveCtgNo的代码 |
|
|
|
// this.query.archiveCtgNo = '' |
|
|
|
this.query.responsibleby = '' |
|
|
|
this.query.docNo = '' |
|
|
|
this.query.documentNo = '' |
|
|
|
this.query.barcode = '' |
|
|
|
this.query.folderLocation = '' |
|
|
|
this.query.tempNo = '' |
|
|
|
|
|
|
|
// 新增:将ctgValue赋值给archiveCtgNo |
|
|
|
this.query.archiveCtgNo = this.ctgValue || '' |
|
|
|
|
|
|
|
switch (this.anjuanInputSelect) { |
|
|
|
case 'queryTitle': // 题名 |
|
|
|
this.query.queryTitle = this.anjuanQuery[this.anjuanInputSelect] |
|
|
|
@ -517,7 +565,7 @@ export default { |
|
|
|
this.$refs.table.toggleRowSelection(row) |
|
|
|
this.selections = this.crud.selections |
|
|
|
this.isAnjuan = this.crud.selections.length !== 1 |
|
|
|
this.$emit('getJnInAjBtnState', this.isAnjuan) |
|
|
|
this.$bus.$emit('updateAnjuanState', this.isAnjuan) // 发送事件 |
|
|
|
this.$emit('getSelections', row, null) |
|
|
|
}, |
|
|
|
// 触发单选 |
|
|
|
@ -525,7 +573,7 @@ export default { |
|
|
|
this.selections = selection |
|
|
|
// 判断案卷内的卷内-新增btn-状态 |
|
|
|
this.isAnjuan = selection.length !== 1 |
|
|
|
this.$emit('getJnInAjBtnState', this.isAnjuan) |
|
|
|
this.$bus.$emit('updateAnjuanState', this.isAnjuan) // 发送事件 |
|
|
|
this.$emit('getSelections', row, selection) |
|
|
|
}, |
|
|
|
// 绑定标签 |
|
|
|
|