constants.js 50.4 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114
/*
 * @Author: limin
 * @Date: 2019-09-01 19:06:01
 * @Last Modified by: chenwq
 * @Last Modified time: 2021-07-12 16:33:07
 */

export const TYPE_NAME = "confType";
/**
 * 前端基础数据管理对应的接口名称的key
 */
export const BaseData = {
	channelType: "channelType",
	productType: "productType",
	productServiceItemList: "productServiceItemList",
	positionTypeList: "positionTypeList", // 太阳膜商品部位
	extendedPosiTypeList: "extendedPosiTypeList", // 延保类商品部位
};
/** 计价单位选项 1-把、2-本、3-对、4-个、5-根、6-盒、7-件、8-卷、9-块、10-辆、11-米、12-克、13-升、14-双、15-台、16-套、17-条、18-桶、19-位、20-页、21-张、22-车 */
export const priceUnitTypeList = [
	{ value: 1, label: "把" },
	{ value: 2, label: "本" },
	{ value: 3, label: "对" },
	{ value: 4, label: "个" },
	{ value: 5, label: "根" },
	{ value: 6, label: "盒" },
	{ value: 7, label: "件" },
	{ value: 8, label: "卷" },
	{ value: 9, label: "块" },
	{ value: 10, label: "辆" },
	{ value: 11, label: "米" },
	{ value: 12, label: "克" },
	{ value: 13, label: "升" },
	{ value: 14, label: "双" },
	{ value: 15, label: "台" },
	{ value: 16, label: "套" },
	{ value: 17, label: "条" },
	{ value: 18, label: "桶" },
	{ value: 19, label: "位" },
	{ value: 20, label: "页" },
	{ value: 21, label: "张" },
	{ value: 22, label: "车" },
];

/**
 * 超级管理员类型
 */
export const SUPPER_ADMIN = true; //

// 商户类型 - 除广汇外
export const userType = {
	// 1: '员工',
	// 2: '门店',
	// 3: '市级经销商',
	// 4: '省级经销商',
	// 5: '工厂',
	1: "工厂",
	2: "省代",
	3: "市代",
	4: "门店",
};

// 商户类型 - 广汇
export const ghUserType = {
	1: "员工",
	2: "门店",
	3: "片区",
	4: "大区",
	5: "总部",
	6: "供应商",
};

// 商户类型 - 除广汇外
export const userTypeList = [
	{
		confId: 1,
		confLabel: "员工",
	},
	{
		confId: 2,
		confLabel: "门店",
	},
	{
		confId: 3,
		confLabel: "市级经销商",
	},
	{
		confId: 4,
		confLabel: "省级经销商",
	},
	{
		confId: 5,
		confLabel: "工厂",
	},
];

// 商户类型 - 广汇
export const ghUserTypeList = [
	{
		confId: 1,
		confLabel: "员工",
	},
	{
		confId: 2,
		confLabel: "门店",
	},
	{
		confId: 3,
		confLabel: "片区",
	},
	{
		confId: 4,
		confLabel: "大区",
	},
	{
		confId: 5,
		confLabel: "总部",
	},
	{
		confId: 6,
		confLabel: "供应商",
	},
];

// 商户分类
export const merchantClassifyList = [
	{
		confId: 1,
		confLabel: "批发/零售商",
	},
	{
		confId: 2,
		confLabel: "4S店",
	},
	{
		confId: 3,
		confLabel: "综合汽贸店",
	},
	{
		confId: 4,
		confLabel: "综合后服务门店 ",
	},
	{
		confId: 5,
		confLabel: "厂家",
	},
	{
		confId: 6,
		confLabel: "园区店",
	},
	{
		confId: 7,
		confLabel: "服务商",
	},
	{
		confId: 8,
		confLabel: "虚拟园区店",
	},
];

// 商户分类 - 4S店(2)和服务商(7)- 查全部(2和7,排除园区店{id:6})
export const merchantStoreServiceList = [
	{
		confId: 2,
		confLabel: "4S店",
	},
	{
		confId: 7,
		confLabel: "服务商",
	},
	{
		confId: -1,
		confLabel: "园区店",
	},
];

// 手续费
export const deductChargeFlagObj = {
	Y: "扣除手续费(按0.6%的标准)",
	N: "不扣除手续费",
};

// 导流方分润手续费
export const shop4sDeductChargeFlagObj = {
	Y: "导流方分润扣除手续费",
	N: "导流方分润不扣除手续费",
};

// 服务商分润手续费
export const partnerDeductChargeFlagObj = {
	Y: "服务商分润扣除手续费",
	N: "服务商分润不扣除手续费",
};

// 品牌商
export const brandMerchantList = [
	{
		confId: "1",
		confValue: "3M/福膜",
	},
	{
		confId: "2",
		confValue: "强生/福膜",
	},
	{
		confId: "3",
		confValue: "强生/斯帝飞",
	},
	{
		confId: "4",
		confValue: "3M/斯帝飞",
	},
	{
		confId: "5",
		confValue: "3M/今蓝",
	},
	{
		confId: "6",
		confValue: "量子/今蓝",
	},
	{
		confId: "7",
		confValue: "强生",
	},
	{
		confId: "8",
		confValue: "今蓝",
	},
	{
		confId: "9",
		confValue: "琥珀",
	},
	{
		confId: "10",
		confValue: "嘀嘀虎",
	},
	{
		confId: "11",
		confValue: "康得新",
	},
];

// 分账方式
export const divisionTypeList = [
	{
		confId: "1",
		confLabel: "线下对账",
	},
	{
		confId: "2",
		confLabel: "线上分账",
	},
];

// 支付方式
export const payTypeList = [
	{
		confId: "1",
		confLabel: "微信支付",
	},
	{
		confId: "2",
		confLabel: "4S店支付",
	},
	{
		confId: "3",
		confLabel: "POS机收款",
	},
	{
		confId: "4",
		confLabel: "支付宝支付",
	},
	{
		confId: "5",
		confLabel: "嘀加收款",
	},
	{
		confId: "6",
		confLabel: "对公转账",
	},
	{
		confId: "7",
		confLabel: "其他收款",
	},
];
export const payType = {
	1: "微信支付",
	2: "4S店支付",
	3: "POS机收款",
	4: "支付宝支付",
	5: "嘀加收款",
	6: "对公转账",
	7: "其他收款",
};

// 订单类型
export const orderTypeList = [
	{
		confId: "1",
		confLabel: "正常",
	},
	{
		confId: "2",
		confLabel: "异常",
	},
	{
		confId: "3",
		confLabel: "正常测试",
	},
	{
		confId: "4",
		confLabel: "异常测试",
	},
	{
		confId: "5",
		confLabel: "未收款",
	},
	{
		confId: "-1",
		confLabel: "无",
	},
];

// 分账状态
export const divisionStatusList = [
	{
		confId: "1",
		confLabel: "待分账",
	},
	{
		confId: "2",
		confLabel: "分账中",
	},
	{
		confId: "3",
		confLabel: "分账成功",
	},
	{
		confId: "4",
		confLabel: "分账失败",
	},
	{
		confId: "5",
		confLabel: "异常",
	},
];

// 提现状态
export const withdrawStatusList = [
	{
		confId: 1,
		confLabel: "提现中",
	},
	{
		confId: 2,
		confLabel: "提现成功",
	},
	{
		confId: 3,
		confLabel: "提现失败",
	},
];
// (1:未签约,2:已签约))
export const withdrawSignStatusList = [
	{
		confId: 1,
		confLabel: "未签约",
	},
	{
		confId: 2,
		confLabel: "已签约",
	},
];
// 提现渠道
export const withdrawChannelList = [
	{
		confId: 1,
		confLabel: "小程序",
	},
	{
		confId: 2,
		confLabel: "PC后台",
	},
];

