|
|
@@ -411,7 +411,7 @@ function getRY(obj, deptid) {
|
|
411
|
411
|
}
|
|
412
|
412
|
|
|
413
|
413
|
function Appoint(val, row) {
|
|
414
|
|
- return czhtml(val, row, "处理");
|
|
|
414
|
+ return czhtml(val, row, "处理","删除");
|
|
415
|
415
|
}
|
|
416
|
416
|
|
|
417
|
417
|
function Dispose(val, row) {
|
|
|
@@ -430,8 +430,9 @@ function Comment(val, row) {
|
|
430
|
430
|
return czhtmls(val, row, "评论");
|
|
431
|
431
|
}
|
|
432
|
432
|
|
|
433
|
|
-function czhtml(val, row, str) {
|
|
434
|
|
- return '<div class="imgs" ><a class="xg" itemstr=\'' + JSON.stringify(row) + '\' onclick= oper("' + val + '",this) >' + str + '</a></div>';
|
|
|
433
|
+function czhtml(val, row, str,strs) {
|
|
|
434
|
+ return '<div class="imgs" ><a class="xg" itemstr=\'' + JSON.stringify(row) + '\' onclick= oper("' + val + '",this) >' + str + '</a></div>'+
|
|
|
435
|
+ '<div class="imgs" ><a class="xg" itemstr=\'' + JSON.stringify(row) + '\' onclick= deleteOrder("' + row.ID + '",this) >' + strs + '</a></div>';
|
|
435
|
436
|
}
|
|
436
|
437
|
|
|
437
|
438
|
function czhtmls(val, row, str) {
|
|
|
@@ -447,6 +448,28 @@ function oper(val, obj) {
|
|
447
|
448
|
})
|
|
448
|
449
|
|
|
449
|
450
|
}
|
|
|
451
|
+//删除
|
|
|
452
|
+function deleteOrder(val,obj) {
|
|
|
453
|
+ layer.confirm('您确定要删除吗?', {
|
|
|
454
|
+ btn: ['是', '否'] //按钮
|
|
|
455
|
+ }, function() {
|
|
|
456
|
+ /*发送请求*/
|
|
|
457
|
+ $.ajax({
|
|
|
458
|
+ type: "post",
|
|
|
459
|
+ url: huayi.config.callcenter_url + "WorkOrder/DelWorkOrder",
|
|
|
460
|
+ dataType: 'json',
|
|
|
461
|
+ data: {
|
|
|
462
|
+ id: val,
|
|
|
463
|
+ token: $.cookie("token")
|
|
|
464
|
+ },
|
|
|
465
|
+ async: true,
|
|
|
466
|
+ success: function(data) {
|
|
|
467
|
+ layer.msg("删除成功");
|
|
|
468
|
+ initTable();
|
|
|
469
|
+ }
|
|
|
470
|
+ });
|
|
|
471
|
+ });
|
|
|
472
|
+}
|
|
450
|
473
|
//导出pdf
|
|
451
|
474
|
function export2pdf(wid) {
|
|
452
|
475
|
layer.open({
|