1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3385cce3"],{"5dd9":function(t,e,a){"use strict";var i=a("fd59");a.n(i).a},6557:function(t,e,a){"use strict";a.r(e);var i=a("a584"),n=a("b7be"),s=a("d708"),r=a("2f62");function o(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 l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var c={name:"index",components:{cardsData:i.a},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},roterPre:s.a.roterPre,id:0,tbody:[],total:0,tabs:[{type:"",label:"活动参与人"},{type:"",label:"活动订单"}],currentTab:0,loading:!1,thead:[{title:"用户姓名",key:"real_name"},{title:"购买件数",key:"goods_num"},{title:"支付订单数",key:"order_num"},{title:"支付金额",key:"total_price"},{title:"最近参与时间",key:"add_time"}],thead2:[{title:"订单号",key:"order_id"},{title:"用户",key:"real_name"},{title:"订单状态",key:"status"},{title:"订单支付金额",key:"pay_price"},{title:"订单商品数",key:"total_num"},{title:"下单时间",key:"add_time"},{title:"支付时间",key:"pay_time"}],cardLists:[{col:6,count:0,name:"下单人数(人)",className:"iconxiadanrenshu",type:!0},{col:6,count:0,name:"支付订单额(元)",className:"iconzhifudingdan",type:!0},{col:6,count:0,name:"支付人数(人)",className:"iconzhifurenshu",type:!0},{col:6,count:0,name:"剩余库存/总库存",className:"iconshengyukucun",type:!0}],pagination:{page:1,limit:15,real_name:"",status:""},type:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(a,!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.id=this.$route.params.id,this.getStatistics(this.id),this.getList(this.id)},methods:{getStatistics:function(t){var e=this;Object(n.U)(t).then((function(t){var a=["order_count","all_price","pay_count","pay_rate"];e.cardLists.map((function(e,i){e.count=t.data[a[i]]}))}))},getList:function(t){var e=this;this.loading=!0,0==this.type?Object(n.W)(this.id,this.pagination).then((function(t){e.loading=!1;var a=t.data,i=a.count,n=a.list;e.total=i,e.tbody=n})):Object(n.V)(this.id,this.pagination).then((function(t){e.loading=!1;var a=t.data,i=a.count,n=a.list;e.total=i,e.tbody=n}))},onClickTab:function(){this.type=this.currentTab,this.getList(this.id)},searchList:function(){this.pagination.page=1,this.getList(this.id)},pageChange:function(t){this.pagination.page=t,this.getList(this.id)}}},u=a("2877"),d=Object(u.a)(c,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-submit"},[a("div",{staticClass:"i-layout-page-header"},[a("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/store_seckill/index"}}},[a("div",{staticClass:"font-sm after-line"},[a("span",{staticClass:"iconfont iconfanhui"}),a("span",{staticClass:"pl10"},[t._v("返回")])])]),a("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),t.cardLists.length>=0?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.tabs,(function(t,e){return a("TabPane",{key:e,attrs:{label:t.label,name:t.type}})})),1),a("Form",{ref:"pagination",attrs:{model:t.pagination,"label-width":t.labelWidth,inline:"","label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[1==t.type?a("FormItem",{attrs:{label:"订单状态:","label-for":"status"}},[a("Select",{staticClass:"input-add",attrs:{placeholder:"请选择订单状态"},model:{value:t.pagination.status,callback:function(e){t.$set(t.pagination,"status",e)},expression:"pagination.status"}},[a("Option",{attrs:{value:""}},[t._v("全部")]),a("Option",{attrs:{value:"0"}},[t._v("未支付")]),a("Option",{attrs:{value:"1"}},[t._v("待发货")]),a("Option",{attrs:{value:"2"}},[t._v("待收货")]),a("Option",{attrs:{value:"3"}},[t._v("待评价")]),a("Option",{attrs:{value:"4"}},[t._v("交易完成")])],1)],1):t._e(),a("FormItem",{attrs:{label:"搜索:","label-for":"title"}},[a("Input",{staticClass:"input-add",attrs:{search:"","enter-button":"",placeholder:"请输入用户姓名/手机号/UID"},on:{"on-search":t.searchList},model:{value:t.pagination.real_name,callback:function(e){t.$set(t.pagination,"real_name",e)},expression:"pagination.real_name"}})],1)],1),a("Table",{ref:"table",attrs:{columns:t.type?t.thead2:t.thead,data:t.tbody,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.pagination.page,"show-elevator":"","show-total":"","page-size":t.pagination.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"05d81273",null);e.default=d.exports},a584:function(t,e,a){"use strict";var i;function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=(n(i={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),n(i,"methods",{}),n(i,"created",(function(){})),i),r=(a("5dd9"),a("2877")),o=Object(r.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(e,i){return a("Col",{key:i,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:e.col}}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:i%5==0,two:i%5==1,three:i%5==2,four:i%5==3,five:i%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:i%5==0,two1:i%5==1,three1:i%5==2,four1:i%5==3,five1:i%5==4}},[e.type?a("span",{staticClass:"iconfont",class:e.className}):a("Icon",{attrs:{type:e.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=o.exports},fd59:function(t,e,a){}}]);
|