// 出库状态
export const warehouseStatusList = [
	{
		confId: 1,
		confLabel: "待出库",
	},
	{
		confId: 3,
		confLabel: "出库中",
	},
	{
		confId: 4,
		confLabel: "出库成功",
	},
	{
		confId: 5,
		confLabel: "出库失败",
	},
];

// 获取最近n个月,默认6个月
export function getCurrentSixMonth(n = 5) {
	return [
		new Date(new Date().setMonth(new Date().getMonth() - n)),
		new Date(),
	];
}

// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
export function limitPrice(
	newValue,
	oldValue,
	intergerDigit,
	pointDigit,
	minValue,
	maxValue,
	regRule,
) {
	let reg = {
		priceReg: /^\d[\d\.]*$/, // eslint-disable-line
		numReg: /^[1-9]\d*$/,
	};
	regRule = regRule || "priceReg";
	if (
		newValue
		&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
	) {
		return oldValue || "";
	}
	if (newValue && reg[regRule].test(newValue + "")) {
		if (/\./.test(newValue)) {
			newValue = newValue + "";
			let interger = newValue.split(".")[0];
			let point = newValue.split(".")[1];
			let intergerNum
				= interger.length > intergerDigit
					? oldValue.split(".")[0]
					: interger;
			let pointNum
				= point.length > pointDigit ? point.slice(0, pointDigit) : point;
			newValue = pointDigit
				? intergerNum + "." + pointNum
				: newValue.split(".")[0];
		} else {
			newValue
				= newValue.length > intergerDigit
					? oldValue.slice(0, intergerDigit)
					: newValue;
		}
		return newValue;
	} else {
		return newValue ? oldValue : "";
	}
}

/**
 * 时间控件-限制月份
 */
export const rangePickerOptions = {
	disabledDate(date) {
		console.log(date);

		console.log(new Date());

		if (date > new Date()) {
			return true;
		}
		return false;
	},
};

/**
 * 时间控件-(0-30天内的日期)
 */
export const appointDays = 35;
export const afterTodayOptions = {
	disabledDate(date) {
		if (
			date < new Date(new Date().toLocaleDateString())
			|| date
			> new Date(
				new Date().setDate(new Date().getDate() + (appointDays - 1)),
			)
		) {
			return true;
		}
		return false;
	},
};

/**
 * 时间控件-限制93天
 */
export const rangePickertwoMonthOptions = {
	disabledDate(date) {
		console.log(date, "232323");
		// 获取当前日期
		const now = new Date();
		// 设置时间为00:00:00,确保日期比较的准确性
		now.setHours(0, 0, 0, 0);

		// 计算93天前的日期
		const ninetyThreeDaysAgo = new Date(now);
		ninetyThreeDaysAgo.setDate(ninetyThreeDaysAgo.getDate() - 93);

		// 禁用未来日期和93天前的日期
		return date > now || date < ninetyThreeDaysAgo;
	},
};

// 园区店模式/经营模式
export const manageTypeList = [
	{ confId: 0, confLabel: "园区店" },
	{ confId: 1, confLabel: "驻店" },
];

// 导流方渠道
export const sourceChannelTypeList = [
	{ confId: 1, confLabel: "嘀加渠道" },
	{ confId: 2, confLabel: "广汇渠道" },
];

export const warrantyProList = [1, 4, 6, 12, 14];

// 所属场景
export const sceneCodeList = [
	{ confId: 0, confValue: "会员权益/升级" },
	{ confId: 1, confValue: "精品升级" },
	{ confId: 2, confValue: "次新车转化" },
	{ confId: 3, confValue: "售后众筹" },
	{ confId: 4, confValue: "积分商城" },
];
export const otherSceneList = [{ confId: 7, confValue: "二手车" }];
// 所属场景
export const sceneList = {
	1: "精品升级",
	2: "次新车转化",
	3: "售后众筹",
	0: "会员权益/升级",
	4: "积分商城",
	7: "二手车",
};
// 新场景
export const newSceneList = {
	0: "权益类",
	1: "轻改类",
};
// 导流方下拉选项对应
export const attrToVal = [
	{
		confId: 3,
		confLabel: "city",
	},
	{
		// confId: 4,
		confId: 2,
		confLabel: "province",
	},
	{
		// confId: 5,
		confId: 1,
		confLabel: "factory",
	},
];

export const sceneType = {
	1: "精品升级",
	2: "次新车转化",
	3: "售后众筹",
	0: "会员权益/升级",
	4: "积分商城",
};

export const proportionType = {
	1: "(毛利)",
	2: "(收入)",
	3: "(固定金额)",
	4: "(产值-流量成本)",
	5: "(产值-流量成本-其他费用不包含产品成本)",
	6: "(产值-流量成本-其他费用包含产品成本)",
	8: "(收入-自定义其他费用)",
	9: "(收入-其他费用)",
};

export const targetType = {
	1: "流量方",
	2: "服务商",
	3: "公共",
};

// 太阳膜部位
// export const positionTypeList = [
//   {
//     position: 1,
//     confName: "前档玻璃",
//     deductionStandard: 1
//   },
//   {
//     position: 2,
//     confName: "侧后档玻璃",
//     deductionStandard: 2
//   },
//   {
//     position: 3,
//     confName: "单帖侧窗一个",
//     deductionStandard: 0.4
//   },
//   {
//     position: 4,
//     confName: "单帖后档一个",
//     deductionStandard: 0.8
//   },
//   {
//     position: 5,
//     confName: "单帖小天窗",
//     deductionStandard: 0.4
//   },
//   {
//     position: 6,
//     confName: "单帖中天窗",
//     deductionStandard: 0.8
//   },
//   {
//     position: 7,
//     confName: "单帖全景天窗",
//     deductionStandard: 1
//   }
// ]
// 太阳膜适用车型
export const applicableModelTypeList = [
	{
		confId: 1,
		confName: "小轿车",
	},
	{
		confId: 2,
		confName: "SUV",
	},
	{
		confId: 3,
		confName: "MPV",
	},
	{
		confId: 4,
		confName: "货车",
	},
];
/**
 1-太阳膜
 4-车衣(众筹)
 6-改色膜(众筹)
 12-车衣
 14-改色膜
 */
export const membraneTypeList = [1, 4, 6, 12, 14];

export const businessType = [
	{
		optionId: 1,
		optionLabel: "1.2",
	},
	{
		optionId: 2,
		optionLabel: "1.3",
	},
	{
		optionId: 3,
		optionLabel: "2.0",
	},
];
export const orderManageStatusList = [
	{ confId: "1", confName: "待付款" },
	{ confId: "2", confName: "已支付" },
	{ confId: "3", confName: "已失效" },
	// { confId: '21', confName: '待收货(待核销)' },
	{ confId: "21", confName: "待核销" },
	{ confId: "22", confName: "已核销" },
	// { confId: '22', confName: '已收货(已核销)' },
	{ confId: "6", confName: "待发货" },
	// { confId: '7', confName: '待核销' },
	// { confId: '8', confName: '已核销' },
	{ confId: "9", confName: "售后中" },
	{ confId: "10", confName: "售后完成" },
	{ confId: "11", confName: "待审批" },
];
export const orderManageStatusList_integral = [
	{ confId: "1", confName: "待付款" },
	{ confId: "2", confName: "已支付" },
	{ confId: "3", confName: "已失效" },
	// { confId: '21', confName: '待收货(待核销)' },
	{ confId: "21", confName: "待核销" },
	{ confId: "22", confName: "已核销" },
	// { confId: '22', confName: '已收货(已核销)' },
	{ confId: "6", confName: "待发货" },
	// { confId: '7', confName: '待核销' },
	// { confId: '8', confName: '已核销' },
	{ confId: "9", confName: "售后中" },
	{ confId: "10", confName: "售后完成" },
	{ confId: "11", confName: "待审批" },
	// { confId: "1", confName: "待付款" },
	// { confId: "2", confName: "已支付" },
	// { confId: "3", confName: "已失效" },
	// // { confId: '21', confName: '待收货(待核销)' },
	// { confId: "21", confName: "已发货" },
	// { confId: "22", confName: "已收货" },
	// // { confId: '22', confName: '已收货(已核销)' },
	// { confId: "6", confName: "待发货" },
	// // { confId: '7', confName: '待核销' },
	// // { confId: '8', confName: '已核销' },
	// { confId: "9", confName: "售后中" },
	// { confId: "10", confName: "售后完成" },
	// { confId: "11", confName: "待审批" }
];
export const orderSourceList = [
	{ confId: "1", confName: "商城订单" },
	{ confId: "2", confName: "直播订单" },
	{ confId: "3", confName: "活动订单" },
	{ confId: "4", confName: "众筹订单" },
];

