|
@@ -204,6 +204,11 @@
|
|
|
{{ detailsPlanNum.queryTime }}
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="订单汇率" prop="queryTime">
|
|
|
+ {{ detailsPlanNum.exchangeRate }}
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
<a-col :md="6" :sm="8" class="noprint">
|
|
|
<a-form-model-item label="" prop="" >
|
|
|
<h4 style="color:red;" v-if="color1<0">
|
|
@@ -533,7 +538,7 @@ export default {
|
|
|
})
|
|
|
this.fabricCost = this.detailsPlanNum.fabriccostIncludestax
|
|
|
this.detailsPlanNum.fabriccostIncludestax = (all+Number(this.detailsPlanNum.fabriccostIncludestax)-allYu).toFixed(2) // 表头面料成本(¥)
|
|
|
- this.detailsPlanNum.fabriccostIncludestaxUsd = (Number(this.detailsPlanNum.fabriccostIncludestax)/this.detailsPlanNum.exchangeRate).toFixed(2)//表头面料成本($)
|
|
|
+ this.detailsPlanNum.fabriccostIncludestaxUsd = (Number(this.detailsPlanNum.fabriccostNotincludestax)/this.detailsPlanNum.exchangeRate).toFixed(2)//表头面料成本($)
|
|
|
this.detailsPlanNum.fabriccostNotincludestax = (Number(this.detailsPlanNum.fabriccostIncludestax)/(1+(Number(this.detailsPlanNum.taxrate)/100))).toFixed(2)//表头-面料不含税成本(¥)
|
|
|
this.$refs.unitTabs.ingData = oneData.syCostAllocationIngredientList //辅料sheet数据源
|
|
|
this.$refs.unitTabs.shipData = oneData.syCostAllocationShipdetail //发运明细sheet数据源
|
|
@@ -753,8 +758,9 @@ export default {
|
|
|
rmbAmountAll = 0,
|
|
|
usdAmountAll = 0,
|
|
|
priceExcludingtaxAll = 0
|
|
|
- val.map(item=>{
|
|
|
+ this.$refs.unitTabs.ingData.map(item=>{
|
|
|
if(item.goodsName!=='合计'){
|
|
|
+ item.usdAmount = ((item.priceExcludingtax?Number(item.priceExcludingtax):0)/this.detailsPlanNum.exchangeRate)
|
|
|
if(item.rmbAmount !== item.usdAmount){ usdAmountAll+=item.usdAmount?Number(item.usdAmount):0 }
|
|
|
transferCostAll+=item.transferCostAll?Number(item.transferCost):0
|
|
|
rmbAmountAll+=item.rmbAmount?Number(item.rmbAmount):0
|