educode_sales 1.10.58 → 1.10.59

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.
@@ -1,178 +0,0 @@
1
- <%= Gon::Base.render_data %>
2
- <div id="target_track_wraper">
3
- <div class="layuimini-main min-height-table" id="monthly_table_wraper">
4
- <form class="layui-form layui-form-pane" lay-filter="assessment_progress_form">
5
- <div class="layui-form-item">
6
- <div class="layui-inline">
7
- <label class="layui-form-label">人员</label>
8
- <div class="layui-input-inline large-select">
9
- <%= select_tag "staff_id", options_for_select(@staffs), { id: 'weekly_staff_id', include_blank: true} %>
10
- </div>
11
- </div>
12
- <div class="layui-inline">
13
- <label class="layui-form-label">年度</label>
14
- <div class="layui-input-inline">
15
- <input type="text" class="layui-input" autocomplete="off" name="assessment_year" value="<%= Time.now.year %>" id="assessment_year">
16
- </div>
17
- </div>
18
- <div class="layui-inline">
19
- <label class="layui-form-label">客户类型</label>
20
- <div class="layui-input-inline">
21
- <div id="property" style="width: 190px;"></div>
22
- </div>
23
- </div>
24
- <div class="layui-inline">
25
- <label class="layui-form-label">目标类别</label>
26
- <div class="layui-input-inline">
27
- <div id="clazz" style="width: 190px;"></div>
28
- </div>
29
- </div>
30
- <div class="layui-inline">
31
- <button type="reset" class="layui-btn layui-btn-primary" lay-submit lay-filter="progress_resert_btn">重置
32
- </button>
33
- <button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="progress_search_btn">检索
34
- </button>
35
- </div>
36
- </div>
37
- </form>
38
- <table class="layui-tab" id="finished_table" lay-filter="progressTable"></table>
39
- </div>
40
- <script type="text/html" id="progress_Toolbar">
41
- <div class="layui-btn-container">
42
- <button class="layui-btn layui-btn-default layui-btn-sm data-add-btn pull-right" lay-event="add"> 导出</button>
43
- <button class="layui-btn layui-btn-primary layui-btn-sm data-add-btn pull-right" lay-event="add"> 人员显示</button>
44
- <button class="layui-btn layui-btn-primary layui-btn-sm data-add-btn pull-right" lay-event="add"> 分类显示</button>
45
- </div>
46
- </script>
47
-
48
- <script>
49
- layui.use(['form', 'table', 'miniPage', 'element', 'rate', 'laydate', 'request', 'xmSelect'], function () {
50
-
51
- var $ = layui.jquery,
52
- form = layui.form,
53
- laydate = layui.laydate,
54
- request = layui.request,
55
- table = layui.table,
56
- rate = layui.rate,
57
- xmSelect = layui.xmSelect,
58
- miniPage = layui.miniPage,
59
- dropdown = layui.dropdown;
60
-
61
-
62
- laydate.render({
63
- elem: '#assessment_year',
64
- type: 'year'
65
- });
66
-
67
- var property_list = xmSelect.render({
68
- el: '#property',
69
- data: gon.school_tags
70
- })
71
-
72
- var clazz = xmSelect.render({
73
- el: '#clazz',
74
- data: [{value: '中标', name: '中标'}, {value: '回款', name: '回款'}, {value: '商机', name: '商机'}]
75
- })
76
-
77
-
78
- var progress_table = table.render({
79
- elem: '#finished_table'
80
- ,toolbar: '#progress_Toolbar'
81
- ,totalRow:true
82
- ,title: "绩效考核指标完成情况" // 目前发现的作用(导出文件的文件名)
83
- ,defaultToolbar: ['filter']
84
- ,cols:[
85
- [ //标题栏
86
- {field: 'id', title: '序号', width: 120, rowspan: 2, colspan: 9},
87
- {field: 'name', title: '姓名', width: 120, rowspan: 2, colspan: 9},
88
- {field: 'assessment', title: '类别', width: 120, rowspan: 2},
89
- ,{field: 'year', align: 'center', title: '年度目标', width: 100, rowspan: 2}
90
- ,{align: 'center', title: '客户类型', width: 120,rowspan: 2}
91
- ,{align: 'center', title: '分项目标', width: 120, rowspan: 2}
92
- ,{field: 'name', title: '年度计划', width: 120, rowspan: 2}
93
- ,{field: 'name', title: '年度完成', width: 120, rowspan: 2}
94
-
95
- ,{align: 'center', title: '1月', colspan: 3}
96
- ,{align: 'center', title: '2月', colspan: 3}
97
- ,{align: 'center', title: '3月', colspan: 3}
98
- ,{align: 'center', title: '4月', colspan: 3}
99
- ,{align: 'center', title: '5月', colspan: 3}
100
- ,{align: 'center', title: '6月', colspan: 3}
101
- ,{align: 'center', title: '7月', colspan: 3}
102
- ,{align: 'center', title: '8月', colspan: 3}
103
- ,{align: 'center', title: '9月', colspan: 3}
104
- ,{align: 'center', title: '10月', colspan: 3}
105
- ,{align: 'center', title: '11月', colspan: 3}
106
- ,{align: 'center', title: '12月', colspan: 3}
107
- ],
108
- [
109
- {field: 'target_1', title: '目标', width: 100, totalRow:true}
110
- ,{field: 'plan_1', title: '计划', width: 100, totalRow:true}
111
- ,{field: 'finish_1', title: '完成', width: 100, totalRow:true}
112
-
113
- ,{field: 'target_2', title: '目标', width: 100, totalRow:true}
114
- ,{field: 'plan_2', title: '计划', width: 100, totalRow:true}
115
- ,{field: 'finish_2', title: '完成', width: 100, totalRow:true}
116
-
117
- ,{field: 'target_3', title: '目标', width: 100, totalRow:true}
118
- ,{field: 'plan_3', title: '计划', width: 100, totalRow:true}
119
- ,{field: 'finish_3', title: '完成', width: 100, totalRow:true}
120
-
121
- ,{field: 'target_4', title: '目标', width: 100, totalRow:true}
122
- ,{field: 'plan_4', title: '计划', width: 100, totalRow:true}
123
- ,{field: 'finish_4', title: '完成', width: 100, totalRow:true}
124
-
125
- ,{field: 'target_5', title: '目标', width: 100, totalRow:true}
126
- ,{field: 'plan_5', title: '计划', width: 100, totalRow:true}
127
- ,{field: 'finish_5', title: '完成', width: 100, totalRow:true}
128
-
129
- ,{field: 'target_6', title: '目标', width: 100, totalRow:true}
130
- ,{field: 'plan_6', title: '计划', width: 100, totalRow:true}
131
- ,{field: 'finish_6', title: '完成', width: 100, totalRow:true}
132
-
133
- ,{field: 'target_7', title: '目标', width: 100, totalRow:true}
134
- ,{field: 'plan_7', title: '计划', width: 100, totalRow:true}
135
- ,{field: 'finish_7', title: '完成', width: 100, totalRow:true}
136
-
137
- ,{field: 'target_8', title: '目标', width: 100, totalRow:true}
138
- ,{field: 'plan_8', title: '计划', width: 100, totalRow:true}
139
- ,{field: 'finish_8', title: '完成', width: 100, totalRow:true}
140
-
141
- ,{field: 'target_9', title: '目标', width: 100, totalRow:true}
142
- ,{field: 'plan_9', title: '计划', width: 100, totalRow:true}
143
- ,{field: 'finish_9', title: '完成', width: 100, totalRow:true}
144
-
145
- ,{field: 'target_10', title: '目标', width: 100, totalRow:true}
146
- ,{field: 'plan_10', title: '计划', width: 100, totalRow:true}
147
- ,{field: 'finish_10', title: '完成', width: 100, totalRow:true}
148
-
149
- ,{field: 'target_11', title: '目标', width: 100, totalRow:true}
150
- ,{field: 'plan_11', title: '计划', width: 100, totalRow:true}
151
- ,{field: 'finish_11', title: '完成', width: 100, totalRow:true}
152
-
153
- ,{field: 'target_12', title: '目标', width: 100, totalRow:true}
154
- ,{field: 'plan_12', title: '计划', width: 100, totalRow:true}
155
- ,{field: 'finish_12', title: '完成', width: 100, totalRow:true}
156
-
157
- ]]
158
- });
159
- loadFinishTable(form.val('assessment_progress_form'))
160
-
161
- form.on('submit(progress_search_btn)', function (data) {
162
- var search = data.field;
163
- search.assessment_id = assement_list.getValue('valueStr').split(",");
164
- loadFinishTable(search);
165
- return false;
166
- })
167
-
168
- function loadFinishTable(search) {
169
- table.reload('finished_table', {
170
- where: search,
171
- url: '/missions/assessments/finished'
172
- });
173
- }
174
-
175
- })
176
-
177
- </script>
178
- </div>
@@ -1 +0,0 @@
1
- $("#target_track_tab").html("<%= j render 'target_track' %>");