miaofuhao лет назад: 7
Родитель
Сommit
07153b3d83

+ 1 - 1
CallCenterWeb.UI/Quality/qualityControl.html

@@ -341,7 +341,7 @@
341 341
 				$(".gjss").removeClass("cx");
342 342
 				$(".xqlb").addClass("cx");
343 343
 				$(".Ly_box").empty();
344
-				$('<audio  style="width:100%;" src="' + val + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
344
+				$('<audio  style="width:100%;" type="audio/v3" src="' + val + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
345 345
 			}
346 346
 			//搜索
347 347
 			$(".Ss").click(function() {

+ 36 - 15
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -144,6 +144,9 @@
144 144
 			button[disabled]{
145 145
 				background-color: #999;
146 146
 			}
147
+			.complainDiv2{
148
+				display: none;
149
+			}
147 150
 		</style>
148 151
 	</head>
149 152
 
@@ -174,11 +177,8 @@
174 177
                                     <input type="text" class="form-control" id="tel" />
175 178
                                 </div>
176 179
                             </td>
177
-
178 180
                         </tr>
179
-
180 181
                         <tr>
181
-
182 182
                             <th>工单来源:</th>
183 183
                             <td>
184 184
                                 <div class="form-group">
@@ -191,13 +191,19 @@
191 191
                                     <select name="" class="form-control orderType"></select>
192 192
                                 </div>
193 193
                             </td>
194
-
194
+                            <th class="complainDiv2">咨询类型:</th>
195
+                            <td class="complainDiv2">
196
+                                <div class="form-group">
197
+                                    <select name="" class="form-control complaintType2"></select>
198
+                                </div>
199
+                            </td>
195 200
                             <th class="complainDiv">投诉类型:</th>
196 201
                             <td class="complainDiv">
197 202
                                 <div class="form-group">
198
-                                    <select name="" class="form-control complaintType"></select>
203
+                                    <select name="" class="form-control complaintType1"></select>
199 204
                                 </div>
200 205
                             </td>
206
+                            
201 207
                         </tr>
202 208
                         <tr>
203 209
 
@@ -228,29 +234,29 @@
228 234
                             </td>
229 235
                         </tr>
230 236
                         <tr>
231
-                            <th>生产日期:</th>
232
-                            <td style="position: relative;">
237
+                            <th class="snRmove">生产日期:</th>
238
+                            <td style="position: relative;" class="snRmove">
233 239
                                 <div class="time-box form-group">
234 240
                                     <i class="tub fa fa-calendar"></i>
235
-                                    <input class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
241
+                                    <input autocomplete="off" class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
236 242
                                 </div>
237 243
                             </td>
238 244
                             <th>购买日期:</th>
239 245
                             <td style="position: relative;">
240 246
                                 <div class="time-box form-group">
241 247
                                     <i class="tub fa fa-calendar"></i>
242
-                                    <input class="form-control search_time buyDate" type="text" placeholder="请选择时间">
248
+                                    <input autocomplete="off" class="form-control search_time buyDate" type="text" placeholder="请选择时间">
243 249
                                 </div>
244 250
                             </td>
245 251
                             <th><span id="usedate">食用日期:</span></th>
246 252
                             <td style="position: relative;">
247 253
                                 <div class="time-box form-group">
248 254
                                     <i class="tub fa fa-calendar"></i>
249
-                                    <input class="form-control search_time userDate" type="text" placeholder="请选择时间">
255
+                                    <input class="form-control search_time userDate" type="text" placeholder="请选择时间" autocomplete="off">
250 256
                                 </div>
251 257
                             </td>
252
-                            <th>样品寄回:</th>
253
-                            <td style="position: relative;">
258
+                            <th class="snRmove">样品寄回:</th>
259
+                            <td style="position: relative;" class="snRmove">
254 260
                                 <label><input type="radio" name="sendBack" id="sendBack" value="0" checked="checked" />否</label>
255 261
                                 <label><input type="radio" name="sendBack" id="sendBack" value="1" />是</label>
256 262
                             </td>
@@ -275,14 +281,23 @@
275 281
                                     </div>
276 282
                                 </div>
277 283
                             </td>
278
-                            <th><span id="vipid">客诉专员:</span></th>
284
+                           	<th class="snRmove">区县:</th>
285
+                            <td style="position: relative;" class="snRmove">
286
+                                <div class="form-group">
287
+                                    <input type="text" class="form-control" id="county" />
288
+                                </div>
289
+                            </td>
290
+                        </tr>
291
+                        <tr>
292
+                        	<th><span id="vipid">客诉专员:</span></th>
279 293
                             <td>
280 294
                                 <div class="form-group">
281
-                                    <select name="" class="form-control" id="vipName"></select>
295
+                                    <select name="" class="form-control dkRmove" id="vipName"></select>
296
+                                    <input type="text" class="form-control snRmove" id="vipNameDK"/>
282 297
                                 </div>
283 298
                             </td>
284 299
                             <th><span id="vipphone">专员电话:</span></th>
285
-                            <td style="position: relative;">
300
+                            <td  style="position: relative;">
286 301
                                 <div class="form-group">
287 302
                                     <input type="text" class="form-control" id="vipTel" />
288 303
                                 </div>
@@ -295,6 +310,12 @@
295 310
                             </td>
296 311
                         </tr>
297 312
                         <tr>
313
+                            <th>备注:</th>
314
+                            <td colspan="7">
315
+                                <textarea name="" rows="5" cols="" placeholder="" id="remark"></textarea>
316
+                            </td>
317
+                        </tr>
318
+                        <tr>
298 319
                             <td colspan="8" style="text-align: center;">
299 320
                                 <button class="btns customerSubmit">保&nbsp;存</button>
300 321
                             </td>

+ 46 - 13
CallCenterWeb.UI/WorkOrder/WorkOrderDispose.html

@@ -133,16 +133,18 @@
133 133
 					<thead>
134 134
 						<tr>
135 135
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
136
+							<th data-field="F_CreateTime" data-align="center">创建时间</th>
136 137
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
137
-							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
138 138
 							<th data-field="F_Area" data-align="center">区域</th>
139 139
 							<th data-field="F_Province" data-align="center">省</th>
140 140
 							<th data-field="F_City" data-align="center">市</th>
141
-							<th data-field="F_CusPhone" data-align="center">客户电话</th>
142
-							<th data-field="F_CreateUser" data-align="center">受理人</th>
143
-							<th data-field="F_CreateTime" data-align="center">创建时间</th>
144
-							<th data-field="F_VIPName" data-align="center">客诉专员</th>
145 141
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
142
+							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
143
+							<th data-field="F_CusPhone" data-align="center">客户电话</th>
144
+							<th data-field="ProductTypeName" data-align="center">产品类别</th>
145
+							<th data-field="F_ProductName" data-align="center">产品名称</th>
146
+							<th data-field="F_BatchNumber" data-align="center">生产批号</th>
147
+							<th data-field="SourceName" data-align="center">来源</th>
146 148
 							<th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
147 149
 						</tr>
148 150
 					</thead>
@@ -154,16 +156,18 @@
154 156
 					<thead>
155 157
 						<tr>
156 158
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
159
+							<th data-field="F_CreateTime" data-align="center">创建时间</th>
157 160
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
158
-							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
159 161
 							<th data-field="F_Area" data-align="center">区域</th>
160 162
 							<th data-field="F_Province" data-align="center">省</th>
161 163
 							<th data-field="F_City" data-align="center">市</th>
162
-							<th data-field="F_CusPhone" data-align="center">客户电话</th>
163
-							<th data-field="F_CreateUser" data-align="center">受理人</th>
164
-							<th data-field="F_CreateTime" data-align="center">创建时间</th>
165
-							<th data-field="F_VIPName" data-align="center">客诉专员</th>
166 164
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
165
+							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
166
+							<th data-field="F_CusPhone" data-align="center">客户电话</th>
167
+							<th data-field="ProductTypeName" data-align="center">产品类别</th>
168
+							<th data-field="F_ProductName" data-align="center">产品名称</th>
169
+							<th data-field="F_BatchNumber" data-align="center">生产批号</th>
170
+							<th data-field="SourceName" data-align="center">来源</th>
167 171
 							<th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>
168 172
 						</tr>
169 173
 					</thead>
@@ -261,9 +265,12 @@
261 265
 									<td>
262 266
 										<span id="F_VipPhone"></span>
263 267
 									</td>
264
-									
265
-									<th>样品寄回:</th>
266
-									<td>
268
+									<th class="snRmove">区县:</th>
269
+									<td class="snRmove">
270
+										<span id="county"></span>
271
+									</td>
272
+									<th class="snRmove">样品寄回:</th>
273
+									<td class="snRmove">
267 274
 										<span id="F_IsBack"></span>
268 275
 									</td>
269 276
 								</tr>
@@ -273,6 +280,12 @@
273 280
 										
274 281
 									</td>
275 282
 								</tr>
283
+								<tr>
284
+									<th>备注:</th>
285
+									<td colspan="5" id="remark">
286
+										
287
+									</td>
288
+								</tr>
276 289
 							</tbody>
277 290
 
278 291
 						</table>
@@ -399,6 +412,26 @@
399 412
 						$(".ns-2").remove();
400 413
 					}
401 414
 				}
415
+				$.ajax({
416
+					type: "get",
417
+					url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
418
+					dataType: 'json',
419
+					async: false,
420
+					data: {
421
+						token: $.cookie("token")
422
+					},
423
+					success: function(data) {
424
+						if(data.state.toLowerCase() == 'success') {
425
+							if(data.data.groname == '思念组') {
426
+								$(".snRmove").remove();
427
+								$(".dkRmove").show();
428
+							} else {
429
+								$(".snRmove").show();
430
+								$(".dkRmove").remove();
431
+							}
432
+						}
433
+					}
434
+				});
402 435
 				//处理状态
403 436
 				dealState();
404 437
 				function dealState() {

+ 47 - 15
CallCenterWeb.UI/WorkOrder/WorkOrderParty.html

@@ -145,16 +145,18 @@
145 145
 					<thead>
146 146
 						<tr>
147 147
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
148
+							<th data-field="F_CreateTime" data-align="center">创建时间</th>
148 149
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
149
-							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
150 150
 							<th data-field="F_Area" data-align="center">区域</th>
151 151
 							<th data-field="F_Province" data-align="center">省</th>
152 152
 							<th data-field="F_City" data-align="center">市</th>
153
-							<th data-field="F_CusPhone" data-align="center">客户电话</th>
154
-							<th data-field="F_CreateUser" data-align="center">受理人</th>
155
-							<th data-field="F_CreateTime" data-align="center">创建时间</th>
156
-							<th data-field="F_VIPName" data-align="center">客诉专员</th>
157 153
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
154
+							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
155
+							<th data-field="F_CusPhone" data-align="center">客户电话</th>
156
+							<th data-field="ProductTypeName" data-align="center">产品类别</th>
157
+							<th data-field="F_ProductName" data-align="center">产品名称</th>
158
+							<th data-field="F_BatchNumber" data-align="center">生产批号</th>
159
+							<th data-field="SourceName" data-align="center">来源</th>
158 160
 							<th data-field="F_WorkOrderId" data-formatter="Remove" data-align="center">操作</th>
159 161
 						</tr>
160 162
 					</thead>
@@ -165,16 +167,18 @@
165 167
 					<thead>
166 168
 						<tr>
167 169
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
170
+							<th data-field="F_CreateTime" data-align="center">创建时间</th>
168 171
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
169
-							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
170 172
 							<th data-field="F_Area" data-align="center">区域</th>
171 173
 							<th data-field="F_Province" data-align="center">省</th>
172 174
 							<th data-field="F_City" data-align="center">市</th>
173
-							<th data-field="F_CusPhone" data-align="center">客户电话</th>
174
-							<th data-field="F_CreateUser" data-align="center">受理人</th>
175
-							<th data-field="F_CreateTime" data-align="center">创建时间</th>
176
-							<th data-field="F_VIPName" data-align="center">客诉专员</th>
177 175
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
176
+							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
177
+							<th data-field="F_CusPhone" data-align="center">客户电话</th>
178
+							<th data-field="ProductTypeName" data-align="center">产品类别</th>
179
+							<th data-field="F_ProductName" data-align="center">产品名称</th>
180
+							<th data-field="F_BatchNumber" data-align="center">生产批号</th>
181
+							<th data-field="SourceName" data-align="center">来源</th>
178 182
 							<th data-field="F_WorkOrderId" data-formatter="Remove" data-align="center">操作</th>
179 183
 						</tr>
180 184
 					</thead>
@@ -273,9 +277,12 @@
273 277
 									<td>
274 278
 										<span id="F_VipPhone"></span>
275 279
 									</td>
276
-									
277
-									<th>样品寄回:</th>
278
-									<td>
280
+									<th class="snRmove">区县:</th>
281
+									<td class="snRmove">
282
+										<span id="county"></span>
283
+									</td>
284
+									<th class="snRmove">样品寄回:</th>
285
+									<td class="snRmove">
279 286
 										<span id="F_IsBack"></span>
280 287
 									</td>
281 288
 								</tr>
@@ -285,6 +292,7 @@
285 292
 										
286 293
 									</td>
287 294
 								</tr>
295
+								
288 296
 							</tbody>
289 297
 
290 298
 						</table>
@@ -320,7 +328,12 @@
320 328
 										
321 329
 									</td>
322 330
 								</tr>
323
-								
331
+								<tr>
332
+									<th>备注:</th>
333
+									<td colspan="5" id="remark">
334
+										
335
+									</td>
336
+								</tr>
324 337
 									
325 338
 							</tbody>
326 339
 
@@ -409,7 +422,26 @@
409 422
 					//										min: 0,
410 423
 					theme: '#1ab394',
411 424
 				});
