瀏覽代碼

增加订单导入功能

abiao 4 年之前
父節點
當前提交
193d4ca2c5
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      app/models/order.rb

+ 3 - 2
app/models/order.rb

@@ -123,6 +123,7 @@ class Order < ActiveRecord::Base
     end
 
     def w_user
+        wx_user = WxUser.where("id = ?", self.wx_user_id).first
         if !wx_user.blank?
                 return wx_user.nickname
         else
@@ -213,7 +214,7 @@ class Order < ActiveRecord::Base
                 visible true
                 filterable true
             end
-            #field :wx_user
+            field :w_user
             field :user_tel do
                 # visible false
             end
@@ -304,7 +305,7 @@ class Order < ActiveRecord::Base
                     PICK_WAY_ENUM
                 end
             end
-            #field :wx_user
+            field :w_user
             field :wx_user_id
             field :freight do
                 visible true