|  | @ -84,6 +84,7 @@ | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | <script> |  |  | <script> | 
		
	
		
			
				|  |  | import caseCrudMethod from '@/api/archivesManage/caseManage' |  |  | import caseCrudMethod from '@/api/archivesManage/caseManage' | 
		
	
		
			
				|  |  |  |  |  | import { del } from '@/api/archivesManage/caseManage' | 
		
	
		
			
				|  |  | import BindingTagDlg from '@/views/components/BindingTagDlg' |  |  | import BindingTagDlg from '@/views/components/BindingTagDlg' | 
		
	
		
			
				|  |  | import eForm from './module/form' |  |  | import eForm from './module/form' | 
		
	
		
			
				|  |  | import openCaseDlg from './module/openCaseDlg' |  |  | import openCaseDlg from './module/openCaseDlg' | 
		
	
	
		
			
				|  | @ -184,7 +185,6 @@ export default { | 
		
	
		
			
				|  |  |       this.$refs.bindingTag.bindingVisible = true |  |  |       this.$refs.bindingTag.bindingVisible = true | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     openCase(data) { |  |  |     openCase(data) { | 
		
	
		
			
				|  |  |       console.log(data) |  |  |  | 
		
	
		
			
				|  |  |       const isBool = data.every(item => item.storageType === 0) |  |  |       const isBool = data.every(item => item.storageType === 0) | 
		
	
		
			
				|  |  |       if (isBool) { |  |  |       if (isBool) { | 
		
	
		
			
				|  |  |         const bool = data.some(item => item.depositNum === 0) |  |  |         const bool = data.some(item => item.depositNum === 0) | 
		
	
	
		
			
				|  | @ -203,11 +203,9 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 表格双击 |  |  |     // 表格双击 | 
		
	
		
			
				|  |  |     handleDbClick(row) { |  |  |     handleDbClick(row) { | 
		
	
		
			
				|  |  |       // console.log(row, 'row') |  |  |  | 
		
	
		
			
				|  |  |       this.$refs.detailDom.rowData = row |  |  |       this.$refs.detailDom.rowData = row | 
		
	
		
			
				|  |  |       const params = { |  |  |       const params = { | 
		
	
		
			
				|  |  |         caseId: row.id |  |  |         caseId: row.id | 
		
	
		
			
				|  |  |         // caseId: '1716F6C668C83A929C738B' |  |  |  | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       this.crud.crudMethod.findInCase(params).then(res => { |  |  |       this.crud.crudMethod.findInCase(params).then(res => { | 
		
	
		
			
				|  |  |         if (res) { |  |  |         if (res) { | 
		
	
	
		
			
				|  | @ -230,16 +228,37 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 删除 |  |  |     // 删除 | 
		
	
		
			
				|  |  |     handleDel(data) { |  |  |     handleDel(data) { | 
		
	
		
			
				|  |  |       const bool = data.every(item => item.depositNum === 0) |  |  |  | 
		
	
		
			
				|  |  |       if (bool) { |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       const boolDeposit = data.every(item => item.depositNum === 0) | 
		
	
		
			
				|  |  |  |  |  |       const boolStorage = data.every(item => item.storageType === 0) | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |       if (boolStorage) { | 
		
	
		
			
				|  |  |  |  |  |         if (boolDeposit) { | 
		
	
		
			
				|  |  |           this.deleteVisible = true |  |  |           this.deleteVisible = true | 
		
	
		
			
				|  |  |         } else { |  |  |         } else { | 
		
	
		
			
				|  |  |           this.$message.error('请清空档案盒后再删除!') |  |  |           this.$message.error('请清空档案盒后再删除!') | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |  |  |  |       } else { | 
		
	
		
			
				|  |  |  |  |  |         this.$message.error('请操作出库并清空档案盒后才可删除盒!') | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 确认删除 |  |  |     // 确认删除 | 
		
	
		
			
				|  |  |     handleDelConfirm(data) { |  |  |     handleDelConfirm(data) { | 
		
	
		
			
				|  |  |  |  |  |       const params = data.map(item => { | 
		
	
		
			
				|  |  |  |  |  |         return item.id | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |  |  |  |       del(params).then(res => { | 
		
	
		
			
				|  |  |  |  |  |         if (res.doDel.length === 0) { | 
		
	
		
			
				|  |  |  |  |  |           this.$message.error('删除失败') | 
		
	
		
			
				|  |  |  |  |  |         } else { | 
		
	
		
			
				|  |  |  |  |  |           if (res.doDel.length === data.length) { | 
		
	
		
			
				|  |  |  |  |  |             this.$message.success('全部删除成功') | 
		
	
		
			
				|  |  |  |  |  |           } else { | 
		
	
		
			
				|  |  |  |  |  |             this.$message.success('部分删除成功') | 
		
	
		
			
				|  |  |  |  |  |           } | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |         this.deleteVisible = false |  |  |         this.deleteVisible = false | 
		
	
		
			
				|  |  |  |  |  |         this.crud.refresh() | 
		
	
		
			
				|  |  |  |  |  |       }) | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   } |  |  |   } | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
	
		
			
				|  | 
 |