Browse Source

商品ID管理

abiao 3 years ago
parent
commit
d1b20d5e9a
1 changed files with 7 additions and 3 deletions
  1. 7 3
      app/models/product.rb

+ 7 - 3
app/models/product.rb

@@ -220,8 +220,9 @@ class Product < ActiveRecord::Base
             field :single_purch_limit
             field :package
             field :pv do
+                label "pv%"
                 formatted_value do # used in form views
-                    value.to_f / 100
+                    value.to_f + "%"
                 end
             end
             field :out_nums
@@ -294,8 +295,9 @@ class Product < ActiveRecord::Base
             field :stock_cycle
             field :min_purchase
             field :pv do
+                label "pv%"
                 formatted_value do # used in form views
-                    value.to_f / 100
+                    value.to_f + "%"
                 end
             end
             field :out_nums
@@ -372,7 +374,9 @@ class Product < ActiveRecord::Base
             field :product_cycle
             field :stock_cycle
             field :min_purchase
-            field :pv
+            field :pv do
+                label "pv%"
+            end
             field :out_nums
             field :key_words
             field :silver