export const deliveryTypeList = [
	{ confId: "1", confName: "到店核销" },
	{ confId: "2", confName: "快递到家" },
];

export const afterSaleStatusList = [
	{ confId: "1", confName: "待审核" },
	{ confId: "2", confName: "审核成功" },
	{ confId: "3", confName: "审核失败" },
	{ confId: "4", confName: "待确认" },
	{ confId: "5", confName: "退款中" },
	{ confId: "6", confName: "已退款" },
	{ confId: "7", confName: "退款失败" },
];

export const invouceType = [
	{ confId: 0, confName: "待签收" },
	{ confId: 1, confName: "已签收(未入库)" },
	{ confId: 2, confName: "已入库" },
	{ confId: 3, confName: "部分入库" },
];

// 服务商管理 采购模式
export const procureModeList = [
	{ confId: 1, confName: "直营" },
	{ confId: 2, confName: "批发" },
	{ confId: 3, confName: "代销" },
];
// 开店审核 申请状态
export const applyStatus = [
	{ confId: 1, confName: "待审核" },
	{ confId: 2, confName: "已审核" },
	{ confId: 3, confName: "已驳回" },
];
// 店面配置 业务性质
export const businessNature = [
	{ confId: 1, confName: "直营渠道" },
	{ confId: 2, confName: "直营4S店" },
	// { confId: 3, confName: "合资收购" },
	{ confId: 4, confName: "投资收购-利丰" },
	{ confId: 5, confName: "投资收购-内蒙古" },
	{ confId: 7, confName: "投资收购-龙南" },
	{ confId: 8, confName: "投资收购-湖北正旺" },
	{ confId: 6, confName: "服务商投资" },
	{ confId: 9, confName: "系统实施-新疆东捷" },
	{ confId: 10, confName: "系统实施-捷通达" },
];
// 店面配置 业务性质
export const businessNatureShow = {
	1: "直营渠道",
	2: "直营4S店",
	3: "合资收购",
};
// 店面配置 门店类型
export const storeType = [
	{ confId: 1, confName: "嘀加" },
	{ confId: 2, confName: "广汇" },
	{ confId: 3, confName: "直营" },
	{ confId: 9, confName: "冀联" },
];
// 店面配置 部署场景
export const sceneForShop = [
	{ confId: 1, confValue: "1.1精品升级" },
	{ confId: 4, confValue: "1.2次新车升配" },
	{ confId: 3, confValue: "1.3售后众筹" },
	{ confId: 0, confValue: "2.1会员权益/升级" },
	{ confId: 2, confValue: "2.2续保膨胀金" },
];
// 店面配置 员工类型
export const staffBusinessType = [
	{ confId: 0, confValue: "驻店人员" },
	{ confId: 1, confValue: "门店销售" },
];
// 店面配置 人员设置列表-部署场景
export const sceneForPerson = [
	{ confId: "1", confValue: "1.1" },
	{ confId: "4", confValue: "1.2" },
	{ confId: "3", confValue: "1.3" },
	{ confId: "0", confValue: "2.1" },
	{ confId: "2", confValue: "2.2" },
];
// 库存管理 订单类型
export const upgradeFlags = [
	{ confId: "Y", confValue: "升级" },
	{ confId: "N", confValue: "战败" },
];

// 转账管理 状态
export const transferAccountsStatusList = [
	{ confId: 0, confValue: "商务领导审核" },
	{ confId: 1, confValue: "运营审核" },
	{ confId: 2, confValue: "财务确认" },
	{ confId: 3, confValue: "转账中" },
	{ confId: 4, confValue: "已转账" },
	{ confId: 5, confValue: "到账中" },
	{ confId: 6, confValue: "已到账" },
	{ confId: 7, confValue: "转账失败" },
	{ confId: 8, confValue: "到账失败" },
	{ confId: 9, confValue: "驳回" },
];

export const transferAccountsStatusShow = {
	0: "商务领导审核",
	1: "运营审核",
	2: "财务确认",
	3: "转账中",
	4: "已转账",
	5: "到账中",
	6: "已到账",
	7: "转账失败",
	8: "到账失败",
	9: "驳回",
};

// 转账管理 转账类型
export const transferTypeList = [
	{ confId: 1, confValue: "服务商款项" },
	{ confId: 2, confValue: "流量方款项" },
];

export const transferTypeShow = { 1: "服务商款项", 2: "流量方款项" };

// 提现管理 状态
export const withdrawalManageStatusList = [
	{ confId: 5, confValue: "到账中" },
	{ confId: 6, confValue: "已到账" },
	{ confId: 8, confValue: "到账失败" },
];

// 库存管理模式
export const stockManagementModeList = [
	{ confId: 2, confName: "不使用膜卷号" },
	{ confId: 1, confName: "使用膜卷号" },
];

// 转账管理-预警状态
export const warningStatus = [
	{ confId: "Y", confValue: "正常" },
	{ confId: "N", confValue: "异常" },
];

// 转账管理-对账方式
export const rangeType = [
	{ confId: 1, confValue: "按周期" },
	{ confId: 2, confValue: "按订单" },
];

// 转账管理 - 审批方式
export const approveTypeList = [
	{ confId: 1, confValue: "嘀加审批" },
	{ confId: 2, confValue: "企微OA审批" },
];

// 转账管理 - 审批状态
export const oaApproveStatusList = [
	{ confId: 1, confValue: "审批中" },
	{ confId: 2, confValue: "已通过" },
	{ confId: 3, confValue: "已驳回" },
	{ confId: 4, confValue: "已撤销" },
];

// 规则审核-类型
export const ruleReview_type = [
	{ confId: 1, confValue: "清分" },
	{ confId: 3, confValue: "对账" },
];
export const ruleReview_type_show = {
	1: "清分",
	3: "对账",
};

// 规则审核-状态
export const ruleReview_status = [
	{ confId: 1, confValue: "待审核" },
	{ confId: 2, confValue: "已审核" },
	{ confId: 3, confValue: "已驳回" },
	{ confId: 4, confValue: "逾期未审" },
	{ confId: 5, confValue: "已撤销" },
	{ confId: 6, confValue: "异常" },
];

// 服务商类型
export const partnerTypeList = [
	{ confId: 1, confName: "普通" },
	{ confId: 2, confName: "个体" },
];

// 驻店管理 所属业务对应
export const sceneForInStore = [
	{ confId: "1", confValue: "1.1" },
	{ confId: "4", confValue: "1.2" },
	{ confId: "3", confValue: "1.3" },
	{ confId: "0", confValue: "2.1" },
	{ confId: "2", confValue: "2.2" },
];

