|
|
@ -105,15 +105,18 @@ |
|
|
|
<a-col :span="3"> |
|
|
|
<div class="headCol">SKU名称</div> |
|
|
|
</a-col> |
|
|
|
<a-col :span="2"> |
|
|
|
<a-col :span="1"> |
|
|
|
<div class="headCol">采购价</div> |
|
|
|
</a-col> |
|
|
|
<a-col :span="2"> |
|
|
|
<a-col :span="1"> |
|
|
|
<div class="headCol">快递费</div> |
|
|
|
</a-col> |
|
|
|
<a-col :span="2"> |
|
|
|
<div class="headCol">平台扣点</div> |
|
|
|
</a-col> |
|
|
|
<a-col :span="2"> |
|
|
|
<div class="headCol">税务成本</div> |
|
|
|
</a-col> |
|
|
|
<a-col :span="1"> |
|
|
|
<div class="headCol">利润</div> |
|
|
|
</a-col> |
|
|
@ -242,7 +245,7 @@ |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
<!--采购价--> |
|
|
|
<a-col :span="2" style="margin-top: 5px"> |
|
|
|
<a-col :span="1" style="margin-top: 5px"> |
|
|
|
<div |
|
|
|
v-for="(ext, index) in item.Extensions" |
|
|
|
style="height: 40px" |
|
|
@ -256,7 +259,7 @@ |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
<!--快递费--> |
|
|
|
<a-col :span="2" style="margin-top: 5px"> |
|
|
|
<a-col :span="1" style="margin-top: 5px"> |
|
|
|
<div |
|
|
|
v-for="(ext, index) in item.Extensions" |
|
|
|
style="height: 40px" |
|
|
@ -280,6 +283,17 @@ |
|
|
|
<span class="spanValue">{{ ext.PlatformPoint }}</span> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
<!--税务成本--> |
|
|
|
<a-col :span="2" style="margin-top: 5px"> |
|
|
|
<div |
|
|
|
v-for="(ext, index) in item.Extensions" |
|
|
|
style="height: 40px" |
|
|
|
:key="index" |
|
|
|
> |
|
|
|
<a-input v-if="item.isEdit" v-model="ext.TaxPrice"></a-input> |
|
|
|
<span v-else class="spanValue">{{ ext.TaxPrice }}</span> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
<!--利润--> |
|
|
|
<a-col :span="1" style="margin-top: 5px"> |
|
|
|
<div |
|
|
@ -761,11 +775,24 @@ export default { |
|
|
|
//获取利润率 |
|
|
|
initProfits(item,ext){ |
|
|
|
ext.PlatformPoint = parseFloat(item.RivalPrice * 0.05).toFixed(2); |
|
|
|
|
|
|
|
var taxp=parseFloat(item.RivalPrice * 0.03).toFixed(2) |
|
|
|
if(ext.TaxPrice<=0||ext.TaxPrice==undefined) |
|
|
|
{ |
|
|
|
ext.TaxPrice = parseFloat(item.RivalPrice * 0.03).toFixed(2); |
|
|
|
} |
|
|
|
|
|
|
|
if(ext.KDPrice==undefined) |
|
|
|
{ |
|
|
|
ext.KDPrice=6 |
|
|
|
} |
|
|
|
|
|
|
|
ext.Profit = |
|
|
|
item.RivalPrice - |
|
|
|
ext.BuyPrice - |
|
|
|
ext.KDPrice - |
|
|
|
ext.PlatformPoint; |
|
|
|
parseFloat(item.RivalPrice) - |
|
|
|
parseFloat(ext.BuyPrice) - |
|
|
|
parseFloat(ext.KDPrice) - |
|
|
|
parseFloat(ext.PlatformPoint)- |
|
|
|
parseFloat(ext.TaxPrice); |
|
|
|
|
|
|
|
ext.Profit=parseFloat( |
|
|
|
ext.Profit |
|
|
@ -775,7 +802,7 @@ export default { |
|
|
|
ext.Profits = 0; |
|
|
|
} else { |
|
|
|
ext.Profits = parseFloat( |
|
|
|
(ext.Profit / (ext.BuyPrice+ext.KDPrice)) * 100 |
|
|
|
(ext.Profit / (parseFloat(ext.BuyPrice)+ext.KDPrice)) * 100 |
|
|
|
).toFixed(2); |
|
|
|
} |
|
|
|
}, |
|
|
|