| 
					
				 | 
			
			
				@@ -636,10 +636,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v+=item.rmbAmount?Number(item.rmbAmount):0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               t+=item.transferCost?Number(item.transferCost):0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$refs.unitTabs.sumInfo.ingAmount =(v/2).toFixed(2)//辅料金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.$refs.unitTabs.sumInfo.ingAmount =(v/2).toFixed(2)//辅料金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$refs.unitTabs.sumInfo.ingAmount =((v/2)+(t/2)).toFixed(2)//辅料金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // this.$refs.unitTabs.sumInfo.ingExcludAmount = ((v/2).toFixed(2)/(1+(Number(this.detailsPlanNum.taxrate)/100))).toFixed(2)//辅料不含税金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$refs.unitTabs.sumInfo.ingExcludAmount = ((s/2)+(t/2).toFixed(2)/(1+(Number(this.detailsPlanNum.taxrate)/100))).toFixed(2)//辅料不含税金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.detailsPlanNum.excipiencostNotincludestax =  ( this.$refs.unitTabs.sumInfo.ingExcludAmount==''|| !this.$refs.unitTabs.sumInfo.ingExcludAmount)?0:Number(this.$refs.unitTabs.sumInfo.ingExcludAmount).toFixed(2)//辅料料不含税成本    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$refs.unitTabs.sumInfo.ingExcludAmount = (((s/2)+(t/2)/(1+(Number(this.detailsPlanNum.taxrate)/100)))).toFixed(2)//合计sheet辅料不含税金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.detailsPlanNum.excipiencostNotincludestax =  ( this.$refs.unitTabs.sumInfo.ingExcludAmount==''|| !this.$refs.unitTabs.sumInfo.ingExcludAmount)?0:Number(this.$refs.unitTabs.sumInfo.ingExcludAmount).toFixed(2)//表头辅料料不含税成本    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.detailsPlanNum.excipiencostIncludestax =   (  this.$refs.unitTabs.sumInfo.ingAmount ==''|| ! this.$refs.unitTabs.sumInfo.ingAmount )?0:Number( this.$refs.unitTabs.sumInfo.ingAmount ).toFixed(2)//表头辅料成本(¥) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //合计中出运明细相关金额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var s =0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v = 0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -693,7 +695,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              //重新计算辅料相关数值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              var s = 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v=0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                t=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            oneData.syCostAllocationIngredientList.map(item=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              s+=Number(item.priceExcludingtax), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              v+=item.rmbAmount?Number(item.rmbAmount):0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              t+=item.transferCost?Number(item.transferCost):0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$refs.unitTabs.sumInfo.ingExcludAmount = (((s/2)+(t/2)/(1+(Number(this.detailsPlanNum.taxrate)/100)))).toFixed(2)//合计sheet辅料不含税金额合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.detailsPlanNum.excipiencostNotincludestax =  ( this.$refs.unitTabs.sumInfo.ingExcludAmount==''|| !this.$refs.unitTabs.sumInfo.ingExcludAmount)?0:Number(this.$refs.unitTabs.sumInfo.ingExcludAmount).toFixed(2)//表头辅料料不含税成本    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$refs.unitTabs.sumInfo.ingAmount =((v/2)+(t/2)).toFixed(2)//辅料金额合计   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.detailsPlanNum.excipiencostIncludestax =   (  this.$refs.unitTabs.sumInfo.ingAmount ==''|| ! this.$refs.unitTabs.sumInfo.ingAmount )?0:Number( this.$refs.unitTabs.sumInfo.ingAmount ).toFixed(2)//表头辅料成本(¥) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$message.error(res.message); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -743,7 +759,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.detailsPlanNum.usdExpense=( this.detailsPlanNum.usdExpense==''|| !this.detailsPlanNum.usdExpense)?0:Number( this.detailsPlanNum.usdExpense).toFixed(2)//美元费用支出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.detailsPlanNum.usdProcesscost=( this.detailsPlanNum.usdProcesscost==''|| !this.detailsPlanNum.usdProcesscost)?'':Number( this.detailsPlanNum.usdProcesscost).toFixed(2)//加工费(人民币) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.detailsPlanNum.accidentUsdamount=( this.detailsPlanNum.accidentUsdamount==''|| !this.detailsPlanNum.accidentUsdamount)?0:Number( this.detailsPlanNum.accidentUsdamount).toFixed(2)//事故单美元金额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.detailsPlanNum.excipiencostIncludestax=( this.detailsPlanNum.excipiencostIncludestax==''|| !this.detailsPlanNum.excipiencostIncludestax)?0:Number( this.detailsPlanNum.excipiencostIncludestax).toFixed(2)//辅料含税成本 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // this.detailsPlanNum.excipiencostIncludestax=( this.detailsPlanNum.excipiencostIncludestax==''|| !this.detailsPlanNum.excipiencostIncludestax)?0:Number( this.detailsPlanNum.excipiencostIncludestax).toFixed(2)//辅料含税成本 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.detailsPlanNum.salesordersLocaltotal=( this.detailsPlanNum.salesordersLocaltotal==''|| !this.detailsPlanNum.salesordersLocaltotal)?0:Number( this.detailsPlanNum.salesordersLocaltotal).toFixed(2)//销售本币金额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.detailsPlanNum.accidentcnyAmount=( this.detailsPlanNum.accidentcnyAmount==''|| !this.detailsPlanNum.accidentcnyAmount)?0:Number( this.detailsPlanNum.accidentcnyAmount).toFixed(2)//事故单人民币金额    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.detailsPlanNum.fabriccostNotincludestax=( this.detailsPlanNum.fabriccostNotincludestax==''|| !this.detailsPlanNum.fabriccostNotincludestax)?0:Number( this.detailsPlanNum.fabriccostNotincludestax).toFixed(2)//面料不含税成本    
			 |