// 下载报表 报表类型
export const downloadReportManage_reportType = [
	{ confId: "merchantPerformance", confValue: "门店业绩数据表" },
	{ confId: "sellerPerformance", confValue: "零售人员业绩提成数据表" },
	{ confId: "multiCategoryOperation", confValue: "多品类运营" },
	{ confId: "multiCategoryOperationMerchant", confValue: "多品类运营-门店" },
	{
		confId: "selleruseruserdipadanalysis",
		confValue: "驻店人员平板使用分析",
	},
	{ confId: "dailybehaviorsummary", confValue: "日行为汇总表" },
	{ confId: "weeklybehaviorsummary", confValue: "周行为汇总表" },
	{ confId: "businessDataSummary", confValue: "业务数据汇总" },
	{ confId: "yanbaoMerAndPerRanking", confValue: "门店产值及个人成交排名" },
	{ confId: "abnormalClockWeeklySummary", confValue: "打卡异常周汇总表" },
	{ confId: "ClockMonthlySummary", confValue: "打卡月汇总表" },
	{
		confId: "technicianConstructionOrder",
		confValue: "轻改技师施工单月度汇总表",
	},
	{ confId: "yqMerchantGrossProfitReport", confValue: "园区店毛利报表" },
	{
		confId: "learningCourseReviewReport",
		confValue: "课程学习复盘报表",
	},
	{
		confId: "salesDailyMonthlySummaryTable",
		confValue: "销售日报月汇总表",
	},
	{
		confId: "BIAnalysisReport",
		confValue: "BI数据分析表",
	},
	{
		confId: "noDailyReportMerchantOutputReport",
		confValue: "无日报门店产值表",
	},
];

// 下载报表 业务类型
export const downloadReportManage_businessType = [
	{ confId: "jingpin", confValue: "精品升级" },
	{ confId: "quanyi", confValue: "权益" },
	{ confId: "yanbao", confValue: "延保" },
];

// 驻店管理-员工状态
export const staffStatusList = [
	{ confId: "N", confValue: "启用" },
	{ confId: "I", confValue: "禁用" },
	{ confId: "D", confValue: "已删除" },
];

// 人员管理-员工审核-审核状态
export const auditStatusList = [
	{ confId: 0, confValue: "待审核" },
	{ confId: 1, confValue: "已审核" },
	{ confId: 2, confValue: "已驳回" },
];

// 人员管理-员工审核-审核状态
export const auditTypeList = [
	{ confId: 0, confValue: "变更" },
	{ confId: 1, confValue: "新增" },
	{ confId: 2, confValue: "删除" },
];

// 人员管理-员工审核-审核状态
export const refundExamine_status = [
	{ confId: 0, confValue: "运营审核" },
	{ confId: 1, confValue: "商务审核" },
	{ confId: 2, confValue: "财务复核" },
	{ confId: 3, confValue: "财务结算" },
	{ confId: 4, confValue: "已完成" },
	{ confId: 5, confValue: "驳回" },
	{ confId: 7, confValue: "区域运营审核" },
	{ confId: 8, confValue: "运营补充" },
];

// 订单管理-退款审核-审批类型
export const refundExamine_approveTypeOpt = [
	{ confId: 1, confValue: "嘀加审批" },
	{ confId: 2, confValue: "企微OA审批" },
];

// 订单管理-退款审核-企微审批状态
export const oaApproveStatusOpt = [
	{ confId: 1, confValue: "审批中" },
	{ confId: 2, confValue: "已通过" },
	{ confId: 3, confValue: "已驳回" },
	{ confId: 4, confValue: "已撤销" },
];

// 订单管理 - 退款单来源
export const refundOrderSourceOpt = [
	{ confId: 0, confValue: "嘀加系统" },
	{ confId: 1, confValue: "小程序" },
];

// 订单管理-退款审核-退款类型
export const refundPayTypeOpt = [
	{ confId: 1, confValue: "已录订单退款" },
	{ confId: 2, confValue: "门店退款标记" },
	{ confId: 3, confValue: "未关联流水退款" },
];

// 虚拟对公账户银盛到账模式
export const receiptModeList = [
	{ confId: 1, confValue: "T+1" },
	{ confId: 2, confValue: "D+1" },
];
// 发票税率
export const invoiceTaxRateList = [
	{ confId: 0, confValue: "专票1%" },
	{ confId: 1, confValue: "专票3%" },
	{ confId: 2, confValue: "专票6%" },
	{ confId: 3, confValue: "专票13%" },
	{ confId: 4, confValue: "普票1%" },
	{ confId: 5, confValue: "普票3%" },
	{ confId: 6, confValue: "普票6%" },
	{ confId: 7, confValue: "普票13%" },
	{ confId: 8, confValue: "不需要开票" },
];

// 合作模式
export const cooperationModeList = [
	{ confId: 0, confValue: "单店" },
	{ confId: 1, confValue: "集团" },
];

// 收款方式
export const paymentMethodList = [
	{ confId: 0, confValue: "嘀加收款" },
	{ confId: 1, confValue: "门店收款" },
];

// 服务商分类
export const partnerClassifyList = [
	{ confId: 0, confValue: "服务商" },
	{ confId: 1, confValue: "直营" },
];

// 子业务
export const subBusinessList = [
	{ confId: "0", confValue: "权益" },
	{ confId: "1", confValue: "延保" },
];

// 商品库-发卷宝-领用明细-预约状态
export const inviteStatusList = [
	{ confId: 1, confValue: "待预约" },
	{ confId: 2, confValue: "已预约" },
	{ confId: 3, confValue: "取消预约" },
	{ confId: 4, confValue: "已施工" },
	{ confId: 5, confValue: "过期到店" },
	{ confId: 6, confValue: "已撤销" },
	{ confId: 7, confValue: "已支付" },
];

// 内容管理-员工群发-内容类型
export const contentTypeList = [
	{ confId: 1, confValue: "图文" },
	{ confId: 2, confValue: "视频" },
	{ confId: 3, confValue: "pdf" },
	{ confId: 4, confValue: "优秀话术" },
	{ confId: 5, confValue: "学习任务" },
];

// 内容管理-员工群发-发送状态
export const sendStatusList = [
	{ confId: 1, confValue: "草稿" },
	{ confId: 2, confValue: "待发送" },
	{ confId: 3, confValue: "已发送" },
];

// 预警管理 所属业务
export const businessOpt = [
	{ confId: 2, confValue: "轻改" },
	{ confId: 3, confValue: "权益" },
	{ confId: 4, confValue: "延保" },
];

// 预警管理 所属业务 显示文字
export const businessOptShowText = {
	2: "轻改",
	3: "权益",
	4: "延保",
};
// 预警管理 所属业务 显示文字
export const orderBusinessType = {
	"0": "轻改",
	"1": "权益",
	"2": "延保",
	"-1": "其他",
};

// 预警管理 优先级
export const priorityOpt = [
	{ confId: 1, confValue: "高" },
	{ confId: 2, confValue: "中" },
	{ confId: 3, confValue: "低" },
];

// 预警管理 优先级 显示文字
export const priorityShowText = {
	1: "高",
	2: "中",
	3: "低",
};

// 预警管理 预警阶段
export const warnStageyOpt = [
	{ confId: 1, confValue: "第一阶段" },
	{ confId: 2, confValue: "第二阶段" },
];

// 预警管理 状态
export const statusOpt = [
	{ confId: 1, confValue: "待处理" },
	{ confId: 2, confValue: "预约处理" },
	{ confId: 3, confValue: "已完成" },
	{ confId: 0, confValue: "无需处理" },
];

