Browse Source

盒管理 已入/待入禁止拆盒提示窗

master
x_ying 3 years ago
parent
commit
0dc2f29451
  1. 30
      src/views/archivesManage/caseManage/caseList/index.vue

30
src/views/archivesManage/caseManage/caseList/index.vue

@ -71,6 +71,14 @@
</div>
</div>
</el-dialog>
<!-- 待入/已入 禁拆盒 -->
<el-dialog title="提示" :visible.sync="msgVisible">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<p><span style="color:#fff;font-size:16px">当前档案盒已入库请先出库</span></p>
</div>
</el-dialog>
</div>
</template>
@ -124,6 +132,7 @@ export default {
edit: ['admin', 'caseManage:edit'],
del: ['admin', 'caseManage:del']
},
msgVisible: false,
deleteVisible: false,
verifyDialVisible: false,
// stateOptions: [
@ -176,15 +185,20 @@ export default {
},
openCase(data) {
console.log(data)
const bool = data.some(item => item.depositNum === 0)
if (bool) {
this.$message({
message: '存在空档案盒不可拆盒!',
type: 'warning'
})
const isBool = data.every(item => item.storageType === 0)
if (isBool) {
const bool = data.some(item => item.depositNum === 0)
if (bool) {
this.$message({
message: '存在空档案盒不可拆盒!',
type: 'warning'
})
} else {
this.$refs.openCase.openCaseVisible = true
this.$refs.openCase.caseData = data
}
} else {
this.$refs.openCase.openCaseVisible = true
this.$refs.openCase.caseData = data
this.msgVisible = true
}
},
//

Loading…
Cancel
Save