Browse Source

批量成件状态

master
xuhuajiao 2 months ago
parent
commit
edb865c7c4
  1. 3
      src/views/prearchiveLibrary/index.vue
  2. 12
      src/views/prearchiveLibrary/module/batchFile.vue

3
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() {

12
src/views/prearchiveLibrary/module/batchFile.vue

@ -101,7 +101,7 @@
</div>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="handleClose">取消</el-button>
<el-button :loading="archivesBtnLoading" type="primary" @click="handleComfirmBatchToFile">确定</el-button>
<el-button :loading="archivesBtnLoading" :disabled="isConfirmDisabled" type="primary" @click="handleComfirmBatchToFile">确定</el-button>
</div>
</div>
</el-dialog>
@ -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,

Loading…
Cancel
Save