Brak opisu

liuzhangtu.js 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332
  1. $("#save_ssss").click(function() {
  2. partpaat()
  3. })
  4. var bigdataList = null;
  5. setTimeout(function() {
  6. partpaat();
  7. }, 3000);
  8. function partpaat(sd, ed) {
  9. var myCha = echarts.init(document.getElementById('cha'));
  10. var myChart = echarts.init(document.getElementById('chart'));
  11. var myChaaaa = echarts.init(document.getElementById('dback1'));
  12. var myChartaaa = echarts.init(document.getElementById('dback'));
  13. var myChaccc = echarts.init(document.getElementById('mold1'));
  14. var myChartbbb = echarts.init(document.getElementById('mold'));
  15. var myCharrr = echarts.init(document.getElementById('genre1'));
  16. var myCharteee = echarts.init(document.getElementById('genre'));
  17. var myChaqqq = echarts.init(document.getElementById('other1'));
  18. var myChartwww = echarts.init(document.getElementById('other'));
  19. var myChalll = echarts.init(document.getElementById('uction1'));
  20. var myChartppp = echarts.init(document.getElementById('uction'));
  21. var myChreti = echarts.init(document.getElementById('sippu1'));
  22. var myChreti1 = echarts.init(document.getElementById('sippu'));
  23. var myKouc = echarts.init(document.getElementById('siupi1'));
  24. var myKouc1 = echarts.init(document.getElementById('siupi'));
  25. var myKucot = echarts.init(document.getElementById('siupiac1'));
  26. var myKucot1 = echarts.init(document.getElementById('siupiac'));
  27. var myTou = echarts.init(document.getElementById('siyi1'));
  28. var myTou1 = echarts.init(document.getElementById('siyi'));
  29. var myRi = echarts.init(document.getElementById('siout1'));
  30. var myRi1 = echarts.init(document.getElementById('siout'));
  31. var myEkit = echarts.init(document.getElementById('seytio1'));
  32. var myEkit1 = echarts.init(document.getElementById('seytio'));
  33. $.ajax({
  34. type: "get",
  35. url: huayi.config.callcenter_url + "WOReport/GetBigdataList",
  36. async: true,
  37. dataType: "json",
  38. data: {
  39. stime: sd,
  40. endtime: ed,
  41. salesBase: $('#xiaoshou').val(), //销售基地
  42. product: $('#Product_Category').val(), //产品
  43. channel: $('#customer_taxPointDes').val(), //渠道类型
  44. area: $('#customer_comaddress').val(), //大区
  45. branch: $('#customer_legalName').val(), //分公司
  46. isEnd: $('#customer_exceed').val(),
  47. type: $('#styqu').val(), //反馈类型
  48. },
  49. success: function(data) {
  50. if(data.state.toLowerCase() == "success") {
  51. //bigdataList = data.rows;
  52. var con = data.rows;
  53. $('.my_numet').html(con.salesBase[0].number); //基地反馈统计
  54. $('.my_yer').html(con.salesBase[0].Lastyear);
  55. $('.my_moye').html(con.salesBase[0].Lastmonth);
  56. $('.ch_numet').html(con.product[0].number); //产品反馈统计
  57. $('.ch_yer').html(con.product[0].Lastyear);
  58. $('.ch_moye').html(con.product[0].Lastmonth);
  59. $('.qd_numet').html(con.channel[0].number); //渠道反馈统计
  60. $('.qd_yer').html(con.channel[0].Lastyear);
  61. $('.qd_moye').html(con.channel[0].Lastmonth);
  62. $('.gdz_numet').html(con.state[0].number); //工单统计
  63. $('.gdz_yer').html(con.state[0].Lastyear);
  64. $('.gdz_moye').html(con.state[0].Lastmonth);
  65. $('.cq_numet').html(con.overdue[0].number); //超期部门统计
  66. $('.cq_yer').html(con.overdue[0].Lastyear);
  67. $('.cq_moye').html(con.overdue[0].Lastmonth);
  68. $('.myd_numet').html(con.satisfaction[0].number); //满意度统计
  69. $('.myd_yer').html(con.satisfaction[0].Lastyear);
  70. $('.myd_moye').html(con.satisfaction[0].Lastmonth);
  71. var channel = con.channel.slice(1);
  72. console.log(channel);
  73. var overdue = con.overdue.slice(1);
  74. var product = con.product.slice(1);
  75. var stateaa = con.state.slice(1);
  76. var satisfaction = con.satisfaction.slice(1);
  77. var type_data = con.salesBase.slice(1);
  78. // 聚到类型
  79. var type_data_ccc = [];
  80. var type_data_name_arry2 = [];
  81. $(channel).each(function(i, n) {
  82. //type_data_arry.push(n.name)
  83. //数据
  84. var type_data_obj2 = {};
  85. type_data_obj2.name = n.name;
  86. type_data_obj2.value = n.number;
  87. type_data_ccc.push(type_data_obj2);
  88. //名称
  89. var type_data_name_obj2 = {};
  90. type_data_name_obj2 = n.name;
  91. type_data_name_arry2.push(type_data_name_obj2);
  92. })
  93. // 基地反馈
  94. var type_data_arry = [];
  95. var data_arr = type_data_arry.shift(0);
  96. var type_data_name_arry = [];
  97. $(type_data).each(function(i, n) {
  98. //type_data_arry.push(n.name)
  99. //数据
  100. var type_data_obj = {};
  101. type_data_obj.name = n.name;
  102. type_data_obj.value = n.number;
  103. type_data_arry.push(type_data_obj);
  104. //名称
  105. var type_data_name_obj = {};
  106. type_data_name_obj = n.name;
  107. type_data_name_arry.push(type_data_name_obj);
  108. })
  109. // 产品类型
  110. var type_data_aaa = [];
  111. var type_data_name_arry1 = [];
  112. $(product).each(function(i, n) {
  113. //type_data_arry.push(n.name)
  114. //数据
  115. var type_data_obj1 = {};
  116. type_data_obj1.name = n.name;
  117. type_data_obj1.value = n.number;
  118. type_data_aaa.push(type_data_obj1);
  119. //名称
  120. var type_data_name_obj1 = {};
  121. type_data_name_obj1 = n.name;
  122. type_data_name_arry1.push(type_data_name_obj1);
  123. })
  124. // 超期部门
  125. var type_data_bbb = [];
  126. var type_data_name_arry3 = [];
  127. $(overdue).each(function(i, n) {
  128. //type_data_arry.push(n.name)
  129. //数据
  130. var type_data_obj3 = {};
  131. type_data_obj3.name = n.name;
  132. type_data_obj3.value = n.number;
  133. type_data_bbb.push(type_data_obj3);
  134. //名称
  135. var type_data_name_obj3 = {};
  136. type_data_name_obj3 = n.name;
  137. type_data_name_arry3.push(type_data_name_obj3);
  138. })
  139. // 满意度
  140. var type_data_nnn = [];
  141. var type_data_name_arry4 = [];
  142. $(satisfaction).each(function(i, n) {
  143. //type_data_arry.push(n.name)
  144. //数据
  145. var type_data_obj4 = {};
  146. type_data_obj4.name = n.name;
  147. type_data_obj4.value = n.number;
  148. type_data_nnn.push(type_data_obj4);
  149. //名称
  150. var type_data_name_obj4 = {};
  151. type_data_name_obj4 = n.name;
  152. type_data_name_arry4.push(type_data_name_obj4);
  153. })
  154. // 工单
  155. var type_data_uuu = [];
  156. var type_data_name_arry5 = [];
  157. $(stateaa).each(function(i, n) {
  158. //type_data_arry.push(n.name)
  159. //数据
  160. var type_data_obj5 = {};
  161. type_data_obj5.name = n.name;
  162. type_data_obj5.value = n.number;
  163. type_data_uuu.push(type_data_obj5);
  164. //名称
  165. var type_data_name_obj5 = {};
  166. type_data_name_obj5 = n.name;
  167. type_data_name_arry5.push(type_data_name_obj5);
  168. })
  169. myChart.setOption({
  170. color: ['#1852B5'],
  171. textStyle: {
  172. fontSize: 14 * getHeightScale,
  173. },
  174. tooltip: {
  175. "textStyle": {
  176. "fontSize": 18 * getHeightScale,
  177. }
  178. },
  179. xAxis: {
  180. data: type_data_name_arry, //["合计", "咨询", "投诉", "抽检", "建议及其他", ""], ["咨询", "投诉", "抽检", "建议", "合计"]
  181. axisLine: { //这是x轴文字颜色
  182. lineStyle: {
  183. color: "#FFFFFF",
  184. }
  185. }
  186. },
  187. yAxis: {
  188. splitLine: {    
  189. show: false  
  190. },
  191. axisLine: { //这是x轴文字颜色
  192. lineStyle: {
  193. color: "#000946",
  194. }
  195. }
  196. },
  197. series: [{
  198. name: '反馈类型统计',
  199. type: 'bar',
  200. x: 'center',
  201. // barGap:'2%', //两个柱子距离
  202. barWidth: 20 * getHeightScale,
  203. data: type_data_arry
  204. }]
  205. });
  206. myCha.setOption({
  207. textStyle: {
  208. fontSize: 14 * getHeightScale,
  209. },
  210. tooltip: {
  211. trigger: 'item',
  212. formatter: "{a} <br/>{b} : {c} ({d}%)"
  213. },
  214. series: [{
  215. name: '访问来源',
  216. type: 'pie',
  217. radius: '55%',
  218. center: ['50%', '60%'],
  219. data: type_data_arry,
  220. type_data_name_arry,
  221. label: {
  222. normal: {
  223. position: 'inner',
  224. show: false
  225. }
  226. },
  227. itemStyle: {
  228. emphasis: {
  229. shadowBlur: 10 * getHeightScale,
  230. shadowOffsetX: 0,
  231. shadowColor: 'rgba(0, 0, 0, 0.5)'
  232. },
  233. normal: {
  234. color: function(params) {
  235. //自定义颜色
  236. var colorList = [
  237. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  238. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  239. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  240. ];
  241. return colorList[params.dataIndex]
  242. }
  243. }
  244. }
  245. }]
  246. });
  247. myChartaaa.setOption({
  248. color: ['#1852B5'],
  249. textStyle: {
  250. fontSize: 14 * getHeightScale,
  251. },
  252. tooltip: {},
  253. xAxis: {
  254. splitNumber: 5,
  255. data: type_data_name_arry1, //["合计", "尿素", "复合肥", "水溶肥", "车用尿素", "三聚氰胺", "甲醇", "糖醇", "腐殖酸", "二甲醚", "糖醛", "液氨", "其他", ""],
  256. axisLine: { //这是x轴文字颜色
  257. lineStyle: {
  258. color: "#FFFFFF",
  259. }
  260. },
  261. },
  262. yAxis: {
  263. splitLine: {    
  264. show: false  
  265. },
  266. axisLine: { //这是x轴文字颜色
  267. lineStyle: {
  268. color: "#000946",
  269. }
  270. }
  271. },
  272. series: [{
  273. name: '产品类型统计',
  274. type: 'bar',
  275. barWidth: 20 * getHeightScale,
  276. data: type_data_aaa,
  277. }]
  278. });
  279. myChaaaa.setOption({
  280. textStyle: {
  281. fontSize: 14 * getHeightScale,
  282. },
  283. tooltip: {
  284. trigger: 'item',
  285. formatter: "{a} <br/>{b} : {c} ({d}%)"
  286. },
  287. series: [{
  288. name: '访问来源',
  289. type: 'pie',
  290. radius: '55%',
  291. center: ['50%', '60%'],
  292. data: type_data_aaa,
  293. type_data_name_arry1,
  294. label: {
  295. normal: {
  296. position: 'inner',
  297. show: false
  298. }
  299. },
  300. itemStyle: {
  301. emphasis: {
  302. shadowBlur: 10 * getHeightScale,
  303. shadowOffsetX: 0,
  304. shadowColor: 'rgba(0, 0, 0, 0.5)'
  305. },
  306. normal: {
  307. color: function(params) {
  308. //自定义颜色
  309. var colorList = [
  310. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  311. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  312. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  313. ];
  314. return colorList[params.dataIndex]
  315. }
  316. }
  317. }
  318. }]
  319. });
  320. myChartbbb.setOption({
  321. color: ['#1852B5'],
  322. textStyle: {
  323. fontSize: 14 * getHeightScale,
  324. },
  325. tooltip: {},
  326. xAxis: {
  327. data: type_data_name_arry2, //["合计", "总经销", "二级商", "种田大户", "农户", "化工客户", "公司员工", "其他"],
  328. axisLine: { //这是x轴文字颜色
  329. lineStyle: {
  330. color: "#FFFFFF",
  331. }
  332. },
  333. },
  334. yAxis: {
  335. splitLine: {    
  336. show: false  
  337. },
  338. axisLine: { //这是x轴文字颜色
  339. lineStyle: {
  340. color: "#000946",
  341. }
  342. }
  343. },
  344. series: [{
  345. name: '渠道类型统计',
  346. type: 'bar',
  347. barWidth: 20 * getHeightScale,
  348. data: type_data_ccc,
  349. }]
  350. });
  351. myChaccc.setOption({
  352. textStyle: {
  353. fontSize: 14 * getHeightScale,
  354. },
  355. tooltip: {
  356. trigger: 'item',
  357. formatter: "{a} <br/>{b} : {c} ({d}%)"
  358. },
  359. series: [{
  360. name: '渠道类型统计',
  361. type: 'pie',
  362. radius: '55%',
  363. center: ['50%', '60%'],
  364. data: type_data_ccc,
  365. type_data_name_arry2,
  366. label: {
  367. normal: {
  368. position: 'inner',
  369. show: false
  370. }
  371. },
  372. itemStyle: {
  373. emphasis: {
  374. shadowBlur: 10 * getHeightScale,
  375. shadowOffsetX: 0,
  376. shadowColor: 'rgba(0, 0, 0, 0.5)'
  377. },
  378. normal: {
  379. color: function(params) {
  380. //自定义颜色
  381. var colorList = [
  382. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  383. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  384. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  385. ];
  386. return colorList[params.dataIndex]
  387. }
  388. }
  389. }
  390. }]
  391. });
  392. myCharteee.setOption({
  393. color: ['#1852B5'],
  394. textStyle: {
  395. fontSize: 14 * getHeightScale,
  396. },
  397. xAxis: {
  398. data: type_data_name_arry3, // ["合计", "市场管理科", "呼叫中心", "车用尿素", ""],
  399. axisLine: { //这是x轴文字颜色
  400. lineStyle: {
  401. color: "#FFFFFF",
  402. }
  403. }
  404. },
  405. yAxis: {
  406. splitLine: {    
  407. show: false  
  408. },
  409. axisLine: { //这是x轴文字颜色
  410. lineStyle: {
  411. color: "#000946",
  412. }
  413. }
  414. },
  415. series: [{
  416. name: '超期部门统计',
  417. type: 'bar',
  418. barWidth: 20 * getHeightScale,
  419. data: type_data_bbb,
  420. }]
  421. });
  422. myCharrr.setOption({
  423. textStyle: {
  424. fontSize: 14 * getHeightScale,
  425. },
  426. tooltip: {
  427. trigger: 'item',
  428. formatter: "{a} <br/>{b} : {c} ({d}%)"
  429. },
  430. series: [{
  431. name: '超期部门统计',
  432. type: 'pie',
  433. radius: '55%',
  434. center: ['50%', '60%'],
  435. data: type_data_bbb,
  436. type_data_name_arry3,
  437. label: {
  438. normal: {
  439. position: 'inner',
  440. show: false
  441. }
  442. },
  443. itemStyle: {
  444. emphasis: {
  445. shadowBlur: 10 * getHeightScale,
  446. shadowOffsetX: 0,
  447. shadowColor: 'rgba(0, 0, 0, 0.5)'
  448. },
  449. normal: {
  450. color: function(params) {
  451. //自定义颜色
  452. var colorList = [
  453. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  454. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  455. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  456. ];
  457. return colorList[params.dataIndex]
  458. }
  459. }
  460. }
  461. }]
  462. });
  463. myChartwww.setOption({
  464. color: ['#1852B5'],
  465. textStyle: {
  466. fontSize: 14 * getHeightScale,
  467. },
  468. tooltip: {},
  469. xAxis: {
  470. data: type_data_name_arry4, //["合计", "非常满意", "满意", "一般", "不满意", ""],
  471. axisLine: { //这是x轴文字颜色
  472. lineStyle: {
  473. color: "#FFFFFF",
  474. }
  475. }
  476. },
  477. yAxis: {
  478. splitLine: {    
  479. show: false  
  480. },
  481. axisLine: { //这是x轴文字颜色
  482. lineStyle: {
  483. color: "#000946",
  484. }
  485. }
  486. },
  487. series: [{
  488. name: '满意度统计',
  489. type: 'bar',
  490. barWidth: 20 * getHeightScale,
  491. data: type_data_nnn,
  492. }]
  493. });
  494. myChaqqq.setOption({
  495. tooltip: {
  496. trigger: 'item',
  497. formatter: "{a} <br/>{b} : {c} ({d}%)"
  498. },
  499. series: [{
  500. name: '满意度统计',
  501. type: 'pie',
  502. radius: '55%',
  503. center: ['50%', '60%'],
  504. data: type_data_nnn,
  505. type_data_name_arry4,
  506. label: {
  507. normal: {
  508. position: 'inner',
  509. show: false
  510. }
  511. },
  512. itemStyle: {
  513. emphasis: {
  514. shadowBlur: 10 * getHeightScale,
  515. shadowOffsetX: 0,
  516. shadowColor: 'rgba(0, 0, 0, 0.5)'
  517. },
  518. normal: {
  519. color: function(params) {
  520. //自定义颜色
  521. var colorList = [
  522. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  523. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  524. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  525. ];
  526. return colorList[params.dataIndex]
  527. }
  528. }
  529. }
  530. }]
  531. });
  532. myChartppp.setOption({
  533. color: ['#1852B5'],
  534. textStyle: {
  535. fontSize: 14 * getHeightScale,
  536. },
  537. tooltip: {},
  538. xAxis: {
  539. data: type_data_name_arry5,
  540. axisLine: { //这是x轴文字颜色
  541. lineStyle: {
  542. color: "#FFFFFF",
  543. }
  544. }
  545. },
  546. yAxis: {
  547. splitLine: {    
  548. show: false  
  549. },
  550. axisLine: { //这是x轴文字颜色
  551. lineStyle: {
  552. color: "#000946",
  553. }
  554. }
  555. },
  556. series: [{
  557. name: '工单',
  558. type: 'bar',
  559. barWidth: 20 * getHeightScale,
  560. data: type_data_uuu,
  561. }]
  562. });
  563. myChalll.setOption({
  564. textStyle: {
  565. fontSize: 14 * getHeightScale,
  566. },
  567. tooltip: {
  568. trigger: 'item',
  569. formatter: "{a} <br/>{b} : {c} ({d}%)"
  570. },
  571. series: [{
  572. name: '访问来源',
  573. type: 'pie',
  574. radius: '55%',
  575. center: ['50%', '60%'],
  576. data: type_data_uuu,
  577. type_data_name_arry5,
  578. label: {
  579. normal: {
  580. position: 'inner',
  581. show: false
  582. }
  583. },
  584. itemStyle: {
  585. emphasis: {
  586. shadowBlur: 10 * getHeightScale,
  587. shadowOffsetX: 0,
  588. shadowColor: 'rgba(0, 0, 0, 0.5)'
  589. },
  590. normal: {
  591. color: function(params) {
  592. //自定义颜色
  593. var colorList = [
  594. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  595. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  596. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  597. ];
  598. return colorList[params.dataIndex]
  599. }
  600. },
  601. }
  602. }]
  603. });
  604. myKouc1.setOption({
  605. color: ['#1852B5'],
  606. title: {
  607. text: '基地反馈统计',
  608. x: 'center',
  609. textStyle: {
  610. "color": "#53FEC0",
  611. fontSize: 24 * getHeightScale,
  612. }
  613. },
  614. textStyle: {
  615. fontSize: 14 * getHeightScale,
  616. },
  617. tooltip: {},
  618. xAxis: {
  619. data: type_data_name_arry, //["合计", "咨询", "投诉", "抽检", "建议及其他", ""], ["咨询", "投诉", "抽检", "建议", "合计"]
  620. axisLine: { //这是x轴文字颜色
  621. lineStyle: {
  622. color: "#FFFFFF",
  623. }
  624. },
  625. axisLabel: { //调整x轴的lable
  626. textStyle: {
  627. fontSize: 16 * getHeightScale // 让字体变大
  628. }
  629. }
  630. },
  631. yAxis: {
  632. splitLine: {    
  633. show: false  
  634. },
  635. axisLine: { //这是x轴文字颜色
  636. lineStyle: {
  637. color: "#FFFFFF",
  638. }
  639. },
  640. axisLabel: { //调整x轴的lable
  641. textStyle: {
  642. fontSize: 16 * getHeightScale // 让字体变大
  643. }
  644. }
  645. },
  646. dataZoom: [{
  647. show: false, //是否显示下方滚动条
  648. realtime: true,
  649. start: 0, //显示数据开始位置
  650. end: 50 //显示数据结束位置
  651. },
  652. {
  653. type: 'inside',
  654. realtime: true,
  655. start: 0,
  656. end: 50
  657. }
  658. ],
  659. series: [{
  660. name: '基地反馈统计',
  661. type: 'bar',
  662. x: 'center',
  663. // barGap:'2%', //两个柱子距离
  664. barWidth: 20 * getHeightScale,
  665. data: type_data_arry
  666. }]
  667. });
  668. myKouc.setOption({
  669. textStyle: {
  670. fontSize: 18 * getHeightScale,
  671. },
  672. tooltip: {
  673. trigger: 'item',
  674. formatter: "{a} <br/>{b} : {c} ({d}%)"
  675. },
  676. series: [{
  677. name: '基地反馈统计',
  678. type: 'pie',
  679. radius: '55%',
  680. center: ['50%', '60%'],
  681. data: type_data_arry,
  682. type_data_name_arry,
  683. itemStyle: {
  684. emphasis: {
  685. shadowBlur: 10 * getHeightScale,
  686. shadowOffsetX: 0,
  687. shadowColor: 'rgba(0, 0, 0, 0.5)'
  688. },
  689. normal: {
  690. color: function(params) {
  691. //自定义颜色
  692. var colorList = [
  693. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  694. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  695. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  696. ];
  697. return colorList[params.dataIndex]
  698. }
  699. }
  700. }
  701. }]
  702. });
  703. myKucot1.setOption({
  704. color: ['#1852B5'],
  705. title: {
  706. text: '产品类型统计',
  707. x: 'center',
  708. textStyle: {
  709. "color": "#53FEC0",
  710. fontSize: 24 * getHeightScale,
  711. }
  712. },
  713. textStyle: {
  714. fontSize: 14 * getHeightScale,
  715. },
  716. tooltip: {},
  717. xAxis: {
  718. splitNumber: 5,
  719. data: type_data_name_arry1, //["合计", "尿素", "复合肥", "水溶肥", "车用尿素", "三聚氰胺", "甲醇", "糖醇", "腐殖酸", "二甲醚", "糖醛", "液氨", "其他", ""],
  720. axisLine: { //这是x轴文字颜色
  721. lineStyle: {
  722. color: "#FFFFFF",
  723. }
  724. },
  725. axisLabel: { //调整x轴的lable
  726. textStyle: {
  727. fontSize: 16 * getHeightScale // 让字体变大
  728. }
  729. }
  730. },
  731. yAxis: {
  732. splitLine: {    
  733. show: false  
  734. },
  735. axisLine: { //这是x轴文字颜色
  736. lineStyle: {
  737. color: "#FFFFFF",
  738. }
  739. },
  740. axisLabel: { //调整x轴的lable
  741. textStyle: {
  742. fontSize: 16 * getHeightScale // 让字体变大
  743. }
  744. }
  745. },
  746. dataZoom: [{
  747. show: false, //是否显示下方滚动条
  748. realtime: true,
  749. start: 0, //显示数据开始位置
  750. end: 50 //显示数据结束位置
  751. },
  752. {
  753. type: 'inside',
  754. realtime: true,
  755. start: 0,
  756. end: 50
  757. }
  758. ],
  759. series: [{
  760. name: '产品类型统计',
  761. type: 'bar',
  762. barWidth: 20 * getHeightScale,
  763. data: type_data_aaa,
  764. }]
  765. });
  766. myKucot.setOption({
  767. textStyle: {
  768. fontSize: 14 * getHeightScale,
  769. },
  770. tooltip: {
  771. trigger: 'item',
  772. formatter: "{a} <br/>{b} : {c} ({d}%)"
  773. },
  774. series: [{
  775. name: '产品类型统计',
  776. type: 'pie',
  777. radius: '55%',
  778. center: ['50%', '60%'],
  779. data: type_data_aaa,
  780. type_data_name_arry1,
  781. itemStyle: {
  782. emphasis: {
  783. shadowBlur: 10 * getHeightScale,
  784. shadowOffsetX: 0,
  785. shadowColor: 'rgba(0, 0, 0, 0.5)'
  786. },
  787. normal: {
  788. color: function(params) {
  789. //自定义颜色
  790. var colorList = [
  791. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  792. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  793. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  794. ];
  795. return colorList[params.dataIndex]
  796. }
  797. }
  798. }
  799. }]
  800. });
  801. myTou1.setOption({
  802. color: ['#1852B5'],
  803. title: {
  804. text: '渠道类型统计',
  805. x: 'center',
  806. textStyle: {
  807. "color": "#53FEC0",
  808. fontSize: 24 * getHeightScale,
  809. }
  810. },
  811. textStyle: {
  812. fontSize: 14 * getHeightScale,
  813. },
  814. tooltip: {},
  815. xAxis: {
  816. data: type_data_name_arry2, //["合计", "总经销", "二级商", "种田大户", "农户", "化工客户", "公司员工", "其他"],
  817. axisLine: { //这是x轴文字颜色
  818. lineStyle: {
  819. color: "#FFFFFF",
  820. }
  821. },
  822. axisLabel: { //调整x轴的lable
  823. textStyle: {
  824. fontSize: 16 * getHeightScale // 让字体变大
  825. }
  826. }
  827. },
  828. yAxis: {
  829. splitLine: {    
  830. show: false  
  831. },
  832. axisLine: { //这是x轴文字颜色
  833. lineStyle: {
  834. color: "#FFFFFF",
  835. }
  836. },
  837. axisLabel: { //调整x轴的lable
  838. textStyle: {
  839. fontSize: 16 * getHeightScale // 让字体变大
  840. }
  841. }
  842. },
  843. dataZoom: [{
  844. show: false, //是否显示下方滚动条
  845. realtime: true,
  846. start: 0, //显示数据开始位置
  847. end: 150 //显示数据结束位置
  848. },
  849. {
  850. type: 'inside',
  851. realtime: true,
  852. start: 0,
  853. end: 50
  854. }
  855. ],
  856. series: [{
  857. name: '渠道类型统计',
  858. type: 'bar',
  859. barWidth: 20 * getHeightScale,
  860. data: type_data_ccc,
  861. }]
  862. });
  863. myTou.setOption({
  864. tooltip: {
  865. trigger: 'item',
  866. formatter: "{a} <br/>{b} : {c} ({d}%)"
  867. },
  868. series: [{
  869. name: '渠道类型统计',
  870. type: 'pie',
  871. radius: '55%',
  872. center: ['50%', '60%'],
  873. data: type_data_ccc,
  874. type_data_name_arry2,
  875. itemStyle: {
  876. emphasis: {
  877. shadowBlur: 10 * getHeightScale,
  878. shadowOffsetX: 0,
  879. shadowColor: 'rgba(0, 0, 0, 0.5)'
  880. },
  881. normal: {
  882. color: function(params) {
  883. //自定义颜色
  884. var colorList = [
  885. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  886. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  887. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  888. ];
  889. return colorList[params.dataIndex]
  890. }
  891. }
  892. }
  893. }]
  894. });
  895. myRi1.setOption({
  896. color: ['#1852B5'],
  897. title: {
  898. text: '超期部门统计',
  899. x: 'center',
  900. textStyle: {
  901. "color": "#53FEC0",
  902. fontSize: 24 * getHeightScale,
  903. }
  904. },
  905. textStyle: {
  906. fontSize: 14 * getHeightScale,
  907. },
  908. tooltip: {},
  909. xAxis: {
  910. data: type_data_name_arry3, // ["合计", "市场管理科", "呼叫中心", "车用尿素", ""],
  911. axisLine: { //这是x轴文字颜色
  912. lineStyle: {
  913. color: "#FFFFFF",
  914. }
  915. },
  916. axisLabel: { //调整x轴的lable
  917. textStyle: {
  918. fontSize: 16 * getHeightScale // 让字体变大
  919. }
  920. }
  921. },
  922. yAxis: {
  923. splitLine: {    
  924. show: false  
  925. },
  926. axisLine: { //这是x轴文字颜色
  927. lineStyle: {
  928. color: "#FFFFFF",
  929. }
  930. },
  931. axisLabel: { //调整x轴的lable
  932. textStyle: {
  933. fontSize: 16 * getHeightScale // 让字体变大
  934. }
  935. }
  936. },
  937. dataZoom: [{
  938. show: false, //是否显示下方滚动条
  939. realtime: true,
  940. start: 0, //显示数据开始位置
  941. end: 50 //显示数据结束位置
  942. },
  943. {
  944. type: 'inside',
  945. realtime: true,
  946. start: 0,
  947. end: 50
  948. }
  949. ],
  950. series: [{
  951. name: '超期部门统计',
  952. type: 'bar',
  953. barWidth: 20 * getHeightScale,
  954. data: type_data_bbb,
  955. }]
  956. });
  957. myRi.setOption({
  958. textStyle: {
  959. fontSize: 14 * getHeightScale,
  960. },
  961. tooltip: {
  962. trigger: 'item',
  963. formatter: "{a} <br/>{b} : {c} ({d}%)"
  964. },
  965. series: [{
  966. name: '超期部门统计',
  967. type: 'pie',
  968. radius: '55%',
  969. center: ['50%', '60%'],
  970. data: type_data_bbb,
  971. type_data_name_arry3,
  972. itemStyle: {
  973. emphasis: {
  974. shadowBlur: 10,
  975. shadowOffsetX: 0,
  976. shadowColor: 'rgba(0, 0, 0, 0.5)'
  977. },
  978. normal: {
  979. color: function(params) {
  980. //自定义颜色
  981. var colorList = [
  982. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  983. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  984. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  985. ];
  986. return colorList[params.dataIndex]
  987. }
  988. }
  989. }
  990. }]
  991. });
  992. myEkit1.setOption({
  993. color: ['#1852B5'],
  994. title: {
  995. text: '满意度统计',
  996. x: 'center',
  997. textStyle: {
  998. "color": "#53FEC0",
  999. fontSize: 24 * getHeightScale,
  1000. }
  1001. },
  1002. textStyle: {
  1003. fontSize: 14 * getHeightScale,
  1004. },
  1005. tooltip: {},
  1006. xAxis: {
  1007. data: type_data_name_arry4, //["合计", "非常满意", "满意", "一般", "不满意", ""],
  1008. axisLine: { //这是x轴文字颜色
  1009. lineStyle: {
  1010. color: "#FFFFFF",
  1011. }
  1012. },
  1013. axisLabel: { //调整x轴的lable
  1014. textStyle: {
  1015. fontSize: 16 * getHeightScale // 让字体变大
  1016. }
  1017. }
  1018. },
  1019. yAxis: {
  1020. splitLine: {    
  1021. show: false  
  1022. },
  1023. axisLine: { //这是x轴文字颜色
  1024. lineStyle: {
  1025. color: "#FFFFFF",
  1026. }
  1027. },
  1028. axisLabel: { //调整x轴的lable
  1029. textStyle: {
  1030. fontSize: 16 * getHeightScale // 让字体变大
  1031. }
  1032. }
  1033. },
  1034. dataZoom: [{
  1035. show: false, //是否显示下方滚动条
  1036. realtime: true,
  1037. start: 0, //显示数据开始位置
  1038. end: 300 //显示数据结束位置
  1039. },
  1040. {
  1041. type: 'inside',
  1042. realtime: true,
  1043. start: 0,
  1044. end: 50
  1045. }
  1046. ],
  1047. series: [{
  1048. name: '满意度统计',
  1049. type: 'bar',
  1050. barWidth: 20 * getHeightScale,
  1051. data: type_data_nnn,
  1052. }]
  1053. });
  1054. myEkit.setOption({
  1055. tooltip: {
  1056. trigger: 'item',
  1057. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1058. },
  1059. series: [{
  1060. name: '满意度统计',
  1061. type: 'pie',
  1062. radius: '55%',
  1063. center: ['50%', '60%'],
  1064. data: type_data_nnn,
  1065. type_data_name_arry4,
  1066. itemStyle: {
  1067. emphasis: {
  1068. shadowBlur: 10,
  1069. shadowOffsetX: 0,
  1070. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1071. },
  1072. normal: {
  1073. color: function(params) {
  1074. //自定义颜色
  1075. var colorList = [
  1076. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  1077. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  1078. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  1079. ];
  1080. return colorList[params.dataIndex]
  1081. }
  1082. }
  1083. }
  1084. }]
  1085. });
  1086. myChreti1.setOption({
  1087. color: ['#1852B5'],
  1088. title: {
  1089. text: '工单总量统计',
  1090. x: 'center',
  1091. textStyle: {
  1092. "color": "#53FEC0",
  1093. fontSize: 24 * getHeightScale,
  1094. }
  1095. },
  1096. tooltip: {},
  1097. legend: {},
  1098. xAxis: [{
  1099. data: type_data_name_arry5,
  1100. axisLine: { //这是x轴文字颜色
  1101. lineStyle: {
  1102. color: "#FFFFFF",
  1103. }
  1104. },
  1105. axisLabel: { //调整x轴的lable
  1106. textStyle: {
  1107. fontSize: 16 * getHeightScale // 让字体变大
  1108. }
  1109. }
  1110. }],
  1111. yAxis: {
  1112. splitLine: {    
  1113. show: false  
  1114. },
  1115. axisLine: { //这是x轴文字颜色
  1116. lineStyle: {
  1117. color: "#FFFFFF",
  1118. }
  1119. },
  1120. axisLabel: { //调整x轴的lable
  1121. textStyle: {
  1122. fontSize: 16 * getHeightScale // 让字体变大
  1123. }
  1124. }
  1125. },
  1126. dataZoom: [{
  1127. show: false, //是否显示下方滚动条
  1128. realtime: true,
  1129. start: 0, //显示数据开始位置
  1130. end: 50 //显示数据结束位置
  1131. },
  1132. {
  1133. type: 'inside',
  1134. realtime: true,
  1135. start: 0,
  1136. end: 50
  1137. }
  1138. ],
  1139. series: [{
  1140. name: '工单总量统计',
  1141. type: 'bar',
  1142. barWidth: 20 * getHeightScale,
  1143. data: type_data_uuu,
  1144. }]
  1145. });
  1146. myChreti.setOption({
  1147. textStyle: {
  1148. fontSize: 14 * getHeightScale,
  1149. },
  1150. tooltip: {
  1151. trigger: 'item',
  1152. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1153. },
  1154. series: [{
  1155. name: '工单总量统计',
  1156. type: 'pie',
  1157. radius: '55%',
  1158. center: ['50%', '60%'],
  1159. data: type_data_uuu,
  1160. type_data_name_arry5,
  1161. itemStyle: {
  1162. emphasis: {
  1163. shadowBlur: 10 * getHeightScale,
  1164. shadowOffsetX: 0,
  1165. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1166. },
  1167. normal: {
  1168. color: function(params) {
  1169. //自定义颜色
  1170. var colorList = [
  1171. '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
  1172. '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
  1173. '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
  1174. ];
  1175. return colorList[params.dataIndex]
  1176. }
  1177. }
  1178. }
  1179. }]
  1180. });
  1181. }
  1182. }
  1183. });
  1184. }
  1185. $(document).ready(function() {
  1186. DQQ($("#customer_comaddress")); //大区
  1187. XSJD($("#xiaoshou")); //销售基地
  1188. ZXCPMC($("#Product_Category")); //产品名称
  1189. ZXCPMC($("#product_name")); //三屏产品名称
  1190. QDLXX($("#customer_taxPointDes")); //渠道类型
  1191. XSJD($("#category")); //销售基地
  1192. });
  1193. //渠道类型
  1194. function QDLXX(obj) {
  1195. obj.empty();
  1196. obj.append('<option selected="selected" value="">渠道类型</option>');
  1197. $.getJSON(huayi.config.callcenter_url + "WOReport/GetDicValueListByFlag", {
  1198. // "token": $.cookie("token"),
  1199. flag: "QDLX",
  1200. }, function(data) {
  1201. if(data.state.toLowerCase() == "success") {
  1202. var content = data.data;
  1203. $(content).each(function(i, n) {
  1204. $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
  1205. })
  1206. }
  1207. })
  1208. }
  1209. //产品名称
  1210. function ZXCPMC(obj) {
  1211. obj.empty();
  1212. obj.append('<option selected="selected" value="">产品名称</option>');
  1213. $.getJSON(huayi.config.callcenter_url + "WOReport/GetDicValueListByFlag", {
  1214. // "token": $.cookie("token"),
  1215. flag: "CPZL",
  1216. }, function(data) {
  1217. if(data.state.toLowerCase() == "success") {
  1218. var content = data.data;
  1219. $(content).each(function(i, n) {
  1220. $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
  1221. })
  1222. }
  1223. })
  1224. }
  1225. //销售基地
  1226. function XSJD(obj) {
  1227. obj.empty();
  1228. obj.append('<option selected="selected" value="">基地</option>');
  1229. $.getJSON(huayi.config.callcenter_url + "WOReport/GetDicValueListByFlag", {
  1230. // "token": $.cookie("token"),
  1231. flag: "XSJD",
  1232. }, function(data) {
  1233. if(data.state.toLowerCase() == "success") {
  1234. var content = data.data;
  1235. $(content).each(function(i, n) {
  1236. $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
  1237. })
  1238. }
  1239. })
  1240. }
  1241. function DQQ(obj) {
  1242. obj.empty();
  1243. obj.append('<option selected="selected" value="">大区</option>');
  1244. $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
  1245. // "token": $.cookie("token"),
  1246. F_Layer: 1,
  1247. }, function(data) {
  1248. if(data.state.toLowerCase() == "success") {
  1249. var content = data.data;
  1250. $(content).each(function(i, n) {
  1251. $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
  1252. })
  1253. }
  1254. })
  1255. }
  1256. function KEFENGONG(obj) {
  1257. obj.empty();
  1258. obj.append('<option selected="selected" value="">分公司</option>');
  1259. $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
  1260. // "token": $.cookie("token"),
  1261. F_Layer: 2,
  1262. F_DeptName: $("#customer_comaddress").find("option:selected").text(),
  1263. }, function(data) {
  1264. if(data.state.toLowerCase() == "success") {
  1265. var content = data.data;
  1266. $(content).each(function(i, n) {
  1267. $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
  1268. })
  1269. }
  1270. })
  1271. }
  1272. $('#customer_comaddress').on('change', function() {
  1273. $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
  1274. // "token": $.cookie("token"),
  1275. F_Layer: 2,
  1276. F_DeptName: $("#customer_comaddress").find("option:selected").text(),
  1277. }, function(data) {
  1278. if(data.state.toLowerCase() == "success") {
  1279. var content = data.data;
  1280. $(content).each(function(i, n) {
  1281. $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#customer_legalName");
  1282. })
  1283. KEFENGONG($("#customer_legalName"));
  1284. }
  1285. })
  1286. });