|
|
@@ -1269,20 +1269,25 @@ function orderSave() {
|
|
1269
|
1269
|
$(document).ready(function () {
|
|
1270
|
1270
|
var wid = helper.request.queryString("wid");
|
|
1271
|
1271
|
LY($("#sheng"));
|
|
1272
|
|
-
|
|
1273
|
|
-
|
|
1274
|
|
-
|
|
|
1272
|
+ SHENG($("#shengji"));
|
|
|
1273
|
+
|
|
1275
|
1274
|
XSJD($("#xiaoshou"));//销售基地
|
|
1276
|
1275
|
ZXWTLB($("#category")); //问题类别
|
|
1277
|
1276
|
ZXCPMC($("#ProductName"));
|
|
1278
|
1277
|
DQ($("#District"));
|
|
1279
|
1278
|
//投诉模块
|
|
1280
|
|
- TSU($("#country"));//
|
|
1281
|
1279
|
WTLB1($("#cat"));//问题类型1
|
|
1282
|
1280
|
CPZL($("#Product_Category"));//产品种类
|
|
1283
|
1281
|
ZYJB($("#level"));//重要级别
|
|
1284
|
1282
|
CJJP($("#der_level"));//抽检级别
|
|
1285
|
1283
|
CJDW($("#der_Company"));//抽检单位
|
|
|
1284
|
+
|
|
|
1285
|
+ DQ($("#customer_comaddress")); //大区
|
|
|
1286
|
+ QDLX($("#customer_taxPointDes"));
|
|
|
1287
|
+ XYDJ($("#customer_invoiceRange"));
|
|
|
1288
|
+ JYPP($("#customer_Qualification"));
|
|
|
1289
|
+ CAPI($("#customer_FinancialManager"));
|
|
|
1290
|
+ YFPP($("#customer_feeEx"));
|
|
1286
|
1291
|
});
|
|
1287
|
1292
|
// 咨询模块 省
|
|
1288
|
1293
|
function LY(obj) {
|
|
|
@@ -1399,6 +1404,124 @@ function orderSave() {
|
|
1399
|
1404
|
}
|
|
1400
|
1405
|
})
|
|
1401
|
1406
|
});
|
|
|
1407
|
+
|
|
|
1408
|
+
|
|
|
1409
|
+
|
|
|
1410
|
+
|
|
|
1411
|
+function SHENG(obj) {
|
|
|
1412
|
+ obj.empty();
|
|
|
1413
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1414
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1415
|
+ "token": $.cookie("token"),
|
|
|
1416
|
+ F_Layer: 1,
|
|
|
1417
|
+ }, function (data) {
|
|
|
1418
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1419
|
+ var content = data.data;
|
|
|
1420
|
+ $(content).each(function (i, n) {
|
|
|
1421
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
|
1422
|
+ })
|
|
|
1423
|
+ }
|
|
|
1424
|
+ })
|
|
|
1425
|
+ }
|
|
|
1426
|
+ //市
|
|
|
1427
|
+ function SHI(obj) {
|
|
|
1428
|
+ obj.empty();
|
|
|
1429
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1430
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1431
|
+ "token": $.cookie("token"),
|
|
|
1432
|
+ F_Layer: 2,
|
|
|
1433
|
+ F_RegionName:$('#shengji').val()
|
|
|
1434
|
+ }, function (data) {
|
|
|
1435
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1436
|
+ var content = data.data;
|
|
|
1437
|
+ $(content).each(function (i, n) {
|
|
|
1438
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
|
1439
|
+ })
|
|
|
1440
|
+ }
|
|
|
1441
|
+
|
|
|
1442
|
+ })
|
|
|
1443
|
+ }
|
|
|
1444
|
+ // 区/县
|
|
|
1445
|
+ function QUXIAN(obj) {
|
|
|
1446
|
+ obj.empty();
|
|
|
1447
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1448
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1449
|
+ "token": $.cookie("token"),
|
|
|
1450
|
+ F_Layer: 3,
|
|
|
1451
|
+ F_RegionName:$('#shiji').val()
|
|
|
1452
|
+ }, function (data) {
|
|
|
1453
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1454
|
+ var content = data.data;
|
|
|
1455
|
+ $(content).each(function (i, n) {
|
|
|
1456
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
|
1457
|
+ })
|
|
|
1458
|
+ }
|
|
|
1459
|
+ })
|
|
|
1460
|
+ }
|
|
|
1461
|
+ // 乡
|
|
|
1462
|
+ function XIANG(obj) {
|
|
|
1463
|
+ obj.empty();
|
|
|
1464
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1465
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1466
|
+ "token": $.cookie("token"),
|
|
|
1467
|
+ F_Layer: 4,
|
|
|
1468
|
+ F_RegionName:$('#quxianji').val()
|
|
|
1469
|
+ }, function (data) {
|
|
|
1470
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1471
|
+ var content = data.data;
|
|
|
1472
|
+ $(content).each(function (i, n) {
|
|
|
1473
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
|
1474
|
+ })
|
|
|
1475
|
+ }
|
|
|
1476
|
+ })
|
|
|
1477
|
+ }
|
|
|
1478
|
+
|
|
|
1479
|
+ $('#shengji').on('change',function(){
|
|
|
1480
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1481
|
+ "token": $.cookie("token"),
|
|
|
1482
|
+ F_Layer: 2,
|
|
|
1483
|
+ F_RegionName:$('#shengji').val(),
|
|
|
1484
|
+
|
|
|
1485
|
+ }, function (data) {
|
|
|
1486
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1487
|
+ var content = data.data;
|
|
|
1488
|
+ $(content).each(function (i, n) {
|
|
|
1489
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#shiji");
|
|
|
1490
|
+ })
|
|
|
1491
|
+ SHI($("#shiji"));
|
|
|
1492
|
+ }
|
|
|
1493
|
+ })
|
|
|
1494
|
+ });
|
|
|
1495
|
+ $('#shiji').on('change',function(){
|
|
|
1496
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1497
|
+ "token": $.cookie("token"),
|
|
|
1498
|
+ F_Layer: 3,
|
|
|
1499
|
+ F_RegionName:$('#shiji').val()
|
|
|
1500
|
+ }, function (data) {
|
|
|
1501
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1502
|
+ var content = data.data;
|
|
|
1503
|
+ $(content).each(function (i, n) {
|
|
|
1504
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#quxianji");
|
|
|
1505
|
+ })
|
|
|
1506
|
+ QUXIAN($("#quxianji"));
|
|
|
1507
|
+ }
|
|
|
1508
|
+ })
|
|
|
1509
|
+ });
|
|
|
1510
|
+ $('#quxianji').on('change',function(){
|
|
|
1511
|
+ $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
|
1512
|
+ "token": $.cookie("token"),
|
|
|
1513
|
+ F_Layer: 4,
|
|
|
1514
|
+ F_RegionName:$('#quxianji').val()
|
|
|
1515
|
+ }, function (data) {
|
|
|
1516
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1517
|
+ var content = data.data;
|
|
|
1518
|
+ $(content).each(function (i, n) {
|
|
|
1519
|
+ $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#xiangji");
|
|
|
1520
|
+ })
|
|
|
1521
|
+ XIANG($("#xiangji"));
|
|
|
1522
|
+ }
|
|
|
1523
|
+ })
|
|
|
1524
|
+ });
|
|
1402
|
1525
|
//销售基地
|
|
1403
|
1526
|
function XSJD(obj) {
|
|
1404
|
1527
|
obj.empty();
|
|
|
@@ -1505,23 +1628,6 @@ function cleanOrderForm() {
|
|
1505
|
1628
|
$('#order_isover').find("input[type='radio'][value='0']").prop("checked", true);
|
|
1506
|
1629
|
}
|
|
1507
|
1630
|
|
|
1508
|
|
-//投诉模块
|
|
1509
|
|
-//下拉乡
|
|
1510
|
|
-function TSU(obj) {
|
|
1511
|
|
- obj.empty();
|
|
1512
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
1513
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
1514
|
|
- "token": $.cookie("token"),
|
|
1515
|
|
- F_Layer: 4,
|
|
1516
|
|
- }, function (data) {
|
|
1517
|
|
- if (data.state.toLowerCase() == "success") {
|
|
1518
|
|
- var content = data.data;
|
|
1519
|
|
- $(content).each(function (i, n) {
|
|
1520
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
1521
|
|
- })
|
|
1522
|
|
- }
|
|
1523
|
|
- })
|
|
1524
|
|
- }
|
|
1525
|
1631
|
//问题类别1
|
|
1526
|
1632
|
function WTLB1(obj) {
|
|
1527
|
1633
|
obj.empty();
|
|
|
@@ -1529,11 +1635,12 @@ function WTLB1(obj) {
|
|
1529
|
1635
|
$.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
1530
|
1636
|
"token": $.cookie("token"),
|
|
1531
|
1637
|
type: 1,
|
|
|
1638
|
+ pid:0,
|
|
1532
|
1639
|
}, function (data) {
|
|
1533
|
1640
|
if (data.state.toLowerCase() == "success") {
|
|
1534
|
1641
|
var content = data.data;
|
|
1535
|
1642
|
$(content).each(function (i, n) {
|
|
1536
|
|
- $("<option value='" + n.text + "'>" + n.text + "</option>").appendTo(obj);
|
|
|
1643
|
+ $("<option value='" + n.id + "'>" + n.text + "</option>").appendTo(obj);
|
|
1537
|
1644
|
})
|
|
1538
|
1645
|
}
|
|
1539
|
1646
|
})
|
|
|
@@ -1544,7 +1651,8 @@ function WTLB2(obj) {
|
|
1544
|
1651
|
obj.append('<option selected="selected" value="">请选择</option>');
|
|
1545
|
1652
|
$.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
1546
|
1653
|
"token": $.cookie("token"),
|
|
1547
|
|
- type: 2,
|
|
|
1654
|
+ type: 1,
|
|
|
1655
|
+ pid:$('#cat').val(),
|
|
1548
|
1656
|
}, function (data) {
|
|
1549
|
1657
|
if (data.state.toLowerCase() == "success") {
|
|
1550
|
1658
|
var content = data.data;
|
|
|
@@ -1561,45 +1669,54 @@ function WTLB3(obj) {
|
|
1561
|
1669
|
obj.append('<option selected="selected" value="">请选择</option>');
|
|
1562
|
1670
|
$.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
1563
|
1671
|
"token": $.cookie("token"),
|
|
1564
|
|
- type: 3,
|
|
|
1672
|
+ type: 1,
|
|
|
1673
|
+ pid:$('#catego').val(),
|
|
1565
|
1674
|
}, function (data) {
|
|
1566
|
1675
|
if (data.state.toLowerCase() == "success") {
|
|
1567
|
1676
|
var content = data.data;
|
|
1568
|
1677
|
$(content).each(function (i, n) {
|
|
1569
|
|
- $("<option value='" + n.text + "'>" + n.text + "</option>").appendTo(obj);
|
|
|
1678
|
+ $("<option value='" + n.id + "'>" + n.text + "</option>").appendTo(obj);
|
|
1570
|
1679
|
})
|
|
1571
|
1680
|
}
|
|
1572
|
1681
|
})
|
|
1573
|
1682
|
}
|
|
|
1683
|
+
|
|
1574
|
1684
|
$('#cat').on('change',function(){
|
|
1575
|
|
- $.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
1576
|
|
- "token": $.cookie("token"),
|
|
1577
|
|
- type: 2,
|
|
1578
|
|
- text:$('#cat').val(),
|
|
1579
|
|
- }, function (data) {
|
|
1580
|
|
- if (data.state.toLowerCase() == "success") {
|
|
1581
|
|
- var content = data.data;
|
|
1582
|
|
- $(content).each(function (i, n) {
|
|
1583
|
|
- $("<option value='" + n.text + "'>" + n.text + "</option>").appendTo("#catego");
|
|
1584
|
|
- })
|
|
1585
|
|
- WTLB2($("#catego"));//问题类型2
|
|
1586
|
|
- }
|
|
1587
|
|
- })
|
|
|
1685
|
+ // alert($('#cat').val())
|
|
|
1686
|
+ WTLB2($("#catego"));//问题类型2
|
|
|
1687
|
+
|
|
|
1688
|
+ // $.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
|
1689
|
+ // "token": $.cookie("token"),
|
|
|
1690
|
+ // type: 1,
|
|
|
1691
|
+ //
|
|
|
1692
|
+ // pid:$('#cat').val(),
|
|
|
1693
|
+ // }, function (data) {
|
|
|
1694
|
+ // if (data.state.toLowerCase() == "success") {
|
|
|
1695
|
+ // var content = data.data;
|
|
|
1696
|
+ // $(content).each(function (i, n) {
|
|
|
1697
|
+ // $("<option value='" + n.id + "'>" + n.text + "</option>").appendTo("#catego");
|
|
|
1698
|
+ // })
|
|
|
1699
|
+ //
|
|
|
1700
|
+ // }
|
|
|
1701
|
+ // })
|
|
1588
|
1702
|
});
|
|
1589
|
1703
|
$('#catego').on('change',function(){
|
|
1590
|
|
- $.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
1591
|
|
- "token": $.cookie("token"),
|
|
1592
|
|
- type: 3,
|
|
1593
|
|
- text:$('#catego').val()
|
|
1594
|
|
- }, function (data) {
|
|
1595
|
|
- if (data.state.toLowerCase() == "success") {
|
|
1596
|
|
- var content = data.data;
|
|
1597
|
|
- $(content).each(function (i, n) {
|
|
1598
|
|
- $("<option value='" + n.text + "'>" + n.text + "</option>").appendTo("#cate");
|
|
1599
|
|
- })
|
|
1600
|
|
- WTLB3($("#cate"));//问题类型3
|
|
1601
|
|
- }
|
|
1602
|
|
- })
|
|
|
1704
|
+ // alert($("#catego").val())
|
|
|
1705
|
+ WTLB3($("#cate"));//问题类型3
|
|
|
1706
|
+ // $.getJSON(huayi.config.callcenter_url + "WorkOrder/GetQuestionType", {
|
|
|
1707
|
+ // "token": $.cookie("token"),
|
|
|
1708
|
+ // type: 1,
|
|
|
1709
|
+ //
|
|
|
1710
|
+ // pid:$('#catego').val()
|
|
|
1711
|
+ // }, function (data) {
|
|
|
1712
|
+ // if (data.state.toLowerCase() == "success") {
|
|
|
1713
|
+ // var content = data.data;
|
|
|
1714
|
+ // $(content).each(function (i, n) {
|
|
|
1715
|
+ // $("<option value='" + n.id + "'>" + n.text + "</option>").appendTo("#cate");
|
|
|
1716
|
+ // })
|
|
|
1717
|
+ //
|
|
|
1718
|
+ // }
|
|
|
1719
|
+ // })
|
|
1603
|
1720
|
});
|
|
1604
|
1721
|
//产品种类
|
|
1605
|
1722
|
function CPZL(obj) {
|
|
|
@@ -1665,25 +1782,149 @@ function CJDW(obj) {
|
|
1665
|
1782
|
})
|
|
1666
|
1783
|
}
|
|
1667
|
1784
|
|
|
|
1785
|
+//。。。。。。。。。。。。。。。。。。。。。。。
|
|
|
1786
|
+
|
|
|
1787
|
+function YFPP(obj) {
|
|
|
1788
|
+ obj.empty();
|
|
|
1789
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1790
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
|
1791
|
+ "token": $.cookie("token"),
|
|
|
1792
|
+ flag:"YFPP",
|
|
|
1793
|
+ }, function (data) {
|
|
|
1794
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1795
|
+ var content = data.data;
|
|
|
1796
|
+ $(content).each(function (i, n) {
|
|
|
1797
|
+ $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
|
1798
|
+ })
|
|
|
1799
|
+ }
|
|
|
1800
|
+ })
|
|
|
1801
|
+ }
|
|
|
1802
|
+
|
|
|
1803
|
+
|
|
|
1804
|
+//渠道类型
|
|
|
1805
|
+function QDLX(obj) {
|
|
|
1806
|
+ obj.empty();
|
|
|
1807
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1808
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
|
1809
|
+ "token": $.cookie("token"),
|
|
|
1810
|
+ flag:"QDLX",
|
|
|
1811
|
+ }, function (data) {
|
|
|
1812
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1813
|
+ var content = data.data;
|
|
|
1814
|
+ $(content).each(function (i, n) {
|
|
|
1815
|
+ $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
|
1816
|
+ })
|
|
|
1817
|
+ }
|
|
|
1818
|
+ })
|
|
|
1819
|
+ }
|
|
|
1820
|
+//信用等级
|
|
|
1821
|
+function XYDJ(obj) {
|
|
|
1822
|
+ obj.empty();
|
|
|
1823
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1824
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
|
1825
|
+ "token": $.cookie("token"),
|
|
|
1826
|
+ flag:"XYDJ",
|
|
|
1827
|
+ }, function (data) {
|
|
|
1828
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1829
|
+ var content = data.data;
|
|
|
1830
|
+ $(content).each(function (i, n) {
|
|
|
1831
|
+ $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
|
1832
|
+ })
|
|
|
1833
|
+ }
|
|
|
1834
|
+ })
|
|
|
1835
|
+ }
|
|
|
1836
|
+//经营品牌
|
|
|
1837
|
+function JYPP(obj) {
|
|
|
1838
|
+ obj.empty();
|
|
|
1839
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1840
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
|
1841
|
+ "token": $.cookie("token"),
|
|
|
1842
|
+ flag:"JYPP",
|
|
|
1843
|
+ }, function (data) {
|
|
|
1844
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1845
|
+ var content = data.data;
|
|
|
1846
|
+ $(content).each(function (i, n) {
|
|
|
1847
|
+ $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
|
1848
|
+ })
|
|
|
1849
|
+ }
|
|
|
1850
|
+ })
|
|
|
1851
|
+ }
|
|
|
1852
|
+//产品
|
|
|
1853
|
+function CAPI(obj) {
|
|
|
1854
|
+ obj.empty();
|
|
|
1855
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1856
|
+ $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
|
1857
|
+ "token": $.cookie("token"),
|
|
|
1858
|
+ flag:"CAPI",
|
|
|
1859
|
+ }, function (data) {
|
|
|
1860
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1861
|
+ var content = data.data;
|
|
|
1862
|
+ $(content).each(function (i, n) {
|
|
|
1863
|
+ $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
|
1864
|
+ })
|
|
|
1865
|
+ }
|
|
|
1866
|
+ })
|
|
|
1867
|
+ }
|
|
|
1868
|
+
|
|
|
1869
|
+
|
|
|
1870
|
+function DQ(obj) {
|
|
|
1871
|
+ obj.empty();
|
|
|
1872
|
+ obj.append('<option selected="selected" value="">请选择</option>');
|
|
|
1873
|
+ $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
|
1874
|
+ "token": $.cookie("token"),
|
|
|
1875
|
+ F_Layer: 1,
|
|
|
1876
|
+ }, function (data) {
|
|
|
1877
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1878
|
+ var content = data.data;
|
|
|
1879
|
+ $(content).each(function (i, n) {
|
|
|
1880
|
+ $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
|
|
|
1881
|
+ })
|
|
|
1882
|
+ }
|
|
|
1883
|
+ })
|
|
|
1884
|
+ }
|
|
|
1885
|
+
|
|
|
1886
|
+
|
|
|
1887
|
+
|
|
|
1888
|
+
|
|
|
1889
|
+
|
|
|
1890
|
+ $('#customer_comaddress').on('change',function(){
|
|
|
1891
|
+ $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
|
1892
|
+ "token": $.cookie("token"),
|
|
|
1893
|
+ F_Layer: 2,
|
|
|
1894
|
+ F_DeptName:$("#customer_comaddress").find("option:selected").text(),
|
|
|
1895
|
+
|
|
|
1896
|
+ }, function (data) {
|
|
|
1897
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
1898
|
+ var content = data.data;
|
|
|
1899
|
+
|
|
|
1900
|
+ $(content).each(function (i, n) {
|
|
|
1901
|
+ $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#customer_legalName");
|
|
|
1902
|
+ })
|
|
|
1903
|
+
|
|
|
1904
|
+ }
|
|
|
1905
|
+ })
|
|
|
1906
|
+ });
|
|
|
1907
|
+
|
|
|
1908
|
+
|
|
|
1909
|
+
|
|
|
1910
|
+
|
|
|
1911
|
+
|
|
|
1912
|
+
|
|
|
1913
|
+
|
|
|
1914
|
+
|
|
|
1915
|
+
|
|
|
1916
|
+
|
|
|
1917
|
+
|
|
|
1918
|
+
|
|
|
1919
|
+
|
|
|
1920
|
+
|
|
|
1921
|
+
|
|
|
1922
|
+
|
|
1668
|
1923
|
|
|
1669
|
1924
|
|
|
1670
|
1925
|
|
|
1671
|
1926
|
|
|
1672
|
1927
|
|
|
1673
|
|
-// $('#quxian').on('change',function(){
|
|
1674
|
|
-// $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
1675
|
|
-// "token": $.cookie("token"),
|
|
1676
|
|
-// F_Layer: 4,
|
|
1677
|
|
-// F_RegionName:$('#quxian').val()
|
|
1678
|
|
-// }, function (data) {
|
|
1679
|
|
-// if (data.state.toLowerCase() == "success") {
|
|
1680
|
|
-// var content = data.data;
|
|
1681
|
|
-// $(content).each(function (i, n) {
|
|
1682
|
|
-// $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#xiang");
|
|
1683
|
|
-// })
|
|
1684
|
|
-// }
|
|
1685
|
|
-// })
|
|
1686
|
|
-// });
|
|
1687
|
1928
|
|
|
1688
|
1929
|
|
|
1689
|
1930
|
/**
|
|
|
@@ -1958,285 +2199,15 @@ function addedit() {
|
|
1958
|
2199
|
})
|
|
1959
|
2200
|
}
|
|
1960
|
2201
|
|
|
1961
|
|
-// function cleanOrde() {
|
|
1962
|
|
-// $("#customer_code").val(''),//客户编码
|
|
1963
|
|
-// $("#customer_companyname").val(''),//公司名称
|
|
1964
|
|
-// $("#customer_comaddress").val(''),//大区ID
|
|
1965
|
|
-// $("#customer_legalName").val(''),//分公司ID
|
|
1966
|
|
-// $("#customer_lehalTel").val(''),//业务员
|
|
1967
|
|
-// $("#customer_subtrade").val(''),//业务员电话
|
|
1968
|
|
-// $("#customer_taxCategory").val(''),//客户性质
|
|
1969
|
|
-// $('#customer_taxPointDes').val(''),//渠道类型
|
|
1970
|
|
-// $("#customer_invoiceRange").val(''),//信用等级
|
|
1971
|
|
-// $("#customer_layer").val('');//法人
|
|
1972
|
|
-// $("#customer_bedept").val('');//法人电话
|
|
1973
|
|
-// $("#source").val('');//省
|
|
1974
|
|
-// $("#type").val('');//市
|
|
1975
|
|
-// $("#keyid").val('');//县
|
|
1976
|
|
-// $("#input_area").val('');//乡
|
|
1977
|
|
-// $("#customer_LegalIDCards").val('');//详细地址
|
|
1978
|
|
-// $("#customer_Qualification").val('');//经营品牌
|
|
1979
|
|
-// $("#customer_FinancialManager").val('');//产品
|
|
1980
|
|
-// $("#customer_BusinessOwner").find('input[type="radio"]:checked').val('');//冻结标志
|
|
1981
|
|
-// $('#customer_isbankSlips').find('input[type="radio"]:checked').val('');//是否开户
|
|
1982
|
|
-// $("#customer_Remark2").val('');//上级客户编码
|
|
1983
|
|
-// $("#customer_Remark3").val('');//上级客户名称
|
|
1984
|
|
-// $("#customer_service").val('');//助记码
|
|
1985
|
|
-// $("#customer_handoverDate").val('');//开票银行名称
|
|
1986
|
|
-// $("#customer_address").val('');//开票银行账户
|
|
1987
|
|
-// $("#customer_address1").val('');//纳税人登记号
|
|
1988
|
|
-// $('#customer').find('input[type="radio"]:checked').val('');//是否经营心连心
|
|
1989
|
|
-// $("#customer_address2").val('');//年销量
|
|
1990
|
|
-// $("#customer_address3").val('');//配方
|
|
1991
|
|
-// $("#customer_address4").val('');//种植作物
|
|
1992
|
|
-// $("#customer_feeExpires").val('');//种植面积
|
|
1993
|
|
-// $("#customer_feeEx").val('');//用肥品牌
|
|
1994
|
|
-// $("#customer_feeEx").val('');//用肥品牌
|
|
1995
|
|
-// $("#customer_inv").val('');//用肥品牌
|
|
1996
|
|
-// $("#customer").val('');//其他经营品牌
|
|
1997
|
|
-// $("#F_Remark").val('');//备注
|
|
1998
|
|
-// }
|
|
1999
|
|
-//
|
|
|
2202
|
+
|
|
2000
|
2203
|
|
|
2001
|
2204
|
//三级联动下拉
|
|
2002
|
2205
|
$(document).ready(function () {
|
|
2003
|
2206
|
var wid = helper.request.queryString("wid");
|
|
2004
|
|
- LY($("#source"));
|
|
2005
|
|
- LB($("#type"));
|
|
2006
|
|
- ZT($("#keyid"));
|
|
2007
|
|
- XX($('#input_area'));
|
|
2008
|
|
- DQ($("#customer_comaddress")); //大区
|
|
2009
|
|
- QDLX($("#customer_taxPointDes"));
|
|
2010
|
|
- XYDJ($("#customer_invoiceRange"));
|
|
2011
|
|
- JYPP($("#customer_Qualification"));
|
|
2012
|
|
- CAPI($("#customer_FinancialManager"));
|
|
2013
|
|
- YFPP($("#customer_feeEx"));
|
|
|
2207
|
+ // LY($("#source"));
|
|
|
2208
|
+ // LB($("#type"));
|
|
|
2209
|
+ // ZT($("#keyid"));
|
|
|
2210
|
+ // XX($('#input_area'));
|
|
|
2211
|
+
|
|
2014
|
2212
|
|
|
2015
|
2213
|
});
|
|
2016
|
|
-function YFPP(obj) {
|
|
2017
|
|
- obj.empty();
|
|
2018
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2019
|
|
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
2020
|
|
- "token": $.cookie("token"),
|
|
2021
|
|
- flag:"YFPP",
|
|
2022
|
|
- }, function (data) {
|
|
2023
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2024
|
|
- var content = data.data;
|
|
2025
|
|
- $(content).each(function (i, n) {
|
|
2026
|
|
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
2027
|
|
- })
|
|
2028
|
|
- }
|
|
2029
|
|
- })
|
|
2030
|
|
- }
|
|
2031
|
|
- function LY(obj) {
|
|
2032
|
|
- obj.empty();
|
|
2033
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2034
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2035
|
|
- "token": $.cookie("token"),
|
|
2036
|
|
- F_Layer: 1,
|
|
2037
|
|
- }, function (data) {
|
|
2038
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2039
|
|
- var content = data.data;
|
|
2040
|
|
- $(content).each(function (i, n) {
|
|
2041
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
2042
|
|
- })
|
|
2043
|
|
- }
|
|
2044
|
|
- })
|
|
2045
|
|
- }
|
|
2046
|
|
- //类别
|
|
2047
|
|
- function LB(obj) {
|
|
2048
|
|
- obj.empty();
|
|
2049
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2050
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2051
|
|
- "token": $.cookie("token"),
|
|
2052
|
|
- F_Layer: 2,
|
|
2053
|
|
- }, function (data) {
|
|
2054
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2055
|
|
- var content = data.data;
|
|
2056
|
|
- $(content).each(function (i, n) {
|
|
2057
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
2058
|
|
- })
|
|
2059
|
|
- }
|
|
2060
|
|
-
|
|
2061
|
|
- })
|
|
2062
|
|
- }
|
|
2063
|
|
- // 主题
|
|
2064
|
|
- function ZT(obj) {
|
|
2065
|
|
- obj.empty();
|
|
2066
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2067
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2068
|
|
- "token": $.cookie("token"),
|
|
2069
|
|
- F_Layer: 3,
|
|
2070
|
|
- }, function (data) {
|
|
2071
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2072
|
|
- var content = data.data;
|
|
2073
|
|
- $(content).each(function (i, n) {
|
|
2074
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
2075
|
|
- })
|
|
2076
|
|
- }
|
|
2077
|
|
- })
|
|
2078
|
|
- }
|
|
2079
|
|
- function XX(obj) {
|
|
2080
|
|
- obj.empty();
|
|
2081
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2082
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2083
|
|
- "token": $.cookie("token"),
|
|
2084
|
|
- F_Layer: 4,
|
|
2085
|
|
- }, function (data) {
|
|
2086
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2087
|
|
- var content = data.data;
|
|
2088
|
|
- $(content).each(function (i, n) {
|
|
2089
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo(obj);
|
|
2090
|
|
- })
|
|
2091
|
|
- }
|
|
2092
|
|
- })
|
|
2093
|
|
- }
|
|
2094
|
|
-
|
|
2095
|
|
-
|
|
2096
|
|
-//渠道类型
|
|
2097
|
|
-function QDLX(obj) {
|
|
2098
|
|
- obj.empty();
|
|
2099
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2100
|
|
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
2101
|
|
- "token": $.cookie("token"),
|
|
2102
|
|
- flag:"QDLX",
|
|
2103
|
|
- }, function (data) {
|
|
2104
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2105
|
|
- var content = data.data;
|
|
2106
|
|
- $(content).each(function (i, n) {
|
|
2107
|
|
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
2108
|
|
- })
|
|
2109
|
|
- }
|
|
2110
|
|
- })
|
|
2111
|
|
- }
|
|
2112
|
|
-//信用等级
|
|
2113
|
|
-function XYDJ(obj) {
|
|
2114
|
|
- obj.empty();
|
|
2115
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2116
|
|
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
2117
|
|
- "token": $.cookie("token"),
|
|
2118
|
|
- flag:"XYDJ",
|
|
2119
|
|
- }, function (data) {
|
|
2120
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2121
|
|
- var content = data.data;
|
|
2122
|
|
- $(content).each(function (i, n) {
|
|
2123
|
|
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
2124
|
|
- })
|
|
2125
|
|
- }
|
|
2126
|
|
- })
|
|
2127
|
|
- }
|
|
2128
|
|
-//经营品牌
|
|
2129
|
|
-function JYPP(obj) {
|
|
2130
|
|
- obj.empty();
|
|
2131
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2132
|
|
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
2133
|
|
- "token": $.cookie("token"),
|
|
2134
|
|
- flag:"JYPP",
|
|
2135
|
|
- }, function (data) {
|
|
2136
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2137
|
|
- var content = data.data;
|
|
2138
|
|
- $(content).each(function (i, n) {
|
|
2139
|
|
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
2140
|
|
- })
|
|
2141
|
|
- }
|
|
2142
|
|
- })
|
|
2143
|
|
- }
|
|
2144
|
|
-//产品
|
|
2145
|
|
-function CAPI(obj) {
|
|
2146
|
|
- obj.empty();
|
|
2147
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2148
|
|
- $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag", {
|
|
2149
|
|
- "token": $.cookie("token"),
|
|
2150
|
|
- flag:"CAPI",
|
|
2151
|
|
- }, function (data) {
|
|
2152
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2153
|
|
- var content = data.data;
|
|
2154
|
|
- $(content).each(function (i, n) {
|
|
2155
|
|
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
|
|
2156
|
|
- })
|
|
2157
|
|
- }
|
|
2158
|
|
- })
|
|
2159
|
|
- }
|
|
2160
|
|
-
|
|
2161
|
|
-
|
|
2162
|
|
-function DQ(obj) {
|
|
2163
|
|
- obj.empty();
|
|
2164
|
|
- obj.append('<option selected="selected" value="">请选择</option>');
|
|
2165
|
|
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
2166
|
|
- "token": $.cookie("token"),
|
|
2167
|
|
- F_Layer: 1,
|
|
2168
|
|
- }, function (data) {
|
|
2169
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2170
|
|
- var content = data.data;
|
|
2171
|
|
- $(content).each(function (i, n) {
|
|
2172
|
|
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
|
|
2173
|
|
- })
|
|
2174
|
|
- }
|
|
2175
|
|
- })
|
|
2176
|
|
- }
|
|
2177
|
|
-
|
|
2178
|
|
-$('#source').on('change',function(){
|
|
2179
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2180
|
|
- "token": $.cookie("token"),
|
|
2181
|
|
- F_Layer: 2,
|
|
2182
|
|
- F_RegionName:$('#source').val(),
|
|
2183
|
|
-
|
|
2184
|
|
- }, function (data) {
|
|
2185
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2186
|
|
- var content = data.data;
|
|
2187
|
|
-
|
|
2188
|
|
- $(content).each(function (i, n) {
|
|
2189
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#type");
|
|
2190
|
|
- })
|
|
2191
|
|
-
|
|
2192
|
|
- }
|
|
2193
|
|
- })
|
|
2194
|
|
-});
|
|
2195
|
|
-$('#type').on('change',function(){
|
|
2196
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2197
|
|
- "token": $.cookie("token"),
|
|
2198
|
|
- F_Layer: 3,
|
|
2199
|
|
- F_RegionName:$('#type').val()
|
|
2200
|
|
- }, function (data) {
|
|
2201
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2202
|
|
- var content = data.data;
|
|
2203
|
|
- $(content).each(function (i, n) {
|
|
2204
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#keyid");
|
|
2205
|
|
- })
|
|
2206
|
|
- }
|
|
2207
|
|
- })
|
|
2208
|
|
-});
|
|
2209
|
|
-$('#keyid').on('change',function(){
|
|
2210
|
|
- $.getJSON(huayi.config.callcenter_url + "RegionCategory/GetAllList", {
|
|
2211
|
|
- "token": $.cookie("token"),
|
|
2212
|
|
- F_Layer: 4,
|
|
2213
|
|
- F_RegionName:$('#keyid').val()
|
|
2214
|
|
- }, function (data) {
|
|
2215
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2216
|
|
- var content = data.data;
|
|
2217
|
|
- $(content).each(function (i, n) {
|
|
2218
|
|
- $("<option value='" + n.F_RegionName + "'>" + n.F_RegionName + "</option>").appendTo("#input_area");
|
|
2219
|
|
- })
|
|
2220
|
|
- }
|
|
2221
|
|
- })
|
|
2222
|
|
-});
|
|
2223
|
|
-
|
|
2224
|
|
-
|
|
2225
|
|
-
|
|
2226
|
|
- $('#customer_comaddress').on('change',function(){
|
|
2227
|
|
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
|
|
2228
|
|
- "token": $.cookie("token"),
|
|
2229
|
|
- F_Layer: 2,
|
|
2230
|
|
- F_DeptName:$("#customer_comaddress").find("option:selected").text(),
|
|
2231
|
|
-
|
|
2232
|
|
- }, function (data) {
|
|
2233
|
|
- if (data.state.toLowerCase() == "success") {
|
|
2234
|
|
- var content = data.data;
|
|
2235
|
|
-
|
|
2236
|
|
- $(content).each(function (i, n) {
|
|
2237
|
|
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#customer_legalName");
|
|
2238
|
|
- })
|
|
2239
|
|
-
|
|
2240
|
|
- }
|
|
2241
|
|
- })
|
|
2242
|
|
- });
|