|
@ -724,7 +724,6 @@ export default { |
|
|
item.RivalPrice=data.price |
|
|
item.RivalPrice=data.price |
|
|
item.RivalPLCount=data.commont |
|
|
item.RivalPLCount=data.commont |
|
|
item.RivalImg=data.img |
|
|
item.RivalImg=data.img |
|
|
console.log(item,'获取的商品信息') |
|
|
|
|
|
this.$message.success("获取成功"); |
|
|
this.$message.success("获取成功"); |
|
|
|
|
|
|
|
|
}else{ |
|
|
}else{ |
|
@ -774,21 +773,20 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//获取利润率 |
|
|
//获取利润率 |
|
|
initProfits(item,ext){ |
|
|
initProfits(item,ext){ |
|
|
if(item.RivalPrice==undefined) |
|
|
if(item.RivalPrice!=undefined) |
|
|
{ |
|
|
{ |
|
|
item.RivalPrice=0 |
|
|
|
|
|
} |
|
|
|
|
|
ext.PlatformPoint = parseFloat(item.RivalPrice * 0.05).toFixed(2); |
|
|
ext.PlatformPoint = parseFloat(item.RivalPrice * 0.05).toFixed(2); |
|
|
|
|
|
|
|
|
//var taxp=parseFloat(item.RivalPrice * 0.03).toFixed(2) |
|
|
|
|
|
if(ext.TaxPrice==undefined||ext.TaxPrice==null) |
|
|
if(ext.TaxPrice==undefined||ext.TaxPrice==null) |
|
|
{ |
|
|
{ |
|
|
ext.TaxPrice = parseFloat(item.RivalPrice * 0.03).toFixed(2); |
|
|
ext.TaxPrice = parseFloat(item.RivalPrice * 0.03).toFixed(2); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
if(ext.KDPrice==undefined) |
|
|
if(ext.KDPrice==undefined) |
|
|
{ |
|
|
{ |
|
|
ext.KDPrice=6 |
|
|
ext.KDPrice=parseFloat(6) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ext.Profit = |
|
|
ext.Profit = |
|
@ -806,7 +804,7 @@ export default { |
|
|
ext.Profits = 0; |
|
|
ext.Profits = 0; |
|
|
} else { |
|
|
} else { |
|
|
ext.Profits = parseFloat( |
|
|
ext.Profits = parseFloat( |
|
|
(ext.Profit / (parseFloat(ext.BuyPrice)+ext.KDPrice)) * 100 |
|
|
(ext.Profit / (parseFloat(ext.BuyPrice)+parseFloat(ext.KDPrice))) * 100 |
|
|
).toFixed(2); |
|
|
).toFixed(2); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|