diff --git a/src/views/prearchiveLibrary/index.vue b/src/views/prearchiveLibrary/index.vue index 2ff517a..dc5b181 100644 --- a/src/views/prearchiveLibrary/index.vue +++ b/src/views/prearchiveLibrary/index.vue @@ -525,6 +525,9 @@ export default { handleBatch() { this.$refs.batchForm.batchVisible = true this.$refs.batchForm.selectionsArc = this.crud.selections + this.$nextTick(() => { + this.$refs.batchForm.getMateByDocumentId() + }) }, // 合并成件 handelMerge() { diff --git a/src/views/prearchiveLibrary/module/batchFile.vue b/src/views/prearchiveLibrary/module/batchFile.vue index 72c1a2a..ef97494 100644 --- a/src/views/prearchiveLibrary/module/batchFile.vue +++ b/src/views/prearchiveLibrary/module/batchFile.vue @@ -101,7 +101,7 @@ @@ -180,7 +180,14 @@ export default { computed: { ...mapGetters([ 'user' - ]) + ]), + isConfirmDisabled() { + const hasSelectStatus = this.selectStatus.length > 0 + const hasFieldData = this.isCorrField + ? this.allFieldData.length > 0 + : this.allCorrField.length > 0 + return this.archivesBtnLoading || !hasSelectStatus || !hasFieldData + } }, watch: { selectedDocument: function(newValue, oldValue) { @@ -201,7 +208,6 @@ export default { 'fondsId': this.selectedDocument.fondsId } FetchMateByDocumentIdShow(params).then(res => { - // 处理下拉框选项数据 this.rulesOptions = res.map(item => { return { label: item.ruleName,