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.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/educode_sales/indexlogo.png +0 -0
  3. data/app/assets/stylesheets/educode_sales/app.css +24 -0
  4. data/app/assets/stylesheets/educode_sales/public.css +4 -0
  5. data/app/controllers/educode_sales/businesses_controller.rb +12 -1
  6. data/app/controllers/educode_sales/follow_ups_controller.rb +14 -1
  7. data/app/controllers/educode_sales/home_controller.rb +7 -7
  8. data/app/controllers/educode_sales/operation_plans_controller.rb +2 -2
  9. data/app/controllers/educode_sales/operation_reports_controller.rb +3 -3
  10. data/app/controllers/educode_sales/plans_controller.rb +2 -2
  11. data/app/controllers/educode_sales/staffs_controller.rb +3 -2
  12. data/app/controllers/educode_sales/teacher_follows_controller.rb +1 -0
  13. data/app/controllers/educode_sales/teachers_controller.rb +1 -0
  14. data/app/models/educode_sales/activity.rb +1 -1
  15. data/app/models/educode_sales/common.rb +4 -0
  16. data/app/models/educode_sales/follow_up.rb +1 -1
  17. data/app/models/educode_sales/staff.rb +3 -3
  18. data/app/models/educode_sales/teacher.rb +14 -4
  19. data/app/views/educode_sales/activities/index.html.erb +32 -18
  20. data/app/views/educode_sales/activities/show_teachers.html.erb +14 -12
  21. data/app/views/educode_sales/businesses/edit_follow_record.html.erb +1 -0
  22. data/app/views/educode_sales/businesses/edit_plan.html.erb +7 -2
  23. data/app/views/educode_sales/businesses/index.html.erb +18 -10
  24. data/app/views/educode_sales/businesses/index.json.jbuilder +3 -1
  25. data/app/views/educode_sales/businesses/new.html.erb +1 -1
  26. data/app/views/educode_sales/businesses/new_follow_record.html.erb +12 -2
  27. data/app/views/educode_sales/businesses/show_follow.html.erb +24 -19
  28. data/app/views/educode_sales/businesses/show_follow.json.jbuilder +1 -0
  29. data/app/views/educode_sales/businesses/show_keys.html.erb +1 -1
  30. data/app/views/educode_sales/commons/edit.html.erb +1 -1
  31. data/app/views/educode_sales/commons/index.html.erb +2 -3
  32. data/app/views/educode_sales/home/index.html.erb +1 -1
  33. data/app/views/educode_sales/home/search_teacher.json.jbuilder +2 -2
  34. data/app/views/educode_sales/home/statistics.html.erb +1 -0
  35. data/app/views/educode_sales/operation_plans/_monthPlan.html.erb +2 -3
  36. data/app/views/educode_sales/operation_plans/_monthly.html.erb +2 -2
  37. data/app/views/educode_sales/operation_plans/_weekPlan.html.erb +2 -3
  38. data/app/views/educode_sales/operation_plans/_weekly.html.erb +2 -1
  39. data/app/views/educode_sales/operation_plans/edit_month.html.erb +4 -3
  40. data/app/views/educode_sales/operation_plans/edit_monthly.html.erb +3 -3
  41. data/app/views/educode_sales/operation_plans/edit_week.html.erb +4 -3
  42. data/app/views/educode_sales/operation_plans/edit_weekly.html.erb +3 -3
  43. data/app/views/educode_sales/operation_plans/new_month.html.erb +5 -4
  44. data/app/views/educode_sales/operation_plans/new_monthly.html.erb +3 -3
  45. data/app/views/educode_sales/operation_plans/new_week.html.erb +5 -4
  46. data/app/views/educode_sales/operation_plans/new_weekly.html.erb +3 -3
  47. data/app/views/educode_sales/operation_plans/show_monthly.html.erb +3 -3
  48. data/app/views/educode_sales/operation_plans/show_weekly.html.erb +3 -3
  49. data/app/views/educode_sales/operation_reports/audit.html.erb +3 -3
  50. data/app/views/educode_sales/operation_reports/edit.html.erb +4 -4
  51. data/app/views/educode_sales/operation_reports/show.html.erb +140 -28
  52. data/app/views/educode_sales/places/index.html.erb +6 -6
  53. data/app/views/educode_sales/plans/_monthPlan.html.erb +11 -7
  54. data/app/views/educode_sales/plans/_monthly.html.erb +2 -1
  55. data/app/views/educode_sales/plans/_weekPlan.html.erb +2 -1
  56. data/app/views/educode_sales/plans/_weekly.html.erb +2 -1
  57. data/app/views/educode_sales/plans/audit_weekly.html.erb +3 -3
  58. data/app/views/educode_sales/plans/edit_monthly.html.erb +3 -3
  59. data/app/views/educode_sales/plans/edit_week.html.erb +1 -1
  60. data/app/views/educode_sales/plans/edit_weekly.html.erb +1 -1
  61. data/app/views/educode_sales/plans/new_monthly.html.erb +1 -1
  62. data/app/views/educode_sales/plans/new_week.html.erb +3 -1
  63. data/app/views/educode_sales/plans/new_weekly.html.erb +2 -1
  64. data/app/views/educode_sales/plans/show_monthly.html.erb +3 -3
  65. data/app/views/educode_sales/plans/show_weekly.html.erb +1 -1
  66. data/app/views/educode_sales/roles/index.html.erb +2 -1
  67. data/app/views/educode_sales/sale_reports/audit.html.erb +2 -2
  68. data/app/views/educode_sales/sale_reports/edit.html.erb +4 -4
  69. data/app/views/educode_sales/sale_reports/show.html.erb +2 -2
  70. data/app/views/educode_sales/sale_trends/operations.html.erb +1 -1
  71. data/app/views/educode_sales/sale_trends/trends.html.erb +1 -1
  72. data/app/views/educode_sales/sales/index.html.erb +12 -7
  73. data/app/views/educode_sales/sales/index.json.jbuilder +1 -1
  74. data/app/views/educode_sales/sales/operations.html.erb +7 -5
  75. data/app/views/educode_sales/sales/operations.json.jbuilder +3 -2
  76. data/app/views/educode_sales/sales/school.html.erb +1 -2
  77. data/app/views/educode_sales/sales/xschool.html.erb +1 -2
  78. data/app/views/educode_sales/staffs/follow_up_departments.json.jbuilder +1 -2
  79. data/app/views/educode_sales/staffs/follow_up_schools.json.jbuilder +1 -2
  80. data/app/views/educode_sales/staffs/index.html.erb +6 -8
  81. data/app/views/educode_sales/staffs/new.html.erb +1 -1
  82. data/app/views/educode_sales/teachers/add_courses.html.erb +3 -3
  83. data/app/views/educode_sales/teachers/add_event.html.erb +1 -1
  84. data/app/views/educode_sales/teachers/add_keys.html.erb +11 -5
  85. data/app/views/educode_sales/teachers/course_list.json.jbuilder +1 -0
  86. data/app/views/educode_sales/teachers/course_subject.json.jbuilder +1 -1
  87. data/app/views/educode_sales/teachers/index.html.erb +11 -9
  88. data/app/views/educode_sales/teachers/index.json.jbuilder +3 -2
  89. data/app/views/educode_sales/teachers/new.html.erb +3 -5
  90. data/app/views/educode_sales/teachers/new_follow_record.html.erb +1 -0
  91. data/app/views/educode_sales/teachers/search_new.html.erb +2 -2
  92. data/app/views/educode_sales/teachers/show_class.html.erb +7 -1
  93. data/app/views/educode_sales/teachers/show_follow.html.erb +11 -9
  94. data/app/views/educode_sales/teachers/show_follow.json.jbuilder +1 -0
  95. data/app/views/layouts/educode_sales/application.html.erb +6 -9
  96. data/config/routes.rb +1 -0
  97. data/lib/educode_sales/version.rb +1 -1
  98. 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 %></span>
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.business_name + '的跟进记录',
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 %></span>
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
- url: '/educode_sales/operation_plans/my_week',
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.business_name + '的跟进记录',
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 %></span>
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
- <table class="layui-hide" id="showWeeklyTable" lay-filter="currentShowWeekly"></table>
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
- table = layui.table
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
- // url: 'api/table.json',
88
+ url: '/educode_sales/operation_reports/' + "<%= @sale_report.id%>" + '/plans',
89
+
81
90
  defaultToolbar: [],
