|
@@ -616,7 +616,7 @@ export default {
|
|
|
this.detailsPlanNum.rmbExportamount = this.$refs.unitTabs.sumInfo.exportedAmountRMB //表头-外销总价(¥)
|
|
|
//调整表头格式
|
|
|
this.adjustingHeader()
|
|
|
- if(Number(oneData.syCostAllocationShipdetail[0].procesUnitPriceusd)>0){
|
|
|
+ if(oneData.syCostAllocationShipdetail.length!==0&&Number(oneData.syCostAllocationShipdetail[0].procesUnitPriceusd)>0){
|
|
|
this.$refs.unitTabs.sumInfo.excludingTaxProcessing =this.$refs.unitTabs.sumInfo.shipProcesFees//出运不含税加工费-合计信息
|
|
|
}else{
|
|
|
this.$refs.unitTabs.sumInfo.excludingTaxProcessing =( this.$refs.unitTabs.sumInfo.shipProcesFees/(1+(Number(this.detailsPlanNum.taxrate)/100))).toFixed(2)//出运不含税加工费
|
|
@@ -654,7 +654,11 @@ export default {
|
|
|
this.detailsPlanNum.shuiemoney=( this.detailsPlanNum.shuiemoney==''|| !this.detailsPlanNum.shuiemoney)?0: this.detailsPlanNum.shuiemoney//运费税额
|
|
|
this.detailsPlanNum.shortvalue=( this.detailsPlanNum.shortvalue==''|| !this.detailsPlanNum.shortvalue)?'': (this.detailsPlanNum.shortvalue).toFixed(2)//短出货值
|
|
|
this.color1 = Number(this.detailsPlanNum.rmbExportamount)-Number(this.detailsPlanNum.fabriccostNotincludestax)-Number(this.detailsPlanNum.excipiencostNotincludestax)-Number(this.detailsPlanNum.rmbProcesscost)-Number(this.detailsPlanNum.rmbExpense)
|
|
|
- this.color2 = this.color1/Number(this.detailsPlanNum.usdTotalexportprice)
|
|
|
+ if(this.detailsPlanNum.usdTotalexportprice==0.00){
|
|
|
+ this.color2 = 0
|
|
|
+ }else{
|
|
|
+ this.color2 = this.color1/Number(this.detailsPlanNum.usdTotalexportprice)
|
|
|
+ }
|
|
|
// this.color2 = this.color2>0?this.color2:-this.color2
|
|
|
},
|
|
|
|