educode_sales 0.1.5 → 0.2.1
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/assets/stylesheets/educode_sales/app.css +24 -0
- data/app/assets/stylesheets/educode_sales/public.css +4 -0
- data/app/controllers/educode_sales/businesses_controller.rb +12 -1
- data/app/controllers/educode_sales/follow_ups_controller.rb +14 -1
- data/app/controllers/educode_sales/home_controller.rb +7 -7
- 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/staffs_controller.rb +3 -2
- data/app/controllers/educode_sales/teacher_follows_controller.rb +1 -0
- data/app/controllers/educode_sales/teachers_controller.rb +1 -0
- data/app/models/educode_sales/activity.rb +1 -1
- data/app/models/educode_sales/common.rb +4 -0
- data/app/models/educode_sales/follow_up.rb +1 -1
- data/app/models/educode_sales/staff.rb +3 -3
- data/app/models/educode_sales/teacher.rb +14 -4
- data/app/views/educode_sales/activities/index.html.erb +32 -18
- data/app/views/educode_sales/activities/show_teachers.html.erb +14 -12
- data/app/views/educode_sales/businesses/edit_follow_record.html.erb +1 -0
- data/app/views/educode_sales/businesses/edit_plan.html.erb +7 -2
- data/app/views/educode_sales/businesses/index.html.erb +18 -10
- data/app/views/educode_sales/businesses/index.json.jbuilder +3 -1
- data/app/views/educode_sales/businesses/new.html.erb +1 -1
- data/app/views/educode_sales/businesses/new_follow_record.html.erb +12 -2
- data/app/views/educode_sales/businesses/show_follow.html.erb +24 -19
- data/app/views/educode_sales/businesses/show_follow.json.jbuilder +1 -0
- data/app/views/educode_sales/businesses/show_keys.html.erb +1 -1
- data/app/views/educode_sales/commons/edit.html.erb +1 -1
- data/app/views/educode_sales/commons/index.html.erb +2 -3
- data/app/views/educode_sales/home/index.html.erb +1 -1
- data/app/views/educode_sales/home/search_teacher.json.jbuilder +2 -2
- data/app/views/educode_sales/home/statistics.html.erb +1 -0
- data/app/views/educode_sales/operation_plans/_monthPlan.html.erb +2 -3
- data/app/views/educode_sales/operation_plans/_monthly.html.erb +2 -2
- data/app/views/educode_sales/operation_plans/_weekPlan.html.erb +2 -3
- data/app/views/educode_sales/operation_plans/_weekly.html.erb +2 -1
- data/app/views/educode_sales/operation_plans/edit_month.html.erb +4 -3
- data/app/views/educode_sales/operation_plans/edit_monthly.html.erb +3 -3
- data/app/views/educode_sales/operation_plans/edit_week.html.erb +4 -3
- data/app/views/educode_sales/operation_plans/edit_weekly.html.erb +3 -3
- data/app/views/educode_sales/operation_plans/new_month.html.erb +5 -4
- data/app/views/educode_sales/operation_plans/new_monthly.html.erb +3 -3
- data/app/views/educode_sales/operation_plans/new_week.html.erb +5 -4
- data/app/views/educode_sales/operation_plans/new_weekly.html.erb +3 -3
- data/app/views/educode_sales/operation_plans/show_monthly.html.erb +3 -3
- data/app/views/educode_sales/operation_plans/show_weekly.html.erb +3 -3
- data/app/views/educode_sales/operation_reports/audit.html.erb +3 -3
- data/app/views/educode_sales/operation_reports/edit.html.erb +4 -4
- data/app/views/educode_sales/operation_reports/show.html.erb +140 -28
- data/app/views/educode_sales/places/index.html.erb +6 -6
- data/app/views/educode_sales/plans/_monthPlan.html.erb +11 -7
- data/app/views/educode_sales/plans/_monthly.html.erb +2 -1
- data/app/views/educode_sales/plans/_weekPlan.html.erb +2 -1
- data/app/views/educode_sales/plans/_weekly.html.erb +2 -1
- data/app/views/educode_sales/plans/audit_weekly.html.erb +3 -3
- data/app/views/educode_sales/plans/edit_monthly.html.erb +3 -3
- data/app/views/educode_sales/plans/edit_week.html.erb +1 -1
- data/app/views/educode_sales/plans/edit_weekly.html.erb +1 -1
- data/app/views/educode_sales/plans/new_monthly.html.erb +1 -1
- data/app/views/educode_sales/plans/new_week.html.erb +3 -1
- data/app/views/educode_sales/plans/new_weekly.html.erb +2 -1
- data/app/views/educode_sales/plans/show_monthly.html.erb +3 -3
- data/app/views/educode_sales/plans/show_weekly.html.erb +1 -1
- data/app/views/educode_sales/roles/index.html.erb +2 -1
- data/app/views/educode_sales/sale_reports/audit.html.erb +2 -2
- data/app/views/educode_sales/sale_reports/edit.html.erb +4 -4
- data/app/views/educode_sales/sale_reports/show.html.erb +2 -2
- data/app/views/educode_sales/sale_trends/operations.html.erb +1 -1
- data/app/views/educode_sales/sale_trends/trends.html.erb +1 -1
- data/app/views/educode_sales/sales/index.html.erb +12 -7
- data/app/views/educode_sales/sales/index.json.jbuilder +1 -1
- data/app/views/educode_sales/sales/operations.html.erb +7 -5
- data/app/views/educode_sales/sales/operations.json.jbuilder +3 -2
- data/app/views/educode_sales/sales/school.html.erb +1 -2
- data/app/views/educode_sales/sales/xschool.html.erb +1 -2
- data/app/views/educode_sales/staffs/follow_up_departments.json.jbuilder +1 -2
- data/app/views/educode_sales/staffs/follow_up_schools.json.jbuilder +1 -2
- data/app/views/educode_sales/staffs/index.html.erb +6 -8
- data/app/views/educode_sales/staffs/new.html.erb +1 -1
- data/app/views/educode_sales/teachers/add_courses.html.erb +3 -3
- data/app/views/educode_sales/teachers/add_event.html.erb +1 -1
- data/app/views/educode_sales/teachers/add_keys.html.erb +11 -5
- data/app/views/educode_sales/teachers/course_list.json.jbuilder +1 -0
- data/app/views/educode_sales/teachers/course_subject.json.jbuilder +1 -1
- data/app/views/educode_sales/teachers/index.html.erb +11 -9
- data/app/views/educode_sales/teachers/index.json.jbuilder +3 -2
- data/app/views/educode_sales/teachers/new.html.erb +3 -5
- data/app/views/educode_sales/teachers/new_follow_record.html.erb +1 -0
- data/app/views/educode_sales/teachers/search_new.html.erb +2 -2
- data/app/views/educode_sales/teachers/show_class.html.erb +7 -1
- data/app/views/educode_sales/teachers/show_follow.html.erb +11 -9
- data/app/views/educode_sales/teachers/show_follow.json.jbuilder +1 -0
- data/app/views/layouts/educode_sales/application.html.erb +6 -9
- data/config/routes.rb +1 -0
- data/lib/educode_sales/version.rb +1 -1
- metadata +3 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="layui-form-item">
|
3
3
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
4
4
|
<label>完成率:</label>
|
5
|
-
<span><%= @sale_report.finish_rate
|
5
|
+
<span><%= @sale_report.finish_rate %>%</span>
|
6
6
|
<%= hidden_field_tag :id, @sale_report.id, {id: 'sale_report_audito'} %>
|
7
7
|
</div>
|
8
8
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
@@ -128,7 +128,7 @@
|
|
128
128
|
content = miniPage.getHrefContent('/educode_sales/teachers/show_follow?id=' + data.teacher_id);
|
129
129
|
openWH = miniPage.getOpenWidthHeight();
|
130
130
|
index = layer.open({
|
131
|
-
title: '教师列表/' + data.
|
131
|
+
title: '教师列表/' + data.teache_name + '的跟进记录',
|
132
132
|
type: 1,
|
133
133
|
shade: 0.2,
|
134
134
|
maxmin: true,
|
@@ -151,7 +151,7 @@
|
|
151
151
|
[{
|
152
152
|
field: 'id',
|
153
153
|
width: 80,
|
154
|
-
title:
|
154
|
+
title:'序号',type: 'numbers',
|
155
155
|
},
|
156
156
|
{
|
157
157
|
field: 'staff',
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<div class="layui-form-item">
|
9
9
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
10
10
|
<label>完成率:</label>
|
11
|
-
<span><%= @sale_report.finish_rate
|
11
|
+
<span><%= @sale_report.finish_rate %>%</span>
|
12
12
|
</div>
|
13
13
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
14
14
|
<label style="margin-left: 100px">运营教师:</label>
|
@@ -72,14 +72,14 @@
|
|
72
72
|
|
73
73
|
table.render({
|
74
74
|
elem: '#newWeeklyTable',
|
75
|
-
|
75
|
+
url: '/educode_sales/operation_reports/' + "<%= @sale_report.id%>" + '/plans',
|
76
76
|
toolbar: '#newWeeklyToolbar',
|
77
77
|
defaultToolbar: [],
|
78
78
|
cols: [
|
79
79
|
[{
|
80
80
|
field: 'id',
|
81
81
|
width: 80,
|
82
|
-
title:
|
82
|
+
title:'序号',type: 'numbers',
|
83
83
|
},
|
84
84
|
{
|
85
85
|
field: 'staff',
|
@@ -215,7 +215,7 @@
|
|
215
215
|
content = miniPage.getHrefContent('/educode_sales/teachers/show_follow?id=' + data.teacher_id);
|
216
216
|
openWH = miniPage.getOpenWidthHeight();
|
217
217
|
index = layer.open({
|
218
|
-
title: '教师列表/' + data.
|
218
|
+
title: '教师列表/' + data.teacher_name + '的跟进记录',
|
219
219
|
type: 1,
|
220
220
|
shade: 0.2,
|
221
221
|
maxmin: true,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="layui-form-item">
|
3
3
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
4
4
|
<label>完成率:</label>
|
5
|
-
<span><%= @sale_report.finish_rate
|
5
|
+
<span><%= @sale_report.finish_rate %>%</span>
|
6
6
|
</div>
|
7
7
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
8
8
|
<label style="margin-left: 100px">运营教师:</label>
|
@@ -47,17 +47,25 @@
|
|
47
47
|
</div>
|
48
48
|
</form>
|
49
49
|
|
50
|
-
|
51
|
-
<
|
52
|
-
<script type="text/html" id="currentShowWeekly">
|
53
|
-
<a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="show">查看</a>
|
54
|
-
<a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
|
55
|
-
<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
|
50
|
+
<script type="text/html" id="show_follow_show">
|
51
|
+
<a href="javascript:void(0);" lay-event="show_follow_show" class="layui-table-link">{{ d.count }}</a>
|
56
52
|
</script>
|
53
|
+
<!--表格-->
|
54
|
+
<table class="layui-hide" id="showWeeklyTable" lay-filter="showWeeklyTable"></table>
|
55
|
+
<!--<script type="text/html" id="currentShowWeekly">-->
|
56
|
+
<!-- <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="show">查看</a>-->
|
57
|
+
<!-- <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>-->
|
58
|
+
<!-- <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>-->
|
59
|
+
<!--</script>-->
|
57
60
|
<script>
|
58
61
|
layui.use(['rate', 'table'], function () {
|
59
|
-
var rate = layui.rate
|
60
|
-
|
62
|
+
var rate = layui.rate,
|
63
|
+
form = layui.form,
|
64
|
+
$ = layui.jquery,
|
65
|
+
miniPage = layui.miniPage,
|
66
|
+
request = layui.request;
|
67
|
+
table = layui.table;
|
68
|
+
|
61
69
|
rate.render({
|
62
70
|
elem: '#weekStar4',
|
63
71
|
half: true,
|
@@ -73,36 +81,36 @@
|
|
73
81
|
half: true,
|
74
82
|
readonly: true
|
75
83
|
})
|
76
|
-
|
84
|
+
|
77
85
|
|
78
86
|
table.render({
|
79
87
|
elem: '#showWeeklyTable',
|
80
|
-
|
88
|
+
url: '/educode_sales/operation_reports/' + "<%= @sale_report.id%>" + '/plans',
|
89
|
+
|
81
90
|
defaultToolbar: [],
|
82
91
|
cols: [
|
83
|
-
[
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
},
|
92
|
+
[{
|
93
|
+
field: 'id',
|
94
|
+
width: 80,
|
95
|
+
title:'序号',type: 'numbers',
|
96
|
+
},
|
89
97
|
{
|
90
|
-
field: '
|
98
|
+
field: 'staff',
|
91
99
|
width: 100,
|
92
100
|
title: '姓名'
|
93
101
|
},
|
94
102
|
{
|
95
|
-
field: '
|
96
|
-
width:
|
97
|
-
title: '
|
103
|
+
field: 'teacher_name',
|
104
|
+
width: 100,
|
105
|
+
title: '教师姓名',
|
98
106
|
},
|
99
107
|
{
|
100
|
-
field: '
|
108
|
+
field: 'school',
|
101
109
|
width: 100,
|
102
110
|
title: '单位'
|
103
111
|
},
|
104
112
|
{
|
105
|
-
field: '
|
113
|
+
field: 'department',
|
106
114
|
width: 100,
|
107
115
|
title: '部门'
|
108
116
|
},
|
@@ -112,14 +120,15 @@
|
|
112
120
|
title: '周次',
|
113
121
|
},
|
114
122
|
{
|
115
|
-
field: '
|
123
|
+
field: 'content',
|
116
124
|
width: 300,
|
117
125
|
title: '计划内容',
|
118
126
|
},
|
119
127
|
{
|
120
|
-
field: '
|
128
|
+
field: 'count',
|
121
129
|
width: 100,
|
122
130
|
title: '跟进',
|
131
|
+
templet: '#show_follow_show'
|
123
132
|
},
|
124
133
|
{
|
125
134
|
field: 'rate',
|
@@ -127,13 +136,116 @@
|
|
127
136
|
title: '完成率',
|
128
137
|
},
|
129
138
|
{
|
130
|
-
field: '
|
131
|
-
width:
|
139
|
+
field: 'updated_at',
|
140
|
+
width: 190,
|
132
141
|
title: '更新时间',
|
133
142
|
sort: true,
|
134
|
-
}
|
143
|
+
},
|
144
|
+
// {
|
145
|
+
// title: '操作',
|
146
|
+
// minWidth: 190,
|
147
|
+
// toolbar: '#currentShowWeekly',
|
148
|
+
// align: "center",
|
149
|
+
// fixed: 'right'
|
150
|
+
// }
|
135
151
|
]
|
136
152
|
],
|
137
153
|
page: true
|
138
154
|
});
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
table.on('toolbar(showWeeklyTable)', function (obj) {
|
159
|
+
if (obj.event === 'add') { // 监听添加操作
|
160
|
+
from_weekly = true;
|
161
|
+
var content = miniPage.getHrefContent('/educode_sales/operation_plans/new_week');
|
162
|
+
var openWH = miniPage.getOpenWidthHeight();
|
163
|
+
sindex = layer.open({
|
164
|
+
title: '添加计划',
|
165
|
+
type: 1,
|
166
|
+
shade: 0.2,
|
167
|
+
maxmin: true,
|
168
|
+
shadeClose: true,
|
169
|
+
area: [openWH[0] + 'px', openWH[1] + 'px'],
|
170
|
+
offset: [openWH[2] + 'px', openWH[3] + 'px'],
|
171
|
+
content: content,
|
172
|
+
success: function (layero, index) {
|
173
|
+
// 重新渲染弹层中的下拉选择框select
|
174
|
+
form.render('select');
|
175
|
+
}
|
176
|
+
});
|
177
|
+
$(window).on("resize", function () {
|
178
|
+
layer.full(sindex);
|
179
|
+
});
|
180
|
+
}
|
181
|
+
});
|
182
|
+
table.on('tool(showWeeklyTable)', function (obj) {
|
183
|
+
var data = obj.data;
|
184
|
+
id = data.id
|
185
|
+
if (obj.event === 'delete') {
|
186
|
+
layer.confirm('确定删除ID为' + id + " 的周计划", function (index) {
|
187
|
+
request.delete('educode_sales/operation_plans/' + id, {}, function (res) {
|
188
|
+
layer.close(index);
|
189
|
+
table.reload("showWeeklyTable")
|
190
|
+
})
|
191
|
+
});
|
192
|
+
} else if (obj.event === 'show') {
|
193
|
+
content = miniPage.getHrefContent('/educode_sales/operation_plans/show_week?id=' + id);
|
194
|
+
openWH = miniPage.getOpenWidthHeight();
|
195
|
+
index = layer.open({
|
196
|
+
title: '查看',
|
197
|
+
type: 1,
|
198
|
+
shade: 0.2,
|
199
|
+
maxmin: true,
|
200
|
+
shadeClose: true,
|
201
|
+
area: [openWH[0] + 'px', openWH[1] + 'px'],
|
202
|
+
offset: [openWH[2] + 'px', openWH[3] + 'px'],
|
203
|
+
content: content
|
204
|
+
});
|
205
|
+
$(window).on("resize", function () {
|
206
|
+
layer.full(index);
|
207
|
+
});
|
208
|
+
return false;
|
209
|
+
} else if (obj.event === 'edit') {
|
210
|
+
plan_id = id;
|
211
|
+
from_sales = true;
|
212
|
+
content = miniPage.getHrefContent('/educode_sales/operation_plans/edit_week?id=' + id);
|
213
|
+
openWH = miniPage.getOpenWidthHeight();
|
214
|
+
sindex = layer.open({
|
215
|
+
title: '编辑',
|
216
|
+
type: 1,
|
217
|
+
shade: 0.2,
|
218
|
+
maxmin: true,
|
219
|
+
shadeClose: true,
|
220
|
+
area: [openWH[0] + 'px', openWH[1] + 'px'],
|
221
|
+
offset: [openWH[2] + 'px', openWH[3] + 'px'],
|
222
|
+
content: content
|
223
|
+
});
|
224
|
+
$(window).on("resize", function () {
|
225
|
+
layer.full(sindex);
|
226
|
+
});
|
227
|
+
return false;
|
228
|
+
} else if (obj.event === 'show_follow_show') {
|
229
|
+
id = data.teacher_id
|
230
|
+
content = miniPage.getHrefContent('/educode_sales/teachers/show_follow?id=' + data.teacher_id);
|
231
|
+
openWH = miniPage.getOpenWidthHeight();
|
232
|
+
index = layer.open({
|
233
|
+
title: '教师列表/' + data.teacher_name + '的跟进记录',
|
234
|
+
type: 1,
|
235
|
+
shade: 0.2,
|
236
|
+
maxmin: true,
|
237
|
+
shadeClose: true,
|
238
|
+
area: [openWH[0] + 'px', openWH[1] + 'px'],
|
239
|
+
offset: [openWH[2] + 'px', openWH[3] + 'px'],
|
240
|
+
content: content
|
241
|
+
});
|
242
|
+
$(window).on("resize", function () {
|
243
|
+
layer.full(index);
|
244
|
+
});
|
245
|
+
}
|
246
|
+
});
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
})
|
139
251
|
</script>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
{
|
41
41
|
field: 'id',
|
42
42
|
width: 80,
|
43
|
-
title:
|
43
|
+
title:'序号',type: 'numbers',
|
44
44
|
},
|
45
45
|
{
|
46
46
|
field: 'name',
|
@@ -49,32 +49,32 @@
|
|
49
49
|
},
|
50
50
|
{
|
51
51
|
field: 'area_id',
|
52
|
-
width: 300,
|
53
52
|
title: '负责区域',
|
54
53
|
},
|
55
54
|
{
|
56
55
|
field: 'businesses_count',
|
57
|
-
width:
|
56
|
+
width: 120,
|
58
57
|
title: '商机'
|
59
58
|
},
|
60
59
|
{
|
61
60
|
field: 'amount',
|
62
|
-
width:
|
61
|
+
width: 120,
|
63
62
|
title: '中标(万)'
|
64
63
|
},
|
65
64
|
{
|
66
65
|
field: 'return_mount',
|
67
|
-
width:
|
66
|
+
width: 120,
|
68
67
|
title: '回款(万)',
|
69
68
|
},
|
70
69
|
{
|
71
70
|
title: '操作',
|
72
|
-
|
71
|
+
width: 120,
|
73
72
|
toolbar: '#currentTableBar',
|
74
73
|
align: "center"
|
75
74
|
}
|
76
75
|
]
|
77
76
|
],
|
77
|
+
limit: 20,
|
78
78
|
page: true
|
79
79
|
});
|
80
80
|
|
@@ -82,7 +82,7 @@
|
|
82
82
|
{
|
83
83
|
field: 'id',
|
84
84
|
width: 80,
|
85
|
-
title:
|
85
|
+
title:'序号',type: 'numbers',
|
86
86
|
},
|
87
87
|
{
|
88
88
|
field: 'staff',
|
@@ -140,6 +140,7 @@
|
|
140
140
|
}
|
141
141
|
]
|
142
142
|
],
|
143
|
+
limit: 20,
|
143
144
|
page: true,
|
144
145
|
});
|
145
146
|
|
@@ -201,12 +202,7 @@
|
|
201
202
|
|
202
203
|
table.on('tool(monthPlanTable)', function (obj) {
|
203
204
|
var data = obj.data;
|
204
|
-
if (obj.event === '
|
205
|
-
layer.confirm('真的删除行么', function (index) {
|
206
|
-
obj.del();
|
207
|
-
layer.close(index);
|
208
|
-
});
|
209
|
-
} else if (obj.event === 'show') {
|
205
|
+
if (obj.event === 'show') {
|
210
206
|
content = miniPage.getHrefContent('/educode_sales/plans/show_month?id=' + data.id);
|
211
207
|
openWH = miniPage.getOpenWidthHeight();
|
212
208
|
index = layer.open({
|
@@ -259,6 +255,14 @@
|
|
259
255
|
$(window).on("resize", function () {
|
260
256
|
layer.full(index);
|
261
257
|
});
|
258
|
+
} else if (obj.event === 'delete') {
|
259
|
+
layer.confirm('确定删除' + data.id, function (index) {
|
260
|
+
console.log("aaaaa");
|
261
|
+
request.delete('educode_sales/plans/' + data.id, {}, function (res) {
|
262
|
+
layer.close(index);
|
263
|
+
table.reload("monthPlanTable")
|
264
|
+
})
|
265
|
+
});
|
262
266
|
}
|
263
267
|
});
|
264
268
|
|
@@ -101,7 +101,7 @@
|
|
101
101
|
{
|
102
102
|
field: 'id',
|
103
103
|
width: 80,
|
104
|
-
title:
|
104
|
+
title:'序号',type: 'numbers',
|
105
105
|
},
|
106
106
|
{
|
107
107
|
field: 'username',
|
@@ -169,8 +169,8 @@
|
|
169
169
|
"rate": "100%",
|
170
170
|
"updateTime": "2021-07-27",
|
171
171
|
}],
|
172
|
-
|
173
|
-
|
172
|
+
|
173
|
+
|
174
174
|
page: true,
|
175
175
|
skin: 'line'
|
176
176
|
});
|
@@ -105,7 +105,7 @@
|
|
105
105
|
{
|
106
106
|
field: 'id',
|
107
107
|
width: 80,
|
108
|
-
title:
|
108
|
+
title:'序号',type: 'numbers',
|
109
109
|
},
|
110
110
|
{
|
111
111
|
field: 'username',
|
@@ -173,8 +173,8 @@
|
|
173
173
|
"rate": "100%",
|
174
174
|
"updateTime": "2021-07-27",
|
175
175
|
}],
|
176
|
-
|
177
|
-
|
176
|
+
|
177
|
+
|
178
178
|
page: true,
|
179
179
|
skin: 'line'
|
180
180
|
});
|
@@ -97,6 +97,7 @@
|
|
97
97
|
layer.close(parent.sindex);
|
98
98
|
parent.layer.close(parent.layer.getFrameIndex(window.name))
|
99
99
|
parent.table.reload('newWeeklyTable');
|
100
|
+
table.reload('weeklyTable');
|
100
101
|
layer.alert('添加成功')
|
101
102
|
}
|
102
103
|
})
|
@@ -113,7 +114,7 @@
|
|
113
114
|
{
|
114
115
|
field: 'id',
|
115
116
|
width: 60,
|
116
|
-
title:
|
117
|
+
title:'序号',type: 'numbers',
|
117
118
|
},
|
118
119
|
{
|
119
120
|
field: 'staff',
|
@@ -93,7 +93,7 @@
|
|
93
93
|
{
|
94
94
|
field: 'id',
|
95
95
|
width: 80,
|
96
|
-
title:
|
96
|
+
title:'序号',type: 'numbers',
|
97
97
|
},
|
98
98
|
{
|
99
99
|
field: 'username',
|
@@ -161,8 +161,8 @@
|
|
161
161
|
"rate": "100%",
|
162
162
|
"updateTime": "2021-07-27",
|
163
163
|
}],
|
164
|
-
|
165
|
-
|
164
|
+
|
165
|
+
|
166
166
|
page: true,
|
167
167
|
skin: 'line'
|
168
168
|
});
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="layui-form-item">
|
3
3
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
4
4
|
<label>完成率:</label>
|
5
|
-
<span><%= @sale_report.finish_rate
|
5
|
+
<span><%= @sale_report.finish_rate %>%</span>
|
6
6
|
<%= hidden_field_tag :id, @sale_report.id, {id: 'sale_report_audito'} %>
|
7
7
|
</div>
|
8
8
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
@@ -152,7 +152,7 @@
|
|
152
152
|
[{
|
153
153
|
field: 'id',
|
154
154
|
width: 60,
|
155
|
-
title:
|
155
|
+
title:'序号',type: 'numbers',
|
156
156
|
},
|
157
157
|
{
|
158
158
|
field: 'staff',
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<div class="layui-form-item">
|
9
9
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
10
10
|
<label>完成率:</label>
|
11
|
-
<span><%= @sale_report.finish_rate
|
11
|
+
<span><%= @sale_report.finish_rate %>%</span>
|
12
12
|
</div>
|
13
13
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
14
14
|
<label style="margin-left: 100px">覆盖客户:</label>
|
@@ -78,14 +78,14 @@
|
|
78
78
|
|
79
79
|
table.render({
|
80
80
|
elem: '#newWeeklyTable',
|
81
|
-
|
82
|
-
|
81
|
+
url: '/educode_sales/sale_reports/' + "<%= @sale_report.id%>" + '/plans',
|
82
|
+
toolbar: '#newWeeklyToolbar',
|
83
83
|
defaultToolbar: [],
|
84
84
|
cols: [
|
85
85
|
[{
|
86
86
|
field: 'id',
|
87
87
|
width: 60,
|
88
|
-
title:
|
88
|
+
title:'序号',type: 'numbers',
|
89
89
|
},
|
90
90
|
{
|
91
91
|
field: 'staff',
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="layui-form-item">
|
3
3
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
4
4
|
<label>完成率:</label>
|
5
|
-
<span><%= @sale_report.finish_rate
|
5
|
+
<span><%= @sale_report.finish_rate %>%</span>
|
6
6
|
</div>
|
7
7
|
<div class="layui-inline" style="margin:18px; font-weight: bold">
|
8
8
|
<label style="margin-left: 100px">覆盖客户:</label>
|
@@ -113,7 +113,7 @@
|
|
113
113
|
{
|
114
114
|
field: 'id',
|
115
115
|
width: 60,
|
116
|
-
title:
|
116
|
+
title:'序号',type: 'numbers',
|
117
117
|
},
|
118
118
|
{
|
119
119
|
field: 'staff',
|