Browse Source

修复修改快递价格导致计算失败

master
feng 3 years ago
parent
commit
87a9413479
  1. 2
      客户端/齐越慧眼/齐越慧眼/MainWindow.xaml
  2. 12
      客户端/齐越慧眼/齐越慧眼/vuepage/client/src/views/items/Index.vue
  3. 7
      客户端/齐越慧眼/齐越慧眼/vuepage/client/src/views/pricetask/Index.vue
  4. 2
      客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js
  5. 2
      客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js.map

2
客户端/齐越慧眼/齐越慧眼/MainWindow.xaml

@ -11,7 +11,7 @@
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
ActiveGlowColor="{DynamicResource PrimaryColor}" ActiveGlowColor="{DynamicResource PrimaryColor}"
Height="780" Height="780"
Title="慧眼 V1.0.0.7" Title="慧眼 V1.0.0.8"
Width="1468" Icon="/icon.ico" Width="1468" Icon="/icon.ico"
> >
<Border Padding="0 10" Background="#EEEEEE"> <Border Padding="0 10" Background="#EEEEEE">

12
客户端/齐越慧眼/齐越慧眼/vuepage/client/src/views/items/Index.vue

@ -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);
} }
}, },

7
客户端/齐越慧眼/齐越慧眼/vuepage/client/src/views/pricetask/Index.vue

@ -683,6 +683,7 @@ export default {
}, },
// //
initProfits(item,ext){ initProfits(item,ext){
if(item.RivalPrice!=undefined){
ext.PlatformPoint = parseFloat(item.RivalPrice * 0.05).toFixed(2); ext.PlatformPoint = parseFloat(item.RivalPrice * 0.05).toFixed(2);
@ -691,10 +692,10 @@ export default {
{ {
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 =
@ -712,7 +713,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);
} }
}, },

2
客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js

File diff suppressed because one or more lines are too long

2
客户端/齐越慧眼/齐越慧眼/vuepage/dist/js/app.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save