| 
					
				 | 
			
			
				@@ -83,7 +83,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <span v-if="$hasPermissions(authCode + '_salesPrice')">已发货金额:<strong>{{ detailData&&(detailData.totalDispatchAmount || detailData.totalDispatchAmount==0) ? toThousands(detailData.totalDispatchAmount) : '--' }}</strong>;</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <span v-if="$hasPermissions(authCode + '_salesPrice')">待发货金额:<strong>{{ detailData&&(detailData.totalUndispatchAmount || detailData.totalUndispatchAmount==0) ? toThousands(detailData.totalUndispatchAmount) : '--' }}</strong>;</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <span v-if="isCityPrice">市级总售价:<strong>{{ detailData&&(detailData.totalCityAmount || detailData.totalCityAmount==0) ? toThousands(detailData.totalCityAmount) : '--' }}</strong>;</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <span v-if="$hasPermissions(authCode + '_salesPrice')&&detailData&&detailData.totalLossAmount" style="color: red;">优惠金额:<strong>{{ toThousands(detailData.totalLossAmount) }}</strong>;</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <span v-if="$hasPermissions(authCode + '_salesPrice')&&detailData&&detailData.totalDiscountAmount" style="color: red;">优惠金额:<strong>{{ toThousands(detailData.totalDiscountAmount) }}</strong>;</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-button v-if="detailData && (detailData.billStatus == 'WAIT_AUDIT' || detailData.billStatus == 'HQ_CHANGE')" type="link" @click="openStockOut">缺货明细</a-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -285,6 +285,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       salesDetailBySn({ salesBillSn: this.bizSn || this.$route.params.sn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.detailData = res.data || null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.detailData.totalDiscountAmount = Number(this.detailData.totalOrigAmount||0) - Number(this.detailData.totalAmount||0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$refs.productList.pageInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 |