educode_sales 0.4.4 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/educode_sales/indexLogo.png +0 -0
  3. data/app/controllers/educode_sales/businesses_controller.rb +6 -3
  4. data/app/controllers/educode_sales/home_controller.rb +4 -0
  5. data/app/controllers/educode_sales/operation_plans_controller.rb +6 -2
  6. data/app/controllers/educode_sales/operation_reports_controller.rb +9 -3
  7. data/app/controllers/educode_sales/operations_controller.rb +1 -1
  8. data/app/controllers/educode_sales/plans_controller.rb +19 -7
  9. data/app/controllers/educode_sales/sale_reports_controller.rb +9 -3
  10. data/app/controllers/educode_sales/sale_trends_controller.rb +8 -7
  11. data/app/controllers/educode_sales/sales_controller.rb +2 -2
  12. data/app/models/educode_sales/sale_plan.rb +1 -0
  13. data/app/models/educode_sales/teacher.rb +12 -19
  14. data/app/views/educode_sales/activities/index.html.erb +4 -0
  15. data/app/views/educode_sales/activities/index.json.jbuilder +6 -0
  16. data/app/views/educode_sales/activities/show_teachers.html.erb +16 -16
  17. data/app/views/educode_sales/businesses/index.html.erb +15 -10
  18. data/app/views/educode_sales/businesses/index.json.jbuilder +7 -1
  19. data/app/views/educode_sales/businesses/show_follow.html.erb +9 -4
  20. data/app/views/educode_sales/home/index.html.erb +1 -1
  21. data/app/views/educode_sales/home/search_operation_teacher.json.jbuilder +12 -0
  22. data/app/views/educode_sales/operation_plans/_monthPlan.html.erb +12 -8
  23. data/app/views/educode_sales/operation_plans/_monthly.html.erb +18 -4
  24. data/app/views/educode_sales/operation_plans/_weekPlan.html.erb +13 -9
  25. data/app/views/educode_sales/operation_plans/_weekly.html.erb +18 -4
  26. data/app/views/educode_sales/operation_plans/edit_month.html.erb +6 -6
  27. data/app/views/educode_sales/operation_plans/edit_week.html.erb +7 -7
  28. data/app/views/educode_sales/operation_plans/index.json.jbuilder +10 -2
  29. data/app/views/educode_sales/operation_plans/new_month.html.erb +36 -4
  30. data/app/views/educode_sales/operation_plans/new_monthly.html.erb +16 -2
  31. data/app/views/educode_sales/operation_plans/new_week.html.erb +33 -5
  32. data/app/views/educode_sales/operation_plans/new_weekly.html.erb +16 -2
  33. data/app/views/educode_sales/operation_reports/audit.html.erb +13 -1
  34. data/app/views/educode_sales/operation_reports/edit.html.erb +13 -1
  35. data/app/views/educode_sales/operation_reports/index.json.jbuilder +7 -0
  36. data/app/views/educode_sales/operation_reports/show.html.erb +13 -1
  37. data/app/views/educode_sales/places/index.html.erb +5 -0
  38. data/app/views/educode_sales/plans/_monthPlan.html.erb +11 -8
  39. data/app/views/educode_sales/plans/_monthly.html.erb +18 -3
  40. data/app/views/educode_sales/plans/_weekPlan.html.erb +10 -7
  41. data/app/views/educode_sales/plans/_weekly.html.erb +19 -3
  42. data/app/views/educode_sales/plans/edit_month.html.erb +7 -7
  43. data/app/views/educode_sales/plans/edit_week.html.erb +8 -8
  44. data/app/views/educode_sales/plans/index.json.jbuilder +4 -0
  45. data/app/views/educode_sales/plans/new_month.html.erb +2 -2
  46. data/app/views/educode_sales/plans/new_monthly.html.erb +16 -2
  47. data/app/views/educode_sales/plans/new_week.html.erb +2 -2
  48. data/app/views/educode_sales/plans/new_weekly.html.erb +16 -2
  49. data/app/views/educode_sales/sale_reports/audit.html.erb +13 -1
  50. data/app/views/educode_sales/sale_reports/edit.html.erb +13 -1
  51. data/app/views/educode_sales/sale_reports/index.json.jbuilder +7 -0
  52. data/app/views/educode_sales/sale_reports/show.html.erb +20 -9
  53. data/app/views/educode_sales/sales/index.html.erb +6 -0
  54. data/app/views/educode_sales/sales/index.json.jbuilder +20 -4
  55. data/app/views/educode_sales/sales/operations.html.erb +4 -4
  56. data/app/views/educode_sales/sales/operations.json.jbuilder +12 -3
  57. data/app/views/educode_sales/teachers/index.html.erb +19 -14
  58. data/app/views/educode_sales/teachers/index.json.jbuilder +12 -2
  59. data/app/views/educode_sales/teachers/show_follow.html.erb +10 -4
  60. data/app/views/layouts/educode_sales/application.html.erb +12 -4
  61. data/config/routes.rb +1 -0
  62. data/db/migrate/20211022085324_add_teacher_used_to_teachers.rb +7 -0
  63. data/lib/educode_sales/version.rb +1 -1
  64. metadata +5 -3
  65. data/app/assets/images/educode_sales/indexlogo.png +0 -0
