educode_sales 0.4.5 → 0.4.9

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 +67 -2
  4. data/app/controllers/educode_sales/follow_ups_controller.rb +1 -1
  5. data/app/controllers/educode_sales/home_controller.rb +4 -0
  6. data/app/controllers/educode_sales/operation_plans_controller.rb +17 -6
  7. data/app/controllers/educode_sales/operation_reports_controller.rb +9 -3
  8. data/app/controllers/educode_sales/operations_controller.rb +1 -1
  9. data/app/controllers/educode_sales/plans_controller.rb +30 -15
  10. data/app/controllers/educode_sales/sale_reports_controller.rb +9 -3
  11. data/app/controllers/educode_sales/sale_trends_controller.rb +8 -7
  12. data/app/controllers/educode_sales/sales_controller.rb +2 -2
  13. data/app/controllers/educode_sales/upload_files_controller.rb +99 -0
  14. data/app/models/educode_sales/common.rb +4 -0
  15. data/app/models/educode_sales/sale_plan.rb +1 -0
  16. data/app/views/educode_sales/activities/show_teachers.html.erb +16 -16
  17. data/app/views/educode_sales/businesses/edit_follow_record.html.erb +15 -0
  18. data/app/views/educode_sales/businesses/file.html.erb +140 -0
  19. data/app/views/educode_sales/businesses/index.html.erb +64 -10
  20. data/app/views/educode_sales/businesses/index.json.jbuilder +3 -1
  21. data/app/views/educode_sales/businesses/new_follow_record.html.erb +17 -0
  22. data/app/views/educode_sales/businesses/show_follow.html.erb +47 -11
  23. data/app/views/educode_sales/businesses/show_follow.json.jbuilder +2 -0
  24. data/app/views/educode_sales/businesses/show_follow_record.html.erb +79 -1
  25. data/app/views/educode_sales/businesses/time_line.html.erb +58 -0
  26. data/app/views/educode_sales/businesses/upload_file.html.erb +43 -0
  27. data/app/views/educode_sales/home/index.html.erb +1 -1
  28. data/app/views/educode_sales/home/search_operation_teacher.json.jbuilder +12 -0
  29. data/app/views/educode_sales/operation_plans/_monthPlan.html.erb +7 -7
  30. data/app/views/educode_sales/operation_plans/_monthly.html.erb +8 -8
  31. data/app/views/educode_sales/operation_plans/_weekPlan.html.erb +8 -8
  32. data/app/views/educode_sales/operation_plans/_weekly.html.erb +9 -9
  33. data/app/views/educode_sales/operation_plans/edit_month.html.erb +6 -6
  34. data/app/views/educode_sales/operation_plans/edit_week.html.erb +7 -7
  35. data/app/views/educode_sales/operation_plans/new_month.html.erb +50 -4
  36. data/app/views/educode_sales/operation_plans/new_monthly.html.erb +12 -0
  37. data/app/views/educode_sales/operation_plans/new_week.html.erb +47 -4
  38. data/app/views/educode_sales/operation_plans/new_weekly.html.erb +12 -0
  39. data/app/views/educode_sales/operation_reports/audit.html.erb +22 -10
  40. data/app/views/educode_sales/operation_reports/edit.html.erb +22 -10
  41. data/app/views/educode_sales/operation_reports/show.html.erb +22 -10
  42. data/app/views/educode_sales/plans/_monthPlan.html.erb +8 -8
  43. data/app/views/educode_sales/plans/_monthly.html.erb +7 -7
  44. data/app/views/educode_sales/plans/_weekPlan.html.erb +7 -7
  45. data/app/views/educode_sales/plans/_weekly.html.erb +8 -8
  46. data/app/views/educode_sales/plans/edit_month.html.erb +7 -7
  47. data/app/views/educode_sales/plans/edit_week.html.erb +8 -8
  48. data/app/views/educode_sales/plans/new_month.html.erb +2 -2
  49. data/app/views/educode_sales/plans/new_monthly.html.erb +12 -0
  50. data/app/views/educode_sales/plans/new_week.html.erb +2 -2
  51. data/app/views/educode_sales/plans/new_weekly.html.erb +12 -0
  52. data/app/views/educode_sales/sale_reports/audit.html.erb +20 -8
  53. data/app/views/educode_sales/sale_reports/edit.html.erb +20 -8
  54. data/app/views/educode_sales/sale_reports/show.html.erb +20 -9
  55. data/app/views/educode_sales/sale_trends/trends.html.erb +6 -6
  56. data/app/views/educode_sales/sales/operations.html.erb +0 -4
  57. data/app/views/educode_sales/teachers/index.html.erb +14 -14
  58. data/app/views/educode_sales/teachers/show_follow.html.erb +10 -4
  59. data/app/views/educode_sales/upload_files/index.json.jbuilder +13 -0
  60. data/app/views/layouts/educode_sales/application.html.erb +11 -3
  61. data/config/routes.rb +13 -0
  62. data/db/migrate/20211102085743_add_bidded_date_educode_sales_follow_ups.rb +6 -0
  63. data/lib/educode_sales/version.rb +1 -1
  64. metadata +10 -3
  65. data/app/assets/images/educode_sales/indexlogo.png +0 -0
