徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
33 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ad578dc2"],{"1cde":function(t,e,r){},4676:function(t,e,r){"use strict";r("a615")},"533d":function(t,e,r){},"607d":function(t,e,r){"use strict";r("1cde")},"61f7":function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(e)){var i=r[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?i:c(i))}return e}function c(t){return("00"+t).substr(t.length)}r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return f})),r.d(e,"b",(function(){return p}));var u={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},l=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function f(t){return a({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function p(t){return h.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(f,"请输入%s"),l(p,"%s格式不正确");var h=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:o({},e,t);return a(a({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i),n)},l(t[e],u[e]),t}),{})},"7ca2":function(t,e,r){"use strict";r("533d")},8688:function(t,e,r){"use strict";r.r(e);var n=r("2f62"),i=r("a584"),a=r("c71e"),o=r("9901"),s=r("a6b9"),c=r("61f7");function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new k(n||[]);return i(o,"_invoke",{value:S(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var O={};f(O,o,(function(){return this}));var D=Object.getPrototypeOf,j=D&&D(D(P([])));j&&j!==r&&n.call(j,o)&&(O=j);var C=x.prototype=b.prototype=Object.create(O);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,a,o,s){var c=h(t[i],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(f).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,r,n){var i=d;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=F(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=h(e,r,n);if("normal"===u.type){if(i=n.done?y:m,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=x,i(C,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,c,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},L(_.prototype),f(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new _(p(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},L(C),f(C,c,"Generator"),f(C,o,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function f(t,e,r,n,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){f(a,n,i,o,s,"next",t)}function s(t){f(a,n,i,o,s,"throw",t)}o(void 0)}))}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g={name:"",components:{Cardbox:i.a,Echarts:a.a,echartsFrom:o.a},props:{},data:function(){return{active:1,active2:3,options:{shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,r=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},formValidate:{supplier_id:"",data:""},timeVal:[],optionData:{},infoList:{},infoList2:{},loading:!1,loading2:!1,style:{height:"400px"},styles:{height:"400px"},columns:[{title:"序号",type:"index",width:60,align:"center"},{title:"来源",key:"name",minWidth:80,align:"center"},{title:"金额",width:100,key:"value",align:"center"},{title:"占比率",slot:"percent",minWidth:180,align:"center"}],tabList:[],tabList2:[],cardLists:[],supplierColumns:[{title:"供应商信息",key:"supplier_name",align:"left"},{title:"订单金额",key:"order_price",align:"left"},{title:"订单数",key:"order_count",align:"left"},{title:"退款金额",key:"refund_order_price",align:"left"},{title:"退款订单数",key:"refund_order_count",align:"left"}],supplierName:[],supplierList:[],page:{total:0,pageNum:1,pageSize:10}}},computed:d(d({},Object(n.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),watch:{},created:function(){this.homeHeader(),this.getSupplierList(),this.homeOrder(),this.orderChannel(),this.orderType(),this.homeSupplier();var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.formValidate.data=Object(c.a)(e,"yyyy/MM/dd")+"-"+Object(c.a)(t,"yyyy/MM/dd")},mounted:function(){},methods:{onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.homeHeader(),this.homeOrder(),this.orderChannel(),this.orderType(),this.homeSupplier()},selectChange:function(){this.homeHeader(),this.homeOrder(),this.orderChannel(),this.orderType(),this.homeSupplier()},pageChange:function(t){this.page.pageNum=t,thie.homeSupplier()},limitChange:function(t){this.page.pageSize=t,this.homeSupplier()},one:function(t){this.active=t},activeTwo:function(t){this.active2=t},getSupplierList:function(){var t=this;Object(s.o)().then(function(){var e=p(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.supplierName=r.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},homeHeader:function(){var t=this;Object(s.r)(this.formValidate).then(function(){var e=p(l().mark((function e(r){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=["pay_price","pay_count","refund_price","refund_count"],t.cardLists.map((function(t,e){t.count=r.data[n[e]]}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},homeOrder:function(){var t=this;Object(s.s)(this.formValidate).then(function(){var e=p(l().mark((function e(r){var n,i,a,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data.series.map((function(t){return t.name})),i=r.data.xAxis,a=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],o=[],r.data.series.map((function(t,e){o.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:a[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:n},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{saveAsImage:{name:"营业趋势_"+Object(c.a)(new Date(Number((new Date).getTime())),"yyyyMMddhhmmss")}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:i},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:o},t.spinShow=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},orderChannel:function(){var t=this;this.loading=!0,Object(s.u)(this.formValidate).then(function(){var e=p(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=r.data,t.tabList=r.data.list,t.loading=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},orderType:function(){var t=this;this.loading2=!0,Object(s.x)(this.formValidate).then(function(){var e=p(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList2=r.data,t.tabList2=r.data.list,t.loading2=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},homeSupplier:function(){var t=this;Object(s.t)(this.formValidate).then(function(){var e=p(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.supplierList=r.data,t.page.total=t.supplierList.length;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},y=(r("4676"),r("2877")),v=Object(y.a)(g,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("Form",{ref:"formValidate",staticClass:"formValidate mt20 card",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition,model:t.formValidate,inline:""}},[e("FormItem",{attrs:{label:"时间选择:"}},[e("DatePicker",{staticClass:"input-add",attrs:{editable:!1,clearable:"",value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),e("FormItem",{attrs:{label:"供应商:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.selectChange},model:{value:t.formValidate.supplier_id,callback:function(e){t.$set(t.formValidate,"supplier_id",e)},expression:"formValidate.supplier_id"}},t._l(t.supplierName,(function(r){return e("Option",{key:r.id,attrs:{value:r.id}},[t._v(t._s(r.supplier_name))])})),1)],1)],1)],1),e("Cardbox",{attrs:{cardLists:t.cardLists}}),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("h3",[t._v("营业趋势")]),t.optionData?e("Echarts",{attrs:{styles:t.style,height:"100%",width:"100%","option-data":t.optionData}}):t._e()],1),e("Row",{staticClass:"ivu-mt",attrs:{gutter:24}},[e("Col",{attrs:{xl:12,lg:12,md:24,sm:24,xs:24}},[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("h3",{staticClass:"header-title"},[t._v("订单来源统计")]),e("div",{staticClass:"change-style"},[e("div",{staticClass:"change_type",class:{active:1==t.active},on:{click:function(e){return t.one(1)}}},[e("Icon",{attrs:{type:"ios-pie"}})],1),e("div",{staticClass:"change_type",class:{active:2==t.active},on:{click:function(e){return t.one(2)}}},[e("Icon",{attrs:{type:"ios-apps"}})],1)])]),e("div",{staticClass:"ech-box"},[1==t.active?e("echarts-from",{attrs:{infoList:t.infoList,echartsTitle:"circle",styles:t.styles}}):e("Table",{ref:"selection",attrs:{columns:t.columns,data:t.tabList,loading:t.loading,height:"400","no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"percent",fn:function(r){var n=r.row;return[e("div",{staticClass:"percent-box"},[e("div",{staticClass:"line"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"percent",style:"width:"+n.percent+"%;"})]),e("div",{staticClass:"num"},[t._v(t._s(n.percent)+"%")])])]}}])})],1)])],1),e("Col",{attrs:{xl:12,lg:12,md:24,sm:24,xs:24}},[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("h3",{staticClass:"header-title"},[t._v("订单类型分析")]),e("div",{staticClass:"change-style"},[e("div",{staticClass:"change_type",class:{active:3==t.active2},on:{click:function(e){return t.activeTwo(3)}}},[e("Icon",{attrs:{type:"ios-pie"}})],1),e("div",{staticClass:"change_type",class:{active:4==t.active2},on:{click:function(e){return t.activeTwo(4)}}},[e("Icon",{attrs:{type:"ios-apps"}})],1)])]),e("div",{staticClass:"ech-box"},[3==t.active2?e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList2,echartsTitle:"circle",styles:t.styles}}):e("Table",{ref:"selection",attrs:{columns:t.columns,data:t.tabList2,"no-data-text":"暂无数据",loading:t.loading,height:"400","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"percent",fn:function(r){var n=r.row;return[e("div",{staticClass:"percent-box"},[e("div",{staticClass:"line"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"percent",style:"width:"+n.percent+"%;"})]),e("div",{staticClass:"num"},[t._v(t._s(n.percent)+"%")])])]}}])})],1)])],1)],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("h3",{staticClass:"supplier"},[t._v("供应商数据统计")]),e("Table",{ref:"selection",attrs:{columns:t.supplierColumns,data:t.supplierList,"no-data-text":"暂无数据","highlight-row":"",loading:t.loading,"no-filtered-data-text":"暂无筛选结果"}}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.page.total,current:t.page.pageNum,"show-elevator":"","show-total":"","page-size":t.page.pageSize,"show-sizer":""},on:{"on-change":t.pageChange,"on-page-size-change":t.limitChange}})],1)],1)],1)}),[],!1,null,"815d2a5e",null);e.default=v.exports},9901:function(t,e,r){"use strict";var n=r("313e"),i=r.n(n),a={name:"index",props:{infoList:{type:Object,default:null},styles:{type:Object,default:null},series:Array,echartsTitle:{type:String,default:""},yAxisData:{type:Array,default:function(){return[]}},bingXdata:Array},data:function(){return{infoLists:this.infoList,seriesArray:this.series}},watch:{infoList:{handler:function(t,e){this.infoLists=t,this.handleSetVisitChart()},deep:!0},series:{handler:function(t,e){this.seriesArray=t,this.handleSetVisitChart()},deep:!0}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t=this;this.myChart=i.a.init(document.getElementById(this.echarts));var e=null;e="circle"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:this.infoLists.bing_xdata||[]},series:[{name:"",type:"pie",radius:"60%",center:["50%","50%"],data:this.infoLists.bing_data||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:"circle1"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:{icon:"circle",top:"5%",left:"center",fontSize:"12",data:this.infoLists.bing_xdata||[]},series:[{name:"访问来源",type:"pie",radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!0,formatter:"{d}%",position:"inner",fontSize:"12"},emphasis:{label:{show:!0,fontSize:"15",fontWeight:"bold"}},labelLine:{show:!1},data:this.infoLists.bing_data||[]}]}:"inlie"===this.echartsTitle?{tooltip:{trigger:"axis"},toolbox:{},legend:{icon:"line",left:"left",fontWeight:"100",data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray}:{tooltip:{trigger:"axis"},toolbox:{},legend:{data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray},setTimeout((function(){t.wsFunc(),t.myChart.setOption(e,!0)}),200)},handleResize:function(){this.myChart.resize()}},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)}},o=(r("7ca2"),r("2877")),s=Object(o.a)(a,(function(){var t=this._self._c;return t("div",[t("div",{staticClass:"styles",style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"e03fd378",null);e.a=s.exports},a584:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=i(i(i({name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),"methods",{}),"created",(function(){})),o=(r("607d"),r("2877")),s=Object(o.a)(a,(function(){var t=this,e=t._self._c;return e("div",[e("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(r,n){return e("Col",{key:n,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:r.col}}},[e("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[e("div",{staticClass:"card_box"},[e("div",{staticClass:"card_box_cir",class:{one:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[e("div",{staticClass:"card_box_cir1",class:{one1:n%5==0,two1:n%5==1,three1:n%5==2,four1:n%5==3,five1:n%5==4}},[r.type?e("span",{staticClass:"iconfont",class:r.className}):e("Icon",{attrs:{type:r.className}})],1)]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(r.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(r.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=s.exports},a615:function(t,e,r){},a6b9:function(t,e,r){"use strict";r.d(e,"J",(function(){return i})),r.d(e,"n",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"y",(function(){return s})),r.d(e,"z",(function(){return c})),r.d(e,"o",(function(){return u})),r.d(e,"h",(function(){return l})),r.d(e,"b",(function(){return f})),r.d(e,"v",(function(){return p})),r.d(e,"c",(function(){return h})),r.d(e,"B",(function(){return d})),r.d(e,"j",(function(){return m})),r.d(e,"l",(function(){return g})),r.d(e,"w",(function(){return y})),r.d(e,"r",(function(){return v})),r.d(e,"s",(function(){return b})),r.d(e,"u",(function(){return w})),r.d(e,"x",(function(){return x})),r.d(e,"K",(function(){return O})),r.d(e,"t",(function(){return D})),r.d(e,"k",(function(){return j})),r.d(e,"m",(function(){return C})),r.d(e,"q",(function(){return L})),r.d(e,"A",(function(){return _})),r.d(e,"g",(function(){return S})),r.d(e,"f",(function(){return F})),r.d(e,"p",(function(){return T})),r.d(e,"i",(function(){return E})),r.d(e,"F",(function(){return k})),r.d(e,"G",(function(){return P})),r.d(e,"I",(function(){return M})),r.d(e,"d",(function(){return A})),r.d(e,"H",(function(){return V})),r.d(e,"e",(function(){return N})),r.d(e,"C",(function(){return z})),r.d(e,"E",(function(){return $})),r.d(e,"L",(function(){return I})),r.d(e,"D",(function(){return B}));var n=r("b6bd");function i(t){return Object(n.a)({url:"supplier/supplier",method:"get",params:t})}function a(t){return Object(n.a)({url:"/supplier/supplier/".concat(t),method:"get"})}function o(t){return Object(n.a)({url:"supplier/supplier",method:"post",data:t})}function s(t,e){return Object(n.a)({url:"supplier/supplier/".concat(t),method:"put",data:e})}function c(t,e){return Object(n.a)({url:"/supplier/supplier/set_status/".concat(t,"/").concat(e),method:"put"})}function u(t){return Object(n.a)({url:"/supplier/list",method:"get",params:t})}function l(t){return Object(n.a)({url:"/supplier/order/list",method:"get",params:t})}function f(t){return Object(n.a)({url:"/supplier/order/deliver_remind/".concat(t.supplier_id,"/").concat(t.id),method:"put"})}function p(t){return Object(n.a)({url:"/supplier/order/info/".concat(t),method:"get"})}function h(t){return Object(n.a)({url:"/supplier/order/distribution_info",method:"get",params:{ids:t}})}function d(t,e){return Object(n.a)({url:"/supplier/order/split_order/"+t,method:"get",params:e})}function m(t){return Object(n.a)({url:"/supplier/order/status/".concat(t.id),method:"get",params:t.datas})}function g(t){return Object(n.a)({url:"/supplier/order/refund/".concat(t),method:"get"})}function y(t){return Object(n.a)({url:"/supplier/refund/list",method:"get",params:t})}function v(t){return Object(n.a)({url:"/supplier/home/header",method:"get",params:t})}function b(t){return Object(n.a)({url:"/supplier/home/order",method:"get",params:t})}function w(t){return Object(n.a)({url:"/supplier/home/order_channel",method:"get",params:t})}function x(t){return Object(n.a)({url:"/supplier/home/order_type",method:"get",params:t})}function O(t){return Object(n.a)({url:"/supplier/supplier/login/".concat(t),method:"get"})}function D(t){return Object(n.a)({url:"/supplier/home/supplier",method:"get",params:t})}function j(t){return Object(n.a)({url:"/supplier/refund/detail/".concat(t),method:"get"})}function C(t){return Object(n.a)({url:"/supplier/refund/refund/".concat(t),method:"get"})}function L(t){return Object(n.a)({url:"/supplier/order/no_refund/".concat(t),method:"get"})}function _(t){return Object(n.a)({url:"/supplier/order/refund_integral/".concat(t),method:"get"})}function S(t){return Object(n.a)({url:"/supplier/order/distribution/".concat(t),method:"get"})}function F(t){return Object(n.a)({url:"/supplier/apply/list",method:"get",params:t})}function T(t){return Object(n.a)({url:"/supplier/apply/verify/form/".concat(t),method:"get"})}function E(t){return Object(n.a)({url:"/supplier/apply/mark/form/".concat(t),method:"get"})}function k(t){return Object(n.a)({url:"/supplier/flowing_water/fund_record_info",method:"get",params:t})}function P(t){return Object(n.a)({url:"/supplier/flowing_water/list",method:"get",params:t})}function M(t,e){return Object(n.a)({url:"/supplier/flowing_water/mark/".concat(t),method:"put",params:e})}function A(t){return Object(n.a)({url:"/export/supplierWaterExport",method:"get",params:t})}function V(t){return Object(n.a)({url:"/supplier/flowing_water/fund_record",method:"get",params:t})}function N(t){return Object(n.a)({url:"/export/supplierWaterRecord",method:"get",params:t})}function z(t){return Object(n.a)({url:"/supplier/extract/list",method:"get",params:t})}function $(t,e){return Object(n.a)({url:"/supplier/extract/verify/".concat(t),method:"post",data:e})}function I(t){return Object(n.a)({url:"/supplier/extract/transfer/".concat(t),method:"get"})}function B(t,e){return Object(n.a)({url:"/supplier/extract/mark/".concat(t),method:"post",data:e})}},c71e:function(t,e,r){"use strict";var n=r("313e"),i=r.n(n),a={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t;this.myChart=i.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},o=r("2877"),s=Object(o.a)(a,(function(){var t=this._self._c;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"458f4634",null);e.a=s.exports}}]);