educode_sales 0.4.8 → 0.5.2

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 (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/educode_sales//345/233/236/346/224/266/347/253/231.png +0 -0
  3. data/app/controllers/educode_sales/businesses_controller.rb +84 -5
  4. data/app/controllers/educode_sales/follow_ups_controller.rb +4 -3
  5. data/app/controllers/educode_sales/home_controller.rb +1 -1
  6. data/app/controllers/educode_sales/operation_plans_controller.rb +34 -6
  7. data/app/controllers/educode_sales/operation_reports_controller.rb +33 -3
  8. data/app/controllers/educode_sales/operations_controller.rb +1 -1
  9. data/app/controllers/educode_sales/plans_controller.rb +43 -15
  10. data/app/controllers/educode_sales/recycles_controller.rb +95 -0
  11. data/app/controllers/educode_sales/roles_controller.rb +5 -0
  12. data/app/controllers/educode_sales/sale_reports_controller.rb +34 -4
  13. data/app/controllers/educode_sales/sale_trends_controller.rb +176 -5
  14. data/app/controllers/educode_sales/sales_controller.rb +6 -2
  15. data/app/controllers/educode_sales/staffs_controller.rb +4 -4
  16. data/app/controllers/educode_sales/upload_files_controller.rb +112 -0
  17. data/app/models/concerns/deletable.rb +8 -0
  18. data/app/models/educode_sales/application_record.rb +2 -0
  19. data/app/models/educode_sales/business.rb +15 -2
  20. data/app/models/educode_sales/common.rb +6 -1
  21. data/app/models/educode_sales/follow_up.rb +4 -2
  22. data/app/models/educode_sales/recycle.rb +5 -0
  23. data/app/models/educode_sales/sale_plan.rb +3 -0
  24. data/app/models/educode_sales/sale_report.rb +2 -0
  25. data/app/views/educode_sales/businesses/edit_follow_record.html.erb +15 -0
  26. data/app/views/educode_sales/businesses/edit_plan.html.erb +2 -2
  27. data/app/views/educode_sales/businesses/file.html.erb +155 -0
  28. data/app/views/educode_sales/businesses/index.html.erb +71 -4
  29. data/app/views/educode_sales/businesses/index.json.jbuilder +3 -1
  30. data/app/views/educode_sales/businesses/new_follow_record.html.erb +22 -1
  31. data/app/views/educode_sales/businesses/show_follow.html.erb +46 -9
  32. data/app/views/educode_sales/businesses/show_follow.json.jbuilder +3 -0
  33. data/app/views/educode_sales/businesses/show_follow_record.html.erb +80 -2
  34. data/app/views/educode_sales/businesses/time_line.html.erb +62 -0
  35. data/app/views/educode_sales/businesses/upload_file.html.erb +43 -0
  36. data/app/views/educode_sales/operation_plans/_monthly.html.erb +4 -4
  37. data/app/views/educode_sales/operation_plans/_weekly.html.erb +4 -4
  38. data/app/views/educode_sales/operation_plans/index.html.erb +6 -1
  39. data/app/views/educode_sales/operation_plans/new_month.html.erb +15 -1
  40. data/app/views/educode_sales/operation_plans/new_week.html.erb +20 -5
  41. data/app/views/educode_sales/operation_reports/audit.html.erb +23 -15
  42. data/app/views/educode_sales/operation_reports/edit.html.erb +9 -9
  43. data/app/views/educode_sales/operation_reports/show.html.erb +22 -19
  44. data/app/views/educode_sales/places/index.html.erb +6 -1
  45. data/app/views/educode_sales/places/index.json.jbuilder +11 -1
  46. data/app/views/educode_sales/plans/_monthly.html.erb +4 -4
  47. data/app/views/educode_sales/plans/_weekly.html.erb +4 -4
  48. data/app/views/educode_sales/plans/index.html.erb +6 -1
  49. data/app/views/educode_sales/plans/new_monthly.html.erb +6 -6
  50. data/app/views/educode_sales/plans/new_week.html.erb +1 -1
  51. data/app/views/educode_sales/plans/new_weekly.html.erb +7 -7
  52. data/app/views/educode_sales/recycles/_business.html.erb +122 -0
  53. data/app/views/educode_sales/recycles/_monthPlan.html.erb +123 -0
  54. data/app/views/educode_sales/recycles/_monthly.html.erb +121 -0
  55. data/app/views/educode_sales/recycles/_weekPlan.html.erb +128 -0
  56. data/app/views/educode_sales/recycles/_weekly.html.erb +122 -0
  57. data/app/views/educode_sales/recycles/business.json.jbuilder +16 -0
  58. data/app/views/educode_sales/recycles/index.html.erb +58 -0
  59. data/app/views/educode_sales/recycles/monthPlan.json.jbuilder +16 -0
  60. data/app/views/educode_sales/recycles/monthly.json.jbuilder +15 -0
  61. data/app/views/educode_sales/recycles/weekPlan.json.jbuilder +16 -0
  62. data/app/views/educode_sales/recycles/weekly.json.jbuilder +15 -0
  63. data/app/views/educode_sales/roles/index.html.erb +19 -1
  64. data/app/views/educode_sales/roles/rename.html.erb +50 -0
  65. data/app/views/educode_sales/sale_reports/audit.html.erb +24 -13
  66. data/app/views/educode_sales/sale_reports/edit.html.erb +7 -7
  67. data/app/views/educode_sales/sale_reports/show.html.erb +13 -10
  68. data/app/views/educode_sales/sale_trends/trends.html.erb +228 -8
  69. data/app/views/educode_sales/sale_trends/trends.json.jbuilder +14 -0
  70. data/app/views/educode_sales/sales/index.html.erb +72 -6
  71. data/app/views/educode_sales/sales/index.json.jbuilder +35 -1
  72. data/app/views/educode_sales/sales/operations.json.jbuilder +11 -1
  73. data/app/views/educode_sales/staffs/index.html.erb +6 -1
  74. data/app/views/educode_sales/staffs/index.json.jbuilder +11 -1
  75. data/app/views/educode_sales/teachers/add_keys.html.erb +3 -3
  76. data/app/views/educode_sales/teachers/index.html.erb +7 -2
  77. data/app/views/educode_sales/teachers/new.html.erb +1 -0
  78. data/app/views/educode_sales/upload_files/index.json.jbuilder +13 -0
  79. data/app/views/layouts/educode_sales/application.html.erb +3 -0
  80. data/config/routes.rb +30 -0
  81. data/db/migrate/20210902064109_create_educode_sales_role_permissions.rb +6 -0
  82. data/db/migrate/20211102085743_add_bidded_date_educode_sales_follow_ups.rb +6 -0
  83. data/db/migrate/20211109015617_create_educode_sales_recycles.rb +25 -0
  84. data/lib/educode_sales/version.rb +1 -1
  85. metadata +26 -2
@@ -9,13 +9,22 @@
9
9
  <div class="layui-inline">
10
10
  <label class="layui-form-label required">周次</label>
11
11
  <div class="layui-input-inline">
12
- <%= select_tag "weekly", options_for_select(@weeks), class: 'required' %>
12
+ <%= select_tag "weekly", options_for_select(@weeks,@week), class: 'required' %>
13
13
  </div>
14
14
  </div>
15
- <div class="layui-inline">
15
+ <%if @teacher.present? %>
16
+ <div class="layui-inline">
16
17
  <label class="layui-form-label required">教师</label>
17
- <div class="layui-input-block" id="add_teacher" style="width: 400px"></div>
18
- </div>
18
+ <div class="layui-input-inline">
19
+ <%= select_tag "teacher_id", options_for_select(@teachers, @teacher&.id), {"lay-verify": "required", include_blank: true} %>
20
+ </div>
21
+ </div>
22
+ <%else %>
23
+ <div class="layui-inline">
24
+ <label class="layui-form-label required">教师</label>
25
+ <div class="layui-input-block" id="add_teacher" style="width: 400px"></div>
26
+ </div>
27
+ <%end %>
19
28
  <div class="layui-form-item layui-form-text">
20
29
  <label class="layui-form-label required">计划内容</label>
21
30
  <div class="layui-input-block">
@@ -52,6 +61,7 @@
52
61
  </div>
53
62
 
54
63
  <script>
64
+ flag = false
55
65
  layui.use(['form', 'table', 'laytpl', 'request'], function () {
56
66
  var form = layui.form,
57
67
  layer = layui.layer,
@@ -86,6 +96,7 @@
86
96
  });
87
97
 
88
98
  add_teacher.on('itemSelect(add_teacher)', function (obj) {
99
+ flag = true
89
100
  teacher_id = obj.data;
90
101
  var name = obj.textContent
91
102
  add_teacher.setValue(name)
@@ -99,7 +110,11 @@
99
110
 
100
111
 
101
112
  form.on('submit(add_week_plan)', function (data) {
102
- data.field.teacher_id = teacher_id
113
+ console.log(flag);
114
+ if (flag){
115
+ data.field.teacher_id = teacher_id
116
+ }
117
+ console.log(data.field.teacher_id);
103
118
  request.authPost("missions/operation_plans", data.field, function (res) {
104
119
  if (res.success == false) {
105
120
  layer.alert(res.msg)
@@ -32,7 +32,8 @@
32
32
  3、补充说明需要上级解决的问题和挑战。" disabled class="layui-textarea autosize"><%= @sale_report.content %></textarea>
33
33
  </div>
34
34
  </div>
35
- <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
35
+ <% if can? :level1_audit, EducodeSales::OperationReport %>
36
+ <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
36
37
  <label class="layui-form-label">大区意见</label>
37
38
  <div class="layui-input-block">
38
39
  <textarea name="level1_opinion" placeholder="给出评价、提醒、建议、办法等。"
@@ -40,7 +41,9 @@
40
41
  </div>
41
42
  </div>
42
43
  <div id="weekStar4" style="margin-bottom: 40px"></div>
43
- <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
44
+ <%end %>
45
+ <% if can? :level2_audit, EducodeSales::OperationReport %>
46
+ <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
44
47
  <label class="layui-form-label">总监意见</label>
45
48
  <div class="layui-input-block">
46
49
  <textarea name="level2_opinion" placeholder="给出评价、提醒、建议、办法等。"
@@ -48,7 +51,9 @@
48
51
  </div>
49
52
  </div>
50
53
  <div id="weekStar5" style="margin-bottom: 40px"></div>
51
- <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
54
+ <%end %>
55
+ <% if can? :level3_audit, EducodeSales::OperationReport %>
56
+ <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
52
57
  <label class="layui-form-label">副总意见</label>
53
58
  <div class="layui-input-block">
54
59
  <textarea name="level3_opinion" placeholder="给出评价、提醒、建议、办法等。"
@@ -56,11 +61,14 @@
56
61
  </div>
57
62
  </div>
58
63
  <div id="weekStar6" style="margin-bottom: 40px"></div>
64
+ <%end %>
59
65
  <br>
60
66
  <div class="layui-inline m-t-10">
67
+ <% if (can? :level1_audit, EducodeSales::OperationReport) || (can? :level2_audit, EducodeSales::OperationReport) || (can? :level3_audit, EducodeSales::OperationReport) %>
61
68
  <button type="submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="audit_weekly_report"
62
69
  style="margin-left: 18px">提交
63
70
  </button>
71
+ <%end %>
64
72
  </div>
65
73
  </div>
66
74
  </form>
@@ -85,7 +93,7 @@
85
93
  rate.render({
86
94
  elem: '#weekStar4',
87
95
  half: true,
88
- value: "<%= @sale_report.level1_score %>",
96
+ value: parseFloat("<%= @sale_report.level1_score || 0%>"),
89
97
  length: 5,
90
98
  choose: function(value){
91
99
  level1_score = value
@@ -94,7 +102,7 @@
94
102
  rate.render({
95
103
  elem: '#weekStar5',
96
104
  half: true,
97
- value: "<%= @sale_report.level2_score %>",
105
+ value: parseFloat("<%= @sale_report.level2_score || 0%>"),
98
106
  length: 5,
99
107
  choose: function(value){
100
108
  level2_score = value
@@ -103,7 +111,7 @@
103
111
  rate.render({
104
112
  elem: '#weekStar6',
105
113
  half: true,
106
- value: "<%= @sale_report.level3_score %>",
114
+ value: parseFloat("<%= @sale_report.level3_score || 0%>"),
107
115
  length: 5,
108
116
  choose: function(value){
109
117
  level3_score = value
@@ -165,32 +173,32 @@
165
173
  cols: [
166
174
  [{
167
175
  field: 'id',
168
- width: 80,
176
+ width: 60,
169
177
  title:'序号',type: 'numbers',
170
178
  },
171
179
  {
172
180
  field: 'staff',
173
- width: 100,
181
+ width: 80,
174
182
  title: '姓名'
175
183
  },
176
184
  {
177
185
  field: 'teacher_name',
178
- width: 100,
186
+ width: 120,
179
187
  title: '教师姓名',
180
188
  },
181
189
  {
182
190
  field: 'school',
183
- width: 100,
191
+ width: 170,
184
192
  title: '单位'
185
193
  },
186
194
  {
187
195
  field: 'department',
188
- width: 100,
196
+ width: 170,
189
197
  title: '部门'
190
198
  },
191
199
  {
192
200
  field: 'week',
193
- width: 100,
201
+ width: 80,
194
202
  title: '周次',
195
203
  },
196
204
  {
@@ -200,18 +208,18 @@
200
208
  },
201
209
  {
202
210
  field: 'count',
203
- width: 100,
211
+ width: 80,
204
212
  title: '跟进',
205
213
  templet: '#show_follow_audit'
206
214
  },
207
215
  {
208
216
  field: 'rate',
209
- width: 100,
217
+ width: 80,
210
218
  title: '完成率',
211
219
  },
212
220
  {
213
221
  field: 'updated_at',
214
- width: 190,
222
+ width: 170,
215
223
  title: '更新时间',
216
224
  sort: true,
217
225
  },
@@ -97,32 +97,32 @@
97
97
  cols: [
98
98
  [{
99
99
  field: 'id',
100
- width: 80,
100
+ width: 60,
101
101
  title:'序号',type: 'numbers',
102
102
  },
103
103
  {
104
104
  field: 'staff',
105
- width: 100,
105
+ width: 80,
106
106
  title: '姓名'
107
107
  },
108
108
  {
109
109
  field: 'teacher_name',
110
- width: 100,
110
+ width: 120,
111
111
  title: '教师姓名',
112
112
  },
113
113
  {
114
114
  field: 'school',
115
- width: 100,
115
+ width: 170,
116
116
  title: '单位'
117
117
  },
118
118
  {
119
119
  field: 'department',
120
- width: 100,
120
+ width: 170,
121
121
  title: '部门'
122
122
  },
123
123
  {
124
124
  field: 'week',
125
- width: 100,
125
+ width: 80,
126
126
  title: '周次',
127
127
  },
128
128
  {
@@ -132,18 +132,18 @@
132
132
  },
133
133
  {
134
134
  field: 'count',
135
- width: 100,
135
+ width: 80,
136
136
  title: '跟进',
137
137
  templet: '#show_follow_edit'
138
138
  },
139
139
  {
140
140
  field: 'rate',
141
- width: 100,
141
+ width: 80,
142
142
  title: '完成率',
143
143
  },
144
144
  {
145
145
  field: 'updated_at',
146
- width: 190,
146
+ width: 170,
147
147
  title: '更新时间',
148
148
  sort: true,
149
149
  },
@@ -31,7 +31,8 @@
31
31
  3、补充说明需要上级解决的问题和挑战。" disabled class="layui-textarea autosize"><%= @sale_report.content %></textarea>
32
32
  </div>
33
33
  </div>
34
- <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
34
+ <% if @sale_report.level1_opinion.present? || @sale_report.level1_score %>
35
+ <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
35
36
  <label class="layui-form-label">大区意见</label>
36
37
  <div class="layui-input-block">
37
38
  <textarea name="desc" placeholder="给出评价、提醒、建议、办法等。" disabled
@@ -39,7 +40,9 @@
39
40
  </div>
40
41
  </div>
41
42
  <div id="weekStar4" style="margin-bottom: 40px"></div>
42
- <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
43
+ <%end %>
44
+ <% if @sale_report.level2_opinion.present? || @sale_report.level2_score %>
45
+ <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
43
46
  <label class="layui-form-label">总监意见</label>
44
47
  <div class="layui-input-block">
45
48
  <textarea name="desc" placeholder="给出评价、提醒、建议、办法等。" disabled
@@ -47,7 +50,9 @@
47
50
  </div>
48
51
  </div>
49
52
  <div id="weekStar5" style="margin-bottom: 40px"></div>
50
- <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
53
+ <%end %>
54
+ <% if @sale_report.level3_opinion.present? || @sale_report.level3_score %>
55
+ <div class="layui-form-item layui-form-text" style="margin-bottom: 0px">
51
56
  <label class="layui-form-label">副总意见</label>
52
57
  <div class="layui-input-block">
53
58
  <textarea name="desc" placeholder="给出评价、提醒、建议、办法等。" disabled
@@ -55,6 +60,7 @@
55
60
  </div>
56
61
  </div>
57
62
  <div id="weekStar6" style="margin-bottom: 40px"></div>
63
+ <%end %>
58
64
  <br>
59
65
  </div>
60
66
  </form>
@@ -78,28 +84,25 @@
78
84
  $ = layui.jquery,
79
85
  miniPage = layui.miniPage,
80
86
  request = layui.request;
81
- table = layui.table;
87
+ table = layui.table
82
88
 
83
89
  rate.render({
84
90
  elem: '#weekStar4',
85
91
  half: true,
86
92
  readonly: true,
87
- value: "<%= @sale_report.level1_score %>",
88
- length: "<%= @sale_report.level1_score %>"
93
+ value: parseFloat("<%= @sale_report.level1_score || 0%>"),
89
94
  })
90
95
  rate.render({
91
96
  elem: '#weekStar5',
92
97
  half: true,
93
98
  readonly: true,
94
- value: "<%= @sale_report.level2_score %>",
95
- length: "<%= @sale_report.level2_score %>"
99
+ value: parseFloat("<%= @sale_report.level2_score || 0%>"),
96
100
  })
97
101
  rate.render({
98
102
  elem: '#weekStar6',
99
103
  half: true,
100
104
  readonly: true,
101
- value: "<%= @sale_report.level3_score %>",
102
- length: "<%= @sale_report.level3_score %>"
105
+ value: parseFloat("<%= @sale_report.level3_score || 0%>"),
103
106
  })
104
107
 
105
108
 
@@ -111,32 +114,32 @@
111
114
  cols: [
112
115
  [{
113
116
  field: 'id',
114
- width: 80,
117
+ width: 60,
115
118
  title:'序号',type: 'numbers',
116
119
  },
117
120
  {
118
121
  field: 'staff',
119
- width: 100,
122
+ width: 80,
120
123
  title: '姓名'
121
124
  },
122
125
  {
123
126
  field: 'teacher_name',
124
- width: 100,
127
+ width: 120,
125
128
  title: '教师姓名',
126
129
  },
127
130
  {
128
131
  field: 'school',
129
- width: 100,
132
+ width: 170,
130
133
  title: '单位'
131
134
  },
132
135
  {
133
136
  field: 'department',
134
- width: 100,
137
+ width: 170,
135
138
  title: '部门'
136
139
  },
137
140
  {
138
141
  field: 'week',
139
- width: 100,
142
+ width: 80,
140
143
  title: '周次',
141
144
  },
142
145
  {
@@ -146,18 +149,18 @@
146
149
  },
147
150
  {
148
151
  field: 'count',
149
- width: 100,
152
+ width: 80,
150
153
  title: '跟进',
151
154
  templet: '#show_follow_show'
152
155
  },
153
156
  {
154
157
  field: 'rate',
155
- width: 100,
158
+ width: 80,
156
159
  title: '完成率',
157
160
  },
158
161
  {
159
162
  field: 'updated_at',
160
- width: 190,
163
+ width: 170,
161
164
  title: '更新时间',
162
165
  sort: true,
163
166
  },
@@ -146,4 +146,9 @@
146
146
  });
147
147
 
148
148
  });
149
- </script>
149
+ </script>
150
+ <style>
151
+ .layui-table-tool-temp{
152
+ padding-right: 0px; !important;
153
+ }
154
+ </style>
@@ -1,8 +1,18 @@
1
+ area_ids = EducodeSales::Common.where(clazz: 'area').ids.sort.to_s
1
2
  json.data do
2
3
  json.array! @places do |d|
3
4
  json.id d.id
4
5
  json.name d.name
5
- json.area_id d.areas.present? ? d.areas.pluck(:name).join("、") : ''
6
+ # json.area_id d.areas.present? ? d.areas.pluck(:name).join("、") : ''
7
+ if d.areas.present?
8
+ if d.areas.ids.sort.to_s == area_ids
9
+ json.area_id '全国'
10
+ else
11
+ json.area_id d.areas.pluck(:name).join("、")
12
+ end
13
+ else
14
+ json.area_id ''
15
+ end
6
16
  json.businesses_count EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", @x).where("educode_sales_follow_ups.place_id = #{d.id}").count
7
17
  json.amount EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", @x).where("educode_sales_follow_ups.place_id = #{d.id} AND educode_sales_follow_ups.stage_id IN (?)", @stage_ids).sum(:profit_amount).round(2)
8
18
  json.return_mount EducodeSales::Business.joins(:last_follow_up).where("educode_sales_follow_ups.clazz_id != ?", @x).where("educode_sales_follow_ups.place_id = #{d.id}").sum(:return_money).round(2)
@@ -122,7 +122,7 @@
122
122
  },
123
123
  {
124
124
  field: 'level1_score',
125
- width: 180,
125
+ width: 120,
126
126
  title: '大区',
127
127
  templet: function (d) {
128
128
  return '<div class="star1"></div>'
@@ -130,7 +130,7 @@
130
130
  },
131
131
  {
132
132
  field: 'level2_score',
133
- width: 180,
133
+ width: 120,
134
134
  title: '总监',
135
135
  templet: function (d) {
136
136
  return '<div class="star2"></div>'
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  field: 'level3_score',
141
- width: 180,
141
+ width: 120,
142
142
  title: '副总',
143
143
  templet: function (d) {
144
144
  return '<div class="star3"></div>'
@@ -146,7 +146,7 @@
146
146
  },
147
147
  {
148
148
  field: 'created_at',
149
- width: 300,
149
+ width: 200,
150
150
  title: '提交时间',
151
151
  },
152
152
  {
@@ -124,7 +124,7 @@
124
124
  },
125
125
  {
126
126
  field: 'level1_score',
127
- width: 180,
127
+ width: 120,
128
128
  title: '大区',
129
129
  templet: function (d) {
130
130
  return '<div class="star1"></div>'
@@ -132,7 +132,7 @@
132
132
  },
133
133
  {
134
134
  field: 'level2_score',
135
- width: 180,
135
+ width: 120,
136
136
  title: '总监',
137
137
  templet: function (d) {
138
138
  return '<div class="star2"></div>'
@@ -140,7 +140,7 @@
140
140
  },
141
141
  {
142
142
  field: 'level3_score',
143
- width: 180,
143
+ width: 120,
144
144
  title: '副总',
145
145
  templet: function (d) {
146
146
  return '<div class="star3"></div>'
@@ -149,7 +149,7 @@
149
149
  },
150
150
  {
151
151
  field: 'created_at',
152
- width: 300,
152
+ width: 200,
153
153
  title: '提交时间',
154
154
  },
155
155
  {
@@ -51,4 +51,9 @@
51
51
 
52
52
  })
53
53
  })
54
- </script>
54
+ </script>
55
+ <style>
56
+ .layui-table-tool-temp{
57
+ padding-right: 30px; !important;
58
+ }
59
+ </style>
@@ -112,33 +112,33 @@
112
112
  },
113
113
  {
114
114
  field: 'staff',
115
- width: 120,
115
+ width: 80,
116
116
  title: '姓名'
117
117
  },
118
118
  {
119
119
  field: 'business_name',
120
- width: 270,
120
+ width: 170,
121
121
  title: '商机名称',
122
122
  },
123
123
  {
124
124
  field: 'school',
125
- width: 200,
125
+ width: 170,
126
126
  title: '单位'
127
127
  },
128
128
  {
129
129
  field: 'department',
130
- width: 190,
130
+ width: 170,
131
131
  title: '部门'
132
132
  },
133
133
  {
134
134
  field: 'follow_ups_count',
135
- width: 100,
135
+ width: 80,
136
136
  title: '跟进',
137
137
  templet: '#show_follow'
138
138
  },
139
139
  {
140
140
  field: 'finish_rate',
141
- width: 100,
141
+ width: 80,
142
142
  title: '完成率',
143
143
  },
144
144
  {
@@ -9,7 +9,7 @@
9
9
  <div class="layui-inline">
10
10
  <label class="layui-form-label required">周次</label>
11
11
  <div class="layui-input-inline">
12
- <%= select_tag "weekly", options_for_select(@weeks), class: 'required' %>
12
+ <%= select_tag "weekly", options_for_select(@weeks,@week), class: 'required' %>
13
13
  </div>
14
14
  </div>
15
15
  <div class="layui-inline">
@@ -134,38 +134,38 @@
134
134
  },
135
135
  {
136
136
  field: 'staff',
137
- width: 120,
137
+ width: 80,
138
138
  title: '姓名'
139
139
  },
140
140
  {
141
141
  field: 'business_name',
142
- width: 270,
142
+ width: 170,
143
143
  title: '商机名称',
144
144
  },
145
145
  {
146
146
  field: 'school',
147
- width: 200,
147
+ width: 170,
148
148
  title: '单位'
149
149
  },
150
150
  {
151
151
  field: 'department',
152
- width: 190,
152
+ width: 170,
153
153
  title: '部门'
154
154
  },
155
155
  {
156
156
  field: 'weekly',
157
- width: 100,
157
+ width: 80,
158
158
  title: '周次',
159
159
  },
160
160
  {
161
161
  field: 'follow_ups_count',
162
- width: 100,
162
+ width: 80,
163
163
  title: '跟进',
164
164
  templet: '#show_follow'
165
165
  },
166
166
  {
167
167
  field: 'finish_rate',
168
- width: 100,
168
+ width: 80,
169
169
  title: '完成率',
170
170
  },
171
171
  {