chunk-d05ce344.cb215b54.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d05ce344"],{"07ae":function(t,e,a){a("6944")},"0db9":function(t,e,a){},"2c3e":function(t,e,a){var i=a("83ab"),s=a("9f7f").MISSED_STICKY,n=a("c6b6"),r=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;i&&s&&r(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===n(this))return!!o(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,a){var i=a("83ab"),s=a("cfe9"),n=a("e330"),r=a("94ca"),o=a("7156"),l=a("9112"),c=a("7c73"),d=a("241c").f,u=a("3a9b"),f=a("44e7"),m=a("577e"),h=a("90d8"),p=a("9f7f"),g=a("aeb0"),b=a("cb2d"),v=a("d039"),w=a("1a2d"),_=a("69f3").enforce,x=a("2626"),y=a("b622"),k=a("fce3"),S=a("107c"),O=y("match"),z=s.RegExp,V=z.prototype,C=s.SyntaxError,j=n(V.exec),L=n("".charAt),E=n("".replace),$=n("".indexOf),R=n("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,I=(a=new z(M)!==M,p.MISSED_STICKY),T=p.UNSUPPORTED_Y;y=i&&(!a||I||k||S||v((function(){return D[O]=!1,z(M)!==M||z(D)===D||"/a/i"!==String(z(M,"i"))})));if(r("RegExp",y)){for(var A=function(t,e){var a,i,s=u(V,this),n=f(t),r=void 0===e,d=[],p=t;if(!s&&n&&r&&t.constructor===A)return t;if((n||u(V,t))&&(t=t.source,r)&&(e=h(p)),t=void 0===t?"":m(t),e=void 0===e?"":m(e),p=t,n=e=k&&"dotAll"in M&&(a=!!e&&-1<$(e,"s"))?E(e,/s/g,""):e,I&&"sticky"in M&&(i=!!e&&-1<$(e,"y"))&&T&&(e=E(e,/y/g,"")),S&&(t=(r=(t=>{for(var e,a=t.length,i=0,s="",n=[],r=c(null),o=!1,l=!1,d=0,u="";i<=a;i++){if("\\"===(e=L(t,i)))e+=L(t,++i);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:if(s+=e,"?:"===R(t,i+1,i+3))continue;j(N,R(t,i+1))&&(i+=2,l=!0),d++;continue;case">"===e&&l:if(""===u||w(r,u))throw new C("Invalid capture group name");r[u]=!0,l=!(n[n.length]=[u,d]),u="";continue}l?u+=e:s+=e}return[s,n]})(t))[0],d=r[1]),r=o(z(t,e),s?this:V,A),(a||i||d.length)&&(e=_(r),a&&(e.dotAll=!0,e.raw=A((t=>{for(var e,a=t.length,i=0,s="",n=!1;i<=a;i++)"\\"===(e=L(t,i))?s+=e+L(t,++i):n||"."!==e?("["===e?n=!0:"]"===e&&(n=!1),s+=e):s+="[\\s\\S]";return s})(t),n)),i&&(e.sticky=!0),d.length)&&(e.groups=d),t!==p)try{l(r,"source",""===p?"(?:)":p)}catch(t){}return r},P=d(z),B=0;P.length>B;)g(A,z,P[B++]);(V.constructor=A).prototype=V,b(s,"RegExp",A,{constructor:!0})}x("RegExp")},"61f7":function(t,e,a){a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return c}));var i=a("ade3"),s=a("5530");function n(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,i,s={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in s)new RegExp("(".concat(a,")")).test(e)&&(i=s[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?i:("00"+i).substr(i.length)));return e}a("99af"),a("13d5"),a("e9f5"),a("9485"),a("b64b"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("00b4"),a("25f0"),a("5319"),a("498a");var r={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}function l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)({required:!0,message:t,type:"string"},e)}function c(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}o(l,"请输入%s"),o(c,"%s格式不正确");var d=Object.keys(r).reduce((function(t,e){return t[e]=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r="range"===e?{min:t[0],max:t[1]}:Object(i.a)({},e,t);return Object(s.a)(Object(s.a)({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},r),n)},o(t[e],r[e]),t}),{})},6944:function(t,e,a){},"85d4":function(t,e,a){a("0db9")},a584:function(t,e,a){a("b0c0");var i={name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{},created:function(){switch(this.cardLists.length){case 1:this.colsize.xl=24,this.colsize.lg=24,this.colsize.md=24;break;case 2:this.colsize.xl=12,this.colsize.lg=12,this.colsize.md=12;break;case 3:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=8;break;case 4:this.colsize.xl=6,this.colsize.lg=6,this.colsize.md=12;break;case 5:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=12;break;default:this.colsize.xl=4,this.colsize.lg=8,this.colsize.md=12}4==this.cardLists.length?this.colsize.lg=6:4==this.cardLists.length&&(this.colsize.lg=8)}};a("85d4"),a=a("2877"),a=Object(a.a)(i,(function(){var t=this,e=t._self._c;return e("div",[e("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:16}},t._l(t.cardLists,(function(a,i){return e("el-col",{key:i,staticClass:"ivu-mb",attrs:{xl:a.col||t.colsize.xl,lg:t.colsize.lg,md:t.colsize.md,sm:24,xs:24}},[e("el-card",{staticClass:"card_cent",attrs:{shadow:"never"}},[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}},[e("span",{staticClass:"iconfont",class:a.className})])]),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,"23d6d6ee",null);e.a=a.exports},c607:function(t,e,a){var i=a("83ab"),s=a("fce3"),n=a("c6b6"),r=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;i&&s&&r(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===n(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},de26:function(t,e,a){a.r(e);var i=a("c14f"),s=a("1da1"),n=a("5530"),r=(a("a15b"),a("a584")),o=a("2f62"),l=a("61f7"),c=a("b7be");r={name:"combinalist",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(l.a)(t,"yyyy-MM-dd hh:mm")}},components:{cardsData:r.a},data:function(){return{cardLists:[],modals:!1,pickerOptions:this.$timeOptions,loading:!1,formValidate:{status:"",data:"",page:1,limit:15},tableList:[],total:0,timeVal:[],loading2:!1,tabList3:[],rows:{}}},computed:Object(n.a)(Object(n.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList(),this.getStatistics()},methods:{getStatistics:function(){var t=this;Object(c.wb)().then((()=>{var e=Object(s.a)(Object(i.a)().m((function e(a){var s;return Object(i.a)().w((function(e){for(;;)switch(e.n){case 0:s=a.data,t.cardLists=s.res;case 1:return e.a(2)}}),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(c.cb)(t.id).then((()=>{var t=Object(s.a)(Object(i.a)().m((function t(a){var s;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:s=a.data,e.tabList3=s.list,e.loading=!1;case 1:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}})()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},joinCombination:function(t){var e=this;this.$confirm("确认成团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c.m)(t.id).then((function(t){e.$message.success(t.msg),e.getList()})).catch((function(t){e.$message.error(t.msg)}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},onchangeTime:function(t){this.timeVal=t||[],""===this.timeVal[0]?this.formValidate.data="":this.formValidate.data=this.timeVal?this.timeVal.join("-"):"",this.formValidate.page=1,this.getList()},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(c.n)(this.formValidate).then((()=>{var e=Object(s.a)(Object(i.a)().m((function e(a){var s;return Object(i.a)().w((function(e){for(;;)switch(e.n){case 0:s=a.data,t.tableList=s.list,t.total=a.data.count,t.loading=!1;case 1:return e.a(2)}}),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()}}},a("07ae"),n=a("2877"),o=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("el-card",{staticClass:"ivu-mt ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"时间选择:"}},[e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),e("el-form-item",{attrs:{label:"拼团状态:"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[e("el-option",{attrs:{value:1,label:"进行中"}}),e("el-option",{attrs:{value:2,label:"已完成"}}),e("el-option",{attrs:{value:3,label:"未完成"}})],1)],1)],1)],1)]),0<=t.cardLists.length?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),e("el-table-column",{attrs:{label:"开团团长","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.nickname+" / "+a.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"开团时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(t._f("formatDate")(a.row.add_time)))])]}}])}),e("el-table-column",{attrs:{label:"拼团商品","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.title+" / "+a.row.cid))])]}}])}),e("el-table-column",{attrs:{label:"几人团","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.people))])]}}])}),e("el-table-column",{attrs:{label:"几人参加","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.count_people))])]}}])}),e("el-table-column",{attrs:{label:"结束时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(t._f("formatDate")(a.row.stop_time)))])]}}])}),e("el-table-column",{attrs:{label:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tag",{directives:[{name:"show",rawName:"v-show",value:1===a.row.status,expression:"scope.row.status === 1"}],attrs:{type:"info"}},[t._v("进行中")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:2===a.row.status,expression:"scope.row.status === 2"}]},[t._v("已完成")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:3===a.row.status,expression:"scope.row.status === 3"}],attrs:{type:"warning"}},[t._v("未完成")])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.Info(a.row)}}},[t._v("查看详情")]),1===a.row.status?e("el-divider",{attrs:{direction:"vertical"}}):t._e(),1===a.row.status?e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.joinCombination(a.row)}}},[t._v("立即成团")]):t._e()]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1),e("el-dialog",{staticClass:"tableBox",attrs:{visible:t.modals,title:"查看详情","close-on-click-modal":!1,width:"720px"},on:{"update:visible":function(e){t.modals=e}}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"selection",attrs:{data:t.tabList3,"empty-text":"暂无数据","highlight-current-row":"","max-height":"600",size:"small"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.id))])]}}])}),e("el-table-column",{attrs:{label:"用户名称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.nickname+" / "+a.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"用户头像","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),e("el-table-column",{attrs:{label:"订单编号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.order_id))])]}}])}),e("el-table-column",{attrs:{label:"金额","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.total_price))])]}}])}),e("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tag",{directives:[{name:"show",rawName:"v-show",value:0!=a.row.is_refund,expression:"scope.row.is_refund != 0"}]},[t._v("已退款")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:0===a.row.is_refund,expression:"scope.row.is_refund === 0"}],attrs:{type:"danger"}},[t._v("未退款")])]}}])})],1)],1)],1)}),[],!1,null,"4ec974c0",null);e.default=o.exports}}]);