// 预警管理 筛选
export const filterOpt = [
	{ confId: 1, confValue: "我负责的" },
	{ confId: 2, confValue: "待我处理的" },
	{ confId: 3, confValue: "我处理过的" },
];
export const supervisorStatuOpt = [
	{ confId: 1, confValue: "已跟进" },
	{ confId: 0, confValue: "未跟进" },
];
// 驻店积分管理 状态
export const pointStatusOpt = [
	{ confId: 1, confValue: "启用" },
	{ confId: 0, confValue: "停用" },
];

// 驻店积分管理 积分增减
export const pointValueSignOpt = [
	{ confId: 0, confValue: "积分增加" },
	{ confId: -1, confValue: "积分扣减" },
];

// 成长等级 奖励类型
export const levelTypeOpt = [
	{ confId: 1, confValue: "积分区间" },
	{ confId: 2, confValue: "勋章" },
];

// 成长等级 等级名称
export const levelNameOpt = [
	{ confId: "青铜萌新", confValue: "青铜萌新" },
	{ confId: "白银熟手", confValue: "白银熟手" },
	{ confId: "黄金能手", confValue: "黄金能手" },
	{ confId: "钻石专家", confValue: "钻石专家" },
	{ confId: "学习之星", confValue: "学习之星" },
	{ confId: "全勤之星", confValue: "全勤之星" },
	{ confId: "零售导师", confValue: "零售导师" },
	{ confId: "平板接待精英", confValue: "平板接待精英" },
];

// 成长等级 开启状态
export const openStateOpt = [
	{ confId: true, confValue: "启用" },
	{ confId: false, confValue: "停用" },
];

// 员工职级
export const staffLevelList = [
	{ confId: 0, confValue: "实习生(理论)" },
	{ confId: 1, confValue: "实习生(实践)" },
	{ confId: 2, confValue: "初级驻店" },
	{ confId: 3, confValue: "中级驻店" },
	{ confId: 4, confValue: "高级驻店" },
	{ confId: 5, confValue: "小店长" },
	{ confId: 6, confValue: "大店长" },
	{ confId: 7, confValue: "初级区域督导" },
	{ confId: 8, confValue: "中级区域督导" },
	{ confId: 9, confValue: "高级区域督导" },
	{ confId: 11, confValue: "驻店零售" },
];

// 所属业务
export const staffSceneLabelList = [
	{ confId: "1", confValue: "轻改" },
	{ confId: "0", confValue: "会员权益/升级" },
];

// 财资数据 收支标志
export const cdSignOpt = [
	{ confId: 0, confValue: "收入" },
	{ confId: 1, confValue: "支出" },
];

// 财资数据 同步状态
export const jdSyncOpt = [
	{ confId: 0, confValue: "失败" },
	{ confId: 1, confValue: "成功" },
];

// 财资数据 回单状态
export const receiptStatusOpt = [
	{ confId: 0, confValue: "否" },
	{ confId: 1, confValue: "是" },
];

// 财资数据 数据来源
export const dataSourceOpt = [
	{ confId: 1, confValue: "宁波财资" },
	{ confId: 2, confValue: "人工导入" },
];

// 财资数据 操作项
export const operationTypeOpt = [
	{ confId: 1, confValue: "重推财资数据" },
	{ confId: 2, confValue: "推送财资数据" },
	{ confId: 3, confValue: "获取财资数据" },
	{ confId: 4, confValue: "获取流水明细" },
	{ confId: 5, confValue: "获取回单" },
	{ confId: 6, confValue: "推送流水明细" },
	{ confId: 7, confValue: "推送回单" },
	{ confId: 8, confValue: "重推流水明细" },
	{ confId: 9, confValue: "重推回单" },
	{ confId: 10, confValue: "编辑自定义标签" },
];

// 财资数据 操作项
export const operationResultOpt = [
	{ confId: "Y", confValue: "成功" },
	{ confId: "N", confValue: "失败" },
];

// 财资数据 关联状态
export const associationOpt = [
	{ confId: 1, confValue: "未关联" },
	{ confId: 2, confValue: "已关联" },
];

// 订单管理 会员权益订单 上传协议
export const zyVoucherStatusOpt = [
	{ confId: "0", confValue: "无需上传" },
	{ confId: "1", confValue: "待上传" },
	{ confId: "2", confValue: "已上传" },
];

// 嘀加上架 审批类型
export const approveTypeOpt = [
	{ confId: 1, confValue: "嘀加上架与销售合同" },
	{ confId: 2, confValue: "嘀加上架修改" },
];

// 嘀加上架 系统状态
export const systemStatusOpt = [
	{ confId: 1, confValue: "运营确认" },
	{ confId: 2, confValue: "已转OA" },
	{ confId: 3, confValue: "完成上架更新" },
	{ confId: 4, confValue: "驳回" },
	{ confId: 5, confValue: "处理中" },
];

// 嘀加上架 审批状态
export const approveStatusOpt = [
	{ confId: 1, confValue: "审批中" },
	{ confId: 2, confValue: "已通过" },
	{ confId: 3, confValue: "已驳回" },
	{ confId: 4, confValue: "已撤销" },
];

// 嘀加上架 业务线
export const businessLineOpt = [
	{ confId: 1, confValue: "权益" },
	{ confId: 2, confValue: "延保" },
];

// 嘀加上架 结算方式
export const settlementTypeOpt = [
	{ confId: 2, confValue: "门店收款" },
	{ confId: 5, confValue: "嘀加收款" },
];

// 嘀加上架 上架类型
export const shelfTypeOpt = [
	{ confId: 1, confValue: "单店模式" },
	{ confId: 2, confValue: "项目制批量上架" },
];

// 门店产值 业务类型
export const outputValue_businessOpt = [
	{ confId: 0, confValue: "轻改" },
	{ confId: 1, confValue: "权益" },
	{ confId: 2, confValue: "延保" },
];

// 门店产值 业务类型
export const outputValue_operTypeOpt = [
	{ confId: 1, confValue: "新增" },
	{ confId: 2, confValue: "修改" },
	{ confId: 3, confValue: "删除" },
];

// 门店毛利额 业务类型
export const profit_operTypeOpt = [
	{ confId: "ADD", confValue: "新增" },
	{ confId: "UPDATE", confValue: "修改" },
	{ confId: "DELETE", confValue: "删除" },
	{ confId: "IMPORT", confValue: "导入" },
];

// 带教管理 业务类型1
export const teaching_businessOpt = [
	{ confId: 0, confValue: "权益升级" },
	{ confId: 1, confValue: "延保升级" },
	{ confId: 2, confValue: "精品升级" },
];

// 带教管理 业务类型2
export const teaching_saleTypeOpt = [
	{ confId: "0", confValue: "售前" },
	{ confId: "1", confValue: "售后" },
];

// 带教管理 任务状态
export const teaching_taskStatusOpt = [
	{ confId: 0, confValue: "待接受" },
	{ confId: 1, confValue: "进行中" },
	{ confId: 2, confValue: "已结束" },
];

// 带教管理 支援类型
export const teaching_supportTypeOpt = [
	{ confId: 0, confValue: "新店启动" },
	{ confId: 1, confValue: "老店业绩提升-渗透率过低" },
	{ confId: 2, confValue: "老店业绩提升-客单价过低" },
];

// 带教管理 支援方式
export const teaching_supportWayOpt = [
	{ confId: 0, confValue: "线上" },
	{ confId: 1, confValue: "线下" },
];

// 带教管理 支援方式
export const teaching_storeTypeOpt = [
	{ confId: 0, confValue: "老店" },
	{ confId: 1, confValue: "新店" },
];

// 话术业务场景
export const channelTypeList = [
	{ confId: 1, confValue: "企业微信" },
	{ confId: 2, confValue: "展业助手" },
];

