徐总多门店
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.
 
 
 
 
 
 
jiuhaoshenghuo/public/view_store/js/chunk-0289c8ef.91ecc522.js

1 lines
10 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0289c8ef"],{"365c":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"d",(function(){return s})),a.d(e,"b",(function(){return o}));var i=a("b6bd");function n(t){return Object(i["a"])({url:"home/header",method:"get",params:t})}function r(t){return Object(i["a"])({url:"home/orderChart",method:"get",params:t})}function s(t){return Object(i["a"])({url:"home/staff",method:"get",params:t})}function o(t){return Object(i["a"])({url:"home/operate",method:"get",params:t})}},5370:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"resize",rawName:"v-resize",value:t.handleResize,expression:"handleResize"}]},[a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition}},[a("FormItem",{attrs:{label:"时间筛选:"}},[a("Select",{staticClass:"mr15",attrs:{placeholder:"请选择时间类型",clearable:""},on:{"on-change":t.searchs},model:{value:t.formValidate.time_key,callback:function(e){t.$set(t.formValidate,"time_key",e)},expression:"formValidate.time_key"}},[a("Option",{attrs:{value:"add_time"}},[t._v("交易时间")]),a("Option",{attrs:{value:"delivery_time"}},[t._v("发货时间")]),a("Option",{attrs:{value:"write_time"}},[t._v("核销时间")])],1),a("DatePicker",{staticClass:"mr15",staticStyle:{width:"250px"},attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}}),a("Select",{staticClass:"mr15",attrs:{placeholder:"请选择类型",clearable:""},on:{"on-change":t.searchs},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[a("Option",{attrs:{value:"0"}},[t._v("全部订单")]),a("Option",{attrs:{value:"7"}},[t._v("充值订单")]),a("Option",{attrs:{value:"8"}},[t._v("付费订单")]),a("Option",{attrs:{value:"9"}},[t._v("收银订单")]),a("Option",{attrs:{value:"10"}},[t._v("核销订单")]),a("Option",{attrs:{value:"11"}},[t._v("配送订单")])],1),a("Select",{attrs:{placeholder:"请选择店员",clearable:""},on:{"on-change":t.searchs},model:{value:t.formValidate.staff_id,callback:function(e){t.$set(t.formValidate,"staff_id",e)},expression:"formValidate.staff_id"}},[a("Option",{attrs:{value:"0"}},[t._v("全部店员")]),t._l(t.staff,(function(e,i){return a("Option",{attrs:{value:e.value}},[t._v(t._s(e.label))])}))],2)],1)],1)],1),a("Row",{staticClass:"ivu-mt Box",attrs:{gutter:24}},[a("Col",{staticClass:"cardpad",attrs:{xl:16,lg:12,md:24,sm:24,xs:24}},[t.infoList?a("echarts-from",{ref:"userChart",attrs:{series:t.series,echartsTitle:t.inlie,infoList:t.infoList,yAxisData:t.yAxisData}}):t._e()],1),a("Col",{staticClass:"cardpad",attrs:{xl:8,lg:12,md:24,sm:24,xs:24}},[a("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoLists,echartsTitle:t.circle}})],1)],1),a("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"fonts"},[t._v("交易数据")]),a("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:"user_nickname",fn:function(e){var i=e.row;e.index;return[a("span",[t._v(t._s(i.uid?i.user_nickname:"游客"))])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)],1)},n=[],r=a("a34a"),s=a.n(r),o=a("2f62"),c=a("8745"),l=a("b4ea"),f=(a("365c"),a("9901")),d=a("0b65"),u=a("61f7");function h(t,e,a,i,n,r,s){try{var o=t[r](s),c=o.value}catch(l){return void a(l)}o.done?e(c):Promise.resolve(c).then(i,n)}function m(t){return function(){var e=this,a=arguments;return new Promise((function(i,n){var r=t.apply(e,a);function s(t){h(r,i,n,s,o,"next",t)}function o(t){h(r,i,n,s,o,"throw",t)}s(void 0)}))}}function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function b(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(a,!0).forEach((function(e){v(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function v(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var y={name:"achievement",components:{echartsFrom:f["a"]},data:function(){return{total:0,loading:!1,optionData:{},formValidate:{type:"0",staff_id:"0",data:"yesterday",time_key:"",page:1,limit:20},bing_data:[],bing_xdata:[],staff:[],timeVal:[],options:d["a"],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"昨天",val:"yesterday"},{text:"今天",val:"today"},{text:"最近7天",val:"sevenday"},{text:"近30天",val:"thirtyday"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},extractStatistics:{price:"11",brokerage_count:"23",priced:"34"},series:[],yAxisData:[],infoList:{},infoLists:{},circle:"circle",inlie:"inlies",columns4:[{title:"订单号",key:"link_id",width:200},{title:"用户信息",width:120,slot:"user_nickname"},{title:"实际支付",key:"pay_price",minWidth:80},{title:"订单类型",key:"type_name",minWidth:100},{title:"支付方式",key:"pay_type_name",minWidth:100},{title:"店员名称",key:"staff_name",minWidth:100},{title:"下单时间",key:"add_time",minWidth:120}],tabList:[]}},computed:b({},Object(o["e"])("store/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),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(u["a"])(e,"yyyy/MM/dd")+"-"+Object(u["a"])(t,"yyyy/MM/dd")},mounted:function(){this.staffApi(),this.getList(),this.getStatistics()},methods:{staffApi:function(){var t=this;Object(c["k"])().then((function(e){t.staff=e.data}))},getList:function(){var t=this;this.loading=!0,Object(l["n"])(this.formValidate).then((function(e){t.loading=!1,t.tabList=e.data.list,t.total=e.data.count}))},searchs:function(){this.getList(),this.getStatistics()},getStatistics:function(){var t=this;this.formValidate.staff_id||(this.formValidate.staff_id=0),this.formValidate.type||(this.formValidate.type=0),Object(l["o"])(this.formValidate).then(function(){var e=m(s.a.mark((function e(a){return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:0==t.formValidate.staff_id?(t.infoList=a.data||{},t.infoLists=a.data||{},0==t.formValidate.staff_id?t.series=[{data:a.data.series,name:"金额(元)",type:"bar",tooltip:!0,smooth:!0,symbol:"none",barWidth:20,areaStyle:{normal:{opacity:.2}}}]:t.series=[{data:a.data.series,name:"金额(元)",type:"line",tooltip:!0,smooth:!0,symbol:"none",areaStyle:{normal:{opacity:.2}}}]):(t.infoLists=a.data.bing||{},t.infoList=a.data.order||{},t.series=a.data.order.series||[],t.yAxisData=[{type:"value",name:"",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},{type:"value",name:"",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}}]);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList(),this.getStatistics()},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",""==t[0]&&(this.formValidate.data="yesterday"),this.formValidate.page=1,this.getList(),this.getStatistics()},handleResize:function(){this.infoList&&0!==this.series.length&&this.$refs.userChart.handleResize(),this.infoList&&this.$refs.visitChart.handleResize()},pageChange:function(t){this.formValidate.page=t,this.getList()},beforeDestroy:function(){this.visitChart&&(this.visitChart.dispose(),this.visitChart=null)}}},g=y,_=(a("887e"),a("2877")),O=Object(_["a"])(g,i,n,!1,null,"0dca925c",null);e["default"]=O.exports},8745:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"e",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"f",(function(){return c})),a.d(e,"i",(function(){return l})),a.d(e,"j",(function(){return f})),a.d(e,"k",(function(){return d})),a.d(e,"g",(function(){return u})),a.d(e,"h",(function(){return h})),a.d(e,"a",(function(){return m}));var i=a("b6bd");function n(){return Object(i["a"])({url:"finance/info",method:"get"})}function r(t){return Object(i["a"])({url:"finance/info",method:"post",data:t})}function s(t){return Object(i["a"])({url:"finance/storeExtract/list",method:"get",params:t})}function o(t){return Object(i["a"])({url:"finance/storeExtract/cash",method:"post",data:t})}function c(t,e){return Object(i["a"])({url:"finance/storeExtract/mark/".concat(t),method:"post",data:e})}function l(t){return Object(i["a"])({url:"finance/store_finance_flow/list",method:"get",params:t})}function f(t,e){return Object(i["a"])({url:"finance/store_finance_flow/mark/".concat(t),method:"post",data:e})}function d(){return Object(i["a"])({url:"finance/store_finance_flow/staff",method:"get"})}function u(t){return Object(i["a"])({url:"finance/store_finance_flow/fund_record",method:"get",params:t})}function h(t){return Object(i["a"])({url:"finance/store_finance_flow/fund_record_info",method:"get",params:t})}function m(t){return Object(i["a"])({url:"/export/financeRecord",method:"get",params:t})}},"887e":function(t,e,a){"use strict";var i=a("a0f3"),n=a.n(i);n.a},a0f3:function(t,e,a){}}]);