Explorar o código

order base detail export edit

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
08a0225047

+ 4 - 4
app/models/order_base_detail.rb

@@ -53,7 +53,7 @@ class OrderBaseDetail < ActiveRecord::Base
       field :product_name
       field :nums
       field :order_dt_id
-      field :paid_time do
+      field :dt_paid_time do
         filterable true
          formatted_value do
            #bindings[:object].order.paied_time
@@ -72,7 +72,7 @@ class OrderBaseDetail < ActiveRecord::Base
           end
       end
 
-      field :pay_way do
+      field :dt_pay_way do
         filterable true
         formatted_value do
           if !bindings[:object].order.blank?
@@ -109,7 +109,7 @@ class OrderBaseDetail < ActiveRecord::Base
           bindings[:object].order.wx_user_id
         end
       end
-      field :paid_time do
+      field :dt_paid_time do
         filterable true
         formatted_value do
           #bindings[:object].order.paied_time
@@ -128,7 +128,7 @@ class OrderBaseDetail < ActiveRecord::Base
         end
       end
 
-      field :pay_way do
+      field :dt_pay_way do
         filterable true
         formatted_value do
           if !bindings[:object].order.blank?

+ 2 - 2
config/locales/models/order_base_detail.yml

@@ -12,8 +12,8 @@ zh-CN:
         order_dt_id: 订单明细ID
         wx_user_id: 微信用户Id
         order_dt_state: 订单状态
-        paid_time: 支付时间
-        pay_way: 支付方式
+        dt_paid_time: 支付时间
+        dt_pay_way: 支付方式
         nums: 数量
         send: 赠品
         created_at: 创建时间