82
91
  cols: [
83
- [
84
- {
85
- field: 'id',
86
- width: 80,
87
- title: '序号'
88
- },
92
+ [{
93
+ field: 'id',
94
+ width: 80,
95
+ title:'序号',type: 'numbers',
96
+ },
89
97
  {
90
- field: 'username',
98
+ field: 'staff',
91
99
  width: 100,
92
100
  title: '姓名'
93
101
  },
94
102
  {
95
- field: 'chance',
96
- width: 300,
97
- title: '商机名称',
103
+ field: 'teacher_name',
104
+ width: 100,
105
+ title: '教师姓名',
98
106
  },
99
107
  {
100
- field: 'company',
108
+ field: 'school',
101
109
  width: 100,
102
110
  title: '单位'
103
111
  },
104
112
  {
105
- field: 'dep',
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: 'plan',
123
+ field: 'content',
116
124
  width: 300,
117
125
  title: '计划内容',
118
126
  },
119
127
  {
120
- field: 'follow',
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: 'updateTime',
131
- width: 150,
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: 80,
56
+ width: 120,
58
57
  title: '商机'
59
58
  },
60
59
  {
61
60
  field: 'amount',
62
- width: 100,
61
+ width: 120,
63
62
  title: '中标(万)'
64
63
  },
65
64
  {
66
65
  field: 'return_mount',
67
- width: 100,
66
+ width: 120,
68
67
  title: '回款(万)',
69
68
  },
70
69
  {
71
70
  title: '操作',
72
- minWidth: 150,
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 === 'delete') {
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
 
@@ -83,7 +83,7 @@
83
83
  [{
84
84
  field: 'id',
85
85
  width: 60,
86
- title: '序号'
86
+ title:'序号',type: 'numbers',
87
87
  },
88
88
  {
89
89
  field: 'staff',
@@ -169,6 +169,7 @@
169
169
  });
170
170
  })
171
171
  },
172
+ limit: 20,
172
173
  page: true
173
174
  });
