Browse Source

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

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

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

@ -71,6 +71,14 @@
</div> </div>
</div> </div>
</el-dialog> </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> </div>
</template> </template>
@ -124,6 +132,7 @@ export default {
edit: ['admin', 'caseManage:edit'], edit: ['admin', 'caseManage:edit'],
del: ['admin', 'caseManage:del'] del: ['admin', 'caseManage:del']
}, },
msgVisible: false,
deleteVisible: false, deleteVisible: false,
verifyDialVisible: false, verifyDialVisible: false,
// stateOptions: [ // stateOptions: [
@ -176,6 +185,8 @@ export default {
}, },
openCase(data) { openCase(data) {
console.log(data) console.log(data)
const isBool = data.every(item => item.storageType === 0)
if (isBool) {
const bool = data.some(item => item.depositNum === 0) const bool = data.some(item => item.depositNum === 0)
if (bool) { if (bool) {
this.$message({ this.$message({
@ -186,6 +197,9 @@ export default {
this.$refs.openCase.openCaseVisible = true this.$refs.openCase.openCaseVisible = true
this.$refs.openCase.caseData = data this.$refs.openCase.caseData = data
} }
} else {
this.msgVisible = true
}
}, },
// //
handleDbClick(row) { handleDbClick(row) {

Loading…
Cancel
Save