| 
					
				 | 
			
			
				@@ -16,6 +16,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </div> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </PrintPanel> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-divider type="vertical" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-button id="salesNewOrderEdit-del-btn" class="button-default" type="link" @click="handleOk([])"><a-icon type="close" />清空单据</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-divider type="vertical" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button id="salesNewOrderEdit-add-btn" type="link" @click="openModal=true"><a-icon type="plus" />选择单据</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -410,11 +412,16 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleOk (selectedRows) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.chooseLoadData = this.chooseLoadData.concat(selectedRows).sort((a, b) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const at = new Date(a.auditTime).getTime() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const bt = new Date(b.auditTime).getTime() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return at - bt 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(selectedRows.length){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.chooseLoadData = this.chooseLoadData.concat(selectedRows).sort((a, b) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const at = new Date(a.auditTime).getTime() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          const bt = new Date(b.auditTime).getTime() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          return at - bt 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.chooseLoadData = selectedRows 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.amountSettledChange() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 返回列表 
			 |