| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332 |
- $("#save_ssss").click(function() {
- partpaat()
- })
- var bigdataList = null;
- setTimeout(function() {
- partpaat();
- }, 3000);
- function partpaat(sd, ed) {
- var myCha = echarts.init(document.getElementById('cha'));
- var myChart = echarts.init(document.getElementById('chart'));
- var myChaaaa = echarts.init(document.getElementById('dback1'));
- var myChartaaa = echarts.init(document.getElementById('dback'));
- var myChaccc = echarts.init(document.getElementById('mold1'));
- var myChartbbb = echarts.init(document.getElementById('mold'));
- var myCharrr = echarts.init(document.getElementById('genre1'));
- var myCharteee = echarts.init(document.getElementById('genre'));
- var myChaqqq = echarts.init(document.getElementById('other1'));
- var myChartwww = echarts.init(document.getElementById('other'));
- var myChalll = echarts.init(document.getElementById('uction1'));
- var myChartppp = echarts.init(document.getElementById('uction'));
- var myChreti = echarts.init(document.getElementById('sippu1'));
- var myChreti1 = echarts.init(document.getElementById('sippu'));
- var myKouc = echarts.init(document.getElementById('siupi1'));
- var myKouc1 = echarts.init(document.getElementById('siupi'));
- var myKucot = echarts.init(document.getElementById('siupiac1'));
- var myKucot1 = echarts.init(document.getElementById('siupiac'));
- var myTou = echarts.init(document.getElementById('siyi1'));
- var myTou1 = echarts.init(document.getElementById('siyi'));
- var myRi = echarts.init(document.getElementById('siout1'));
- var myRi1 = echarts.init(document.getElementById('siout'));
- var myEkit = echarts.init(document.getElementById('seytio1'));
- var myEkit1 = echarts.init(document.getElementById('seytio'));
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "WOReport/GetBigdataList",
- async: true,
- dataType: "json",
- data: {
- stime: sd,
- endtime: ed,
- salesBase: $('#xiaoshou').val(), //销售基地
- product: $('#Product_Category').val(), //产品
- channel: $('#customer_taxPointDes').val(), //渠道类型
- area: $('#customer_comaddress').val(), //大区
- branch: $('#customer_legalName').val(), //分公司
- isEnd: $('#customer_exceed').val(),
- type: $('#styqu').val(), //反馈类型
- },
- success: function(data) {
- if(data.state.toLowerCase() == "success") {
- //bigdataList = data.rows;
- var con = data.rows;
- $('.my_numet').html(con.salesBase[0].number); //基地反馈统计
- $('.my_yer').html(con.salesBase[0].Lastyear);
- $('.my_moye').html(con.salesBase[0].Lastmonth);
- $('.ch_numet').html(con.product[0].number); //产品反馈统计
- $('.ch_yer').html(con.product[0].Lastyear);
- $('.ch_moye').html(con.product[0].Lastmonth);
- $('.qd_numet').html(con.channel[0].number); //渠道反馈统计
- $('.qd_yer').html(con.channel[0].Lastyear);
- $('.qd_moye').html(con.channel[0].Lastmonth);
- $('.gdz_numet').html(con.state[0].number); //工单统计
- $('.gdz_yer').html(con.state[0].Lastyear);
- $('.gdz_moye').html(con.state[0].Lastmonth);
- $('.cq_numet').html(con.overdue[0].number); //超期部门统计
- $('.cq_yer').html(con.overdue[0].Lastyear);
- $('.cq_moye').html(con.overdue[0].Lastmonth);
- $('.myd_numet').html(con.satisfaction[0].number); //满意度统计
- $('.myd_yer').html(con.satisfaction[0].Lastyear);
- $('.myd_moye').html(con.satisfaction[0].Lastmonth);
- var channel = con.channel.slice(1);
- console.log(channel);
- var overdue = con.overdue.slice(1);
- var product = con.product.slice(1);
- var stateaa = con.state.slice(1);
- var satisfaction = con.satisfaction.slice(1);
- var type_data = con.salesBase.slice(1);
- // 聚到类型
- var type_data_ccc = [];
- var type_data_name_arry2 = [];
- $(channel).each(function(i, n) {
- //type_data_arry.push(n.name)
- //数据
- var type_data_obj2 = {};
- type_data_obj2.name = n.name;
- type_data_obj2.value = n.number;
- type_data_ccc.push(type_data_obj2);
- //名称
- var type_data_name_obj2 = {};
- type_data_name_obj2 = n.name;
- type_data_name_arry2.push(type_data_name_obj2);
- })
- // 基地反馈
- var type_data_arry = [];
- var data_arr = type_data_arry.shift(0);
- var type_data_name_arry = [];
- $(type_data).each(function(i, n) {
- //type_data_arry.push(n.name)
- //数据
- var type_data_obj = {};
- type_data_obj.name = n.name;
- type_data_obj.value = n.number;
- type_data_arry.push(type_data_obj);
- //名称
- var type_data_name_obj = {};
- type_data_name_obj = n.name;
- type_data_name_arry.push(type_data_name_obj);
- })
- // 产品类型
- var type_data_aaa = [];
- var type_data_name_arry1 = [];
- $(product).each(function(i, n) {
- //type_data_arry.push(n.name)
- //数据
- var type_data_obj1 = {};
- type_data_obj1.name = n.name;
- type_data_obj1.value = n.number;
- type_data_aaa.push(type_data_obj1);
- //名称
- var type_data_name_obj1 = {};
- type_data_name_obj1 = n.name;
- type_data_name_arry1.push(type_data_name_obj1);
- })
- // 超期部门
- var type_data_bbb = [];
- var type_data_name_arry3 = [];
- $(overdue).each(function(i, n) {
- //type_data_arry.push(n.name)
- //数据
- var type_data_obj3 = {};
- type_data_obj3.name = n.name;
- type_data_obj3.value = n.number;
- type_data_bbb.push(type_data_obj3);
- //名称
- var type_data_name_obj3 = {};
- type_data_name_obj3 = n.name;
- type_data_name_arry3.push(type_data_name_obj3);
- })
- // 满意度
- var type_data_nnn = [];
- var type_data_name_arry4 = [];
- $(satisfaction).each(function(i, n) {
- //type_data_arry.push(n.name)
- //数据
- var type_data_obj4 = {};
- type_data_obj4.name = n.name;
- type_data_obj4.value = n.number;
- type_data_nnn.push(type_data_obj4);
- //名称
- var type_data_name_obj4 = {};
- type_data_name_obj4 = n.name;
- type_data_name_arry4.push(type_data_name_obj4);
- })
- // 工单
- var type_data_uuu = [];
- var type_data_name_arry5 = [];
- $(stateaa).each(function(i, n) {
- //type_data_arry.push(n.name)
- //数据
- var type_data_obj5 = {};
- type_data_obj5.name = n.name;
- type_data_obj5.value = n.number;
- type_data_uuu.push(type_data_obj5);
- //名称
- var type_data_name_obj5 = {};
- type_data_name_obj5 = n.name;
- type_data_name_arry5.push(type_data_name_obj5);
- })
- myChart.setOption({
- color: ['#1852B5'],
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- "textStyle": {
- "fontSize": 18 * getHeightScale,
- }
- },
- xAxis: {
- data: type_data_name_arry, //["合计", "咨询", "投诉", "抽检", "建议及其他", ""], ["咨询", "投诉", "抽检", "建议", "合计"]
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#000946",
- }
- }
- },
- series: [{
- name: '反馈类型统计',
- type: 'bar',
- x: 'center',
- // barGap:'2%', //两个柱子距离
- barWidth: 20 * getHeightScale,
- data: type_data_arry
- }]
- });
- myCha.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '访问来源',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_arry,
- type_data_name_arry,
- label: {
- normal: {
- position: 'inner',
- show: false
- }
- },
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myChartaaa.setOption({
- color: ['#1852B5'],
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- splitNumber: 5,
- data: type_data_name_arry1, //["合计", "尿素", "复合肥", "水溶肥", "车用尿素", "三聚氰胺", "甲醇", "糖醇", "腐殖酸", "二甲醚", "糖醛", "液氨", "其他", ""],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#000946",
- }
- }
- },
- series: [{
- name: '产品类型统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_aaa,
- }]
- });
- myChaaaa.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '访问来源',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_aaa,
- type_data_name_arry1,
- label: {
- normal: {
- position: 'inner',
- show: false
- }
- },
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myChartbbb.setOption({
- color: ['#1852B5'],
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry2, //["合计", "总经销", "二级商", "种田大户", "农户", "化工客户", "公司员工", "其他"],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#000946",
- }
- }
- },
- series: [{
- name: '渠道类型统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_ccc,
- }]
- });
- myChaccc.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '渠道类型统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_ccc,
- type_data_name_arry2,
- label: {
- normal: {
- position: 'inner',
- show: false
- }
- },
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myCharteee.setOption({
- color: ['#1852B5'],
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- xAxis: {
- data: type_data_name_arry3, // ["合计", "市场管理科", "呼叫中心", "车用尿素", ""],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#000946",
- }
- }
- },
- series: [{
- name: '超期部门统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_bbb,
- }]
- });
- myCharrr.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '超期部门统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_bbb,
- type_data_name_arry3,
- label: {
- normal: {
- position: 'inner',
- show: false
- }
- },
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myChartwww.setOption({
- color: ['#1852B5'],
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry4, //["合计", "非常满意", "满意", "一般", "不满意", ""],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#000946",
- }
- }
- },
- series: [{
- name: '满意度统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_nnn,
- }]
- });
- myChaqqq.setOption({
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '满意度统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_nnn,
- type_data_name_arry4,
- label: {
- normal: {
- position: 'inner',
- show: false
- }
- },
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myChartppp.setOption({
- color: ['#1852B5'],
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry5,
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#000946",
- }
- }
- },
- series: [{
- name: '工单',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_uuu,
- }]
- });
- myChalll.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '访问来源',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_uuu,
- type_data_name_arry5,
- label: {
- normal: {
- position: 'inner',
- show: false
- }
- },
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- },
- }
- }]
- });
- myKouc1.setOption({
- color: ['#1852B5'],
- title: {
- text: '基地反馈统计',
- x: 'center',
- textStyle: {
- "color": "#53FEC0",
- fontSize: 24 * getHeightScale,
- }
- },
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry, //["合计", "咨询", "投诉", "抽检", "建议及其他", ""], ["咨询", "投诉", "抽检", "建议", "合计"]
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- dataZoom: [{
- show: false, //是否显示下方滚动条
- realtime: true,
- start: 0, //显示数据开始位置
- end: 50 //显示数据结束位置
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 50
- }
- ],
- series: [{
- name: '基地反馈统计',
- type: 'bar',
- x: 'center',
- // barGap:'2%', //两个柱子距离
- barWidth: 20 * getHeightScale,
- data: type_data_arry
- }]
- });
- myKouc.setOption({
- textStyle: {
- fontSize: 18 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '基地反馈统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_arry,
- type_data_name_arry,
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myKucot1.setOption({
- color: ['#1852B5'],
- title: {
- text: '产品类型统计',
- x: 'center',
- textStyle: {
- "color": "#53FEC0",
- fontSize: 24 * getHeightScale,
- }
- },
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- splitNumber: 5,
- data: type_data_name_arry1, //["合计", "尿素", "复合肥", "水溶肥", "车用尿素", "三聚氰胺", "甲醇", "糖醇", "腐殖酸", "二甲醚", "糖醛", "液氨", "其他", ""],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- dataZoom: [{
- show: false, //是否显示下方滚动条
- realtime: true,
- start: 0, //显示数据开始位置
- end: 50 //显示数据结束位置
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 50
- }
- ],
- series: [{
- name: '产品类型统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_aaa,
- }]
- });
- myKucot.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '产品类型统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_aaa,
- type_data_name_arry1,
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myTou1.setOption({
- color: ['#1852B5'],
- title: {
- text: '渠道类型统计',
- x: 'center',
- textStyle: {
- "color": "#53FEC0",
- fontSize: 24 * getHeightScale,
- }
- },
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry2, //["合计", "总经销", "二级商", "种田大户", "农户", "化工客户", "公司员工", "其他"],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- dataZoom: [{
- show: false, //是否显示下方滚动条
- realtime: true,
- start: 0, //显示数据开始位置
- end: 150 //显示数据结束位置
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 50
- }
- ],
- series: [{
- name: '渠道类型统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_ccc,
- }]
- });
- myTou.setOption({
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '渠道类型统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_ccc,
- type_data_name_arry2,
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myRi1.setOption({
- color: ['#1852B5'],
- title: {
- text: '超期部门统计',
- x: 'center',
- textStyle: {
- "color": "#53FEC0",
- fontSize: 24 * getHeightScale,
- }
- },
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry3, // ["合计", "市场管理科", "呼叫中心", "车用尿素", ""],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- dataZoom: [{
- show: false, //是否显示下方滚动条
- realtime: true,
- start: 0, //显示数据开始位置
- end: 50 //显示数据结束位置
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 50
- }
- ],
- series: [{
- name: '超期部门统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_bbb,
- }]
- });
- myRi.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '超期部门统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_bbb,
- type_data_name_arry3,
- itemStyle: {
- emphasis: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myEkit1.setOption({
- color: ['#1852B5'],
- title: {
- text: '满意度统计',
- x: 'center',
- textStyle: {
- "color": "#53FEC0",
- fontSize: 24 * getHeightScale,
- }
- },
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {},
- xAxis: {
- data: type_data_name_arry4, //["合计", "非常满意", "满意", "一般", "不满意", ""],
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- dataZoom: [{
- show: false, //是否显示下方滚动条
- realtime: true,
- start: 0, //显示数据开始位置
- end: 300 //显示数据结束位置
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 50
- }
- ],
- series: [{
- name: '满意度统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_nnn,
- }]
- });
- myEkit.setOption({
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '满意度统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_nnn,
- type_data_name_arry4,
- itemStyle: {
- emphasis: {
- shadowBlur: 10,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- myChreti1.setOption({
- color: ['#1852B5'],
- title: {
- text: '工单总量统计',
- x: 'center',
- textStyle: {
- "color": "#53FEC0",
- fontSize: 24 * getHeightScale,
- }
- },
- tooltip: {},
- legend: {},
- xAxis: [{
- data: type_data_name_arry5,
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- }],
- yAxis: {
- splitLine: {
- show: false
- },
- axisLine: { //这是x轴文字颜色
- lineStyle: {
- color: "#FFFFFF",
- }
- },
- axisLabel: { //调整x轴的lable
- textStyle: {
- fontSize: 16 * getHeightScale // 让字体变大
- }
- }
- },
- dataZoom: [{
- show: false, //是否显示下方滚动条
- realtime: true,
- start: 0, //显示数据开始位置
- end: 50 //显示数据结束位置
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 50
- }
- ],
- series: [{
- name: '工单总量统计',
- type: 'bar',
- barWidth: 20 * getHeightScale,
- data: type_data_uuu,
- }]
- });
- myChreti.setOption({
- textStyle: {
- fontSize: 14 * getHeightScale,
- },
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- series: [{
- name: '工单总量统计',
- type: 'pie',
- radius: '55%',
- center: ['50%', '60%'],
- data: type_data_uuu,
- type_data_name_arry5,
- itemStyle: {
- emphasis: {
- shadowBlur: 10 * getHeightScale,
- shadowOffsetX: 0,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- },
- normal: {
- color: function(params) {
- //自定义颜色
- var colorList = [
- '#1890FF', '#2EC25B', '#FACC14', '#04D9FF', '#8543E0', '#13C2C2',
- '#00C0FF', '#05EB78', '#D141D9', '#05EB61', '#2FCDCD', '#BEEB30',
- '#EB9005', '#FFFF00', '#FF7F50', '#3CB371', '#00BFFF', '#9932CC',
- ];
- return colorList[params.dataIndex]
- }
- }
- }
- }]
- });
- }
- }
- });
- }
- $(document).ready(function() {
- DQQ($("#customer_comaddress")); //大区
- XSJD($("#xiaoshou")); //销售基地
- ZXCPMC($("#Product_Category")); //产品名称
- ZXCPMC($("#product_name")); //三屏产品名称
- QDLXX($("#customer_taxPointDes")); //渠道类型
- XSJD($("#category")); //销售基地
- });
- //渠道类型
- function QDLXX(obj) {
- obj.empty();
- obj.append('<option selected="selected" value="">渠道类型</option>');
- $.getJSON(huayi.config.callcenter_url + "WOReport/GetDicValueListByFlag", {
- // "token": $.cookie("token"),
- flag: "QDLX",
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
- })
- }
- })
- }
- //产品名称
- function ZXCPMC(obj) {
- obj.empty();
- obj.append('<option selected="selected" value="">产品名称</option>');
- $.getJSON(huayi.config.callcenter_url + "WOReport/GetDicValueListByFlag", {
- // "token": $.cookie("token"),
- flag: "CPZL",
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
- })
- }
- })
- }
- //销售基地
- function XSJD(obj) {
- obj.empty();
- obj.append('<option selected="selected" value="">基地</option>');
- $.getJSON(huayi.config.callcenter_url + "WOReport/GetDicValueListByFlag", {
- // "token": $.cookie("token"),
- flag: "XSJD",
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_Name + "'>" + n.F_Name + "</option>").appendTo(obj);
- })
- }
- })
- }
- function DQQ(obj) {
- obj.empty();
- obj.append('<option selected="selected" value="">大区</option>');
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
- // "token": $.cookie("token"),
- F_Layer: 1,
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
- })
- }
- })
- }
- function KEFENGONG(obj) {
- obj.empty();
- obj.append('<option selected="selected" value="">分公司</option>');
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
- // "token": $.cookie("token"),
- F_Layer: 2,
- F_DeptName: $("#customer_comaddress").find("option:selected").text(),
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(obj);
- })
- }
- })
- }
- $('#customer_comaddress').on('change', function() {
- $.getJSON(huayi.config.callcenter_url + "Department/GetList", {
- // "token": $.cookie("token"),
- F_Layer: 2,
- F_DeptName: $("#customer_comaddress").find("option:selected").text(),
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo("#customer_legalName");
- })
- KEFENGONG($("#customer_legalName"));
- }
- })
- });
|