徐总多门店
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
15 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fb6385aa"],{a3a2:function(t,e,n){"use strict";n("efca")},b09a:function(t,e,n){},e9c8:function(t,e,n){"use strict";n.r(e);var a=n("0c9f"),r=n("c4c8"),i=n("217c"),o=n("61f7");function s(t){return(s="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 c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,a){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),s=new F(a||[]);return r(o,"_invoke",{value:C(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",v="suspendedYield",p="executing",y="completed",g={};function w(){}function D(){}function b(){}var _={};h(_,o,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(V([])));k&&k!==n&&a.call(k,o)&&(_=k);var L=b.prototype=w.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(r,i,o,c){var l=d(t[r],t,i);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==s(h)&&a.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,o,c)}),(function(t){n("throw",t,o,c)})):e.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,c)}))}c(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function C(e,n,a){var r=m;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===y){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var c=j(s,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var l=d(e,n,a);if("normal"===l.type){if(r=a.done?y:v,l.arg===g)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r=y,a.method="throw",a.arg=l.arg)}}}function j(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(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 M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function V(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return D.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:D,configurable:!0}),D.displayName=h(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===D||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,h(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(T.prototype),h(T.prototype,l,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new T(f(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},O(L),h(L,u,"Generator"),h(L,o,(function(){return this})),h(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=V,F.prototype={constructor:F,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(M),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):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),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:V(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function l(t,e,n,a,r,i,o){try{var s=t[i](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(a,r)}var u={name:"productcount",components:{goodsDetail:i.a},data:function(){return{validateFun:this.$validateFun,props:{emitPath:!1,multiple:!0,checkStrictly:!0},cateData:[],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,n=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,n))),[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]}}]},name:"近30天",timeVal:[],dataTime:"",formValidate:{limit:1e6,page:1,sort:"visit",data:"",cate_id:[]},loading:!1,allpay:"0.00",allshiji:"0.00",allsum:"0",allyouhui:"0.00",tabList:[],total:0,columns4:[{title:"收入归属",minWidth:80,key:"storename"},{title:"商品图片",slot:"image",minWidth:80},{title:"商品名称",width:180,key:"store_name"},{title:"商品分类",key:"cate_name",minWidth:100},{title:"出品仓库",key:"storename",minWidth:100},{title:"出品类型",key:"pink_name",minWidth:100},{title:"订单编号",minWidth:180,key:"order_no"},{title:"商品编号",key:"attrInfo.unique",minWidth:100},{title:"销量",key:"pnum",minWidth:100},{title:"单位",key:"unit_name",minWidth:100},{title:"优惠金额",key:"youhui",minWidth:100},{title:"应收金额",key:"sum_price",minWidth:100},{title:"实收金额",key:"sum_true_price",minWidth:100},{title:"商品成本",key:"cost",minWidth:100}],goodsId:"",isProductBox:!1,list:[{val:"visit",name:"浏览量"},{val:"user",name:"访客数"},{val:"cart",name:"加购件数"},{val:"orders",name:"下单件数"},{val:"price",name:"支付金额"},{val:"profit",name:"毛利率"},{val:"collect",name:"收藏数"},{val:"changes",name:"访客-支付转化率"}]}},created:function(){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(o.a)(e,"yyyy/MM/dd")+"-"+Object(o.a)(t,"yyyy/MM/dd")},mounted:function(){this.getList(),this.goodsCategory()},methods:{goodsCategory:function(){var t=this;Object(r.h)(1).then((function(e){t.cateData=e.data})).catch((function(e){t.$Message.error(e.msg)}))},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.name=this.formValidate.data,this.getList()},changeMenu:function(t){this.formValidate.sort=t,this.getList()},getList:function(){var t=this;this.loading=!0,Object(a.q)(this.formValidate).then(function(){var e,n=(e=c().mark((function e(n){var a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tabList=a.data,t.allpay=a.allpay,t.allshiji=a.allshiji,t.allsum=a.allsum,t.allyouhui=a.allyouhui,t.loading=!1;case 7:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(t){l(i,a,r,o,s,"next",t)}function s(t){l(i,a,r,o,s,"throw",t)}o(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},look:function(t){this.goodsId=t.product_id,this.isProductBox=!0}}},h=(n("a3a2"),n("f2e1"),n("2877")),f={name:"count",components:{productcount:Object(h.a)(u,(function(){var t=this,e=t._self._c;return e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper mb20"},[e("div",{staticClass:"header-title"},[t._v("商品销售总额:"+t._s(t.allpay))]),e("div",{staticClass:"header-title"},[t._v("销售数量:"+t._s(t.allsum))]),e("div",{staticClass:"header-title"},[t._v("商品折扣总额:"+t._s(t.allyouhui))]),e("div",{staticClass:"header-title"},[t._v("商品折扣后总额:"+t._s(t.allshiji))])]),e("div",{staticClass:"acea-row row-between-wrapper mb20"},[e("div",{staticClass:"acea-row"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("商品分类:")]),e("el-cascader",{staticClass:"mr20 width20",attrs:{placeholder:"请选择商品分类",size:"mini",options:t.cateData,props:t.props,filterable:"",clearable:""},on:{change:t.getList},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("出品仓库:")]),e("Select",{staticClass:"mr20 width20",attrs:{clearable:"",placeholder:"全部"},on:{"on-change":t.changeMenu},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[e("Option",{attrs:{value:"0"}},[t._v("普通订单")]),e("Option",{attrs:{value:"1"}},[t._v("秒杀订单")]),e("Option",{attrs:{value:"2"}},[t._v("砍价订单")]),e("Option",{attrs:{value:"3"}},[t._v("拼团订单")]),e("Option",{attrs:{value:"4"}},[t._v("积分订单")]),e("Option",{attrs:{value:"5"}},[t._v("会员礼包")]),e("Option",{attrs:{value:"6"}},[t._v("预售订单")]),e("Option",{attrs:{value:"7"}},[t._v("新人订单")]),e("Option",{attrs:{value:"8"}},[t._v("抽奖订单")]),e("Option",{attrs:{value:"9"}},[t._v("拼单订单")]),e("Option",{attrs:{value:"10"}},[t._v("桌码订单")])],1)],1),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("时间筛选:")]),e("DatePicker",{staticClass:"mr20 width20",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),e("div",{staticClass:"acea-row row-middle"},[e("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.getList}},[t._v("查询")])],1)])]),e("Table",{ref:"selection",attrs:{columns:t.columns4,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var n=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image,expression:"row.image"}],staticClass:"img-add"})])]}},{key:"profit",fn:function(n){var a=n.row;return[e("span",{domProps:{textContent:t._s(t.$tools.accMul(a.profit,100).toFixed(2)+"%")}})]}},{key:"repeats",fn:function(n){var a=n.row;return[e("span",{domProps:{textContent:t._s(t.$tools.accMul(a.repeats,100)+"%")}})]}},{key:"changes",fn:function(n){var a=n.row;return[e("span",[t._v(t._s(t.$tools.accMul(a.changes,100)+"%"))])]}}])}),t.isProductBox?e("div",[e("div",{staticClass:"bg",on:{click:function(e){t.isProductBox=!1}}}),e("goodsDetail",{attrs:{goodsId:t.goodsId}})],1):t._e()],1)}),[],!1,null,"144eceae",null).exports}},d=Object(h.a)(f,(function(){var t=this._self._c;return t("div",[t("productcount")],1)}),[],!1,null,"99b91df6",null);e.default=d.exports},efca:function(t,e,n){},f2e1:function(t,e,n){"use strict";n("b09a")}}]);