|
|
@@ -651,6 +651,7 @@ function Ajax() {
|
|
651
|
651
|
}
|
|
652
|
652
|
//返回列表
|
|
653
|
653
|
$('.return').on('tap', function() {
|
|
|
654
|
+
|
|
654
|
655
|
if (csstate) {
|
|
655
|
656
|
window.location.href = "recive_index.html"
|
|
656
|
657
|
}else if(searchSate) {
|
|
|
@@ -849,12 +850,12 @@ function flow(lineState) {
|
|
849
|
850
|
//转派弹框
|
|
850
|
851
|
$(".allot").click(function() {
|
|
851
|
852
|
var areaID = $("#Work_areaname").attr('data-index')
|
|
852
|
|
- window.location.href = "redeploy.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID;
|
|
|
853
|
+ window.location.href = "redeploy.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID + '&stateNum=' + helper.request.queryString("orderState");
|
|
853
|
854
|
})
|
|
854
|
855
|
// 处理提单框
|
|
855
|
856
|
$(".disp").click(function() {
|
|
856
|
857
|
var areaID = $("#Work_areaname").attr('data-index')
|
|
857
|
|
- window.location.href = "dispose.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID;
|
|
|
858
|
+ window.location.href = "dispose.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID + '&stateNum=' + helper.request.queryString("orderState");
|
|
858
|
859
|
})
|
|
859
|
860
|
//评论工单
|
|
860
|
861
|
$(".comment").click(function() {
|
|
|
@@ -892,7 +893,7 @@ $(".evaluate").click(function() {
|
|
892
|
893
|
success: function(data) {
|
|
893
|
894
|
if (data.state == "success") {
|
|
894
|
895
|
mui.toast('评论成功');
|
|
895
|
|
- window.location.href = "details.html?id=" + id + '&itype=' + itype;
|
|
|
896
|
+ window.location.href = "details.html?id=" + id + '&itype=' + itype+ '&orderState=' + helper.request.queryString("orderState");
|
|
896
|
897
|
} else {
|
|
897
|
898
|
mui.toast(data.message);
|
|
898
|
899
|
}
|
|
|
@@ -901,127 +902,8 @@ $(".evaluate").click(function() {
|
|
901
|
902
|
}
|
|
902
|
903
|
})
|
|
903
|
904
|
//完结
|
|
904
|
|
-$(".finsh").click(function() {
|
|
905
|
|
- $(".pop_up_bj").fadeIn();
|
|
906
|
|
- $(".pop_up_div2").fadeIn();
|
|
907
|
|
-})
|
|
908
|
|
-$(".pop_up_bj").click(function() {
|
|
909
|
|
- $(".pop_up_bj").hide();
|
|
910
|
|
- $(".pop_up_div2").hide();
|
|
911
|
|
-})
|
|
912
|
|
-$(".pop_up_div2 .btn .fl").click(function() {
|
|
913
|
|
- $(".pop_up_bj").hide();
|
|
914
|
|
- $(".pop_up_div2").hide();
|
|
915
|
|
- mui.alert("取消");
|
|
916
|
|
-})
|
|
917
|
|
-$(".pop_up_div2 .btn .fr").click(function() {
|
|
918
|
|
- $("#finsh_cont").text("");
|
|
919
|
|
- $(".pop_up_bj").hide();
|
|
920
|
|
- $(".pop_up_div2").hide();
|
|
921
|
|
- if ($(".textcont").val() == "") {
|
|
922
|
|
- mui.alert("请输入完结内容");
|
|
923
|
|
- } else {
|
|
924
|
|
- $(".pop_up_bj").hide();
|
|
925
|
|
- $(".pop_up_div2").hide();
|
|
926
|
|
- $.ajax({
|
|
927
|
|
- type: "post",
|
|
928
|
|
- dataType: 'json',
|
|
929
|
|
- url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
|
|
930
|
|
- async: true,
|
|
931
|
|
- data: {
|
|
932
|
|
- orderid: id, //否 strubg 工单编号
|
|
933
|
|
- isend: 1, //否 int 你看一下前端是什么参数
|
|
934
|
|
- cont: $("#finsh_cont").val(), //否 int 处理内容
|
|
935
|
|
- openid: openid, //微信openid,
|
|
936
|
|
- },
|
|
937
|
|
- success: function(data) {
|
|
938
|
|
- if (data.state == "success") {
|
|
939
|
|
- mui.toast('处理成功');
|
|
940
|
|
- window.location.href = "client_index.html?id=" + id + '&itype=' + itype;
|
|
941
|
|
- } else {
|
|
942
|
|
- mui.toast(data.message);
|
|
943
|
|
- }
|
|
944
|
|
- }
|
|
945
|
|
- });
|
|
946
|
|
- }
|
|
947
|
|
-
|
|
948
|
|
-})
|
|
949
|
905
|
//处理
|
|
950
|
|
-$(".deal").click(function() {
|
|
951
|
|
- $(".pop_up_bj").fadeIn();
|
|
952
|
|
- $(".pop_up_div4").fadeIn();
|
|
953
|
|
-})
|
|
954
|
|
-$(".pop_up_bj").click(function() {
|
|
955
|
|
- $(".pop_up_bj").hide();
|
|
956
|
|
- $(".pop_up_div4").hide();
|
|
957
|
|
-})
|
|
958
|
|
-$(".pop_up_div4 .btn .fl").click(function() {
|
|
959
|
|
- $(".pop_up_bj").hide();
|
|
960
|
|
- $(".pop_up_div4").hide();
|
|
961
|
|
- mui.alert("取消");
|
|
962
|
|
-})
|
|
963
|
|
-$(".pop_up_div4 .btn .fr").click(function() {
|
|
964
|
|
- // $("#cont").text("");
|
|
965
|
|
- $(".pop_up_bj").hide();
|
|
966
|
|
- $(".pop_up_div4").hide();
|
|
967
|
|
- if ($(".textcont_deal").val() == "") {
|
|
968
|
|
- mui.alert("请输入处理内容");
|
|
969
|
|
- } else {
|
|
970
|
|
- $(".pop_up_bj").hide();
|
|
971
|
|
- $(".pop_up_div4").hide();
|
|
972
|
|
- $.ajax({
|
|
973
|
|
- type: "post",
|
|
974
|
|
- dataType: 'json',
|
|
975
|
|
- url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
|
|
976
|
|
- async: true,
|
|
977
|
|
- data: {
|
|
978
|
|
- orderid: id, //否 strubg 工单编号
|
|
979
|
|
- isend: itype, //否 int 你看一下前端是什么参数
|
|
980
|
|
- cont: $("#textcont_deal").val(), //否 int 处理内容
|
|
981
|
|
- Openid: openid, //微信openid,
|
|
982
|
|
- },
|
|
983
|
|
- success: function(data) {
|
|
984
|
|
- if (data.state == "success") {
|
|
985
|
|
- mui.toast('处理成功');
|
|
986
|
|
- window.location.href = "pend_index.html?id=" + id + '&itype=' + itype;
|
|
987
|
|
- } else {
|
|
988
|
|
- mui.toast(data.message);
|
|
989
|
|
- }
|
|
990
|
|
- }
|
|
991
|
|
- });
|
|
992
|
|
- }
|
|
993
|
|
-
|
|
994
|
|
-})
|
|
995
|
|
-
|
|
996
|
906
|
//回复
|
|
997
|
|
-$(".btn_reply").click(function() {
|
|
998
|
|
- var btnArray = ['取消', '确定'];
|
|
999
|
|
- mui.confirm('确定回复?', '提示', btnArray, function(f) {
|
|
1000
|
|
- if (f.index == 1) {
|
|
1001
|
|
- $.ajax({
|
|
1002
|
|
- type: "post",
|
|
1003
|
|
- dataType: 'json',
|
|
1004
|
|
- url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
|
|
1005
|
|
- async: true,
|
|
1006
|
|
- data: {
|
|
1007
|
|
- openid: openid, // 是 strubg openid
|
|
1008
|
|
- orderid: id // 是 string 工单号码
|
|
1009
|
|
- },
|
|
1010
|
|
- success: function(data) {
|
|
1011
|
|
- if (data.state == "success") {
|
|
1012
|
|
- mui.toast('操作成功');
|
|
1013
|
|
- window.location.href = "client_index.html?id=" + id + '&itype=' +
|
|
1014
|
|
- itype;
|
|
1015
|
|
- } else {
|
|
1016
|
|
- mui.toast(data.message);
|
|
1017
|
|
- }
|
|
1018
|
|
- }
|
|
1019
|
|
- });
|
|
1020
|
|
- } else {
|
|
1021
|
|
- mui.toast("取消操作");
|
|
1022
|
|
- }
|
|
1023
|
|
- })
|
|
1024
|
|
-});
|
|
1025
|
907
|
//撤回
|
|
1026
|
908
|
$(".returnBack").click(function() {
|
|
1027
|
909
|
$(".returnO").fadeIn();
|
|
|
@@ -1064,6 +946,8 @@ function revokeWo(data) {
|
|
1064
|
946
|
success: function(data) {
|
|
1065
|
947
|
if (data.state == "success") {
|
|
1066
|
948
|
mui.toast('撤回成功');
|
|
|
949
|
+ $(".pop_up_bj").hide();
|
|
|
950
|
+ $(".returnO").hide();
|
|
1067
|
951
|
// window.location.href = 'Waiting_list.html'
|
|
1068
|
952
|
window.location.href = "details.html?id=" + id + '&itype=' + itype +
|
|
1069
|
953
|
'&orderState=' + helper.request.queryString("orderState");
|
|
|
@@ -1079,13 +963,14 @@ $(".copy").click(function() {
|
|
1079
|
963
|
'&cusname='+encodeURI(cusname)+'&createby='+encodeURI(createby)+
|
|
1080
|
964
|
'&createtel='+encodeURI(createtel)+'&State='+State+'&searchSate='+1 +
|
|
1081
|
965
|
'&description='+encodeURI(description)+'&ordertype='+ordertype+'&workOrderid='+workOrderid+'&sc_Chanp='+encodeURI(sc_Chanp)+
|
|
1082
|
|
- '&question=' +encodeURI(question)+'&question1=' +encodeURI(question1)+ '&question2=' +encodeURI(question2);
|
|
|
966
|
+ '&question=' +encodeURI(question)+'&question1=' +encodeURI(question1)+ '&question2=' +encodeURI(question2) + '&stateNum=' + helper.request.queryString("orderState");
|
|
1083
|
967
|
}else{
|
|
1084
|
|
- window.location.href = "reciveOrder.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID;
|
|
|
968
|
+ window.location.href = "reciveOrder.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID + '&stateNum=' + helper.request.queryString("orderState");;
|
|
1085
|
969
|
}
|
|
1086
|
970
|
})
|
|
1087
|
971
|
//接单
|
|
1088
|
972
|
$(".rece").click(function() {
|
|
|
973
|
+ console.log(111)
|
|
1089
|
974
|
var btnArray;
|
|
1090
|
975
|
let data = {
|
|
1091
|
976
|
orderid: id, //否 strubg 工单编号
|
|
|
@@ -1158,6 +1043,12 @@ $(".pop_up_div9 .btn .fr").click(function() {
|
|
1158
|
1043
|
dataType: 'json',
|
|
1159
|
1044
|
url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
|
|
1160
|
1045
|
async: true,
|
|
|
1046
|
+ beforeSend: function() {
|
|
|
1047
|
+ // 禁用按钮防止重复提交
|
|
|
1048
|
+ $(".pop_up_div11 .btn .fr").attr({
|
|
|
1049
|
+ disabled: "disabled"
|
|
|
1050
|
+ });
|
|
|
1051
|
+ },
|
|
1161
|
1052
|
data: {
|
|
1162
|
1053
|
orderid: id, //否 strubg 工单编号
|
|
1163
|
1054
|
OpenId: openid,
|
|
|
@@ -1201,6 +1092,12 @@ $(".pop_up_div10 .btn .fr").click(function() {
|
|
1201
|
1092
|
dataType: 'json',
|
|
1202
|
1093
|
url: huayi.config.callcenter_url + 'WxLogin/HigApprovalOrder',
|
|
1203
|
1094
|
async: true,
|
|
|
1095
|
+ beforeSend: function() {
|
|
|
1096
|
+ // 禁用按钮防止重复提交
|
|
|
1097
|
+ $(".pop_up_div10 .btn .fr").attr({
|
|
|
1098
|
+ disabled: "disabled"
|
|
|
1099
|
+ });
|
|
|
1100
|
+ },
|
|
1204
|
1101
|
data: {
|
|
1205
|
1102
|
orderid: id, //否 strubg 工单编号
|
|
1206
|
1103
|
OpenId: openid,
|
|
|
@@ -1233,14 +1130,11 @@ $(".pop_up_div11 .btn .fl").click(function() {
|
|
1233
|
1130
|
$(".pop_up_div11").hide();
|
|
1234
|
1131
|
})
|
|
1235
|
1132
|
$(".pop_up_div11 .btn .fr").click(function() {
|
|
1236
|
|
- // $("#cont").text("");
|
|
1237
|
1133
|
$(".pop_up_bj").hide();
|
|
1238
|
1134
|
$(".pop_up_div11").hide();
|
|
1239
|
1135
|
if ($(".noteReaa").val() == "") {
|
|
1240
|
1136
|
mui.alert("请输入注解意见");
|
|
1241
|
1137
|
} else {
|
|
1242
|
|
- $(".pop_up_bj").hide();
|
|
1243
|
|
- $(".pop_up_div11").hide();
|
|
1244
|
1138
|
$.ajax({
|
|
1245
|
1139
|
type: "get",
|
|
1246
|
1140
|
dataType: 'json',
|
|
|
@@ -1320,24 +1214,30 @@ $(".pop_up_div7 .btn .fr").click(function() {
|
|
1320
|
1214
|
if (inoutflag == 1) {
|
|
1321
|
1215
|
mui.confirm('退回内线还是外线', '提示', btnArray, function(f) {
|
|
1322
|
1216
|
if (f.index == 1) {
|
|
1323
|
|
- backWorkOrder(0, 1)
|
|
|
1217
|
+ backWorkOrder($('.pop_up_div7 .btn .fr'),0, 1)
|
|
1324
|
1218
|
} else {
|
|
1325
|
|
- backWorkOrder(0, 2)
|
|
|
1219
|
+ backWorkOrder($('.pop_up_div7 .btn .fr'),0, 2)
|
|
1326
|
1220
|
}
|
|
1327
|
1221
|
})
|
|
1328
|
1222
|
} else {
|
|
1329
|
|
- backWorkOrder(0, '')
|
|
|
1223
|
+ backWorkOrder($('.pop_up_div7 .btn .fr'),0, '')
|
|
1330
|
1224
|
}
|
|
1331
|
1225
|
}
|
|
1332
|
1226
|
|
|
1333
|
1227
|
})
|
|
1334
|
1228
|
|
|
1335
|
|
-function backWorkOrder(type, inoutflag) {
|
|
|
1229
|
+function backWorkOrder(obj,type, inoutflag) {
|
|
1336
|
1230
|
$.ajax({
|
|
1337
|
1231
|
type: "get",
|
|
1338
|
1232
|
dataType: 'json',
|
|
1339
|
1233
|
url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
|
|
1340
|
1234
|
async: true,
|
|
|
1235
|
+ beforeSend: function() {
|
|
|
1236
|
+ // 禁用按钮防止重复提交
|
|
|
1237
|
+ obj.attr({
|
|
|
1238
|
+ disabled: "disabled"
|
|
|
1239
|
+ });
|
|
|
1240
|
+ },
|
|
1341
|
1241
|
data: {
|
|
1342
|
1242
|
orderid: id, //否 strubg 工单编号
|
|
1343
|
1243
|
type: type, // 0是退回 1 是异常退回
|
|
|
@@ -1369,7 +1269,6 @@ $(".pop_up_div8 .btn .fl").click(function() {
|
|
1369
|
1269
|
$(".pop_up_div8").hide();
|
|
1370
|
1270
|
})
|
|
1371
|
1271
|
$(".pop_up_div8 .btn .fr").click(function() {
|
|
1372
|
|
- // $("#cont").text("");
|
|
1373
|
1272
|
$(".pop_up_bj").hide();
|
|
1374
|
1273
|
$(".pop_up_div8").hide();
|
|
1375
|
1274
|
if ($(".reas").val() == "") {
|
|
|
@@ -1382,6 +1281,12 @@ $(".pop_up_div8 .btn .fr").click(function() {
|
|
1382
|
1281
|
dataType: 'json',
|
|
1383
|
1282
|
url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
|
|
1384
|
1283
|
async: true,
|
|
|
1284
|
+ beforeSend: function() {
|
|
|
1285
|
+ // 禁用按钮防止重复提交
|
|
|
1286
|
+ $(".pop_up_div8 .btn .fr").attr({
|
|
|
1287
|
+ disabled: "disabled"
|
|
|
1288
|
+ });
|
|
|
1289
|
+ },
|
|
1385
|
1290
|
data: {
|
|
1386
|
1291
|
orderid: id, //否 strubg 工单编号
|
|
1387
|
1292
|
// type: 0, //否 int 你看一下前端是什么参数 reas
|
|
|
@@ -1429,13 +1334,13 @@ $(".pop_up_div6 .btn .fr").click(function() {
|
|
1429
|
1334
|
if (inoutflag == 1) {
|
|
1430
|
1335
|
mui.confirm('异常退回内线还是外线', '提示', btnArray, function(f) {
|
|
1431
|
1336
|
if (f.index == 1) {
|
|
1432
|
|
- backWorkOrder(1, 1)
|
|
|
1337
|
+ backWorkOrder($('.pop_up_div6 .btn .fr'),1, 1)
|
|
1433
|
1338
|
} else {
|
|
1434
|
|
- backWorkOrder(1, 2)
|
|
|
1339
|
+ backWorkOrder($('.pop_up_div6 .btn .fr'),1, 2)
|
|
1435
|
1340
|
}
|
|
1436
|
1341
|
})
|
|
1437
|
1342
|
} else {
|
|
1438
|
|
- backWorkOrder(1, '')
|
|
|
1343
|
+ backWorkOrder($('.pop_up_div6 .btn .fr'),1, '')
|
|
1439
|
1344
|
}
|
|
1440
|
1345
|
}
|
|
1441
|
1346
|
|