1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-344e73f4"],{"0b65":function(t,e,a){"use strict";e.a={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,a=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,a))),[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]}}]}},"2a6b":function(t,e,a){"use strict";var n=a("7d40");a.n(n).a},"61f7":function(t,e,a){"use strict";function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?n(a,!0).forEach((function(e){i(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):n(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in a)if(new RegExp("(".concat(n,")")).test(e)){var r=a[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?r:o(r))}return e}function o(t){return("00"+t).substr(t.length)}a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return d}));var l={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},c=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function u(t){return r({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function d(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}c(u,"请输入%s"),c(d,"%s格式不正确");var m=Object.keys(l).reduce((function(t,e){return t[e]=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s="range"===e?{min:t[0],max:t[1]}:i({},e,t);return r({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},s,{},n)},c(t[e],l[e]),t}),{})},"7d40":function(t,e,a){},a584:function(t,e,a){"use strict";var n;function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var i=(r(n={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),r(n,"methods",{}),r(n,"created",(function(){})),n),s=(a("bcf5"),a("2877")),o=Object(s.a)(i,(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,n){return a("Col",{key:n,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:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[a("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}},[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,"79aa0883",null);e.a=o.exports},bcf5:function(t,e,a){"use strict";var n=a("f052");a.n(n).a},de26:function(t,e,a){"use strict";a.r(e);var n=a("a34a"),r=a.n(n),i=a("a584"),s=a("2f62"),o=a("61f7"),l=a("b7be"),c=a("0b65");function u(t,e,a,n,r,i,s){try{var o=t[i](s),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(n,r)}function d(t){return function(){var e=this,a=arguments;return new Promise((function(n,r){var i=t.apply(e,a);function s(t){u(i,n,r,s,o,"next",t)}function o(t){u(i,n,r,s,o,"throw",t)}s(void 0)}))}}function m(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function f(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var v={name:"combinalist",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(o.a)(e,"yyyy-MM-dd hh:mm")}}},components:{cardsData:i.a},data:function(){return{cardLists:[],modals:!1,options:c.a,grid:{xl:7,lg:10,md:12,sm:12,xs:24},loading:!1,formValidate:{status:"",data:"",page:1,limit:15},columns1:[{title:"头像",slot:"avatar",minWidth:150},{title:"开团团长",slot:"nickname",minWidth:170},{title:"开团时间",slot:"add_time",minWidth:150},{title:"拼团商品",slot:"title",minWidth:400},{title:"几人团",key:"people",minWidth:120},{title:"几人参加",key:"count_people",minWidth:100},{title:"结束时间",slot:"stop_time",minWidth:150},{title:"状态",slot:"status",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:170}],tableList:[],total:0,timeVal:[],loading2:!1,tabList3:[],columns2:[{title:"ID",key:"id",width:80},{title:"用户名称",slot:"nickname",minWidth:150},{title:"用户头像",slot:"avatar"},{title:"订单编号",key:"order_id"},{title:"金额",key:"price"},{title:"订单状态",slot:"action"}],rows:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?m(a,!0).forEach((function(e){f(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):m(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(s.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList(),this.getStatistics()},methods:{getStatistics:function(){var t=this;Object(l.Bb)().then(function(){var e=d(r.a.mark((function e(a){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.cardLists=n.res;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},Info:function(t){var e=this;this.modals=!0,this.rows=t,Object(l.kb)(t.id).then(function(){var t=d(r.a.mark((function t(a){var n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=a.data,e.tabList3=n.list,e.loading=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},onchangeTime:function(t){this.timeVal=t,""===this.timeVal[0]?this.formValidate.data="":this.formValidate.data=this.timeVal.join("-"),this.formValidate.page=1},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList()},getList:function(){var t=this;this.loading=!0,this.formValidate.status=this.formValidate.status||"",Object(l.s)(this.formValidate).then(function(){var e=d(r.a.mark((function e(a){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.tableList=n.list,t.total=a.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()}}},p=(a("2a6b"),a("2877")),g=Object(p.a)(v,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"article-manager"},[a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[a("div",{staticClass:"new_card_pd"},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,inline:"","label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"时间选择:"}},[a("DatePicker",{staticClass:"input-add",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),a("FormItem",{attrs:{label:"拼团状态:"}},[a("Select",{staticClass:"input-add mr14",attrs:{placeholder:"请选择",clearable:""},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[a("Option",{attrs:{value:1}},[t._v("进行中")]),a("Option",{attrs:{value:2}},[t._v("已完成")]),a("Option",{attrs:{value:3}},[t._v("未完成")])],1),a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.userSearchs()}}},[t._v("查询")])],1),a("FormItem")],1)],1)]),t.cardLists.length>=0?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{staticClass:"ive-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Table",{attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatar",fn:function(t){var e=t.row;return[a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])])]}},{key:"nickname",fn:function(e){var n=e.row;return[a("span",[t._v(" "+t._s(n.nickname+" / "+n.uid))]),null!=n.delete_time?a("span",{staticStyle:{color:"#ed4014"}},[t._v(" (已注销)")]):t._e()]}},{key:"title",fn:function(e){var n=e.row;return[a("Tooltip",{attrs:{"max-width":"200",placement:"bottom"}},[a("span",{staticClass:"line2"},[t._v(t._s(n.title+" / "+n.cid))]),a("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(n.title+" / "+n.cid))])])]}},{key:"add_time",fn:function(e){var n=e.row;return[a("span",[t._v(" "+t._s(t._f("formatDate")(n.add_time)))])]}},{key:"stop_time",fn:function(e){var n=e.row;return[a("span",[t._v(" "+t._s(t._f("formatDate")(n.stop_time)))])]}},{key:"status",fn:function(e){var n=e.row;return[a("Tag",{directives:[{name:"show",rawName:"v-show",value:1===n.status,expression:"row.status === 1"}],attrs:{color:"green",size:"medium"}},[t._v("进行中")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:2===n.status,expression:"row.status === 2"}],attrs:{color:"cyan",size:"medium"}},[t._v("已完成")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:3===n.status,expression:"row.status === 3"}],attrs:{color:"volcano",size:"medium"}},[t._v("未完成")])]}},{key:"action",fn:function(e){var n=e.row;return[a("a",{on:{click:function(e){return t.Info(n)}}},[t._v("查看详情")])]}}])}),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),a("Modal",{staticClass:"tableBox",attrs:{scrollable:"","footer-hide":"",closable:"",title:"查看详情","mask-closable":!1,width:"750"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("Table",{ref:"selection",attrs:{columns:t.columns2,data:t.tabList3,loading:t.loading2,"no-data-text":"暂无数据","highlight-row":"","max-height":"600",size:"small","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"nickname",fn:function(e){var n=e.row;return e.index,[a("span",[t._v(" "+t._s(n.nickname+" / "+n.uid))]),null!=n.delete_time?a("span",{staticStyle:{color:"#ed4014"}},[t._v(" (已注销)")]):t._e()]}},{key:"avatar",fn:function(t){var e=t.row;return t.index,[a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])])]}},{key:"action",fn:function(e){var n=e.row;return e.index,[a("Tag",{directives:[{name:"show",rawName:"v-show",value:0!=n.is_refund,expression:"row.is_refund != 0"}],attrs:{color:"volcano"}},[t._v("已退款")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:0===n.is_refund,expression:"row.is_refund === 0"}],attrs:{color:"cyan"}},[t._v("未退款")])]}}])})],1)],1)}),[],!1,null,"84b74120",null);e.default=g.exports},f052:function(t,e,a){}}]);
|