412
-
425
+				$.ajax({
426
+					type: "get",
427
+					url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
428
+					dataType: 'json',
429
+					async: false,
430
+					data: {
431
+						token: $.cookie("token")
432
+					},
433
+					success: function(data) {
434
+						if(data.state.toLowerCase() == 'success') {
435
+							if(data.data.groname == '思念组') {
436
+								$(".snRmove").remove();
437
+								$(".dkRmove").show();
438
+							} else {
439
+								$(".snRmove").show();
440
+								$(".dkRmove").remove();
441
+							}
442
+						}
443
+					}
444
+				});
413 445
 				//处理工单
414 446
 				$("#plgd").click(function() {
415 447
 					if(!$("#cont").val()) {

+ 50 - 14
CallCenterWeb.UI/WorkOrder/WorkOrderSearch.html

@@ -75,6 +75,9 @@
75 75
 				color: #000;
76 76
 				width: 100px;
77 77
 			}
78
+			.RemoveC a{
79
+				display: inline;
80
+			}
78 81
 		</style>
79 82
 
80 83
 	</head>
@@ -133,16 +136,18 @@
133 136
 					<thead>
134 137
 						<tr>
135 138
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
139
+							<th data-field="F_CreateTime" data-align="center">创建时间</th>
136 140
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
137
-							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
138 141
 							<th data-field="F_Area" data-align="center">区域</th>
139 142
 							<th data-field="F_Province" data-align="center">省</th>
140 143
 							<th data-field="F_City" data-align="center">市</th>
141
-							<th data-field="F_CusPhone" data-align="center">客户电话</th>
142
-							<th data-field="F_CreateUser" data-align="center">受理人</th>
143
-							<th data-field="F_CreateTime" data-align="center">创建时间</th>
144
-							<th data-field="F_VIPName" data-align="center">客诉专员</th>
145 144
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
145
+							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
146
+							<th data-field="F_CusPhone" data-align="center">客户电话</th>
147
+							<th data-field="ProductTypeName" data-align="center">产品类别</th>
148
+							<th data-field="F_ProductName" data-align="center">产品名称</th>
149
+							<th data-field="F_BatchNumber" data-align="center">生产批号</th>
150
+							<th data-field="SourceName" data-align="center">来源</th>
146 151
 							<th data-field="F_WorkOrderId" data-formatter="Search" data-align="center">操作</th>
147 152
 						</tr>
148 153
 					</thead>
@@ -153,16 +158,18 @@
153 158
 					<thead>
154 159
 						<tr>
155 160
 							<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
161
+							<th data-field="F_CreateTime" data-align="center">创建时间</th>
156 162
 							<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
157
-							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
158 163
 							<th data-field="F_Area" data-align="center">区域</th>
159 164
 							<th data-field="F_Province" data-align="center">省</th>
160 165
 							<th data-field="F_City" data-align="center">市</th>
161
-							<th data-field="F_CusPhone" data-align="center">客户电话</th>
162
-							<th data-field="F_CreateUser" data-align="center">受理人</th>
163
-							<th data-field="F_CreateTime" data-align="center">创建时间</th>
164
-							<th data-field="F_VIPName" data-align="center">客诉专员</th>
165 166
 							<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
167
+							<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
168
+							<th data-field="F_CusPhone" data-align="center">客户电话</th>
169
+							<th data-field="ProductTypeName" data-align="center">产品类别</th>
170
+							<th data-field="F_ProductName" data-align="center">产品名称</th>
171
+							<th data-field="F_BatchNumber" data-align="center">生产批号</th>
172
+							<th data-field="SourceName" data-align="center">来源</th>
166 173
 							<th data-field="F_WorkOrderId" data-formatter="Search" data-align="center">操作</th>
167 174
 						</tr>
168 175
 					</thead>
@@ -259,9 +266,12 @@
259 266
 									<td>
260 267
 										<span id="F_VipPhone"></span>
261 268
 									</td>
262
-									
263
-									<th>样品寄回:</th>
264
-									<td>
269
+									<th class="snRmove">区县:</th>
270
+									<td class="snRmove">
271
+										<span id="county"></span>
272
+									</td>
273
+									<th class="snRmove">样品寄回:</th>
274
+									<td class="snRmove">
265 275
 										<span id="F_IsBack"></span>
266 276
 									</td>
267 277
 								</tr>
@@ -300,6 +310,12 @@
300 310
 									<td colspan="5" id="F_DealDes">
301 311
 									</td>
302 312
 								</tr>
313
+								<tr>
314
+									<th>备注:</th>
315
+									<td colspan="5" id="remark">
316
+										
317
+									</td>
318
+								</tr>
303 319
 							</tbody>
304 320
 
305 321
 						</table>
@@ -327,7 +343,28 @@
327 343
 					range: '~',
328 344
 					theme: '#00a1cb',
329 345
 				});