// 预警管理 所属业务
export const businessSceneOpt = [
	{ confId: 0, confValue: "延保" },
	{ confId: 2, confValue: "权益" },
	{ confId: 1, confValue: "精品" },
];
export const checkStautsOpt = [
	{ confId: 0, confValue: "待确认" },
	{ confId: 1, confValue: "待核验" },
	{ confId: 2, confValue: "已入库" },
	{ confId: 3, confValue: "已驳回" },
];

// 发票管理 使用状态
export const useStatusOpt = [
	{ confId: "Y", confValue: "已使用" },
	{ confId: "N", confValue: "未使用" },
];

// 发票管理 是否在有效期
export const expireStatusOpt = [
	{ confId: "Y", confValue: "是" },
	{ confId: "N", confValue: "否" },
];

// 发票管理 二维码来源
export const createdSourceOpt = [
	{ confId: 1, confValue: "小程序" },
	{ confId: 2, confValue: "WEB端" },
];

// 发票管理 作废状态
export const cancelStatusOpt = [
	{ confId: "Y", confValue: "已作废" },
	{ confId: "N", confValue: "未作废" },
];

// 发票管理 发票种类
export const invoiceTypeOpt = [
	{ confId: "81", confValue: "数电票(增值税专用发票)" },
	{ confId: "82", confValue: "数电票(普通发票)" },
];

// 发票管理 冲红标志
export const redFlagOpt = [
	{ confId: "NOT_RED", confValue: "未冲红" },
	{ confId: "ALREADY_RED", confValue: "已冲红" },
	{ confId: "REDING", confValue: "冲红中" },
	{ confId: "RED_FAIL", confValue: "冲红失败" },
	{ confId: "PART_RED", confValue: "部分冲红" },
];

// 发票管理 作废标志
export const invalidFlagOpt = [
	{ confId: "NOT_DESTROY", confValue: "未作废" },
	{ confId: "ALREADY_DESTROY", confValue: "已作废" },
	{ confId: "DESTROYING", confValue: "作废中" },
	{ confId: "DESTROY_FAIL", confValue: "作废失败" },
];

// 发票管理 开票类型
export const InvoicingOpt = [
	{ confId: "1", confValue: "蓝票" },
	{ confId: "2", confValue: "红票" },
];

// 发票管理 冲红原因
export const redReasonOpt = [
	{ confId: "01", confValue: "开票有误" },
	{ confId: "02", confValue: "销货退回" },
	{ confId: "04", confValue: "销售折让" },
];

// 发票冲红管理 红票状态
export const redCodeOpt = [
	{ confId: "0000", confValue: "开票成功" },
	{ confId: "6666", confValue: "未开票" },
	{ confId: "7777", confValue: "开票中" },
	{ confId: "4999", confValue: "申请中" },
	{ confId: "5999", confValue: "审核中" },
	{ confId: "9999", confValue: "开票失败" },
];

// 待付清单 数据来源
export const transferSourceOpt = [
	{ confId: 1, confValue: "嘀加退款" },
	{ confId: 0, confValue: "企微OA" },
];

// 待付清单 数据来源
export const bill_statusOpt = [
	{ confId: 0, confValue: "未推送" },
	{ confId: 1, confValue: "成功" },
	{ confId: 2, confValue: "失败" },
	{ confId: -1, confValue: "无需推送" },
];

// 待付清单 付款方式
export const payTypeOpt = [
	{ confId: 0, confValue: "银行转账" },
	{ confId: 1, confValue: "现金" },
	{ confId: 2, confValue: "银行承兑汇票" },
	{ confId: 3, confValue: "信用证" },
	{ confId: 4, confValue: "冲账" },
	{ confId: 5, confValue: "其他" },
];

// 待付清单 详情日志操作项
export const transferStatusOpt = [
	{ confId: 0, confValue: "获取付款单" },
	{ confId: 1, confValue: "推送付款单" },
	{ confId: 2, confValue: "重推付款单" },
];

// 申请虚拟账户成本-通联 证件类型
export const legalCertTypeOpt = [
	{ confId: "00", confValue: "身份证" },
	{ confId: "01", confValue: "中国护照" },
	{ confId: "03", confValue: "警官证" },
	{ confId: "04", confValue: "户口簿" },
	{ confId: "05", confValue: "临时身份证" },
	{ confId: "07", confValue: "港澳通行证" },
	{ confId: "08", confValue: "台胞通行证" },
	{ confId: "14", confValue: "军官证" },
	{ confId: "16", confValue: "军人士兵证" },
	{ confId: "17", confValue: "武警士兵证" },
	{ confId: "19", confValue: "营业执照" },
	{ confId: "24", confValue: "外国人居留证" },
	{ confId: "99", confValue: "其他证件" },
];
export const label_businessOpt = [
	{ confId: 2, confValue: "轻改" },
	{ confId: 3, confValue: "权益" },
	{ confId: 1, confValue: "延保" },
];
// 服务中心-长课程配置 是否启用处罚
export const punishFlagOpt = [
	{ confId: "0", confValue: "否" },
	{ confId: "1", confValue: "是" },
];
// 服务中心-长课程配置 处罚状态
// 惩罚状态 1-未触发 2-处罚中 3-已结束 4-已解除

export const punishStatusOpt = [
	{ confId: 1, confValue: "未触发" },
	{ confId: 2, confValue: "处罚中" },
	{ confId: 3, confValue: "已结束" },
	{ confId: 4, confValue: "已解除" },
];
// 服务中心-长课程配置 归属业务
export const course_businessOpt = [
	{ confId: "轻改", confValue: "轻改" },
	{ confId: "权益", confValue: "权益" },
	{ confId: "延保", confValue: "延保" },
];

export const taskStatusOpt = [
	{ confId: "1", confValue: "进行中" },
	{ confId: "2", confValue: "已结束" },
];
export const effectiveTypeOpt = [
	{ confId: 0, confValue: "立即生效" },
	{ confId: 1, confValue: "隔日生效" },
];
// 服务中心-长课程配置 处罚方式
export const punishTypeOpt = [
	{ confId: 0, confValue: "无处罚" },
	{ confId: 1, confValue: "限制录单" },
];

// 服务中心-长课程配置 任务状态
export const course_taskStatusOpt = [
	{ confId: 1, confValue: "进行中" },
	{ confId: 2, confValue: "已结束" },
];
// 服务中心-长课程配置 任务详情课程列表学习进度
export const learningProgressOpt = [
	{ confId: 1, confValue: "未学习" },
	{ confId: 2, confValue: "未完成" },
	{ confId: 3, confValue: "待考核" },
	{ confId: 4, confValue: "未通过" },
	{ confId: 5, confValue: "已完成" },
];
export const long_businessOpt = [
	{ confId: "1", confValue: "延保" },
	{ confId: "3", confValue: "权益" },
	{ confId: "2", confValue: "轻改" },
];
export const isActiveOpt = [
	{ confId: "Y", confValue: "生效" },
	{ confId: "N", confValue: "不生效" },
];
export const actionOpt = [
	{ confId: "create", confValue: "创建" },
	{ confId: "update", confValue: "更新" },
	{ confId: "enable", confValue: "生效" },
	{ confId: "disable", confValue: "不生效" },
];
// 应收应付 - 推送金蝶状态
export const pushStatusOpt = [
	{ confId: 0, confValue: "未推送" },
	{ confId: 1, confValue: "成功" },
	{ confId: 2, confValue: "失败" },
];

