Sha256: ae92e9da0e5621e2bd1f9ddb0e1eda30600d86f1dfd0c32025113afa0b079f98
Contents?: true
Size: 1.24 KB
Versions: 12
Compression:
Stored size: 1.24 KB
Contents
module EducodeSales class AssessmentsSetting < ApplicationRecord # belongs_to :educode_sales_staff, :class_name => 'EducodeSales::Staff' belongs_to :staff belongs_to :user enum cycle: ['按季', '按月'] CLAZZ = { 7 => '销售指标', 1 => '签单指标', 2 => '回款指标', 3 => '商机跟进', 4 => '商机挖掘-A类商机', 5 => '商机挖掘-B类商机', 6 => '客户拜访-线下拜访', 8 => '客户拜访-线上拜访', 9 => '注册数据-学生', 10 => '注册数据-老师', 11 => '会议组织-区域性会议', 12 => '会议组织-单校会议', 13 => '生态合作-虚拟教研室', 14 => '生态合作-特软', 15 => '生态合作-大V合作', 16 => '重要事项', 17 => '临时任务' } def unit_name case self.assessment when 1, 2, 7 '万元' when 3 '条' when 4, 5 '项' when 6, 8, 11, 12 '次' when 9, 10, 15 '人' when 16, 17 '件' when 13, 14 '个人' end end # todo 签单金额 : assessment_id(1) # todo 回款金额 : assessment_id(2) # todo 拜访量 : assessment_id(3) # todo 新增商机数 : assessment_id(4) end end
Version data entries
12 entries across 12 versions & 1 rubygems