|
|
@@ -238,15 +238,15 @@ function getWorkOrderDetails(oid) {
|
|
238
|
238
|
$("#lygon").val(data.F_SourceName); //工单来源
|
|
239
|
239
|
$('#gdbian').val(data.F_WorkOrderCode); // 工单编号
|
|
240
|
240
|
// 咨询模块
|
|
241
|
|
- $("#category option:selected").text(data.F_QuestionType); // 问题类别
|
|
242
|
|
- $("#category option:selected").val(data.F_QuestionType); //问题类别
|
|
|
241
|
+ // $("#category option:selected").text(data.F_QuestionType); // 问题类别
|
|
|
242
|
+ // $("#category option:selected").val(data.F_QuestionType); //问题类别
|
|
243
|
243
|
$("#ProductName option:selected").text(data.F_ZX_ProName); // 产品名称
|
|
244
|
244
|
$("#ProductName option:selected").val(data.F_ZX_ProName); //产品名称
|
|
245
|
245
|
$('#Product_Quantity').val(data.F_ZX_Quantity); //问题数量
|
|
246
|
246
|
$("#xiaoshou option:selected").text(data.F_SalesBase); // 销售基地
|
|
247
|
247
|
$("#xiaoshou option:selected").val(data.F_SalesBase); //销售基地
|
|
248
|
248
|
// 投诉模块
|
|
249
|
|
- $("#product_name option:selected").text(data.F_ZX_ProName); // 产品名称
|
|
|
249
|
+ // $("#product_name option:selected").text(data.F_ZX_ProName); // 产品名称
|
|
250
|
250
|
$("#product_name option:selected").val(data.F_ZX_ProName); // 产品名称
|
|
251
|
251
|
$('#quantity').val(data.F_TS_Quantity); //问题数量
|
|
252
|
252
|
$('#Batch_number').val(); //生产批次
|
|
|
@@ -258,11 +258,11 @@ function getWorkOrderDetails(oid) {
|
|
258
|
258
|
$("#cat option:selected").val(data.F_QuestionTypeone); // 问题类别1
|
|
259
|
259
|
$("#catego option:selected").text(data.F_QuestionTypetwo); // 问题类别2
|
|
260
|
260
|
$("#catego option:selected").val(data.F_QuestionTypetwo); // 问题类别2
|
|
261
|
|
- $("#cate option:selected").text(data.F_QuestionType); // 问题类别3
|
|
262
|
|
- $("#cate option:selected").val(data.F_QuestionType); // 问题类别3
|
|
|
261
|
+ // $("#cate option:selected").text(data.F_QuestionType); // 问题类别3
|
|
|
262
|
+ // $("#cate option:selected").val(data.F_QuestionType); // 问题类别3
|
|
263
|
263
|
// 抽检模块
|
|
264
|
|
- $("#chou_wtlb option:selected").text(data.F_QuestionType); // 问题类别
|
|
265
|
|
- $("#chou_wtlb option:selected").val(data.F_QuestionType); // 问题类别
|
|
|
264
|
+ // $("#chou_wtlb option:selected").text(data.F_QuestionType); // 问题类别
|
|
|
265
|
+ // $("#chou_wtlb option:selected").val(data.F_QuestionType); // 问题类别
|
|
266
|
266
|
$("#der_level option:selected").text(data.F_CJ_Level); // 抽检级别
|
|
267
|
267
|
$("#der_level option:selected").val(data.F_CJ_Level); // 抽检级别
|
|
268
|
268
|
$('#batch_num').val(data.F_SC_QualityMonth); //生产批次号位
|
|
|
@@ -274,8 +274,8 @@ function getWorkOrderDetails(oid) {
|
|
274
|
274
|
$('#der_Amount').val(data.F_CJ_Outlay); //公关费用金额
|
|
275
|
275
|
$('#der_time').val(data.F_CJ_Time); //抽检时间
|
|
276
|
276
|
// 建议及其他
|
|
277
|
|
- $("#cateq option:selected").text(data.F_QuestionType); // 问题类别
|
|
278
|
|
- $("#cateq option:selected").val(data.F_QuestionType); // 问题类别
|
|
|
277
|
+ // $("#cateq option:selected").text(data.F_QuestionType); // 问题类别
|
|
|
278
|
+ // $("#cateq option:selected").val(data.F_QuestionType); // 问题类别
|
|
279
|
279
|
$("#Produ_ctName option:selected").text(data.F_QuestionType); // 产品名称
|
|
280
|
280
|
$("#Produ_ctName option:selected").val(data.F_QuestionType); // 产品名称
|
|
281
|
281
|
$('#Product_Quan').val(); //问题数量
|
|
|
@@ -288,7 +288,7 @@ function getWorkOrderDetails(oid) {
|
|
288
|
288
|
$("#chdaqu option:selected").val(data.F_AreaName); // 大区
|
|
289
|
289
|
$("#chfen option:selected").text(data.F_BranchName); // 分公司
|
|
290
|
290
|
$("#chfen option:selected").val(data.F_BranchName); // 分公司
|
|
291
|
|
- $('#manage').val(); //经营品牌
|
|
|
291
|
+ // $('#manage').val(); //经营品牌
|
|
292
|
292
|
//物料
|
|
293
|
293
|
$('#Code').val(data.F_MaterialID); //物料编码
|
|
294
|
294
|
$('#material_name').val(data.F_MaterialName); //物料名称
|
|
|
@@ -369,7 +369,7 @@ $(document).ready(function() {
|
|
369
|
369
|
// ZXCPMC($("#ProductName"));
|
|
370
|
370
|
ZXCPMC($("#product_name"));
|
|
371
|
371
|
ZXCPMC($("#Produ_ctName")); //建议及其他产品名称
|
|
372
|
|
- DQ($("#District"));
|
|
|
372
|
+ DQ($("#chdaqu"));
|
|
373
|
373
|
//投诉模块
|
|
374
|
374
|
WTLB1($("#cat")); //问题类型1
|
|
375
|
375
|
CPZL($("#Product_Category")); //产品名称
|
|
|
@@ -378,7 +378,7 @@ $(document).ready(function() {
|
|
378
|
378
|
CJJP($("#der_level")); //抽检级别
|
|
379
|
379
|
CJDW($("#der_Company")); //抽检单位
|
|
380
|
380
|
|
|
381
|
|
- DQQ($("#customer_comaddress")); //大区
|
|
|
381
|
+ // DQQ($("#customer_comaddress")); //大区
|
|
382
|
382
|
QDLX($("#customer_taxPointDes")); //添加客户渠道类型
|
|
383
|
383
|
QDLX($("#channel")); //来电弹屏渠道类型
|
|
384
|
384
|
XYDJ($("#customer_invoiceRange"));
|
|
|
@@ -579,7 +579,7 @@ function FENGONGSI(obj) {
|
|
579
|
579
|
$.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
580
|
580
|
"token": $.cookie("token"),
|
|
581
|
581
|
F_Layer: 2,
|
|
582
|
|
- F_DeptName: $("#District").find("option:selected").text(),
|
|
|
582
|
+ F_DeptName: $("#chdaqu").find("option:selected").text(),
|
|
583
|
583
|
}, function(data) {
|
|
584
|
584
|
if(data.state.toLowerCase() == "success") {
|
|
585
|
585
|
var content = data.data;
|
|
|
@@ -589,19 +589,19 @@ function FENGONGSI(obj) {
|
|
589
|
589
|
}
|
|
590
|
590
|
})
|
|
591
|
591
|
}
|
|
592
|
|
-$('#District').on('change', function() {
|
|
|
592
|
+$('#chdaqu').on('change', function() {
|
|
593
|
593
|
$.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
594
|
594
|
"token": $.cookie("token"),
|
|
595
|
595
|
F_Layer: 2,
|
|
596
|
|
- F_DeptName: $("#District").find("option:selected").text(),
|
|
|
596
|
+ F_DeptName: $("#chdaqu").find("option:selected").text(),
|
|
597
|
597
|
|
|
598
|
598
|
}, function(data) {
|
|
599
|
599
|
if(data.state.toLowerCase() == "success") {
|
|
600
|
600
|
var content = data.data;
|
|
601
|
601
|
$(content).each(function(i, n) {
|
|
602
|
|
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#Branice");
|
|
|
602
|
+ $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#chfen");
|
|
603
|
603
|
})
|
|
604
|
|
- FENGONGSI($("#Branice"));
|
|
|
604
|
+ FENGONGSI($("#chfen"));
|
|
605
|
605
|
}
|
|
606
|
606
|
})
|
|
607
|
607
|
});
|
|
|
@@ -861,56 +861,6 @@ function CAPI(obj) {
|
|
861
|
861
|
}
|
|
862
|
862
|
})
|
|
863
|
863
|
}
|
|
864
|
|
-
|
|
865
|
|
-function DQQ(obj) {
|
|
866
|
|
- obj.empty();
|
|
867
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
868
|
|
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
869
|
|
- "token": $.cookie("token"),
|
|
870
|
|
- F_Layer: 1,
|
|
871
|
|
- }, function(data) {
|
|
872
|
|
- if(data.state.toLowerCase() == "success") {
|
|
873
|
|
- var content = data.data;
|
|
874
|
|
- $(content).each(function(i, n) {
|
|
875
|
|
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
|
|
876
|
|
- })
|
|
877
|
|
- }
|
|
878
|
|
- })
|
|
879
|
|
-}
|
|
880
|
|
-
|
|
881
|
|
-function KEFENGONG(obj) {
|
|
882
|
|
- obj.empty();
|
|
883
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
884
|
|
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
885
|
|
- "token": $.cookie("token"),
|
|
886
|
|
- F_Layer: 2,
|
|
887
|
|
- F_DeptName: $("#customer_comaddress").find("option:selected").text(),
|
|
888
|
|
- }, function(data) {
|
|
889
|
|
- if(data.state.toLowerCase() == "success") {
|
|
890
|
|
- var content = data.data;
|
|
891
|
|
- $(content).each(function(i, n) {
|
|
892
|
|
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
|
|
893
|
|
- })
|
|
894
|
|
- }
|
|
895
|
|
- })
|
|
896
|
|
-}
|
|
897
|
|
-
|
|
898
|
|
-$('#customer_comaddress').on('change', function() {
|
|
899
|
|
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
900
|
|
- "token": $.cookie("token"),
|
|
901
|
|
- F_Layer: 2,
|
|
902
|
|
- F_DeptName: $("#customer_comaddress").find("option:selected").text(),
|
|
903
|
|
- }, function(data) {
|
|
904
|
|
- if(data.state.toLowerCase() == "success") {
|
|
905
|
|
- var content = data.data;
|
|
906
|
|
- $(content).each(function(i, n) {
|
|
907
|
|
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#customer_legalName");
|
|
908
|
|
- })
|
|
909
|
|
- KEFENGONG($("#customer_legalName"));
|
|
910
|
|
- }
|
|
911
|
|
- })
|
|
912
|
|
-});
|
|
913
|
|
-
|
|
914
|
864
|
//工单类型点选
|
|
915
|
865
|
$('.r_order_type').find('input[type="radio"]').on('change', function() {
|
|
916
|
866
|
if($(this).val() === "1") { //咨询
|