|
|
@@ -93,8 +93,9 @@ $(document).ready(function () {
|
|
93
|
93
|
$("#source option:selected").text(data.split("-")[0]); // 工单-省
|
|
94
|
94
|
$("#source option:selected").val(data.split("-")[0]); // 工单-省
|
|
95
|
95
|
$("#type option:selected").text(data.split("-")[1]); //工单-市
|
|
96
|
|
- $("#type option:selected").val(data.split("-")[1]); //工单-市
|
|
97
|
|
- }
|
|
|
96
|
+ $("#type option:selected").val(data.split("-")[1]); //工单-市
|
|
|
97
|
+ cityGetCounty(data.split("-")[1]);
|
|
|
98
|
+ }
|
|
98
|
99
|
}
|
|
99
|
100
|
})
|
|
100
|
101
|
//获取客户信息
|
|
|
@@ -715,7 +716,12 @@ function LAISHI(obj) {
|
|
715
|
716
|
|
|
716
|
717
|
})
|
|
717
|
718
|
}
|
|
718
|
|
-// 区/县
|
|
|
719
|
+
|
|
|
720
|
+/*
|
|
|
721
|
+ 获取区/县
|
|
|
722
|
+ parameter:
|
|
|
723
|
+ pid int
|
|
|
724
|
+*/
|
|
719
|
725
|
function LAIQU() {
|
|
720
|
726
|
$("#keyidDataList").empty();
|
|
721
|
727
|
$("#keyidDataList").append('<option value="请选择"></option>');
|
|
|
@@ -732,6 +738,27 @@ function LAIQU() {
|
|
732
|
738
|
})
|
|
733
|
739
|
}
|
|
734
|
740
|
|
|
|
741
|
+/*
|
|
|
742
|
+ 获取区/县
|
|
|
743
|
+ parameter:
|
|
|
744
|
+ city string
|
|
|
745
|
+*/
|
|
|
746
|
+function cityGetCounty(city) {
|
|
|
747
|
+ $("#keyidDataList").empty();
|
|
|
748
|
+ $("#keyidDataList").append('<option value="请选择"></option>');
|
|
|
749
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetCounty", {
|
|
|
750
|
+ "token": $.cookie("token"),
|
|
|
751
|
+ city: city,
|
|
|
752
|
+ }, function (data) {
|
|
|
753
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
754
|
+ var content = data.data;
|
|
|
755
|
+ $(content).each(function (i, n) {
|
|
|
756
|
+ $("#keyidDataList").append('<option value="'+ n.F_RegionName + '">');
|
|
|
757
|
+ })
|
|
|
758
|
+ }
|
|
|
759
|
+ })
|
|
|
760
|
+}
|
|
|
761
|
+
|
|
735
|
762
|
$('#source').on('change',function(){
|
|
736
|
763
|
LAISHI($("#type"));
|
|
737
|
764
|
});
|