From af4548c888d68abcacf602140d6ce6143ca00a23 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Fri, 26 Dec 2025 12:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 + .../archivesList/archivesAnjuan/index.vue | 62 +++++++++++++++-- .../archivesList/archivesJuannei/index.vue | 69 ++++++++++++++++--- .../archivesManage/archivesList/index.vue | 11 ++- .../archivesList/mixins/archives.js | 1 + .../archivesList/module/packing/index.vue | 1 + src/views/components/AccessDoor.vue | 6 +- src/views/components/WarehouseWarning.vue | 6 +- src/views/components/category/PreviewForm.vue | 63 ++++++++++++++++- src/views/home.vue | 7 +- vue.config.js | 2 +- 11 files changed, 200 insertions(+), 30 deletions(-) diff --git a/src/main.js b/src/main.js index e49d0c2..b0865bc 100644 --- a/src/main.js +++ b/src/main.js @@ -81,6 +81,8 @@ Vue.prototype.$x2js = new X2js() // 创建x2js对象,挂到vue原型上 Vue.config.productionTip = false +Vue.prototype.$bus = new Vue() + new Vue({ el: '#app', router, diff --git a/src/views/archivesManage/archivesList/archivesAnjuan/index.vue b/src/views/archivesManage/archivesList/archivesAnjuan/index.vue index 41e66cd..952d4a9 100644 --- a/src/views/archivesManage/archivesList/archivesAnjuan/index.vue +++ b/src/views/archivesManage/archivesList/archivesAnjuan/index.vue @@ -27,6 +27,24 @@ + + + 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) }, // 绑定标签 diff --git a/src/views/archivesManage/archivesList/archivesJuannei/index.vue b/src/views/archivesManage/archivesList/archivesJuannei/index.vue index c5628bc..b30a457 100644 --- a/src/views/archivesManage/archivesList/archivesJuannei/index.vue +++ b/src/views/archivesManage/archivesList/archivesJuannei/index.vue @@ -7,7 +7,7 @@ -->
- 新增 + 新增 修改 @@ -28,6 +28,24 @@ + + + - + {{ scope.row.tid ? '已绑': '未绑' }} - + -->