// 商品库-发卷宝-预约排班-预约状态
export const scheduling_inviteStatus = [
	{ confId: 1, confValue: "待预约" },
	{ confId: 2, confValue: "已预约" },
	{ confId: 3, confValue: "取消预约" },
	{ confId: 4, confValue: "已施工" },
	{ confId: 5, confValue: "超时未到店" },
	{ confId: 6, confValue: "已撤销" },
	{ confId: 7, confValue: "已支付" },
];

// 园区店管理-上架-费用类别计算方式
export const severSelectOptions = [
	{
		expenseCategoryCalculateType: 1,
		label: "按收入比例",
	},
	{
		expenseCategoryCalculateType: 2,
		label: "按毛利比例",
	},
	{
		expenseCategoryCalculateType: 3,
		label: "按固定金额",
	},
	{
		expenseCategoryCalculateType: 4,
		label: "按固定金额*购买数量",
	},
	{
		expenseCategoryCalculateType: 5,
		label: "按园区店总金额比例",
	},
	{
		expenseCategoryCalculateType: 6,
		label: "按园区店毛利(不扣除产品成本)比例",
	},
	{
		expenseCategoryCalculateType: 7,
		label: "按园区店毛利比例",
	},
	{
		expenseCategoryCalculateType: 8,
		label: "按(收入-自定义其他费用)比例",
	},
	{
		expenseCategoryCalculateType: 9,
		label: "按(收入-其他费用)比例",
	},
];
// 时间tab
export const timeTabOpt = [
	{ confId: 1, confValue: "今日" },
	{ confId: 2, confValue: "昨日" },
	{ confId: 3, confValue: "本月" },
	{ confId: 4, confValue: "上月" },
];
// 使用性质
export const usageTypeOpt = [
	{ confId: "2", confValue: "营运" },
	{ confId: "1", confValue: "非营运" },
	{ confId: "3", confValue: "营转非" },
];
// 所有人性质
export const ownerTypeOpt = [
	{ confId: "1", confValue: "个人" },
	{ confId: "2", confValue: "单位" },
];
// 车辆类别
export const vehicleCategoryOpt = [
	{ confId: 1, confValue: "置换车" },
	{ confId: 2, confValue: "报废车" },
];
// 是否新车下定
export const buyNewCarOpt = [
	{ confId: "1", confValue: "是" },
	{ confId: "0", confValue: "否" },
];
// 是否事故
export const hasAccidentOpt = [
	{ confId: "1", confValue: "是" },
	{ confId: "0", confValue: "否" },
];
// 评估单状态
export const evaluationStatusOpt = [
	{ confId: "10", confValue: "评估中" },
	{ confId: "20", confValue: "已报价" },
	{ confId: "30", confValue: "已签约" },
	{ confId: "40", confValue: "已支付-定金" },
	{ confId: "31", confValue: "已签署确认单" },
	{ confId: "32", confValue: "已签署协议" },
	{ confId: "100", confValue: "已完成" },
	{ confId: "-1", confValue: "已驳回" },
];
// 评估单来源
export const evaluationSourceOpt = [
	{ confId: 1, confValue: "app" },
	{ confId: 2, confValue: "小程序" },
	{ confId: 3, confValue: "人工导入" },
	{ confId: 4, confValue: "车况生成" },
];
export const evaluationStatusOptMap = {
	"10": "#FDB757",
	"20": "#2CCA74",
	"30": "#2CCA74",
	"31": "#2CCA74",
	"32": "#2CCA74",
	"40": "#2CCA74",
	"50": "#2CCA74",
	"100": "#8C8C8C",
	"-1": "#EB4E4E",
};
// 合同类型
export const electronicContractTypeOpt = [
	{ confId: "1", confValue: "二手车转让协议" },
	{ confId: "3", confValue: "二手车补充协议" },
	{ confId: "2", confValue: "车辆代保管协议" },
	{ confId: "4", confValue: "车辆交接确认单" },
];
// 合同模版类型
export const docTemplateTypeOpt = [
	{ confId: "1", confValue: "二手车转让协议" },
	{ confId: "2", confValue: "车辆代保管协议" },
	{ confId: "3", confValue: "二手车补充协议" },
	{ confId: "4", confValue: "车辆交接确认单" },
	{ confId: "5", confValue: "小鹏旧机动车收购合同" },
];
// 合同流转状态
export const electronicContractStatusOpt = [
	{ confId: "1", confValue: "合同签署中" },
	{ confId: "2", confValue: "合同签署完成" },
];
// 付款状态
export const payStatusOpt = [
	{ confId: "1", confValue: "定金" },
	{ confId: "2", confValue: "尾款" },
	{ confId: "3", confValue: "全款" },
];
// 拆分支付
export const splitPayOpt = [
	{ confId: "1", confValue: "是" },
	{ confId: "0", confValue: "否" },
];
// 企微审批状态
export const oaFlowStatusOpt = [
	{ confId: "1", confValue: "审批中", color: "#FDB757" },
	{ confId: "2", confValue: "已通过", color: "#2CCA74" },
	{ confId: "3", confValue: "已驳回", color: "#EB4E4E" },
	{ confId: "4", confValue: "已撤销", color: "#8C8C8C" },
];
// 支付状态
export const oaFlowPaymentStatusOpt = [
	{ confId: "2", confValue: "支付成功", color: "#2CCA74" },
	{ confId: "3", confValue: "支付失败", color: "#EB4E4E" },
	{ confId: "1", confValue: "支付中", color: "#FDB757" },
	{ confId: "4", confValue: "支付取消", color: "#8C8C8C" },
];
// 工单状态:0-待交付 1-准备交付 2-交付完成
export const orderStatusMap = [
	{ confId: "-1", confValue: "已取消", color: "#FDB757" },
	{ confId: 0, confValue: "待交付", color: "#FDB757" },
	{ confId: "1", confValue: "交付中", color: "#FDB757" },
	{ confId: "2", confValue: "交付完成", color: "#2CCA74" },
];
// 尾款支付状态:0-未支付 1-已结清
export const tailPayStatusMap = [
	{ confId: 0, confValue: "待支付", color: "#FDB757" },
	{ confId: "1", confValue: "已结清", color: "#2CCA74" },
];

// 交付方式:0-客户自提 1-安排送车
export const deliveryTypeMap = [
	{ confId: "0", confValue: "客户自提" },
	{ confId: "1", confValue: "安排送车" },
];

export const inviteStatusOpt = [
	{ confId: 0, confValue: "待人事确认" },
	{ confId: 1, confValue: "招聘中" },
	{ confId: 2, confValue: "已完成" },
	{ confId: 3, confValue: "已驳回" },
	{ confId: 4, confValue: "待督导确认" },
];

export const inviteStatusOptMap = {
	0: "#FDB757",
	1: "#FDB757",
	2: "#2CCA74",
	3: "#EB4E4E",
	4: "#FDB757",
};
export const interviewResultOpt = [
	{ confId: 1, confValue: "通过" },
	{ confId: 0, confValue: "不通过" },
];
export const processResultOpt = [
	{ confId: "2", confValue: "人员符合" },
	{ confId: "1", confValue: "人员不符合" },
];

export const gradeStatusOpt = [
	{ confId: 2, confValue: "生效" },
	{ confId: 1, confValue: "未生效" },
	{ confId: 0, confValue: "草稿" },
	{ confId: 3, confValue: "失效" },
];

export const gradeStatusOptMap = {
	1: "#FDB757",
	0: "#999999",
	2: "#2CCA74",
	3: "#EB4E4E",
};