@@ -1,5 +1,12 @@
1
+ <h1 class="m-t-20 text-center">报告人员:<%=@name %></h1>
1
2
  <form class="layui-form layui-form-pane" action="" style="padding-right: 20px">
2
- <div class="layui-form-item">
3
+ <div class="layui-form-item" style="margin-bottom: 0">
4
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
5
+ <label>负责区域:</label>
6
+ <span><%= @area%></span>
7
+ </div>
8
+ </div>
9
+ <div class="layui-form-item" style="margin-bottom: 0">
3
10
  <div class="layui-inline" style="margin:18px; font-weight: bold">
4
11
  <label>完成率:</label>
5
12
  <span><%= @sale_report.finish_rate %>%</span>
@@ -12,6 +19,11 @@
12
19
  <label style="margin-left: 100px">项目金额:</label>
13
20
  <span><%= @sale_report.amount %>万</span>
14
21
  </div>
22
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
23
+ <label style="margin-left: 100px">提交时间:</label>
24
+ <span><%= @sale_report.created_at %></span>
25
+ <%= hidden_field_tag 'amount', @total_amount, {id: 'monthly_amount_hide'} %>
26
+ </div>
15
27
  </div>
16
28
  <div class="layui-form-item" style="margin-left: 18px">
17
29
  <div class="layui-form-item layui-form-text">
@@ -119,43 +131,42 @@
119
131
  },
120
132
  {
121
133
  field: 'staff',
122
- width: 120,
134
+ width: 80,
123
135
  title: '姓名'
124
136
  },
125
137
  {
126
138
  field: 'business_name',
127
- width: 270,
139
+ width: 150,
128
140
  title: '商机名称',
129
141
  },
130
142
  {
131
143
  field: 'school',
132
- width: 200,
144
+ width: 120,
133
145
  title: '单位'
134
146
  },
135
147
  {
136
148
  field: 'department',
137
- width: 190,
149
+ width: 170,
138
150
  title: '部门'
139
151
  },
140
152
  {
141
153
  field: 'weekly',
142
- width: 100,
154
+ width: 80,
143
155
  title: '周次',
144
156
  },
145
157
  {
146
158
  field: 'follow_ups_count',
147
- width: 100,
159
+ width: 80,
148
160
  title: '跟进',
149
161
  templet: '#show_follow'
150
162
  },
151
163
  {
152
164
  field: 'finish_rate',
153
- width: 100,
165
+ width: 80,
154
166
  title: '完成率',
155
167
  },
156
168
  {
157
169
  field: 'content',
158
- width: 300,
159
170
  title: '计划内容',
160
171
  },
