|
@@ -629,13 +629,17 @@ export default {
|
|
|
// this.detailsPlanNum.fabriccostNotincludestax = (s/1.13).toFixed(3) //表头中面料不含税总额
|
|
|
//合计中辅料相关金额
|
|
|
var s = 0,
|
|
|
- v =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.ingAmount =(v/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 = ((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)//辅料料不含税成本
|
|
|
//合计中出运明细相关金额
|
|
|
var s =0,
|
|
|
v = 0,
|
|
@@ -742,7 +746,7 @@ export default {
|
|
|
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)//面料不含税成本
|
|
|
- this.detailsPlanNum.excipiencostNotincludestax=( this.detailsPlanNum.excipiencostNotincludestax==''|| !this.detailsPlanNum.excipiencostNotincludestax)?0:Number( this.detailsPlanNum.excipiencostNotincludestax).toFixed(2)//辅料料不含税成本
|
|
|
+ // this.detailsPlanNum.excipiencostNotincludestax=( this.detailsPlanNum.excipiencostNotincludestax==''|| !this.detailsPlanNum.excipiencostNotincludestax)?0:Number( this.detailsPlanNum.excipiencostNotincludestax).toFixed(2)//辅料料不含税成本
|
|
|
this.detailsPlanNum.salesrrdersOriginaltotal=( this.detailsPlanNum.salesrrdersOriginaltotal==''|| !this.detailsPlanNum.salesrrdersOriginaltotal)?0:Number( this.detailsPlanNum.salesrrdersOriginaltotal).toFixed(2)//销售订单原币金额
|
|
|
this.detailsPlanNum.excipiencostIncludestaxUsd=( this.detailsPlanNum.excipiencostIncludestaxUsd==''|| !this.detailsPlanNum.excipiencostIncludestaxUsd)?0: this.detailsPlanNum.excipiencostIncludestaxUsd//辅料成本($)
|
|
|
this.detailsPlanNum.shuiemoney=( this.detailsPlanNum.shuiemoney==''|| !this.detailsPlanNum.shuiemoney)?0: this.detailsPlanNum.shuiemoney//运费税额
|
|
@@ -836,7 +840,7 @@ export default {
|
|
|
ingredientsTransferQuantity:'',
|
|
|
ingredientsRemainingQuantity:''
|
|
|
}
|
|
|
- this.detailsPlanNum.excipiencostNotincludestax = allObj.priceExcludingtax
|
|
|
+ // this.detailsPlanNum.excipiencostNotincludestax = allObj.priceExcludingtax
|
|
|
if(this.$refs.unitTabs.ingData.length!==0 ){
|
|
|
if(this.$refs.unitTabs.ingData[this.$refs.unitTabs.ingData.length-1].goodsName=='合计'){this.$refs.unitTabs.ingData.pop()}
|
|
|
this.$refs.unitTabs.ingData.push(allObj)
|