export const effectiveOpt = [
	{ confId: 1, confValue: "立即生效" },
	{ confId: 2, confValue: "定时生效" },
];
export const zzStatusOpt = [
	{ confId: 1, confValue: "在职" },
	{ confId: 0, confValue: "离职" },
];
export const zzStatusMap = {
	1: "#2CCA74",
	0: "#EB4E4E",
};
// 课程类型:10-视频,80-音频,20-混合,30-文档,40-H5,70-URL,120-图文
export const courseFileTypeOpt = [
	{ confId: 10, confValue: "视频" },
	{ confId: 80, confValue: "音频" },
	{ confId: 20, confValue: "混合" },
	{ confId: 30, confValue: "文档" },
	{ confId: 40, confValue: "H5" },
	{ confId: 70, confValue: "URL" },
	{ confId: 120, confValue: "图文" },
];

export const courseStatusOpt = [
	// { confId: 10, confValue: "转换中" },
	// { confId: 20, confValue: "转换失败" },
	// { confId: 30, confValue: "未发布" },
	{ confId: 40, confValue: "已发布" },
	{ confId: 50, confValue: "已下架" },
];
// 课程状态10-转换中, 20-转换失败, 30-未发布, 40-已发布, 50-已下架
export const courseStatusOptMap = {
	// 10: "#FDB757",
	// 20: "#999999",
	// 30: "#999999",
	40: "#2CCA74",
	50: "#EB4E4E",
};
// 员工状态:0:离职 1:在职
export const empStatusOpt = [
	{ confId: 0, confValue: "离职" },
	{ confId: 1, confValue: "在职" },
];
export const empStatusOptMap = {
	0: "#EB4E4E",
	1: "#2CCA74",
};
// 学习状态:10 - 未学习,20 - 未完成,30 - 待考核,40 - 未通过,50 - 已完成,60 - 待签署
export const learnStatusOpt = [
	{ confId: 10, confValue: "未学习" },
	{ confId: 20, confValue: "未完成" },
	// { confId: 30, confValue: "待考核" },
	// { confId: 40, confValue: "未通过" },
	{ confId: 50, confValue: "已完成" },
	// { confId: 60, confValue: "待签署" }
];
export const learnStatusOptMap = {
	// 30: "#FDB757",
	10: "#999999",
	20: "#999999",
	// 40: "#EB4E4E",
	50: "#2CCA74",
	// 60: "#FDB757"
};
// 是否及格:1-通过, 0-未通过
export const passFlagOpt = [
	{ confId: 1, confValue: "是" },
	{ confId: 0, confValue: "否" },
];
export const planStatusTypeOpt = [
	{ confId: 1, confValue: "生效" },
	{ confId: 2, confValue: "失效" },
	{ confId: 0, confValue: "草稿" },
];
export const planStatusTypeOptMap = {
	1: "#2CCA74",
	2: "#EB4E4E",
	0: "#999999",
};
export const openOrderStatusOpt = [
	{ confId: 0, confValue: "已锁定" },
	{ confId: 1, confValue: "已解锁" },
];
export const electronicContractOpt = [
	{ confId: "1", confValue: "系统生成" },
	{ confId: "2", confValue: "人工导入" },
];
export const paymentMethodOpt = [
	{ confId: "1", confValue: "银行转账" },
	{ confId: "2", confValue: "冲账" },
];
export const statusList = [
	{ confId: 2, confValue: "生效" },
	{ confId: 1, confValue: "审批中" },
	{ confId: 3, confValue: "未生效" },
];

export const statusTypeOptMap = {
	1: "#FDB757",
	0: "#FDB757",
	2: "#2CCA74",
	3: "#999999",
};
export const appealTypeOpt = [
	{ confId: "2", confValue: "平板" },
	{ confId: "1", confValue: "考勤" },
];
export const signerTypeOpt = [
	{ confId: 0, confValue: "个人" },
	{ confId: 1, confValue: "企业委托" },
	{ confId: 2, confValue: "企业" },
];

export const reviewStatusOpts = [
	{
		confId: 0,
		confValue: "待复核",
	},
	{
		confId: 1,
		confValue: "已复核",
	},
	{
		confId: 2,
		confValue: "已失效",
	},
];
export const reviewStatusOptMap = {
	0: "#FDB757",
	1: "#2CCA74",
	2: "#999999",
};

export const djOrderTypeMap = {
	2: "打折策略",
	5: "组合付款",
	3: "买赠策略",
	4: "冲量活动",
	1: "正常订单",
	6: "内部结算",
};

export const auditStatusMap = {
	1: "区域运营待审批",
	2: "运营待审批",
	3: "审批通过",
	4: "审批驳回",
};

export const discountTypeMap = {
	1: "折扣比例",
	2: "折扣金额",
	3: "无折扣",
	4: "赠品",
	5: "非赠品",
};

export const djOrderTypeList = [
	{
		confId: "",
		confLabel: "全部",
	},
	{
		confId: "2",
		confLabel: "打折策略",
	},
	{
		confId: "5",
		confLabel: "组合付款",
	},
	{
		confId: "3",
		confLabel: "买赠策略",
	},
	{
		confId: "4",
		confLabel: "冲量活动",
	},
	{
		confId: "1",
		confLabel: "正常订单",
	},
	{
		confId: "6",
		confLabel: "内部结算",
	},
];

export const goodsAuditStatusList = [
	{
		confId: "",
		confLabel: "全部",
	},
	{
		confId: "1",
		confLabel: "区域运营待审批",
	},
	{
		confId: "2",
		confLabel: "运营待审批",
	},
	{
		confId: "3",
		confLabel: "审批通过",
	},
	{
		confId: "4",
		confLabel: "审批驳回",
	},
];

// 企微主体
// 1-惠州广联 3-优加
export const wechatTypeOpt = [
	{ confId: 1, confValue: "惠州广联" },
	{ confId: 3, confValue: "优加" },
];

// 合同企业主体(内部主体)
// contractOrg: hzglsk-惠州广联、szyjzh-优加
export const contractOrgOpt = [
	{ confId: "hzglsk", confValue: "惠州广联" },
	{ confId: "szyjzh", confValue: "优加" },
];
// 督导任务类型
export const superviseTaskTypeOpt = [
	{
		confName: "录音复盘",
		confId: 3,
	},
	{
		confName: "人员带教",
		confId: 5,
	},
	{
		confName: "督导日报",
		confId: 0,
	},
	// {
	// 	confName: "本周复盘",
	// 	confId: 1,
	// },
	{
		confName: "提报优秀案例录音",
		confId: 6,
	},
	{
		confName: "带教要求",
		confId: 7,
	},
	{
		confName: "督导月度计划",
		confId: 2,
	},
	{
		confName: "专项任务",
		confId: 4,
	},
];
export const reviewCaseStatusOpt = [
	{
		confId: 0,
		confValue: "待审核",
	},
	{
		confId: 1,
		confValue: "已通过",
	},
	{
		confId: 2,
		confValue: "已驳回",
	},
];
export const reviewCaseStatusOptMap = {
	0: "#FF9D0A",
	1: "#2CCA74",
	2: "#EB4E4E",
};
export const connectionFlagOpt = [
	{
		confId: 1,
		confValue: "已关联",
	},
	{
		confId: 0,
		confValue: "未关联",
	},
];
export const trialStatusOpt = [
	{
		confId: 1,
		confValue: "试岗中",
	},
	{
		confId: 2,
		confValue: "无试岗",
	},
];
export const approvalStatusOpt = [
	{
		confId: 0,
		confValue: "待审批",
	},
	{
		confId: 1,
		confValue: "已审批",
	},
];
export const connectionFlagOptMap = {
	true: "#2CCA74",
	false: "#EB4E4E",
};
export const changeTypeOpt = [
	{ confId: 1, confValue: "区域运营" },
	{ confId: 2, confValue: "技师督导" },
	{ confId: 3, confValue: "招聘负责人" },
	{ confId: 4, confValue: "创建人" },
];