|
|
@@ -3,6 +3,7 @@
|
|
3
|
3
|
var Number = helper.request.queryString("Number");
|
|
4
|
4
|
var CallID = helper.request.queryString("CallID");
|
|
5
|
5
|
var callDirection = helper.request.queryString("callDirection");
|
|
|
6
|
+var unit,unitOffice,caseParty,CasePartyId;
|
|
6
|
7
|
$(document).ready(function () {
|
|
7
|
8
|
//获取省
|
|
8
|
9
|
getProvinceCounty($("#formProvince"), 0, "请选择省")
|
|
|
@@ -240,6 +241,7 @@ $(document).ready(function () {
|
|
240
|
241
|
typeSmall =$(".complaintType1").val();
|
|
241
|
242
|
}
|
|
242
|
243
|
});
|
|
|
244
|
+
|
|
243
|
245
|
$(".complaintType2").change(function () {
|
|
244
|
246
|
typeSmall=$(".complaintType2").val();
|
|
245
|
247
|
});
|
|
|
@@ -354,6 +356,19 @@ $(document).ready(function () {
|
|
354
|
356
|
return false;
|
|
355
|
357
|
}
|
|
356
|
358
|
});
|
|
|
359
|
+ $("#formRegistrationType").change(function () {
|
|
|
360
|
+ $('#formComplainedUnit').val('');
|
|
|
361
|
+ $('#formRegistrationContent').val('');
|
|
|
362
|
+ $('#formRegistrationRemark').val('');
|
|
|
363
|
+ $('#formComplainedUnitOffice').val('');
|
|
|
364
|
+ $('#formComplaintUndertaker').val('');
|
|
|
365
|
+ if($('#formRegistrationType input[name="type"]:checked').val() =="2"){
|
|
|
366
|
+ $(".complaintDIV").show()
|
|
|
367
|
+ } else{
|
|
|
368
|
+ $(".complaintDIV").hide()
|
|
|
369
|
+ }
|
|
|
370
|
+ });
|
|
|
371
|
+
|
|
357
|
372
|
});
|
|
358
|
373
|
|
|
359
|
374
|
|
|
|
@@ -471,12 +486,12 @@ function loadOld() {
|
|
471
|
486
|
});
|
|
472
|
487
|
} else if (type == '3') {
|
|
473
|
488
|
// window.onload = function () {
|
|
474
|
|
- // window.frames["relatedCasesFrames"].postMessage({mobile: 15512102563}, 'http://222.143.48.99:82')
|
|
475
|
|
- window.frames["relatedCasesFrames"].postMessage({mobile: Number}, 'http://222.143.48.99:82')
|
|
|
489
|
+ // window.frames["relatedCasesFrames"].postMessage({mobile: 15512102563}, 'http://10.1.200.47:82')
|
|
|
490
|
+ window.frames["relatedCasesFrames"].postMessage({mobile: Number}, 'http://10.1.200.47:82')
|
|
476
|
491
|
// }
|
|
477
|
492
|
} else if (type == '4') {
|
|
478
|
493
|
// window.onload = function () {
|
|
479
|
|
- window.frames["serviceDocumentFrames"].postMessage({mobile: Number}, 'http://222.143.48.99:82')
|
|
|
494
|
+ window.frames["serviceDocumentFrames"].postMessage({mobile: Number}, 'http://10.1.200.47:82')
|
|
480
|
495
|
// }
|
|
481
|
496
|
}
|
|
482
|
497
|
}
|
|
|
@@ -674,24 +689,39 @@ function Clean() {
|
|
674
|
689
|
|
|
675
|
690
|
//保存
|
|
676
|
691
|
function saveCustomer() {
|
|
677
|
|
- if (!$("#formComplainedUnit").val()) {
|
|
678
|
|
- layer.confirm('请选择被投诉单位!', {
|
|
679
|
|
- btn: ['确定']
|
|
680
|
|
- });
|
|
681
|
|
- return;
|
|
682
|
|
- }
|
|
683
|
|
- if (!$("#formComplainedUnitOffice").val()) {
|
|
684
|
|
- layer.confirm('请选择被投诉单位所属办事处!', {
|
|
685
|
|
- btn: ['确定']
|
|
686
|
|
- });
|
|
687
|
|
- return;
|
|
688
|
|
- }
|
|
689
|
|
- if (!$("#formComplaintUndertaker").val()) {
|
|
690
|
|
- layer.confirm('请选择投诉案件承办人!', {
|
|
691
|
|
- btn: ['确定']
|
|
692
|
|
- });
|
|
693
|
|
- return;
|
|
694
|
|
- }
|
|
|
692
|
+ if($('#formRegistrationType input[name="type"]:checked').val() =="2"){
|
|
|
693
|
+ if (!$("#formComplainedUnit").val()) {
|
|
|
694
|
+
|
|
|
695
|
+ layer.confirm('请选择被投诉单位!', {
|
|
|
696
|
+ btn: ['确定']
|
|
|
697
|
+ });
|
|
|
698
|
+ $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
|
|
|
699
|
+ return;
|
|
|
700
|
+ }
|
|
|
701
|
+ if (!$("#formComplainedUnitOffice").val()) {
|
|
|
702
|
+ layer.confirm('请选择被投诉单位所属办事处!', {
|
|
|
703
|
+ btn: ['确定']
|
|
|
704
|
+ });
|
|
|
705
|
+ $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
|
|
|
706
|
+ return;
|
|
|
707
|
+ }
|
|
|
708
|
+ if (!$("#formComplaintUndertaker").val()) {
|
|
|
709
|
+ layer.confirm('请选择投诉案件承办人!', {
|
|
|
710
|
+ btn: ['确定']
|
|
|
711
|
+ });
|
|
|
712
|
+ $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
|
|
|
713
|
+ return;
|
|
|
714
|
+ }
|
|
|
715
|
+ unit = $("#formComplainedUnit").val()
|
|
|
716
|
+ unitOffice = $("#formComplainedUnitOffice").val()
|
|
|
717
|
+ caseParty = $("#formComplaintUndertaker option:selected").text()
|
|
|
718
|
+ CasePartyId =$("#formComplaintUndertaker").val()
|
|
|
719
|
+ }else{
|
|
|
720
|
+ unit = "0"
|
|
|
721
|
+ unitOffice = "0"
|
|
|
722
|
+ caseParty = "0"
|
|
|
723
|
+ CasePartyId ="0"
|
|
|
724
|
+ }
|
|
695
|
725
|
$.ajax({
|
|
696
|
726
|
type: "post",
|
|
697
|
727
|
url: huayi.config.callcenter_url + "RegRecords/Save",
|
|
|
@@ -704,7 +734,7 @@ function saveCustomer() {
|
|
704
|
734
|
data: {
|
|
705
|
735
|
token: $.cookie("token"),
|
|
706
|
736
|
cusid: $("#khid").val(), //档案id
|
|
707
|
|
- direction: callDirection, // 0来电,1去电
|
|
|
737
|
+ direction: 0, // 0来电,1去电
|
|
708
|
738
|
type: $('#formRegistrationType input[name="type"]:checked').val(), //登记类型
|
|
709
|
739
|
userName: $("#formName").val(), //姓名
|
|
710
|
740
|
userPhone: $("#formTel").val(), //电话
|
|
|
@@ -717,10 +747,10 @@ function saveCustomer() {
|
|
717
|
747
|
remark: $("#formRegistrationRemark").val(), //备注
|
|
718
|
748
|
tel: Number,
|
|
719
|
749
|
callid: CallID,
|
|
720
|
|
- unit: $("#formComplainedUnit").val(), //被投诉单位
|
|
721
|
|
- unitOffice: $("#formComplainedUnitOffice").val(), //单位办事处
|
|
722
|
|
- caseParty: $("#formComplaintUndertaker option:selected").text(), //投诉案件承办人
|
|
723
|
|
- CasePartyId: $("#formComplaintUndertaker").val(), //投诉案件承办人id
|
|
|
750
|
+ unit: unit, //被投诉单位
|
|
|
751
|
+ unitOffice: unitOffice, //单位办事处
|
|
|
752
|
+ caseParty: caseParty, //投诉案件承办人
|
|
|
753
|
+ CasePartyId: CasePartyId, //投诉案件承办人id
|
|
724
|
754
|
citizensType: $("#formCitizenClassification").val(), //市民分类
|
|
725
|
755
|
putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
|
|
726
|
756
|
zXZType: $.cookie("seatGroupName"), //坐席组类型
|
|
|
@@ -728,6 +758,7 @@ function saveCustomer() {
|
|
728
|
758
|
ProblemTypeB: $("#formQuestionType").val(), //二级问题类型B
|
|
729
|
759
|
},
|
|
730
|
760
|
success: function (data) {
|
|
|
761
|
+ debugger
|
|
731
|
762
|
if (data.state.toLowerCase() == 'success') {
|
|
732
|
763
|
layer.msg("保存成功!");
|
|
733
|
764
|
Clean();
|