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
7.8 KiB
1 lines
7.8 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-35ec2f11"],{"1cde":function(t,e,a){},"607d":function(t,e,a){"use strict";a("1cde")},6557:function(t,e,a){"use strict";a.r(e);var i=a("a584"),n=a("b7be"),r=a("d708"),o=a("2f62");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 l(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 c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(Object(a),!0).forEach((function(e){u(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function u(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var d={name:"index",components:{cardsData:i.a},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},roterPre:r.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:c(c({},Object(o.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.X)(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.Z)(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.Y)(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)}}},p=a("2877"),b=Object(p.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-submit"},[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/marketing/store_seckill/index")}}},[e("div",{staticClass:"font-sm after-line"},[e("span",{staticClass:"iconfont iconfanhui"}),e("span",{staticClass:"pl10"},[t._v("返回")])])]),e("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),t.cardLists.length>=0?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.tabs,(function(t,a){return e("TabPane",{key:a,attrs:{label:t.label,name:t.type}})})),1),e("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?e("FormItem",{attrs:{label:"订单状态:","label-for":"status"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择订单状态"},model:{value:t.pagination.status,callback:function(e){t.$set(t.pagination,"status",e)},expression:"pagination.status"}},[e("Option",{attrs:{value:""}},[t._v("全部")]),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("交易完成")])],1)],1):t._e(),e("FormItem",{attrs:{label:"搜索:","label-for":"title"}},[e("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),e("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":"暂无筛选结果"}}),e("div",{staticClass:"acea-row row-right page"},[e("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=b.exports},a584:function(t,e,a){"use strict";function i(t){return(i="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 n(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var n=a.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var r=n(n(n({name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),"methods",{}),"created",(function(){})),o=(a("607d"),a("2877")),s=Object(o.a)(r,(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(a,i){return e("Col",{key:i,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:a.col}}},[e("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[e("div",{staticClass:"card_box"},[e("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}},[e("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}},[a.type?e("span",{staticClass:"iconfont",class:a.className}):e("Icon",{attrs:{type:a.className}})],1)]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(a.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(a.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=s.exports}}]); |