161
172
  {
@@ -26,10 +26,12 @@
26
26
  elem: '#table',
27
27
  url: '/missions/sales',
28
28
  cellMinWidth: 80,
29
+ totalRow:true,
29
30
  cols: [
30
31
  [{
31
32
  field: 'id',
32
33
  title:'序号',type: 'numbers',
34
+ totalRowText:'合计',
33
35
  width: 80
34
36
  }, {
35
37
  field: 'name',
@@ -42,19 +44,23 @@
42
44
  field: 'business_a',
43
45
  title: 'A类商机',
44
46
  templet: "#business_a",
47
+ totalRow:true,
45
48
  width: 120
46
49
  }, {
47
50
  field: 'business_b',
48
51
  title: 'B类商机',
49
52
  templet: "#business_b",
53
+ totalRow:true,
50
54
  width: 120
51
55
  }, {
52
56
  field: 'goal',
53
57
  title: '中标金额',
58
+ totalRow:true,
54
59
  width: 120
55
60
  }, {
56
61
  field: 'return_money',
57
62
  title: '回款',
63
+ totalRow:true,
58
64
  width: 120
59
65
  }
60
66
  ]
@@ -1,17 +1,33 @@
1
+ businesses_a_count = 0
2
+ businesses_b_count = 0
1
3
  json.data do
2
4
  json.array! @staffs do |d|
5
+ part_a_ids = EducodeSales::Business.where("educode_sales_businesses.last_follow_up_id is null AND staff_id = ?",d.id).ids
6
+ part_b_ids = EducodeSales::Business.where("educode_sales_businesses.last_follow_up_id is not null").joins("
7
+ JOIN educode_sales_follow_ups ON educode_sales_businesses.last_follow_up_id = educode_sales_follow_ups.id
8
+ ").where("educode_sales_follow_ups.staff_id = ?", d.id).pluck(:business_id)
9
+ business_ids = part_a_ids + part_b_ids
10
+ @businesses = EducodeSales::Business.where(id:business_ids)
3
11
  json.id d.id
4
12
  json.name d.user.real_name
5
13
  json.role d.role&.name
6
14
  json.area d.areas.present? ? d.areas.pluck(:name).join("、") : ''
7
- json.business_a d.businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id = ?", @a_clazz&.id).count
8
- json.business_b d.businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id = ?", @b_clazz&.id).count
9
- json.goal d.businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id != ? AND educode_sales_follow_ups.stage_id in (?)", @x, @step_ids).sum(:total_amount).round(2)
10
- json.return_money d.businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id != ?", @x).sum("educode_sales_businesses.return_money").round(2)
15
+ business_a = @businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id = ?", @a_clazz&.id).count
16
+ businesses_a_count += business_a
17
+ json.business_a business_a
18
+ business_b = @businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id = ?", @b_clazz&.id).count
19
+ businesses_b_count += business_b
20
+ json.business_b business_b
21
+ json.goal @businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id != ? AND educode_sales_follow_ups.stage_id in (?)", @x, @step_ids).sum(:total_amount).round(2)
22
+ json.return_money @businesses.joins("JOIN educode_sales_follow_ups on educode_sales_follow_ups.id = educode_sales_businesses.last_follow_up_id").where("educode_sales_follow_ups.clazz_id != ?", @x).sum("educode_sales_businesses.return_money").round(2)
11
23
  json.a_clazz_id @a_clazz&.id
12
24
  json.b_clazz_id @b_clazz&.id
13
25
  end
14
26
  end
15
27
 
28
+ json.totalRow do
29
+ json.business_a businesses_a_count.to_s
30
+ json.business_b businesses_b_count.to_s
31
+ end
16
32
  json.code 0
17
33
  json.count @staffs.total_count
@@ -11,14 +11,10 @@
11
11
  <script type="text/html" id="currentTableBar">
12
12
  </script>
13
13
  <script type="text/html" id="school">
14
- <div class="layui-text">
15
14
  <a href="javascript:void(0);" lay-event="school" class="layui-table-link">{{d.schools}}</a>
16
- </div>
17
15
  </script>
18
16
  <script type="text/html" id="xschool">
19
- <div class="layui-text">
20
17
  <a href="javascript:void(0);" lay-event="xschool" class="layui-table-link">{{d.departments}}</a>
21
- </div>
22
18
  </script>
23
19
  <script>
24
20
  layui.use(['form', 'table', 'miniPage', 'element'], function () {
@@ -32,10 +28,12 @@
32
28
  elem: '#oper_table',
33
29
  url: '/missions/sales/operations',
34
30
  defaultToolbar: [],
31
+ totalRow:true,
35
32
  cols: [
36
33
  [{
37
34
  field: 'id',
38
35
  title:'序号',type: 'numbers',
36
+ totalRowText:'合计',
39
37
  width: 80
40
38
  }, {
41
39
  field: 'name',
@@ -52,11 +50,13 @@
52
50
  field: 'schools',
53
51
  title: '跟进学校',
54
52
  templet: "#school",
53
+ totalRow:true,
55
54
  width: 120
56
55
  }, {
57
56
  field: 'departments',
58
57
  title: '跟进二级学院',
59
58
  templet: "#xschool",
59
+ totalRow:true,
60
60
  width: 120
61
61
  },
62
62
  ]
@@ -1,3 +1,5 @@
1
+ departments_count = 0
2
+ schools_count = 0
1
3
  json.data do
2
4
  json.array! @staffs do |d|
3
5
  json.id d.id
@@ -5,11 +7,18 @@ json.data do
5
7
  json.role d.role&.name
6
8
  json.job_type EducodeSales::Common.job_type_name[d.job_type]
7
9
  json.area d.areas.present? ? d.areas.pluck(:name).join("、") : ''
8
- json.departments EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.staff_id = #{d.id}").select("COUNT(educode_sales_follow_ups.staff_id) AS count")[0]&.send('count') + EducodeSales::Teacher.joins(:follow_up).where("educode_sales_teacher_follows.staff_id = #{d.id}").select("COUNT(educode_sales_teacher_follows.staff_id) AS count")[0]&.send('count') || 0
9
- json.schools EducodeSales::Business.joins(:last_follow_up, :department).where("educode_sales_follow_ups.staff_id = #{d.id}").select("COUNT(distinct(departments.school_id)) AS count")[0]['count'] + EducodeSales::Teacher.joins(:follow_up, :department).where("educode_sales_teacher_follows.staff_id = #{d.id}").select("COUNT(distinct(departments.school_id)) AS count")[0]['count']
10
-
10
+ departments = EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.staff_id = #{d.id}").select("COUNT(educode_sales_follow_ups.staff_id) AS count")[0]&.send('count') + EducodeSales::Teacher.joins(:follow_up).where("educode_sales_teacher_follows.staff_id = #{d.id}").select("COUNT(educode_sales_teacher_follows.staff_id) AS count")[0]&.send('count') || 0
11
+ json.departments departments
12
+ schools = EducodeSales::Business.joins(:last_follow_up, :department).where("educode_sales_follow_ups.staff_id = #{d.id}").select("COUNT(distinct(departments.school_id)) AS count")[0]['count'] + EducodeSales::Teacher.joins(:follow_up, :department).where("educode_sales_teacher_follows.staff_id = #{d.id}").select("COUNT(distinct(departments.school_id)) AS count")[0]['count']
13
+ json.schools schools
14
+ departments_count += departments
15
+ schools_count += schools
11
16
  end
12
17
  end
13
18
 
19
+ json.totalRow do
20
+ json.departments departments_count.to_s
21
+ json.schools schools_count.to_s
22
+ end
14
23
  json.code 0
15
24
  json.count @staffs.total_count
@@ -139,63 +139,66 @@
139
139
  url: '/missions/teachers',
140
140
  where: {q: form.val('search_form')},
141
141
  toolbar: '#toolbarDemo',
142
- defaultToolbar: [],
142
+ totalRow:true,
143
+ defaultToolbar: ['filter'],
143
144
  cols: [
144
145
  [
145
146
  {
146
147
  field: 'id',
147
- width: 120,
148
+ width: 60,
148
149
  title:'序号',type: 'numbers',
150
+ totalRowText:'合计',
149
151
  },
150
152
  {
151
153
  field: 'name',
152
- width: 120,
154
+ width: 80,
153
155
  title: '姓名',
154
156
  templet: "#name"
155
157
  },
156
158
  {
157
159
  field: 'school',
158
- width: 250,
160
+ width: 160,
159
161
  title: '单位',
160
162
  },
161
163
  {
162
164
  field: 'department',
163
- width: 250,
165
+ width: 130,
164
166
  title: '部门'
165
167
  },
166
168
  {
167
169
  field: 'professional_title',
168
170
  title: '职称',
169
- width: 120,
171
+ width: 80,
170
172
  templet: '#show_follow'
171
173
  },
172
174
  {
173
175
  field: 'job',
174
- width: 120,
176
+ width: 80,
175
177
  title: '职务',
176
178
  templet: '#show_keys'
177
179
 
178
180
  },
179
181
  {
180
182
  field: 'source',
181
- width: 120,
183
+ width: 90,
182
184
  title: '来源',
183
185
  },
184
186
  {
185
187
  field: 'attitude',
186
- width: 120,
188
+ width: 60,
187
189
  title: '态度',
188
190
  },
189
191
  {
190
192
  field: 'course_subjects_count',
191
- width: 120,
193
+ width: 90,
192
194
  title: '课程方向',
193
195
  templet: "#courses"
194
196
  },
195
197
  {
196
198
  field: 'teacher_follows_count',
197
- width: 120,
199
+ width: 90,
198
200
  title: '跟进情况',
201
+ totalRow:true,
199
202
  templet: "#follow"
200
203
  },
201
204
  {
@@ -205,18 +208,20 @@
205
208
  },
206
209
  {
207
210
  field: 'students',
208
- width: 120,
211
+ width: 60,
212
+ totalRow:'{{ parseInt(d.TOTAL_NUMS) }}',
209
213
  title: '学生',
210
214
  },
211
215
  {
212
216
  field: 'courses_count',
213
- width: 120,
217
+ width: 60,
214
218
  title: '课堂',
219
+ totalRow:true,
215
220
  templet: "#class"
216
221
  },
217
222
  {
218
223
  field: 'activities_count',
219
- width: 120,
224
+ width: 100,
220
225
  title: '参与活动',
221
226
  templet: "#event"
222
227
  },
@@ -1,3 +1,5 @@
1
+ teacher_follows_count = 0
2
+ courses_counts = 0
1
3
  json.data do
2
4
  json.array! @teachers do |d|
3
5
  json.id d.id
@@ -13,12 +15,20 @@ json.data do
13
15
  json.activities_count d.activity_teachers_count
14
16
  json.source EducodeSales::Common.teacher_source_name[d.source_id]
15
17
  json.attitude d.follow_up&.attitude&.name
16
- json.courses_count d.user_id ? Course.joins(:course_members).where(course_members: {user_id: d.user_id}).where("is_delete = 0 and role != 4 and excellent = 0 and is_hidden = 0").where("start_date is null or start_date <= '#{Date.today}'").distinct(:course_id).count : 0
18
+ json.courses_count d.courses_count
17
19
  json.actives d.actives
18
20
  json.students d.students_count
19
21
  json.regist_at d.user.present? ? d.user.created_on.to_s(:date) : ''
20
- json.teacher_used d.teacher_used_of_department
22
+ json.teacher_used d.teacher_used
23
+
24
+ teacher_follows_count += d.teacher_follows_count
25
+ courses_counts += d.courses_count
21
26
  end
22
27
  end
28
+
29
+ json.totalRow do
30
+ json.teacher_follows_count teacher_follows_count.to_s
31
+ json.courses_count courses_counts.to_s
32
+ end
23
33
  json.code 0
24
34
  json.count @teachers.total_count
@@ -6,8 +6,9 @@
6
6
  <% end %>
7
7
  </div>
8
8
  </script>
9
-
10
- <table class="layui-hide" id="sale_plan_follow_table" lay-filter="sale_plan_follow_table"></table>
9
+ <div class="z-index">
10
+ <table class="layui-hide" id="sale_plan_follow_table" lay-filter="sale_plan_follow_table"></table>
11
+ </div>
11
12
 
12
13
  <script type="text/html" id="currentTableBar_follow">
13
14
  <% if can? :read, EducodeSales::TeacherFollow %>
@@ -36,7 +37,7 @@
36
37
  elem: '#sale_plan_follow_table',
37
38
  url: '/missions/teachers/show_follow?id=' + parent.id ,
38
39
  toolbar: '#toolbarDemo_follow',
39
- defaultToolbar: [],
40
+ defaultToolbar: ['filter'],
40
41
  cols: [
41
42
  [
42
43
  {
@@ -490,4 +491,9 @@
490
491
  });
491
492
 
492
493
  });
493
- </script>
494
+ </script>
495
+ <style>
496
+ .z-index .layui-table-tool{
497
+ z-index: 10000; !important;
498
+ }
499
+ </style>
@@ -45,14 +45,14 @@
45
45
  <div class="layui-side layui-bg-black">
46
46
  <div class="layui-side-scroll ">
47
47
  <!-- 左侧导航区域(可配合layui已有的垂直导航) -->
48
- <ul class="layui-nav layui-nav-tree"
48
+ <ul class="layui-nav layui-nav-tree ul"
49
49
  lay-filter="test">
50
50
  <li class="layui-nav-item layui-nav-itemed menu-li" >
51
51
  <a class="" href="javascript:;"><b><%= image_tag "educode_sales/1.销售活动.png",size:"15"%><i style="padding-right: 25px"></i>销售活动</b></a>
52
52
  <dl class="layui-nav-child">
53
53
  <% if can? :trends, EducodeSales::SaleTrend %>
54
54
  <dd>
55
- <a href="/missions/sale_trends/trends" class="<%= current?('layui-this', trends_sale_trends_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/2.市场态势.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>市场态势</a>
55
+ <a href="/missions/sale_trends/trends" class="<%= current?('layui-this', trends_sale_trends_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/2.市场态势.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>销售态势</a>
56
56
  </dd>
57
57
  <% end %>
58
58
  <% if can? :sales, EducodeSales::Staff %>
@@ -215,7 +215,7 @@
215
215
  tips = $(this).prop("innerHTML")
216
216
  flag = btn.hasClass('layui-icon-spread-left')
217
217
  if (flag && tips) {
218
- tips = "<ul class='layuimini-menu-left-zoom layui-nav layui-nav-tree layui-this' style='width: 170px'><li class='layui-nav-item layui-nav-itemed'>"+tips+"</li></ul>" ;
218
+ tips = "<ul class='ul-down layuimini-menu-left-zoom layui-nav layui-nav-tree layui-this' style='width: 170px'><li class='layui-nav-item layui-nav-itemed'>"+tips+"</li></ul>" ;
219
219
  window.openTips = layer.tips(tips, $(this), {
220
220
  tips: [2, '#2f4056'],
221
221
  time: 300000,
@@ -252,4 +252,12 @@
252
252
 
253
253
 
254
254
 
255
- </script>
255
+ </script>
256
+ <style>
257
+ .layuimini-mini .ul .layui-nav-child{
258
+ display: none;!important;
259
+ }
260
+ .ul-down .layui-icon-down{
261
+ display: none;!important;
262
+ }
263
+ </style>
data/config/routes.rb CHANGED
@@ -7,6 +7,7 @@ EducodeSales::Engine.routes.draw do
7
7
  get :search_users, to: "home#search_users"
8
8
  get :search_teacher, to: "home#search_teacher"
9
9
  get :search_edu_teacher,to: "home#search_edu_teacher"
10
+ get :search_operation_teacher,to: "home#search_operation_teacher"
10
11
  get :search, to: "home#search"
11
12
  get :no_permission, to: "home#no_permission"
12
13
  get :sales_staff, to: "home#sales_staff"
@@ -0,0 +1,7 @@
1
+ class AddTeacherUsedToTeachers < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :educode_sales_teachers, :teacher_used, :integer, default: 0
4
+ add_column :educode_sales_teachers, :students_count, :integer, default: 0
5
+ add_column :educode_sales_teachers, :courses_count, :integer, default: 0
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: educode_sales
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-20 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -103,7 +103,7 @@ files:
103
103
  - app/assets/images/educode_sales/icon-ext.png
104
104
  - app/assets/images/educode_sales/icon-login.png
105
105
  - app/assets/images/educode_sales/icon.png
106
- - app/assets/images/educode_sales/indexlogo.png
106
+ - app/assets/images/educode_sales/indexLogo.png
107
107
  - app/assets/images/educode_sales/loading-0.gif
108
108
  - app/assets/images/educode_sales/loading-1.gif
109
109
  - app/assets/images/educode_sales/loading-2.gif
@@ -217,6 +217,7 @@ files:
217
217
  - app/views/educode_sales/home/sales_staff.json.jbuilder
218
218
  - app/views/educode_sales/home/search.json.jbuilder
219
219
  - app/views/educode_sales/home/search_edu_teacher.json.jbuilder
220
+ - app/views/educode_sales/home/search_operation_teacher.json.jbuilder
220
221
  - app/views/educode_sales/home/search_teacher.json.jbuilder
221
222
  - app/views/educode_sales/home/search_users.json.jbuilder
222
223
  - app/views/educode_sales/home/statistics.html.erb
@@ -351,6 +352,7 @@ files:
351
352
  - db/migrate/20211009063423_add_source_businesses.rb
352
353
  - db/migrate/20211013060712_create_educode_sales_assign_follow_ups.rb
353
354
  - db/migrate/20211018054256_add_extras_to_commons.rb
355
+ - db/migrate/20211022085324_add_teacher_used_to_teachers.rb
354
356
  - lib/educode_sales.rb
355
357
  - lib/educode_sales/engine.rb
356
358
  - lib/educode_sales/version.rb