xuhuajiao
1 year ago
3 changed files with 24 additions and 69 deletions
-
25src/views/archiveKeeping/caseManage/caseList/index.vue
-
14src/views/archiveKeeping/caseManage/caseList/module/detailDialog.vue
-
54src/views/archiveKeeping/caseManage/caseList/module/openCaseDlg.vue
@ -1,54 +0,0 @@ |
|||||
<template> |
|
||||
<el-dialog append-to-body :close-on-click-modal="false" :modal-append-to-body="false" title="拆盒" :visible.sync="openCaseVisible"> |
|
||||
<span class="dialog-right-top" /> |
|
||||
<span class="dialog-left-bottom" /> |
|
||||
<div class="setting-dialog"> |
|
||||
<div class="dialog-delt"> |
|
||||
<p><span>确定拆除当前选择的所有档案盒吗?</span></p> |
|
||||
<p class="delt-tip"> |
|
||||
<svg-icon icon-class="tishijinggao" /> |
|
||||
<span>提示:1.确定拆盒后,当前盒号下绑定的所有档案数据将一并清除;</span> |
|
||||
<span>2.若案卷存在多个盒,选择其中一个分盒则自动拆掉该案卷的全部档案盒</span> |
|
||||
</p> |
|
||||
</div> |
|
||||
<div slot="footer" class="dialog-footer"> |
|
||||
<el-button type="primary" @click.native="handleConfirm">确定</el-button> |
|
||||
<!-- <el-button @click.native="handleCancel">取消</el-button> --> |
|
||||
</div> |
|
||||
</div> |
|
||||
</el-dialog> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import { unpacking } from '@/api/archivesManage/caseManage' |
|
||||
import { crud } from '@crud/crud' |
|
||||
|
|
||||
export default { |
|
||||
mixins: [crud()], |
|
||||
data() { |
|
||||
return { |
|
||||
caseData: [], |
|
||||
openCaseVisible: false |
|
||||
} |
|
||||
}, |
|
||||
methods: { |
|
||||
handleConfirm() { |
|
||||
// console.log(this.caseData) |
|
||||
const caseIds = this.caseData.map(item => item.id) |
|
||||
unpacking(JSON.stringify(caseIds)).then(res => { |
|
||||
this.$message.success('拆盒成功!') |
|
||||
this.caseData = [] |
|
||||
this.openCaseVisible = false |
|
||||
this.crud.refresh() |
|
||||
}) |
|
||||
}, |
|
||||
handleCancel() { |
|
||||
this.caseData = [] |
|
||||
this.openCaseVisible = false |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style rel="stylesheet/scss" lang="scss" scoped> |
|
||||
</style> |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue