Sha256: b1a9b62d2dddd29a0af3f325f1261d61a5d00a89bb90e2755ce135ad77c4a808

Contents?: true

Size: 1.08 KB

Versions: 30

Compression:

Stored size: 1.08 KB

Contents

module EducodeSales
  class FollowUp < ApplicationRecord
    # todo O类商机特有字段-部署类型(因此不写入common表中)
    BUSINESS_DEPLOYMENT =[
      ["请选择", nil],
      ["公有云", 1],
      ["私有云", 2],
      ["混合云", 3]
    ]

    InfoClazz = ['跟进信息', '建议信息', '评论信息', '审核信息']

    enum signed_clazz: ['直签', '代签', '总集', '渠道']

    enum funding_source: ['贷款资金', '财政资金', '自由资金']

    include ::Deletable
    belongs_to :business, counter_cache: true # counter_cache(自动计算 business对应follow_up表中对应的个数)
    belongs_to :place, optional: true
    belongs_to :signed_department, class_name: 'Department', optional: true
    has_many :money_plans
    has_many :key_person
    has_many :teachers, through: :key_person
    has_many :assign_follow_ups
    belongs_to :staff
    belongs_to :stage, class_name: 'Common'
    belongs_to :clazz, class_name: 'Common'

    has_many :follow_up_trends
    has_many :contract_date_lists


    default_scope  -> {where(deleted_at: nil)}


  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
educode_sales-1.10.7 app/models/educode_sales/follow_up.rb
educode_sales-1.10.6 app/models/educode_sales/follow_up.rb
educode_sales-1.10.5 app/models/educode_sales/follow_up.rb
educode_sales-1.10.3 app/models/educode_sales/follow_up.rb
educode_sales-1.10.2 app/models/educode_sales/follow_up.rb
educode_sales-1.10.1 app/models/educode_sales/follow_up.rb
educode_sales-1.10.0 app/models/educode_sales/follow_up.rb
educode_sales-1.0.9 app/models/educode_sales/follow_up.rb
educode_sales-1.0.8 app/models/educode_sales/follow_up.rb
educode_sales-1.0.7 app/models/educode_sales/follow_up.rb
educode_sales-1.0.6 app/models/educode_sales/follow_up.rb
educode_sales-1.0.5 app/models/educode_sales/follow_up.rb
educode_sales-1.0.4 app/models/educode_sales/follow_up.rb
educode_sales-1.0.3 app/models/educode_sales/follow_up.rb
educode_sales-1.0.2 app/models/educode_sales/follow_up.rb
educode_sales-1.0.1 app/models/educode_sales/follow_up.rb
educode_sales-1.0.0 app/models/educode_sales/follow_up.rb
educode_sales-0.9.99 app/models/educode_sales/follow_up.rb
educode_sales-0.9.98 app/models/educode_sales/follow_up.rb
educode_sales-0.9.97 app/models/educode_sales/follow_up.rb