educode_sales 0.4.5 → 0.4.6
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.
- checksums.yaml +4 -4
- data/app/assets/images/educode_sales/indexLogo.png +0 -0
- data/app/controllers/educode_sales/operation_plans_controller.rb +2 -2
- data/app/controllers/educode_sales/operation_reports_controller.rb +3 -3
- data/app/controllers/educode_sales/plans_controller.rb +2 -2
- data/app/controllers/educode_sales/sale_reports_controller.rb +3 -3
- data/app/views/educode_sales/home/index.html.erb +1 -1
- data/app/views/educode_sales/plans/_weekPlan.html.erb +1 -1
- data/app/views/educode_sales/sale_reports/show.html.erb +7 -8
- data/app/views/educode_sales/sales/operations.html.erb +0 -4
- data/app/views/educode_sales/teachers/index.html.erb +14 -14
- data/app/views/layouts/educode_sales/application.html.erb +7 -2
- data/lib/educode_sales/version.rb +1 -1
- metadata +3 -3
- data/app/assets/images/educode_sales/indexlogo.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5ec520db3019e20ddbbd8615880ee3060fdd6d6e5f859130dfb0b0845be8f6d
|
4
|
+
data.tar.gz: 7f678fb5d8c6b9dd77dc8c002b49f1e7228d8ce30b3eddb77fb2e7717b93d1d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ffcbfc616f3ab9241834c9642dfc13e8d18a1ea7c5bc16edcb46398503f80456e2fee80a09da8fec8377a748f0f60a56e4fdf53640470a1e7521a160642a7b7
|
7
|
+
data.tar.gz: 3dd3605a2b1f4cd3469201c87dc7237bb76c01ea6da7cb968e81fd5702b57ab847c919a176a792cb3b7c47547bcc1dad06711cc38dda351935f7096d87001fc1
|
Binary file
|
@@ -21,7 +21,7 @@ module EducodeSales
|
|
21
21
|
@sale_plans = OperationPlan.where(staff_id: @current_admin.id)
|
22
22
|
when '区域'
|
23
23
|
staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
|
24
|
-
@sale_plans = OperationPlan.where("staff_id in (?)", staff_ids)
|
24
|
+
@sale_plans = OperationPlan.where("staff_id in (?) OR educode_sales_operation_plans.staff_id = ?", staff_ids, @current_admin.id)
|
25
25
|
else
|
26
26
|
@sale_plans = OperationPlan
|
27
27
|
end
|
@@ -44,7 +44,7 @@ module EducodeSales
|
|
44
44
|
if params[:sort].present? && params[:sort][:field]
|
45
45
|
@sale_plans = @sale_plans.order("#{params[:sort][:field]} #{params[:sort][:order]}")
|
46
46
|
else
|
47
|
-
@sale_plans = @sale_plans.order("
|
47
|
+
@sale_plans = @sale_plans.order("created_at desc")
|
48
48
|
end
|
49
49
|
@sale_plans = @sale_plans.page(params[:page]).per(params[:limit])
|
50
50
|
end
|
@@ -18,7 +18,7 @@ module EducodeSales
|
|
18
18
|
@sale_reports = OperationReport.where(staff_id: @current_admin.id)
|
19
19
|
when '区域'
|
20
20
|
staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
|
21
|
-
@sale_reports = OperationReport.where("staff_id in (?)", staff_ids)
|
21
|
+
@sale_reports = OperationReport.where("staff_id in (?) OR educode_sales_operation_reports.staff_id = ?", staff_ids, @current_admin.id)
|
22
22
|
else
|
23
23
|
@sale_reports = OperationReport
|
24
24
|
end
|
@@ -40,7 +40,7 @@ module EducodeSales
|
|
40
40
|
if params[:sort].present? && params[:sort][:field]
|
41
41
|
@sale_reports = @sale_reports.order("#{params[:sort][:field]} #{params[:sort][:order]}")
|
42
42
|
else
|
43
|
-
@sale_reports = @sale_reports.order("
|
43
|
+
@sale_reports = @sale_reports.order("created_at desc")
|
44
44
|
end
|
45
45
|
@sale_reports = @sale_reports.page(params[:page]).per(params[:limit])
|
46
46
|
end
|
@@ -126,6 +126,6 @@ module EducodeSales
|
|
126
126
|
params.permit(:level1_opinion, :level2_opinion, :level3_opinion, :level1_score, :level2_score, :level3_score)
|
127
127
|
end
|
128
128
|
|
129
|
-
|
129
|
+
|
130
130
|
end
|
131
131
|
end
|
@@ -22,7 +22,7 @@ module EducodeSales
|
|
22
22
|
@sale_plans = SalePlan.where(staff_id: @current_admin.id)
|
23
23
|
when '区域'
|
24
24
|
staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
|
25
|
-
@sale_plans = SalePlan.where("staff_id in (?)", staff_ids)
|
25
|
+
@sale_plans = SalePlan.where("staff_id in (?) OR educode_sales_sale_plans.staff_id = ?", staff_ids, @current_admin.id)
|
26
26
|
else
|
27
27
|
@sale_plans = SalePlan
|
28
28
|
end
|
@@ -44,7 +44,7 @@ module EducodeSales
|
|
44
44
|
if params[:sort].present? && params[:sort][:field]
|
45
45
|
@sale_plans = @sale_plans.order("#{params[:sort][:field]} #{params[:sort][:order]}")
|
46
46
|
else
|
47
|
-
@sale_plans = @sale_plans.order("
|
47
|
+
@sale_plans = @sale_plans.order("created_at desc")
|
48
48
|
end
|
49
49
|
|
50
50
|
@sale_plans = @sale_plans.page(params[:page]).per(params[:limit])
|
@@ -9,7 +9,7 @@ module EducodeSales
|
|
9
9
|
else
|
10
10
|
sale_report = @current_admin.sale_reports.build(month: Date.today.beginning_of_month, weekly: Time.now.strftime('%W').to_i)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
sale_report.finish_rate = params[:finish_rate]
|
14
14
|
sale_report.client = params[:client]
|
15
15
|
sale_report.content = params[:content]
|
@@ -51,7 +51,7 @@ module EducodeSales
|
|
51
51
|
@sale_reports = SaleReport.where(staff_id: @current_admin.id)
|
52
52
|
when '区域'
|
53
53
|
staff_ids = Staff.joins(user: [user_extension: [department: :school]]).where("schools.province in (?)", @current_admin.areas.pluck(:name)).pluck(:id)
|
54
|
-
@sale_reports = SaleReport.where("staff_id in (?)", staff_ids)
|
54
|
+
@sale_reports = SaleReport.where("staff_id in (?) OR educode_sales_sale_reports.staff_id = ?", staff_ids, @current_admin.id)
|
55
55
|
else
|
56
56
|
@sale_reports = SaleReport
|
57
57
|
end
|
@@ -73,7 +73,7 @@ module EducodeSales
|
|
73
73
|
if params[:sort].present? && params[:sort][:field]
|
74
74
|
@sale_reports = @sale_reports.order("#{params[:sort][:field]} #{params[:sort][:order]}")
|
75
75
|
else
|
76
|
-
@sale_reports = @sale_reports.order("
|
76
|
+
@sale_reports = @sale_reports.order("created_at desc")
|
77
77
|
end
|
78
78
|
@sale_reports = @sale_reports.page(params[:page]).per(params[:limit])
|
79
79
|
end
|
@@ -1 +1 @@
|
|
1
|
-
<div style="text-align:center;"><%= image_tag "educode_sales/
|
1
|
+
<div style="text-align:center;"><%= image_tag "educode_sales/indexLogo.png", width: "900" %></div>
|
@@ -119,43 +119,42 @@
|
|
119
119
|
},
|
120
120
|
{
|
121
121
|
field: 'staff',
|
122
|
-
width:
|
122
|
+
width: 80,
|
123
123
|
title: '姓名'
|
124
124
|
},
|
125
125
|
{
|
126
126
|
field: 'business_name',
|
127
|
-
width:
|
127
|
+
width: 150,
|
128
128
|
title: '商机名称',
|
129
129
|
},
|
130
130
|
{
|
131
131
|
field: 'school',
|
132
|
-
width:
|
132
|
+
width: 120,
|
133
133
|
title: '单位'
|
134
134
|
},
|
135
135
|
{
|
136
136
|
field: 'department',
|
137
|
-
width:
|
137
|
+
width: 170,
|
138
138
|
title: '部门'
|
139
139
|
},
|
140
140
|
{
|
141
141
|
field: 'weekly',
|
142
|
-
width:
|
142
|
+
width: 80,
|
143
143
|
title: '周次',
|
144
144
|
},
|
145
145
|
{
|
146
146
|
field: 'follow_ups_count',
|
147
|
-
width:
|
147
|
+
width: 80,
|
148
148
|
title: '跟进',
|
149
149
|
templet: '#show_follow'
|
150
150
|
},
|
151
151
|
{
|
152
152
|
field: 'finish_rate',
|
153
|
-
width:
|
153
|
+
width: 80,
|
154
154
|
title: '完成率',
|
155
155
|
},
|
156
156
|
{
|
157
157
|
field: 'content',
|
158
|
-
width: 300,
|
159
158
|
title: '计划内容',
|
160
159
|
},
|
161
160
|
{
|
@@ -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 () {
|
@@ -145,83 +145,83 @@
|
|
145
145
|
[
|
146
146
|
{
|
147
147
|
field: 'id',
|
148
|
-
width:
|
148
|
+
width: 60,
|
149
149
|
title:'序号',type: 'numbers',
|
150
150
|
totalRowText:'合计',
|
151
151
|
},
|
152
152
|
{
|
153
153
|
field: 'name',
|
154
|
-
width:
|
154
|
+
width: 80,
|
155
155
|
title: '姓名',
|
156
156
|
templet: "#name"
|
157
157
|
},
|
158
158
|
{
|
159
159
|
field: 'school',
|
160
|
-
width:
|
160
|
+
width: 160,
|
161
161
|
title: '单位',
|
162
162
|
},
|
163
163
|
{
|
164
164
|
field: 'department',
|
165
|
-
width:
|
165
|
+
width: 130,
|
166
166
|
title: '部门'
|
167
167
|
},
|
168
168
|
{
|
169
169
|
field: 'professional_title',
|
170
170
|
title: '职称',
|
171
|
-
width:
|
171
|
+
width: 80,
|
172
172
|
templet: '#show_follow'
|
173
173
|
},
|
174
174
|
{
|
175
175
|
field: 'job',
|
176
|
-
width:
|
176
|
+
width: 80,
|
177
177
|
title: '职务',
|
178
178
|
templet: '#show_keys'
|
179
179
|
|
180
180
|
},
|
181
181
|
{
|
182
182
|
field: 'source',
|
183
|
-
width:
|
183
|
+
width: 90,
|
184
184
|
title: '来源',
|
185
185
|
},
|
186
186
|
{
|
187
187
|
field: 'attitude',
|
188
|
-
width:
|
188
|
+
width: 60,
|
189
189
|
title: '态度',
|
190
190
|
},
|
191
191
|
{
|
192
192
|
field: 'course_subjects_count',
|
193
|
-
width:
|
193
|
+
width: 90,
|
194
194
|
title: '课程方向',
|
195
195
|
templet: "#courses"
|
196
196
|
},
|
197
197
|
{
|
198
198
|
field: 'teacher_follows_count',
|
199
|
-
width:
|
199
|
+
width: 90,
|
200
200
|
title: '跟进情况',
|
201
201
|
totalRow:true,
|
202
202
|
templet: "#follow"
|
203
203
|
},
|
204
204
|
{
|
205
205
|
field: 'teacher_used',
|
206
|
-
width:
|
206
|
+
width: 100,
|
207
207
|
title: '学院渗透率',
|
208
208
|
},
|
209
209
|
{
|
210
210
|
field: 'students',
|
211
|
-
width:
|
211
|
+
width: 60,
|
212
212
|
totalRow:'{{ parseInt(d.TOTAL_NUMS) }}',
|
213
213
|
title: '学生',
|
214
214
|
},
|
215
215
|
{
|
216
216
|
field: 'courses_count',
|
217
|
-
width:
|
217
|
+
width: 60,
|
218
218
|
title: '课堂',
|
219
219
|
totalRow:true,
|
220
220
|
templet: "#class"
|
221
221
|
},
|
222
222
|
{
|
223
223
|
field: 'activities_count',
|
224
|
-
width:
|
224
|
+
width: 100,
|
225
225
|
title: '参与活动',
|
226
226
|
templet: "#event"
|
227
227
|
},
|
@@ -45,7 +45,7 @@
|
|
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>
|
@@ -252,4 +252,9 @@
|
|
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
|
+
</style>
|
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
|
+
version: 0.4.6
|
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-
|
11
|
+
date: 2021-10-27 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/
|
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
|
Binary file
|