|  |  |  | @ -372,6 +372,21 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             if (!isBlank(this.formData.orderId)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 //更新单据 | 
			
		
	
		
			
				
					|  |  |  |  |                 updateOrder(this.formData).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     if (!isBlank(this.formData.code)) { | 
			
		
	
		
			
				
					|  |  |  |  |                         //扫码添加库存养护记录详情 | 
			
		
	
		
			
				
					|  |  |  |  |                         let params = { | 
			
		
	
		
			
				
					|  |  |  |  |                             orderIdFk: this.formData.orderId, | 
			
		
	
		
			
				
					|  |  |  |  |                             code: this.formData.code | 
			
		
	
		
			
				
					|  |  |  |  |                         } | 
			
		
	
		
			
				
					|  |  |  |  |                         addOrderDetail(params).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |                             if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                                 this.$message.success("添加成功!"); | 
			
		
	
		
			
				
					|  |  |  |  |                                 this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                                 this.$message.error(res.message); | 
			
		
	
		
			
				
					|  |  |  |  |                             } | 
			
		
	
		
			
				
					|  |  |  |  |                         }); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }).catch((error) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.$message.error("更新单据信息失败!"); | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
	
		
			
				
					|  |  |  | @ -422,19 +437,24 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.saveOrder(this.formData.code); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             //扫码添加库存养护记录详情 | 
			
		
	
		
			
				
					|  |  |  |  |             let params = { | 
			
		
	
		
			
				
					|  |  |  |  |                 orderIdFk: this.formData.orderId, | 
			
		
	
		
			
				
					|  |  |  |  |                 code: this.formData.code | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.detailList.length === 0) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.saveOrder(); | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 //扫码添加库存养护记录详情 | 
			
		
	
		
			
				
					|  |  |  |  |                 let params = { | 
			
		
	
		
			
				
					|  |  |  |  |                     orderIdFk: this.formData.orderId, | 
			
		
	
		
			
				
					|  |  |  |  |                     code: this.formData.code | 
			
		
	
		
			
				
					|  |  |  |  |                 }; | 
			
		
	
		
			
				
					|  |  |  |  |                 addOrderDetail(params).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.$message.success("添加成功!"); | 
			
		
	
		
			
				
					|  |  |  |  |                         this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } else { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.$message.error(res.message); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             addOrderDetail(params).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.$message.success("添加成功!"); | 
			
		
	
		
			
				
					|  |  |  |  |                     this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                 } else { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.$message.error(res.message); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         deleteOrderDetail(index, row) { | 
			
		
	
		
			
				
					|  |  |  |  |             if (row.count === 1) { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |