|  |  |  | @ -29,11 +29,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       </el-descriptions> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--<el-button type="primary" icon="el-icon-plus" sty>提交</el-button>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <el-form :inline="true" :model="formData" class="demo-form-inline" style="margin-top: 30px" :rules="rules" ref="formRef"> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-form :inline="true" :model="formData" class="demo-form-inline" style="margin-top: 30px" :rules="rules" | 
			
		
	
		
			
				
					|  |  |  |  |                ref="formRef"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row :gutter="24"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="10"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="损耗出库数量" prop="count"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-input v-model.number="formData.count" placeholder="请填写损耗出库数量" type="number" :min="1" @input="checkCount"></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model.number="formData.count" placeholder="请填写损耗出库数量" type="number" :min="1" | 
			
		
	
		
			
				
					|  |  |  |  |                         @input="checkCount"></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               <!--<span v-if="countExceeded" class="exceeded-message">损耗出库数量不能超过10个</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
	
		
			
				
					|  |  |  | @ -58,7 +60,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import { destroyOut, destroyOutByCode } from '@/api/collect/IoDestroy' | 
			
		
	
		
			
				
					|  |  |  |  | import {destroyOut, destroyOutByCode, destroySplitOut} from '@/api/collect/IoDestroy' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   name: 'destroyOutDialog', | 
			
		
	
	
		
			
				
					|  |  |  | @ -135,8 +137,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             return this.$message.error(res.message) | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |       }else { | 
			
		
	
		
			
				
					|  |  |  |  |         destroyOutByCode(query).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (this.destroyType == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |         destroySplitOut(query).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |           if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.closeDialog() | 
			
		
	
		
			
				
					|  |  |  |  |             return this.$message.success("损耗出库成功") | 
			
		
	
	
		
			
				
					|  |  |  | @ -144,6 +146,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             return this.$message.error("损耗出库失败") | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (this.destroyType == 3) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
	
		
			
				
					|  |  |  | 
 |