@@ -3,7 +3,7 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label required">月份</label>
5
5
  <div class="layui-input-inline">
6
- <input type="text" class="layui-input" id="new_week_plan" autocomplete="off" name="month" placeholder="请选择">
6
+ <input type="text" lay-verify="required" class="layui-input" id="new_week_plan" autocomplete="off" name="month" placeholder="请选择">
7
7
  </div>
8
8
  </div>
9
9
  <div class="layui-inline">
@@ -12,13 +12,19 @@
12
12
  <%= select_tag "weekly", options_for_select(@weeks), 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
18
  <div class="layui-input-inline">
18
-
19
19
  <%= select_tag "teacher_id", options_for_select(@teachers, @teacher&.id), {"lay-verify": "required", include_blank: true} %>
20
20
  </div>
21
- </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 %>
22
28
  <div class="layui-form-item layui-form-text">
23
29
  <label class="layui-form-label required">计划内容</label>
24
30
  <div class="layui-input-block">
@@ -55,6 +61,7 @@
55
61
  </div>
56
62
 
57
63
  <script>
64
+ flag = false
58
65
  layui.use(['form', 'table', 'laytpl', 'request'], function () {
59
66
  var form = layui.form,
60
67
  layer = layui.layer,
@@ -62,9 +69,40 @@
62
69
  request = layui.request,
63
70
  laydate = layui.laydate,
64
71
  $ = layui.$;
72
+ selectInput = layui.selectInput;
65
73
 
66
74
  form.render();
67
75
 
76
+ var add_teacher = selectInput.render({
77
+ elem: '#add_teacher',
78
+ name: 'teacher_id', // 渲染的input的name值
79
+ layFilter: 'teacher_id', //同layui form参数lay-filter
80
+ layVerify: 'required', //同layui form参数lay-verify
81
+ layVerType: 'tips', // 同layui form参数lay-verType
82
+ layReqText: '请填写文本', //同layui form参数lay-ReqText
83
+ initValue: '', // 渲染初始化默认值
84
+ hasSelectIcon: false,
85
+ placeholder: '支持姓名搜索', // 渲染的inputplaceholder值
86
+ data: [],
87
+ remoteSearch: true, // 是否启用远程搜索 默认是false,和远程搜索回调保存同步
88
+ remoteMethod: function (value, cb) { // 远程搜索的回调函数
89
+ if (!value) {
90
+ return cb([]);
91
+ }
92
+ request.get('missions/search_operation_teacher?q=' + value, {}, function (res) {
93
+ return cb(res)
94
+ })
95
+ }
96
+ });
97
+
98
+ add_teacher.on('itemSelect(add_teacher)', function (obj) {
99
+ flag = true
100
+ teacher_id = obj.data;
101
+ var name = obj.textContent
102
+ add_teacher.setValue(name)
103
+ });
104
+
105
+
68
106
  laydate.render({
69
107
  elem: '#new_week_plan',
70
108
  type: 'month'
@@ -72,6 +110,11 @@
72
110
 
73
111
 
74
112
  form.on('submit(add_week_plan)', function (data) {
113
+ console.log(flag);
114
+ if (flag){
115
+ data.field.teacher_id = teacher_id
116
+ }
117
+ console.log(data.field.teacher_id);
75
118
  request.authPost("missions/operation_plans", data.field, function (res) {
76
119
  if (res.success == false) {
77
120
  layer.alert(res.msg)
@@ -4,7 +4,14 @@
4
4
  <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn pull-right" lay-event="add"> 添加计划</button>
5
5
  </div>
6
6
  </script>
7
+ <h1 class="m-t-20 text-center">报告人员:<%=@name %></h1>
7
8
  <form class="layui-form layui-form-pane" action="" style="padding-right: 20px">
9
+ <div class="layui-form-item">
10
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
11
+ <label>负责区域:</label>
12
+ <span><%= @area %></span>
13
+ </div>
14
+ </div>
8
15
  <div class="layui-form-item">
9
16
  <div class="layui-inline" style="margin:18px; font-weight: bold">
10
17
  <label>完成率:</label>
@@ -16,6 +23,11 @@
16
23
  <span><%= @departments_count%></span>
17
24
  <%= hidden_field_tag 'client', @departments_count, {id: 'weekly_client_hide'} %>
18
25
  </div>
26
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
27
+ <label style="margin-left: 100px">提交时间:</label>
28
+ <span><%= Time.now %></span>
29
+ <%= hidden_field_tag 'amount', @total_amount, {id: 'monthly_amount_hide'} %>
30
+ </div>
19
31
  </div>
20
32
  <div class="layui-form-item" style="margin-left: 18px">
21
33
  <div class="layui-form-item layui-form-text">
@@ -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>
@@ -9,6 +16,11 @@
9
16
  <label style="margin-left: 100px">运营教师:</label>
10
17
  <span><%= @sale_report.client%></span>
11
18
  </div>
19
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
20
+ <label style="margin-left: 100px">提交时间:</label>
21
+ <span><%= @sale_report.created_at %></span>
22
+ <%= hidden_field_tag 'amount', @total_amount, {id: 'monthly_amount_hide'} %>
23
+ </div>
12
24
  </div>
13
25
  <div class="layui-form-item" style="margin-left: 18px">
14
26
  <div class="layui-form-item layui-form-text">
@@ -153,32 +165,32 @@
153
165
  cols: [
154
166
  [{
155
167
  field: 'id',
156
- width: 80,
168
+ width: 60,
157
169
  title:'序号',type: 'numbers',
158
170
  },
159
171
  {
160
172
  field: 'staff',
161
- width: 100,
173
+ width: 80,
162
174
  title: '姓名'
163
175
  },
164
176
  {
165
177
  field: 'teacher_name',
166
- width: 100,
178
+ width: 120,
167
179
  title: '教师姓名',
168
180
  },
169
181
  {
170
182
  field: 'school',
171
- width: 100,
183
+ width: 170,
172
184
  title: '单位'
173
185
  },
174
186
  {
175
187
  field: 'department',
176
- width: 100,
188
+ width: 170,
177
189
  title: '部门'
178
190
  },
179
191
  {
180
192
  field: 'week',
181
- width: 100,
193
+ width: 80,
182
194
  title: '周次',
183
195
  },
184
196
  {
@@ -188,18 +200,18 @@
188
200
  },
189
201
  {
190
202
  field: 'count',
191
- width: 100,
203
+ width: 80,
192
204
  title: '跟进',
193
205
  templet: '#show_follow_audit'
194
206
  },
195
207
  {
196
208
  field: 'rate',
197
- width: 100,
209
+ width: 80,
198
210
  title: '完成率',
199
211
  },
200
212
  {
201
213
  field: 'updated_at',
202
- width: 190,
214
+ width: 170,
203
215
  title: '更新时间',
204
216
  sort: true,
205
217
  },
@@ -9,8 +9,15 @@
9
9
  {{# } }}
10
10
  </div>
11
11
  </script>
12
+ <h1 class="m-t-20 text-center">报告人员:<%=@name %></h1>
12
13
  <form class="layui-form layui-form-pane" style="padding-right: 20px">
13
- <div class="layui-form-item">
14
+ <div class="layui-form-item" style="margin-bottom: 0">
15
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
16
+ <label>负责区域:</label>
17
+ <span><%= @area%></span>
18
+ </div>
19
+ </div>
20
+ <div class="layui-form-item" style="margin-bottom: 0">
14
21
  <div class="layui-inline" style="margin:18px; font-weight: bold">
15
22
  <label>完成率:</label>
16
23
  <span><%= @sale_report.finish_rate %>%</span>
@@ -19,6 +26,11 @@
19
26
  <label style="margin-left: 100px">运营教师:</label>
20
27
  <span><%= @sale_report.client%></span>
21
28
  </div>
29
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
30
+ <label style="margin-left: 100px">提交时间:</label>
31
+ <span><%= @sale_report.created_at %></span>
32
+ <%= hidden_field_tag 'amount', @total_amount, {id: 'monthly_amount_hide'} %>
33
+ </div>
22
34
  </div>
23
35
  <div class="layui-form-item" style="margin-left: 18px">
24
36
  <div class="layui-form-item layui-form-text">
@@ -85,32 +97,32 @@
85
97
  cols: [
86
98
  [{
87
99
  field: 'id',
88
- width: 80,
100
+ width: 60,
89
101
  title:'序号',type: 'numbers',
90
102
  },
91
103
  {
92
104
  field: 'staff',
93
- width: 100,
105
+ width: 80,
94
106
  title: '姓名'
95
107
  },
96
108
  {
97
109
  field: 'teacher_name',
98
- width: 100,
110
+ width: 120,
99
111
  title: '教师姓名',
100
112
  },
101
113
  {
102
114
  field: 'school',
103
- width: 100,
115
+ width: 170,
104
116
  title: '单位'
105
117
  },
106
118
  {
107
119
  field: 'department',
108
- width: 100,
120
+ width: 170,
109
121
  title: '部门'
110
122
  },
111
123
  {
112
124
  field: 'week',
113
- width: 100,
125
+ width: 80,
114
126
  title: '周次',
115
127
  },
116
128
  {
@@ -120,18 +132,18 @@
120
132
  },
121
133
  {
122
134
  field: 'count',
123
- width: 100,
135
+ width: 80,
124
136
  title: '跟进',
125
137
  templet: '#show_follow_edit'
126
138
  },
127
139
  {
128
140
  field: 'rate',
129
- width: 100,
141
+ width: 80,
130
142
  title: '完成率',
131
143
  },
132
144
  {
133
145
  field: 'updated_at',
134
- width: 190,
146
+ width: 170,
135
147
  title: '更新时间',
136
148
  sort: true,
137
149
  },
@@ -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>
@@ -8,6 +15,11 @@
8
15
  <label style="margin-left: 100px">运营教师:</label>
9
16
  <span><%= @sale_report.client%></span>
10
17
  </div>
18
+ <div class="layui-inline" style="margin:18px; font-weight: bold">
19
+ <label style="margin-left: 100px">提交时间:</label>
20
+ <span><%= @sale_report.created_at %></span>
21
+ <%= hidden_field_tag 'amount', @total_amount, {id: 'monthly_amount_hide'} %>
22
+ </div>
11
23
  </div>
12
24
  <div class="layui-form-item" style="margin-left: 18px">
13
25
  <div class="layui-form-item layui-form-text">
@@ -99,32 +111,32 @@
99
111
  cols: [
100
112
  [{
101
113
  field: 'id',
102
- width: 80,
114
+ width: 60,
103
115
  title:'序号',type: 'numbers',
104
116
  },
105
117
  {
106
118
  field: 'staff',
107
- width: 100,
119
+ width: 80,
108
120
  title: '姓名'
109
121
  },
110
122
  {
111
123
  field: 'teacher_name',
112
- width: 100,
124
+ width: 120,
113
125
  title: '教师姓名',
114
126
  },
115
127
  {
116
128
  field: 'school',
117
- width: 100,
129
+ width: 170,
118
130
  title: '单位'
119
131
  },
120
132
  {
121
133
  field: 'department',
122
- width: 100,
134
+ width: 170,
123
135
  title: '部门'
124
136
  },
125
137
  {
126
138
  field: 'week',
127
- width: 100,
139
+ width: 80,
128
140
  title: '周次',
129
141
  },
130
142
  {
@@ -134,18 +146,18 @@
134
146
  },
135
147
  {
136
148
  field: 'count',
137
- width: 100,
149
+ width: 80,
138
150
  title: '跟进',
139
151
  templet: '#show_follow_show'
140
152
  },
141
153
  {
142
154
  field: 'rate',
143
- width: 100,
155
+ width: 80,
144
156
  title: '完成率',
145
157
  },
146
158
  {
147
159
  field: 'updated_at',
148
- width: 190,
160
+ width: 170,
149
161
  title: '更新时间',
150
162
  sort: true,
151
163
  },
@@ -76,34 +76,34 @@
76
76
  elem: '#monthPlanTable',
77
77
  url: '/missions/plans?clazz=month',
78
78
  toolbar: '#monthPlanToolbar',
79
- defaultToolbar: [],
79
+ defaultToolbar: ['filter'],
80
80
  totalRow:true,
81
81
  cols: [
82
82
  [
83
83
  {
84
84
  field: 'id',
85
- width: 80,
85
+ width: 60,
86
86
  title:'序号',type: 'numbers',
87
87
  totalRowText:"合计",
88
88
  },
89
89
  {
90
90
  field: 'staff',
91
- width: 100,
91
+ width: 90,
92
92
  title: '姓名'
93
93
  },
94
94
  {
95
95
  field: 'business_name',
96
- width: 280,
96
+ width: 160,
97
97
  title: '商机名称',
98
98
  },
99
99
  {
100
100
  field: 'school',
101
- width: 190,
101
+ width: 170,
102
102
  title: '单位'
103
103
  },
104
104
  {
105
105
  field: 'department',
106
- width: 190,
106
+ width: 170,
107
107
  title: '部门'
108
108
  },
109
109
  {
@@ -118,13 +118,13 @@
118
118
  },
119
119
  {
120
120
  field: 'follow_ups_count',
121
- width: 100,
121
+ width: 60,
122
122
  title: '跟进',
123
123
  templet: '#show_follow'
124
124
  },
125
125
  {
126
126
  field: 'finish_rate',
127
- width: 100,
127
+ width: 80,
128
128
  totalRow:true,
129
129
  title: '完成率',
130
130
  },
@@ -78,7 +78,7 @@
78
78
  elem: '#monthlyTable',
79
79
  url: '/missions/sale_reports?clazz=month',
80
80
  toolbar: '#monthly_Toolbar',
81
- defaultToolbar: [],
81
+ defaultToolbar: ['filter'],
82
82
  totalRow:true,
83
83
  cols: [
84
84
  [{
@@ -89,7 +89,7 @@
89
89
  },
90
90
  {
91
91
  field: 'staff',
92
- width: 100,
92
+ width: 90,
93
93
  title: '姓名'
94
94
  },
95
95
  {
@@ -99,7 +99,7 @@
99
99
  },
100
100
  {
101
101
  field: 'finish_rate',
102
- width: 100,
102
+ width: 80,
103
103
  totalRow:true,
104
104
  title: '完成率',
105
105
  },
@@ -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
  {
@@ -77,23 +77,23 @@
77
77
  url: '/missions/plans?clazz=week',
78
78
  toolbar: '#weekPlanToolbar',
79
79
  totalRow:true,
80
- defaultToolbar: [],
80
+ defaultToolbar: ['filter'],
81
81
  cols: [
82
82
  [
83
83
  {
84
84
  field: 'id',
85
- width: 80,
85
+ width: 60,
86
86
  title:'序号',type: 'numbers',
87
87
  totalRowText: '合计'
88
88
  },
89
89
  {
90
90
  field: 'staff',
91
- width: 100,
91
+ width: 90,
92
92
  title: '姓名'
93
93
  },
94
94
  {
95
95
  field: 'business_name',
96
- width: 280,
96
+ width: 160,
97
97
  title: '商机名称',
98
98
  },
99
99
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  field: 'weekly',
116
- width: 100,
116
+ width: 60,
117
117
  title: '周次',
118
118
  },
119
119
  {
@@ -123,13 +123,13 @@
123
123
  },
124
124
  {
125
125
  field: 'follow_ups_count',
126
- width: 100,
126
+ width: 60,
127
127
  title: '跟进',
128
128
  templet: '#show_follow'
129
129
  },
130
130
  {
131
131
  field: 'finish_rate',
132
- width: 100,
132
+ width: 80,
133
133
  title: '完成率',
134
134
  totalRow:true,
135
135
  },
@@ -79,7 +79,7 @@
79
79
  elem: '#weeklyTable',
80
80
  url: '/missions/sale_reports?clazz=week',
81
81
  toolbar: '#weeklyToolbar',
82
- defaultToolbar: [],
82
+ defaultToolbar: ['filter'],
83
83
  totalRow:true,
84
84
  cols: [
85
85
  [
@@ -91,17 +91,17 @@
91
91
  },
92
92
  {
93
93
  field: 'staff',
94
- width: 100,
94
+ width: 90,
95
95
  title: '姓名'
96
96
  },
97
97
  {
98
98
  field: 'weekly',
99
- width: 100,
99
+ width: 60,
100
100
  title: '周次'
101
101
  },
102
102
  {
103
103
  field: 'finish_rate',
104
- width: 100,
104
+ width: 80,
105
105
  title: '完成率',
106
106
  totalRow:true,
107
107
  },
@@ -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
  {
@@ -1,28 +1,28 @@
1
1
  <form class="layui-form " action="">
2
2
  <div class="layui-form-item" style="padding: 25px">
3
3
  <div class="layui-inline">
4
- <label class="layui-form-label">月份</label>
4
+ <label class="layui-form-label required">月份</label>
5
5
  <div class="layui-input-inline">
6
6
  <input type="text" class="layui-input" id="edit_month_plan_month" autocomplete="off" name="month">
7
7
  </div>
8
8
  </div>
9
9
  <div class="layui-inline">
10
- <label class="layui-form-label">商机</label>
11
- <div class="layui-input-inline">
12
- <%= select_tag "business_id", options_for_select(@businesses, @sale_plan.business_id), class: 'required' %>
10
+ <label class="layui-form-label required">商机</label>
11
+ <div class="layui-input-inline" style="width: 500px">
12
+ <%= select_tag "business_id", options_for_select(@businesses, @sale_plan.business_id), {"lay-verify": "required", include_blank: true} %>
13
13
  </div>
14
14
  </div>
15
15
  <div class="layui-form-item layui-form-text">
16
- <label class="layui-form-label">计划内容</label>
16
+ <label class="layui-form-label required">计划内容</label>
17
17
  <div class="layui-input-block">
18
- <textarea name="content" placeholder="简要填写具体的营销计划,例如:
18
+ <textarea name="content" lay-verify="required" placeholder="简要填写具体的营销计划,例如:
19
19
  1、推动xx老师用起来;
20
20
  2、与xx老师介绍一下我们的方案;
21
21
  3、与xx领导深度沟通一下,以获取到关键建设规划信息等等。" class="layui-textarea" rows="10"><%= @sale_plan.content %></textarea>
22
22
  </div>
23
23
  </div>
24
24
  <div class="layui-inline">
25
- <label class="layui-form-label">完成率</label>
25
+ <label class="layui-form-label required">完成率</label>
26
26
  <div class="layui-input-inline">
27
27
  <%= select_tag "finish_rate", options_for_select(@finish_rates, @sale_plan.finish_rate) %>
28
28
  </div>