346
+				$.ajax({
347
+					type: "get",
348
+					url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
349
+					dataType: 'json',
350
+					async: false,
351
+					data: {
352
+						token: $.cookie("token")
353
+					},
354
+					success: function(data) {
355
+						if(data.state.toLowerCase() == 'success') {
356
+							if(data.data.groname == '思念组') {
357
+								$(".snRmove").remove();
358
+								$(".dkRmove").show();
359
+							} else {
360
+								$(".snRmove").show();
361
+								$(".dkRmove").remove();
362
+							}
363
+						}
364
+					}
365
+				});
330 366
 			})
367
+			
331 368
 			function initTable() {
332 369
 				//先销毁表格
333 370
 				$('#workorderlist').bootstrapTable('destroy');
@@ -420,7 +457,6 @@
420 457
 				var url = huayi.config.callcenter_url + "WorkOrder/GetList?isdc=1&token=" + $.cookie("token");
421 458
 
422 459
 				if(stype == '1') {
423
-					
424 460
 					url += "&source=" + $("#orderSource").val();//工单来源
425 461
 					url += "&type=" + $("#orderType").val();//工单类型
426 462
 					url += "&key=" + $('#keyWord').val();//关键词

+ 33 - 12
CallCenterWeb.UI/WorkOrder/Xga.html

@@ -148,6 +148,9 @@
148 148
         button[disabled] {
149 149
             background-color: #999;
150 150
         }
151
+        .complainDiv2{
152
+			display: none;
153
+		}
151 154
     </style>
152 155
 </head>
153 156
 
@@ -179,9 +182,7 @@
179 182
                                 <input type="text" class="form-control" id="tel" />
180 183
                             </div>
181 184
                         </td>
182
-
183 185
                     </tr>
184
-
185 186
                     <tr>
186 187
                         <th>工单来源:</th>
187 188
                         <td>
@@ -195,16 +196,20 @@
195 196
                                 <select name="" class="form-control orderType" disabled></select>
196 197
                             </div>
197 198
                         </td>
198
-
199
+                        <th class="complainDiv2">咨询类型:</th>
200
+                        <td class="complainDiv2">
201
+                            <div class="form-group">
202
+                                <select name="" class="form-control complaintType2"></select>
203
+                            </div>
204
+                        </td>
199 205
                         <th class="complainDiv">投诉类型:</th>
200 206
                         <td class="complainDiv">
201 207
                             <div class="form-group">
202
-                                <select name="" class="form-control complaintType"></select>
208
+                                <select name="" class="form-control complaintType1"></select>
203 209
                             </div>
204 210
                         </td>
205 211
                     </tr>
206 212
                     <tr>
207
-
208 213
                         <th>产品名称:</th>
209 214
                         <td>
210 215
                             <div class="form-group">
@@ -223,7 +228,6 @@
223 228
                                 <input type="text" class="form-control" id="batchNumber" />
224 229
                             </div>
225 230
                         </td>
226
-
227 231
                         <th>购买地址:</th>
228 232
                         <td>
229 233
                             <div class="form-group">
@@ -232,8 +236,8 @@
232 236
                         </td>
233 237
                     </tr>
234 238
                     <tr>
235
-                        <th>生产日期:</th>
236
-                        <td style="position: relative;">
239
+                        <th class="snRmove">生产日期:</th>
240
+                        <td style="position: relative;" class="snRmove">
237 241
                             <div class="time-box form-group">
238 242
                                 <i class="tub fa fa-calendar"></i>
239 243
                                 <input class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
@@ -253,8 +257,8 @@
253 257
                                 <input class="form-control search_time userDate" type="text" placeholder="请选择时间">
254 258
                             </div>
255 259
                         </td>
256
-                        <th>样品寄回:</th>
257
-                        <td style="position: relative;">
260
+                        <th class="snRmove">样品寄回:</th>
261
+                        <td style="position: relative;" class="snRmove">
258 262
                             <label><input type="radio" name="sendBack" id="sendBack" value="0" checked="checked" />否</label>
259 263
                             <label><input type="radio" name="sendBack" id="sendBack" value="1" />是</label>
260 264
                         </td>
@@ -279,10 +283,21 @@
279 283
                                 </div>
280 284
                             </div>
281 285
                         </td>
282
-                        <th><span id="vipid">客诉专员:</span></th>
286
+                        <th class="snRmove">区县:</th>
287
+                        <td style="position: relative;" class="snRmove">
288
+                            <div class="form-group">
289
+                                <input type="text" class="form-control" id="county" />
290
+                            </div>
291
+                        </td>
292
+                        
293
+                    </tr>
294
+                    <tr>
295
+                    	<th><span id="vipid">客诉专员:</span></th>
283 296
                         <td>
284 297
                             <div class="form-group">
285
-                                <select name="" class="form-control" id="vipName"></select>
298
+                            	<select name="" class="form-control dkRmove" id="vipName"></select>
299
+                                <input type="text" class="form-control snRmove" id="vipNameDK"/>
300
+                                
286 301
                             </div>
287 302
                         </td>
288 303
                         <th><span id="vipphone">专员电话:</span></th>
@@ -299,6 +314,12 @@
299 314
                         </td>
300 315
                     </tr>
301 316
                     <tr>
317
+                        <th>备注:</th>
318
+                        <td colspan="7">
319
+                            <textarea name="" rows="5" cols="" placeholder="" id="remark"></textarea>
320
+                        </td>
321
+                    </tr>
322
+                    <tr>
302 323
                         <td colspan="8" style="text-align: center;">
303 324
                             <button class="btns customerSubmit">保&nbsp;存</button>
304 325
                         </td>

+ 73 - 8
CallCenterWeb.UI/callScreen/call.js

@@ -4,6 +4,26 @@ var Number = helper.request.queryString("Number");
4 4
 var CallID = helper.request.queryString("CallID");
5 5
 
6 6
 $(document).ready(function () {
7
+	$.ajax({
8
+		type: "get",
9
+		url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
10
+		dataType: 'json',
11
+		async: false,
12
+		data: {
13
+			token: $.cookie("token")
14
+		},
15
+		success: function(data) {
16
+			if(data.state.toLowerCase() == 'success') {
17
+				if(data.data.groname == '思念组') {
18
+					$(".snRmove").remove();
19
+					$(".dkRmove").show();
20
+				} else {
21
+					$(".snRmove").show();
22
+					$(".dkRmove").remove();
23
+				}
24
+			}
25
+		}
26
+	});
7 27
     var groupcode = $('#groupcode', top.document).val();
8 28
     if (groupcode == 'SCZ') {
9 29
         $("#usedate").text("饮用日期:");
@@ -249,11 +269,21 @@ $(document).ready(function () {
249 269
 
250 270
     $(".orderType").change(function () {
251 271
         if ($(".orderType option:selected").text() != "投诉") {
272
+            $(".complainDiv2").show();
273
+            typeSmall =$(".complaintType2").val();
252 274
             $(".complainDiv").hide();
253 275
         } else {
276
+            $(".complainDiv2").hide();
254 277
             $(".complainDiv").show();
278
+            typeSmall =$(".complaintType1").val();
255 279
         }
256 280
     });
281
+    $(".complaintType2").change(function () {
282
+		typeSmall=$(".complaintType2").val();
283
+    });
284
+    $(".complaintType1").change(function () {
285
+		typeSmall=$(".complaintType1").val();
286
+    });
257 287
     //获取专员手机号
258 288
     $("#vipName").change(function () {
259 289
         $("#vipTel").val($("#vipName option:selected").attr("index"));
@@ -330,6 +360,8 @@ $(document).ready(function () {
330 360
     getOrderType();
331 361
     //投诉类型
332 362
     complaintType();
363
+    //咨询类型
364
+	consultType();
333 365
     //产品类别
334 366
     getProductType();
335 367
     //区域
@@ -339,6 +371,7 @@ $(document).ready(function () {
339 371
 
340 372
     //保存
341 373
     $('.customerSubmit').click(function () {
374
+    	
342 375
         saveCustomer();
343 376
     });
344 377
 
@@ -507,7 +540,10 @@ function formatterDealType(val, row) {
507 540
 	}
508 541
 	return str;
509 542
 }
510
-
543
+function View(val, row) {
544
+	return '<div class="imgs" ><a class="xg" index="' + row.CreateUser + '" onclick= TZ("' + row.F_WorkOrderId + '") >' + val + '</a></div>';
545
+	$("#F_UserCode").val(row.CreateUser);
546
+}
511 547
 function Detail(val) {
512 548
     if (val) {
513 549
         var str = '<div style="color:#e43926;" '
@@ -548,7 +584,18 @@ function ck(val) {
548 584
 	$(".down").attr("href", path);
549 585
 	$('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
550 586
 }
551
-
587
+//修改
588
+function TZ(val) {
589
+	var id = val;
590
+	layer.open({
591
+		type: 2,
592
+		title: '修改工单',
593
+		maxmin: true, //开启最大化最小化按钮
594
+		area: ['80%', '90%'],
595
+		content: '../WorkOrder/Xga.html?id=' + id
596
+		//              content: 'addZhiShiKuManger.html?addId=' + id + '&addPid='+ pid +'&addName='+ name +''
597
+	});
598
+}
552 599
 function GetDealState(val) {
553 600
 	if(val == '1') {
554 601
 		return '已处理';
@@ -603,7 +650,7 @@ function getOrderType() {
603 650
     });
604 651
 }
605 652
 
606
-//工单类型
653
+//投诉类型
607 654
 function complaintType() {
608 655
     $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
609 656
         "token": $.cookie("token"),
@@ -612,10 +659,24 @@ function complaintType() {
612 659
         result = $.parseJSON(result);
613 660
         var Count = result.data;
614 661
         $(Count).each(function(i, n) {
615
-            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
662
+            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType1"));
616 663
         })
664
+        typeSmall=$(".complaintType1").val();
617 665
     });
618 666
 }
667
+//咨询类型
668
+function consultType() {
669
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
670
+		"token": $.cookie("token"),
671
+		flag: "ZXLX"
672
+	}, function(result) {
673
+		result = $.parseJSON(result);
674
+		var Count = result.data;
675
+		$(Count).each(function(i, n) {
676
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType2"));
677
+		})
678
+	});
679
+}
619 680
 //产品类别
620 681
 function getProductType() {
621 682
     $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
@@ -850,20 +911,24 @@ function saveCustomer() {
850 911
             userdate: $('.userDate').val(), //使用日期  userDate  
851 912
             source: $('#DicValueList').val(), //工单来源
852 913
             type: $('.orderType').val(), //工单类型id
853
-            smalltype: $(".complaintType").val(), //投诉类型
914
+            smalltype: typeSmall, //投诉类型
854 915
             area: $('#areaInps').val(), //区域
855 916
             province: $('.inps2').val(), //省
856 917
             city: $('.inps3').val(), //市
857
-            content: $('#content').val(), //事件描述     
858
-            vipid: $('#vipName').val(), //专员id     
918
+            county:$('#county').val(), //区县
919
+            content: $('#content').val(), //事件描述
920
+            remark:$('#remark').val(),
921
+            vipid: $('#vipName').val(), //专员id   
922
+            vipname:$('#vipNameDK').val(),
859 923
             vipphone: $('#vipTel').val(), //专员号码     
860 924
             isback: $('input[name="sendBack"]:checked').val(),
861 925
             callid: CallID
862 926
         },
863 927
         success: function (data) {
864 928
             if (data.state.toLowerCase() == 'success') {
929
+            	debugger
865 930
                 layer.msg("保存成功!");
866
-                Clean();
931
+                //Clean();
867 932
                 //window.location.reload()
868 933
                 $('.customerSubmit').attr("disabled", false);
869 934
                 $('.customerSubmit').text('保存');

+ 35 - 13
CallCenterWeb.UI/callScreen/callScreen.html

@@ -465,6 +465,9 @@
465 465
             .customerService th {
466 466
                 width: 100px;
467 467
             }
468
+            .complainDiv2{
469
+            	display: none;
470
+            }
468 471
 		</style>
469 472
 		<script>
470 473
 			function clearInter() {
@@ -646,12 +649,18 @@
646 649
                                                     </div>
647 650
                                                 </td>
648 651
 
649
-                                                <th class="complainDiv">投诉类型:</th>
650
-                                                <td class="complainDiv">
651
-                                                    <div class="form-group">
652
-                                                        <select name="" class="form-control complaintType"></select>
653
-                                                    </div>
654
-                                                </td>
652
+                                                <th class="complainDiv2">咨询类型:</th>
653
+					                            <td class="complainDiv2">
654
+					                                <div class="form-group">
655
+					                                    <select name="" class="form-control complaintType2"></select>
656
+					                                </div>
657
+					                            </td>
658
+					                            <th class="complainDiv">投诉类型:</th>
659
+					                            <td class="complainDiv">
660
+					                                <div class="form-group">
661
+					                                    <select name="" class="form-control complaintType1"></select>
662
+					                                </div>
663
+					                            </td>
655 664
                                             </tr>
656 665
                                             <tr>
657 666
 
@@ -682,8 +691,8 @@
682 691
                                                 </td>
683 692
                                             </tr>
684 693
                                             <tr>
685
-                                                <th>生产日期:</th>
686
-                                                <td style="position: relative;">
694
+                                                <th class="snRmove">生产日期:</th>
695
+                                                <td style="position: relative;" class="snRmove">
687 696
                                                     <div class="time-box form-group">
688 697
                                                         <i class="tub fa fa-calendar"></i>
689 698
                                                         <input class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
@@ -703,8 +712,8 @@
703 712
                                                         <input class="form-control search_time userDate" id="userDate" type="text" placeholder="请选择时间">
704 713
                                                     </div>
705 714
                                                 </td>
706
-                                                <th>样品寄回:</th>
707
-                                                <td style="position: relative;">
715
+                                                <th class="snRmove">样品寄回:</th>
716
+                                                <td style="position: relative;" class="snRmove">
708 717
                                                     <label style="vertical-align: middle;font-weight: normal; margin-right:20px;"><input style="vertical-align: middle" type="radio" name="sendBack" id="sendBack" value="0" checked="checked" />否</label>
709 718
                                                     <label style="vertical-align: middle;font-weight: normal;"><input style="vertical-align: middle" type="radio" name="sendBack" id="sendBack" value="1" />是</label>
710 719
                                                 </td>
@@ -723,10 +732,17 @@
723 732
                                                         </div>
724 733
                                                     </div>
725 734
                                                 </td>
735
+                                                <th class="snRmove">区县:</th>
736
+					                            <td style="position: relative;" class="snRmove">
737
+					                                <div class="form-group">
738
+					                                    <input type="text" class="form-control" id="county" />
739
+					                                </div>
740
+					                            </td>
726 741
                                                 <th><span id="vipid">客诉专员:</span></th>
727 742
                                                 <td>
728 743
                                                     <div class="form-group">
729
-                                                        <select name="" class="form-control" id="vipName"></select>
744
+                                                        <select name="" class="form-control dkRmove" id="vipName"></select>
745
+                                    					<input type="text" class="form-control snRmove" id="vipNameDK"/>
730 746
                                                     </div>
731 747
                                                 </td>
732 748
                                                 <th><span id="vipphone">专员电话:</span></th>
@@ -743,6 +759,12 @@
743 759
                                                 </td>
744 760
                                             </tr>
745 761
                                             <tr>
762
+                                                <th>备注:</th>
763
+                                                <td colspan="7">
764
+                                                    <textarea name="" rows="5" cols="" placeholder="" id="remark" style="margin-top:10px;"></textarea>
765
+                                                </td>
766
+                                            </tr>
767
+                                            <tr>
746 768
                                                 <td colspan="8" style="text-align: center;">
747 769
                                                     <button class="btns customerSubmit">保&nbsp;存</button>
748 770
                                                 </td>
@@ -786,7 +808,7 @@
786 808
                             <div class="ld-sercon-con clearfix">
787 809
                                 <div class="Ps-chaxun">
788 810
                                     <span>
789
-                                        查询: <input type="text" id="con_startTime" class="laydate-icon" />
811
+                                        	查询: <input type="text" id="con_startTime" class="laydate-icon" />
790 812
                                         &nbsp;——&nbsp;
791 813
                                         <input type="text" id="con_endTime" class="laydate-icon" />
792 814
                                     </span>
@@ -797,7 +819,7 @@
797 819
                                     <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
798 820
                                         <thead>
799 821
                                             <tr>
800
-                                                <th data-field="F_WorkOrderId" data-align="center">工单编号</th>
822
+                                                <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
801 823
                                                 <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
802 824
                                                 <th data-field="SourceName" data-align="center">工单来源</th>
803 825
                                                 <th data-field="TypeName" data-align="center">工单类型</th>

+ 59 - 7
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -1,5 +1,25 @@
1
-
1
+var typeSmall;
2 2
 $(document).ready(function () {
3
+	$.ajax({
4
+		type: "get",
5
+		url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
6
+		dataType: 'json',
7
+		async: false,
8
+		data: {
9
+			token: $.cookie("token")
10
+		},
11
+		success: function(data) {
12
+			if(data.state.toLowerCase() == 'success') {
13
+				if(data.data.groname == '思念组') {
14
+					$(".snRmove").remove();
15
+					$(".dkRmove").show();
16
+				} else {
17
+					$(".snRmove").show();
18
+					$(".dkRmove").remove();
19
+				}
20
+			}
21
+		}
22
+	});
3 23
     var groupcode = $('#groupcode', top.document).val();
4 24
     if (groupcode == 'SCZ') {
5 25
         $("#usedate").text("饮用日期:");
@@ -32,6 +52,8 @@ $(document).ready(function () {
32 52
 	getOrderType();
33 53
 	//投诉类型
34 54
 	complaintType();
55
+	//咨询类型
56
+	consultType();
35 57
 	//产品类别
36 58
 	getProductType();
37 59
 	
@@ -39,7 +61,7 @@ $(document).ready(function () {
39 61
     getAreaType();
40 62
 	//客诉专员
41 63
 	ComplaintVip();
42
-
64
+	
43 65
 	////编辑器配置 客服部
44 66
 	//KindEditor.ready(function(K) {
45 67
 	//	window.changeEditor = K.create('#feedBackCon'); //修改弹出框编辑器
@@ -50,6 +72,7 @@ $(document).ready(function () {
50 72
 	//})
51 73
 	//保存
52 74
 	$('.customerSubmit').click(function() {
75
+	    //alert(typeSmall);
53 76
 		saveCustomer();
54 77
 	})
55 78
 	if(id) {
@@ -77,12 +100,23 @@ $(document).ready(function () {
77 100
     })
78 101
 
79 102
     $(".orderType").change(function () {
103
+    	
80 104
         if ($(".orderType option:selected").text() != "投诉") {
105
+            $(".complainDiv2").show();
106
+            typeSmall =$(".complaintType2").val();
81 107
             $(".complainDiv").hide();
82 108
         } else {
109
+            $(".complainDiv2").hide();
83 110
             $(".complainDiv").show();
111
+            typeSmall =$(".complaintType1").val();
84 112
         }
85 113
     });
114
+    $(".complaintType2").change(function () {
115
+		typeSmall=$(".complaintType2").val();
116
+    });
117
+    $(".complaintType1").change(function () {
118
+		typeSmall=$(".complaintType1").val();
119
+    });
86 120
     //获取专员手机号
87 121
     $("#vipName").change(function () {
88 122
         $("#vipTel").val($("#vipName option:selected").attr("index"));
@@ -107,7 +141,7 @@ function getOrderType() {
107 141
 	});
108 142
 }
109 143
 
110
-//工单类型
144
+//投诉类型
111 145
 function complaintType() {
112 146
 	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
113 147
 		"token": $.cookie("token"),
@@ -116,7 +150,21 @@ function complaintType() {
116 150
 		result = $.parseJSON(result);
117 151
 		var Count = result.data;
118 152
 		$(Count).each(function(i, n) {
119
-			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
153
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType1"));
154
+		})
155
+		typeSmall=$(".complaintType1").val();
156
+	});
157
+}
158
+//咨询类型
159
+function consultType() {
160
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
161
+		"token": $.cookie("token"),
162
+		flag: "ZXLX"
163
+	}, function(result) {
164
+		result = $.parseJSON(result);
165
+		var Count = result.data;
166
+		$(Count).each(function(i, n) {
167
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType2"));
120 168
 		})
121 169
 	});
122 170
 }
@@ -282,20 +330,24 @@ function saveCustomer() {
282 330
 			userdate: $('.userDate').val(), //使用日期  userDate  
283 331
 			source: $('#DicValueList').val(), //工单来源
284 332
             type: $('.orderType').val(), //工单类型id
285
-			smalltype:$(".complaintType").val(), //投诉类型
333
+			smalltype:typeSmall, //投诉类型
286 334
 			area: $('#areaInps').val(), //区域
287 335
 			province: $('.inps2').val(), //省
288 336
 			city: $('.inps3').val(), //市
337
+			county:$('#county').val(), //区县
289 338
 			content:$('#content').val(), //事件描述     
290
-            vipid: $('#vipName').val(), //专员id     
339
+            vipid: $('#vipName').val(), //专员id
340
+            vipname:$('#vipNameDK').val(),
291 341
             vipphone: $('#vipTel').val(), //专员号码
292 342
             isback: $('input[name="sendBack"]:checked').val(),
343
+            remark:$('#remark').val(),
293 344
 			callid: $("#CallID").val()
294 345
 		},
295 346
 		success: function(data) {
296 347
 			if(data.state.toLowerCase() == 'success') {
297 348
 				
298 349
 				layer.msg("保存成功!");
350
+				debugger
299 351
 				window.location.reload()
300 352
 				$('.customerSubmit').attr("disabled", false);
301 353
 				$('.customerSubmit').text('保存');
@@ -319,7 +371,7 @@ function clear() {
319 371
     $('#productType').val(''); //备注三    
320 372
     $('#batchNumber').val('');
321 373
     $('.userDate').val('');
322
-    $('.complaintType').val('');
374
+    $('.smalltype').val('');
323 375
     $('.inps2').val('');
324 376
     $('.inps3').val('');
325 377
     $('#content').val('');

+ 7 - 3
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -337,11 +337,13 @@ function xq() {
337 337
 				$("#productType").text(data.ProductTypeName); //产品类别
338 338
 				$("#batchNumber").text(data.F_BatchNumber); //生产批号
339 339
 				$("#userDate").text(data.F_UserDate); //使用日期
340
+				$('#county').text(data.F_County); //区县 
340 341
 				$("#F_complaint").text(data.SmallTypeName); //投诉类型
341 342
 				$("#areaName").text(data.F_Area+"-"+data.F_Province+"-"+data.F_City); //区域
342 343
 				$("#VipName").text(data.F_VIPName); //专员姓名
343 344
 				$("#F_VipPhone").text(data.F_VIPPhone); //专员电话
344
-				$("#conTent").text(data.F_Content); //专员电话
345
+				$("#conTent").text(data.F_Content); //事件描述
346
+				$("#remark").text(data.F_Remark); //备注
345 347
 				if (data.F_DealCost=="0") {
346 348
 					$("#F_DealCost").text(""); //处理费用
347 349
 				}else{
@@ -625,12 +627,14 @@ function TK(val) {
625 627
 }
626 628
 function Remove(val, row) {
627 629
 	return '<div class="imgs RemoveC" ><a  onclick= TK("' + row.F_WorkOrderId 
628
-	+ '") >复制模板</a>&nbsp&nbsp<a  onclick= remove("' + val 
630
+	+ '") >复制模板</a>&nbsp&nbsp<a  onclick= TZ("' + row.F_WorkOrderId
631
+	+ '") >修改</a>&nbsp&nbsp<a  onclick= remove("' + val 
629 632
 	+ '") >删除</a></div>';
630 633
 }
631 634
 function Search(val, row) {
632 635
 	return '<div class="imgs RemoveC" ><a  onclick= TK("' + row.F_WorkOrderId 
633
-	+ '") >复制模板</a></div>';
636
+	+ '") >复制模板</a>&nbsp&nbsp<a  onclick= TZ("' + row.F_WorkOrderId
637
+	+ '") >修改</a></div>';
634 638
 }
635 639
 
636 640
 function remove(str, row) {

+ 20 - 17
CallCenterWeb.UI/js/WorkOrder/template.js

@@ -49,24 +49,27 @@ function XQ() {
49 49
 		success: function(result) {
50 50
 			if(result.data.data.length > 0) {
51 51
 				var data = result.data.data[0];
52
-				
53
-				$(".customerService").html(data.F_Area+","
54
-				+data.F_Province+","
55
-				+data.F_City+","
56
-				+data.F_CusName+","
57
-				+data.F_CusPhone+","
58
-				+data.F_BuyAddress+","
59
-				+data.F_ProductName+","
60
-				+data.F_Content+","
52
+				$(".customerService").html(data.F_Area+"," //区域
53
+				+data.F_Province+"," //省
54
+				+data.F_City+","  //市
55
+				+data.F_CusName+"," //客户
56
+				+data.F_CusPhone+"," //电话
57
+				+data.F_BuyAddress+"," //购买地址
58
+				+data.ProductTypeName+"," //产品类别
59
+				+data.F_ProductName+"," //产品名称
60
+				+data.F_Content+","   //投诉事件描述
61 61
 				);
62
-				$(".market").html(data.F_Area+","
63
-				+data.F_Province+","
64
-				+data.F_City+","
65
-				+data.F_CusName+","
66
-				+data.F_CusPhone+","
67
-				+data.F_BuyAddress+","
68
-				+data.F_ProductName+","
69
-				+data.F_Content+","
62
+//				                   
63
+				$(".market").html(data.F_Area+","  //区域
64
+				+data.F_Province+","  //省
65
+				+data.F_City+","   //市
66
+				+data.F_County+","  //县区
67
+				+data.F_CusName+","  //客户
68
+				+data.F_CusPhone+","  //电话
69
+				+data.F_BuyAddress+"," //购买地点
70
+				+data.ProductTypeName+"," //产品类别
71
+				+data.F_ProductName+"," //产品名称
72
+				+data.F_Content+"," //投诉事件描述
70 73
 				);
71 74
 				
72 75
 			}

+ 83 - 29
CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -1,6 +1,26 @@
1
-
1
+var typeSmall;
2 2
 var id = helper.request.queryString("id");
3 3
 $(document).ready(function () {
4
+	$.ajax({
5
+		type: "get",
6
+		url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
7
+		dataType: 'json',
8
+		async: false,
9
+		data: {
10
+			token: $.cookie("token")
11
+		},
12
+		success: function(data) {
13
+			if(data.state.toLowerCase() == 'success') {
14
+				if(data.data.groname == '思念组') {
15
+					$(".snRmove").remove();
16
+					$(".dkRmove").show();
17
+				} else {
18
+					$(".snRmove").show();
19
+					$(".dkRmove").remove();
20
+				}
21
+			}
22
+		}
23
+	});
4 24
     var groupcode = $('#groupcode', top.document).val();
5 25
     if (groupcode == 'SCZ') {
6 26
         $("#usedate").text("饮用日期:");
@@ -31,6 +51,8 @@ $(document).ready(function () {
31 51
     getOrderType();
32 52
     //投诉类型
33 53
     complaintType();
54
+    //咨询类型
55
+	consultType();
34 56
     //产品类别
35 57
     getProductType();
36 58
 
@@ -40,6 +62,8 @@ $(document).ready(function () {
40 62
     ComplaintVip();
41 63
     //保存
42 64
     $('.customerSubmit').click(function() {
65
+    	
66
+	    
43 67
         saveCustomer();
44 68
     });
45 69
 
@@ -65,7 +89,9 @@ $(document).ready(function () {
65 89
                 $('.buyDate').val(data.F_BuyDate); //购买日期
66 90
                 $('.orderType').val(data.F_Type + ''); //工单类型ID
67 91
                 $('.orderType').trigger("change");
68
-                $('.complaintType').val(data.F_SmallType + '');
92
+                $('.complaintType').val(data.F_SmallType);
93
+                $('.complaintType1').val(data.F_SmallType);
94
+                $('.complaintType2').val(data.F_SmallType);
69 95
                 $('#productname').val(data.F_ProductName); //产品名称 
70 96
                 $('#buyAddress').val(data.F_BuyAddress); //购买地址   data.
71 97
                 $('#productType').val(data.F_ProductType + ''); //产品类别ID   
@@ -76,15 +102,32 @@ $(document).ready(function () {
76 102
                 $('#typeclass').val(data.F_Province + "/" + data.F_City); //区域  
77 103
                 $('.inps2').val(data.F_Province); //省   
78 104
                 $('.inps3').val(data.F_City); //市 
79
-                $('#content').val(data.F_Content); //事件描述     
80
-                $('#vipName').val(data.F_VIPId+''); //专员姓名    
105
+                $('#county').val(data.F_County); //区县 
106
+                $('#content').val(data.F_Content); //事件描述
107
+                $('#remark').val(data.F_Remark); //备注     
108
+                $('#vipName').val(data.F_VIPId); //专员姓名    
109
+                $('#vipNameDK').val(data.F_VIPName);
81 110
                 $('#vipTel').val(data.F_VIPPhone); //专员号码       
82
-
83 111
                 $("input[name='sendBack'][value='" + data.F_IsBack+"']").attr("checked", true); 
112
+                if ($(".orderType option:selected").text() != "投诉") {
113
+		            $(".complainDiv2").show();
114
+		            $(".complainDiv").hide();
115
+		            typeSmall =$(".complaintType2").val();
116
+		        } else {
117
+		            $(".complainDiv2").hide();
118
+		            $(".complainDiv").show();
119
+		            typeSmall =$(".complaintType1").val();
120
+		        }
121
+                
84 122
             }
85 123
         }
86 124
     });
87
-
125
+	$(".complaintType2").change(function () {
126
+		typeSmall=$(".complaintType2").val();
127
+    });
128
+    $(".complaintType1").change(function () {
129
+		typeSmall=$(".complaintType1").val();
130
+    });
88 131
     $('.areaDown').click(function() {
89 132
         if ($('.treeList1').css('display') == 'block') {
90 133
             $('.treeList1').css('display', 'none')
@@ -99,13 +142,7 @@ $(document).ready(function () {
99 142
         $(this).css('display', 'none')
100 143
     })
101 144
 
102
-    $(".orderType").change(function() {
103
-        if ($(".orderType option:selected").text() != "投诉") {
104
-            $(".complainDiv").hide();
105
-        } else {
106
-            $(".complainDiv").show();
107
-        }
108
-    });
145
+
109 146
     //获取专员手机号
110 147
     $("#vipName").change(function() {
111 148
         $("#vipTel").val($("#vipName option:selected").attr("index"));
@@ -132,18 +169,32 @@ function getOrderType() {
132 169
     });
133 170
 }
134 171
 
135
-//工单类型
172
+//投诉类型
136 173
 function complaintType() {
137
-    $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
138
-        "token": $.cookie("token"),
139
-        flag: "TSLX"
140
-    }, function(result) {
141
-        result = $.parseJSON(result);
142
-        var Count = result.data;
143
-        $(Count).each(function(i, n) {
144
-            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
145
-        })
146
-    });
174
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
175
+		"token": $.cookie("token"),
176
+		flag: "TSLX"
177
+	}, function(result) {
178
+		result = $.parseJSON(result);
179
+		var Count = result.data;
180
+		$(Count).each(function(i, n) {
181
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType1"));
182
+		})
183
+		
184
+	});
185
+}
186
+//咨询类型
187
+function consultType() {
188
+	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
189
+		"token": $.cookie("token"),
190
+		flag: "ZXLX"
191
+	}, function(result) {
192
+		result = $.parseJSON(result);
193
+		var Count = result.data;
194
+		$(Count).each(function(i, n) {
195
+			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType2"));
196
+		})
197
+	});
147 198
 }
148 199
 //产品类别
149 200
 function getProductType() {
@@ -308,18 +359,22 @@ function saveCustomer() {
308 359
             userdate: $('.userDate').val(), //使用日期  userDate  
309 360
             source: $('#DicValueList').val(), //工单来源
310 361
             type: $('.orderType').val(), //工单类型id
311
-            smalltype: $(".complaintType").val(), //投诉类型
362
+            smalltype: typeSmall, //投诉类型
312 363
             area: $('#areaInps').val(), //区域
313 364
             province: $('.inps2').val(), //省
314 365
             city: $('.inps3').val(), //市
315
-            content: $('#content').val(), //事件描述     
316
-            vipid: $('#vipName').val(), //专员id     
366
+            county:$('#county').val(), //区县
367
+            content: $('#content').val(), //事件描述
368
+            remark: $('#remark').val(), //备注
369
+            vipid: $('#vipName').val(), //专员id  
370
+            vipname:$('#vipNameDK').val(),
317 371
             vipphone: $('#vipTel').val(), //专员号码     
318 372
             isback: $('input[name="sendBack"]:checked').val(),
319 373
             callid: $("#CallID").val()
320 374
         },
321 375
         success: function(data) {
322 376
             if (data.state.toLowerCase() == 'success') {
377
+            	debugger
323 378
                 $('.customerSubmit').attr("disabled", false);
324 379
 	            $('.customerSubmit').text('保存');
325 380
             	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
@@ -327,8 +382,7 @@ function saveCustomer() {
327 382
 				parent.layer.msg("保存成功!");
328 383
 				parent.$('#workorderlist').bootstrapTable('refresh');
329 384
 				parent.$('#workorderlist_').bootstrapTable('refresh');
330
-				
331
-
385
+				parent.$('#orderlist').bootstrapTable('refresh');
332 386
             }
333 387
         }
334 388
     });