|
|
@@ -9,10 +9,32 @@
|
|
9
|
9
|
<script src="../Script/Common/huayi.config.js"></script>
|
|
10
|
10
|
<link href="../css/WorkOrder/Search.css" rel="stylesheet">
|
|
11
|
11
|
<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
|
|
|
12
|
+ <link href="../callScreen/css/call.css" rel="stylesheet" />
|
|
12
|
13
|
<link href="../css/init.css" rel="stylesheet" />
|
|
13
|
14
|
|
|
14
|
15
|
</head>
|
|
15
|
|
-
|
|
|
16
|
+ <style>
|
|
|
17
|
+ #reginsTreeView{
|
|
|
18
|
+ left: 0;
|
|
|
19
|
+ width: 100%;
|
|
|
20
|
+
|
|
|
21
|
+ }
|
|
|
22
|
+ .order_transfer{
|
|
|
23
|
+ float: left;
|
|
|
24
|
+ position: relative;
|
|
|
25
|
+ margin-right: 15px;
|
|
|
26
|
+ height: 34px;
|
|
|
27
|
+ line-height: 34px;
|
|
|
28
|
+ }
|
|
|
29
|
+ .caret{
|
|
|
30
|
+ right: 10px;
|
|
|
31
|
+ top: 13px;
|
|
|
32
|
+ position: absolute;
|
|
|
33
|
+ }
|
|
|
34
|
+ .drop_down{
|
|
|
35
|
+ width: 100%;
|
|
|
36
|
+ }
|
|
|
37
|
+ </style>
|
|
16
|
38
|
<body class="gray-bg">
|
|
17
|
39
|
<div class="daoHang clearfix">
|
|
18
|
40
|
<div class="dhLeft">
|
|
|
@@ -62,6 +84,18 @@
|
|
62
|
84
|
</select>
|
|
63
|
85
|
</div>
|
|
64
|
86
|
<div class="form-group">
|
|
|
87
|
+ <select class="form-control selectpicker" id="order_gdzl" data-live-search="true">
|
|
|
88
|
+ <option value="0">工单子类</option>
|
|
|
89
|
+ </select>
|
|
|
90
|
+ </div>
|
|
|
91
|
+ <div class="clearfix order_transfer" id="order_transfer_depts">
|
|
|
92
|
+ <div class="form-group drop_down">
|
|
|
93
|
+ <input type="text" class="form-control input-sm" id="order_transfer_dept" data-id="0" placeholder="请选择接收部门" autocomplete="off" />
|
|
|
94
|
+ <span class="caret"></span>
|
|
|
95
|
+ <div id="reginsTreeView" class="hidden"></div>
|
|
|
96
|
+ </div>
|
|
|
97
|
+ </div>
|
|
|
98
|
+ <div class="form-group">
|
|
65
|
99
|
<input type="text" class="form-control" id="sc_key" placeholder="请输入姓名、工单号、电话、反馈内容" />
|
|
66
|
100
|
</div>
|
|
67
|
101
|
</div>
|
|
|
@@ -84,7 +118,7 @@
|
|
84
|
118
|
<th data-field="GDLXName" data-align="center">工单类型</th>
|
|
85
|
119
|
<th data-field="TypeClassName" data-align="center">业务办理</th>
|
|
86
|
120
|
<th data-field="Customer" data-align="center">姓名</th>
|
|
87
|
|
- <th data-field="CustomerTel" data-align="center">客户电话</th>
|
|
|
121
|
+ <th data-field="CustomerTel" data-align="center">客户电话</th>
|
|
88
|
122
|
<th data-field="County" data-align="center">公司名称</th>
|
|
89
|
123
|
<th data-field="Detail" data-align="center" data-formatter="formatterDetail">反馈内容</th>
|
|
90
|
124
|
<th data-field="ResponDeptName" data-formatter="" data-align="center">接收部门</th>
|
|
|
@@ -99,13 +133,104 @@
|
|
99
|
133
|
|
|
100
|
134
|
<!--查看详情-->
|
|
101
|
135
|
<div id="order_details" class="ckxq Hidens"></div>
|
|
102
|
|
-
|
|
|
136
|
+
|
|
103
|
137
|
</div>
|
|
104
|
138
|
<script src="../js/laydate/laydate.js"></script>
|
|
105
|
139
|
<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
|
|
106
|
140
|
<script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
|
|
|
141
|
+ <script src="../js/bootstrap-treeview/bootstrap-treeview.min.js"></script>
|
|
107
|
142
|
<script src="../js/WorkOrder/WorkOrder.js"></script>
|
|
|
143
|
+ <script>
|
|
|
144
|
+ //获取接收部门
|
|
|
145
|
+ getDepts('reginsTreeView', 'order_transfer_dept');
|
|
|
146
|
+
|
|
|
147
|
+ // 立即处理
|
|
|
148
|
+ $('#order_isover').find('input[type="radio"]').on('change', function(){
|
|
|
149
|
+ if($(this).val() === '1'){
|
|
|
150
|
+ $('#order_transfer_depts').hide();
|
|
|
151
|
+ }else{
|
|
|
152
|
+ $('#order_transfer_depts').show();
|
|
|
153
|
+ }
|
|
|
154
|
+ });
|
|
|
155
|
+ /**
|
|
|
156
|
+ * 获取接收部门 获取投诉类型
|
|
|
157
|
+ * el1, 树形结构元素id名 reginsTreeView
|
|
|
158
|
+ * el2, 搜索框元素id名 order_transfer_dept
|
|
|
159
|
+ * */
|
|
|
160
|
+ function getDepts(el1, el2) {
|
|
|
161
|
+ //初始化 样式
|
|
|
162
|
+ $('#' + el2).on('focus click', function() {
|
|
|
163
|
+ $('#' + el1).removeClass('hidden').addClass('show');
|
|
|
164
|
+ });
|
|
|
165
|
+ $('#' + el2).on('keyup', function() {
|
|
|
166
|
+ if($(this).val() == '') {
|
|
|
167
|
+ $('#' + el1).treeview('uncheckAll', {
|
|
|
168
|
+ silent: true
|
|
|
169
|
+ });
|
|
|
170
|
+ $(this).attr('data-id', '0');
|
|
|
171
|
+ }
|
|
|
172
|
+ });
|
|
|
173
|
+ $('#' + el2 + ' .caret').on('click', function() {
|
|
|
174
|
+ $('#' + el1).removeClass('hidden').addClass('show');
|
|
|
175
|
+ });
|
|
|
176
|
+ $('#' + el1).mouseleave(function() {
|
|
|
177
|
+ $(this).removeClass('show').addClass('hidden');
|
|
|
178
|
+ });
|
|
|
179
|
+
|
|
|
180
|
+ $.getJSON(huayi.config.callcenter_url + 'Department/GetDeptList', {
|
|
|
181
|
+ token: $.cookie("token")
|
|
|
182
|
+ }, function(result) {
|
|
|
183
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
184
|
+ var defaultDatas = helper.methods.buildTree(result.data);
|
|
|
185
|
+ var sortChildrenArr = helper.methods.objToArray(defaultDatas[0].children);
|
|
|
186
|
+ sortChildrenArr.sort(helper.methods.compare('sort'));
|
|
|
187
|
+ var sortChildrenObj = helper.methods.arrayToObj(sortChildrenArr);
|
|
|
188
|
+ defaultDatas[0].children = sortChildrenObj;
|
|
|
189
|
+ if(defaultDatas) {
|
|
|
190
|
+ var $sTree = $('#' + el1).treeview({
|
|
|
191
|
+ color: "#1ab394",
|
|
|
192
|
+ selectedBackColor: '#1ab394',
|
|
|
193
|
+ expandIcon: 'glyphicon glyphicon-chevron-right',
|
|
|
194
|
+ collapseIcon: 'glyphicon glyphicon-chevron-down',
|
|
|
195
|
+ nodeIcon: 'fa fa-folder-o',
|
|
|
196
|
+ selectable: true,
|
|
|
197
|
+ state: {
|
|
|
198
|
+ selected: true
|
|
|
199
|
+ },
|
|
|
200
|
+ data: defaultDatas,
|
|
|
201
|
+ onNodeSelected: function(event, node) {
|
|
|
202
|
+ $sTree.treeview('clearSearch');
|
|
|
203
|
+ $('#' + el2).val(node.text);
|
|
|
204
|
+ $('#' + el2).attr('data-id', node.id);
|
|
|
205
|
+ $('#' + el1).removeClass('show').addClass('hidden');
|
|
|
206
|
+ },
|
|
|
207
|
+ onNodeUnselected: function(event, node) {
|
|
|
208
|
+ $('#' + el2).attr('data-id', 0);
|
|
|
209
|
+ $('#' + el2).attr('placeholder', '请选择接收部门');
|
|
|
210
|
+ $('#order_receiveUser').empty();
|
|
|
211
|
+ $('#order_receiveUser').append('<option value="0">请选择接收人</option>');
|
|
|
212
|
+ $('#order_receiveUser').selectpicker('refresh');
|
|
|
213
|
+ }
|
|
|
214
|
+ });
|
|
|
215
|
+ $('#' + el1).treeview('expandAll', {
|
|
|
216
|
+ levels: 2,
|
|
|
217
|
+ silent: true
|
|
|
218
|
+ });
|
|
|
219
|
+ var findSNodes = function() {
|
|
|
220
|
+ return $sTree.treeview('search', [$('#' + el2).val(), {
|
|
|
221
|
+ ignoreCase: false,
|
|
|
222
|
+ exactMatch: false
|
|
|
223
|
+ }]);
|
|
|
224
|
+ };
|
|
|
225
|
+ $('#' + el2).on('keyup focus', function(e) {
|
|
|
226
|
+ var selectableNodes = findSNodes();
|
|
|
227
|
+ });
|
|
|
228
|
+ }
|
|
108
|
229
|
|
|
|
230
|
+ }
|
|
|
231
|
+ })
|
|
|
232
|
+ }
|
|
|
233
|
+ </script>
|
|
109
|
234
|
</body>
|
|
110
|
235
|
|
|
111
|
236
|
</html>
|