174
175
 
@@ -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',
@@ -145,6 +145,7 @@
145
145
  }
146
146
  ]
147
147
  ],
148
+ limit: 20,
148
149
  page: true,
149
150
  skin: 'line'
150
151
  });
@@ -85,7 +85,7 @@
85
85
  {
86
86
  field: 'id',
87
87
  width: 60,
88
- title: '序号'
88
+ title:'序号',type: 'numbers',
89
89
  },
90
90
  {
91
91
  field: 'staff',
@@ -170,6 +170,7 @@
170
170
  });
171
171
  })
172
172
  },
173
+ limit: 20,
173
174
  page: true
174
175
  });
175
176
 
@@ -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
- limits: [10, 15, 20, 25, 50, 100],
173
- limit: 15,
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
- limits: [10, 15, 20, 25, 50, 100],
177
- limit: 15,
176
+
177
+
178
178
  page: true,
179
179
  skin: 'line'
180
180
  });
@@ -73,7 +73,7 @@
73
73
  } else {
74
74
  parent.table.reload('unfinish_table')
75
75
  }
76
-
76
+ parent.table.reload('newWeeklyTable')
77
77
  }
78
78
  })
79
79
  return false;
@@ -91,7 +91,7 @@
91
91
  [{
92
92
  field: 'id',
93
93
  width: 60,
94
- title: '序号'
94
+ title:'序号',type: 'numbers',
95
95
  },
96
96
  {
97
97
  field: 'staff',
@@ -92,7 +92,7 @@
92
92
  {
93
93
  field: 'id',
94
94
  width: 60,
95
- title: '序号'
95
+ title:'序号',type: 'numbers',
96
96
  },
97
97
  {
98
98
  field: 'staff',
@@ -87,7 +87,9 @@
87
87
  else {
88
88
  parent.table.reload('businesses_table')
89
89
  }
90
-
90
+ parent.table.reload('newWeeklyTable')
91
+
92
+
91
93
  }
92
94
  })
93
95
  return false;
@@ -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
- limits: [10, 15, 20, 25, 50, 100],
165
- limit: 15,
164
+
165
+
166
166
  page: true,
167
167
  skin: 'line'
168
168
  });
@@ -88,7 +88,7 @@
88
88
  {
89
89
  field: 'id',
90
90
  width: 80,
91
- title: '序号'
91
+ title:'序号',type: 'numbers',
92
92
  },
93
93
  {
94
94
  field: 'username',
@@ -29,7 +29,7 @@
29
29
  cols: [
30
30
  [{
31
31
  field: 'id',
32
- title: 'ID',
32
+ title:'序号',type: 'numbers',
33
33
  width: 80
34
34
  }, {
35
35
  field: 'name',
@@ -47,6 +47,7 @@
47
47
  align: "center"
48
48
  }]
49
49
  ],
50
+ limit: 20,
50
51
  page: true
51
52
  })
52
53
 
@@ -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 %></span>
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 %></span>
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
- url: '/educode_sales/plans/my_week',
82
- toolbar: '#newWeeklyToolbar',
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 %></span>
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',
@@ -19,7 +19,7 @@
19
19
  cols: [
20
20
  [{
21
21
  field: 'id',
22
- title: 'ID'
22
+ title:'序号',type: 'numbers',
23
23
  }, {
24
24
  field: 'name',
25
25
  title: '姓名'