chunk-d312a332.bba25f91.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d312a332"],{"2c3e":function(t,e,a){"use strict";var s=a("83ab"),i=a("9f7f").MISSED_STICKY,n=a("c6b6"),r=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;s&&i&&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")}}})},"31b4":function(t,e,a){"use strict";a("a630"),a("3ca3");var s=a("5530"),i=(a("d3b7"),a("159b"),a("30ba")),n=(i=a.n(i),a("6b6c")),r=a("2f62");i={name:"edit",components:{formCreate:i.a.$form()},computed:Object(s.a)({},Object(r.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=":"}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},formSubmit:function(){this.fapi.submit()},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(n.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$message.error(t.msg)})))},cancel:function(){this.type=0}}},a("fe99"),s=a("2877"),r=Object(s.a)(i,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"58fdaf03",null);e.a=r.exports},"4d63":function(t,e,a){"use strict";var s=a("83ab"),i=a("da84"),n=a("e330"),r=a("94ca"),o=a("7156"),l=a("9112"),c=a("241c").f,u=a("3a9b"),d=a("44e7"),f=a("577e"),m=a("90d8"),p=a("9f7f"),h=a("aeb0"),g=a("cb2d"),b=a("d039"),v=a("1a2d"),y=a("69f3").enforce,_=a("2626"),x=a("b622"),w=a("fce3"),k=a("107c"),O=x("match"),C=i.RegExp,j=C.prototype,$=i.SyntaxError,z=n(j.exec),L=n("".charAt),S=n("".replace),V=n("".indexOf),D=n("".slice),E=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,T=(a=new C(M)!==M,p.MISSED_STICKY),I=p.UNSUPPORTED_Y;x=s&&(!a||T||w||k||b((function(){return R[O]=!1,C(M)!==M||C(R)===R||"/a/i"!==String(C(M,"i"))})));if(r("RegExp",x)){for(var P=function(t,e){var a,s,i=u(j,this),n=d(t),r=void 0===e,c=[],p=t;if(!i&&n&&r&&t.constructor===P)return t;if((n||u(j,t))&&(t=t.source,r)&&(e=m(p)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),p=t,n=e=w&&"dotAll"in M&&(a=!!e&&-1<V(e,"s"))?S(e,/s/g,""):e,T&&"sticky"in M&&(s=!!e&&-1<V(e,"y"))&&I&&(e=S(e,/y/g,"")),k&&(t=(r=function(t){for(var e,a=t.length,s=0,i="",n=[],r={},o=!1,l=!1,c=0,u="";s<=a;s++){if("\\"===(e=L(t,s)))e+=L(t,++s);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:z(E,D(t,s+1))&&(s+=2,l=!0),i+=e,c++;continue;case">"===e&&l:if(""===u||v(r,u))throw new $("Invalid capture group name");r[u]=!0,l=!(n[n.length]=[u,c]),u="";continue}l?u+=e:i+=e}return[i,n]}(t))[0],c=r[1]),r=o(C(t,e),i?this:j,P),(a||s||c.length)&&(e=y(r),a&&(e.dotAll=!0,e.raw=P(function(t){for(var e,a=t.length,s=0,i="",n=!1;s<=a;s++)"\\"===(e=L(t,s))?i+=e+L(t,++s):n||"."!==e?("["===e?n=!0:"]"===e&&(n=!1),i+=e):i+="[\\s\\S]";return i}(t),n)),s&&(e.sticky=!0),c.length)&&(e.groups=c),t!==p)try{l(r,"source",""===p?"(?:)":p)}catch(t){}return r},F=c(C),A=0;F.length>A;)h(P,C,F[A++]);(j.constructor=P).prototype=j,g(i,"RegExp",P,{constructor:!0})}_("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return c}));var s=a("ade3"),i=a("5530");function n(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,s,i={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in i)new RegExp("(".concat(a,")")).test(e)&&(s=i[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?s:("00"+s).substr(s.length)));return e}a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("498a"),a("d3b7"),a("13d5"),a("b64b"),a("99af");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(i.a)({required:!0,message:t,type:"string"},e)}function c(t){return u.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 u=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(s.a)({},e,t);return Object(i.a)(Object(i.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}),{})},"8bca":function(t,e,a){"use strict";a.r(e),a("b0c0");var s=a("c7eb"),i=a("1da1"),n=a("5530"),r=(a("d81d"),a("a15b"),{name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{checkedData:function(t){this.$emit("clickitem",t)}},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)}}),o=(a("a8f2"),a("2877")),l=(r=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:24}},t._l(t.cardLists,(function(a,s){return e("el-col",{key:s,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",on:{click:function(e){return t.checkedData(a)}}},[e("div",{staticClass:"card_box_cir",class:{one:s%5==0,two:s%5==1,three:s%5==2,four:s%5==3,five:s%5==4}},[e("div",{staticClass:"card_box_cir1",class:{one1:s%5==0,two1:s%5==1,three1:s%5==2,four1:s%5==3,five1:s%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)}}),e("span",{staticClass:"sp2"},[t._v("分红人数:"+t._s(a.user||0)+"人")])])])])],1)})),1)],1)}),[],!1,null,"84e8008c",null).exports,a("2f62")),c=a("61f7"),u=(a("31b4"),a("6b6c"));r={name:"rechargeBonus",components:{cardsData:r},filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{sendType:"",sendMoney:"",typeList:[],tabList:[],fail_msg:{message:"输入信息不完整或有误!"},modals:!1,total:0,cardLists:[],loading:!1,pickerOptions:this.$timeOptions,formValidate:{data:"",type:"",change_type:"",excel:0,page:1,limit:20},extractStatistics:{},timeVal:[],extractId:0}},watch:{$route:function(){this.$route.fullPath===this.$routeProStr+"/finance/user_extract/index?status=0"&&this.getPath()}},computed:Object(n.a)(Object(n.a)({},Object(l.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.$route.fullPath===this.$routeProStr+"/finance/user_extract/index?status=0"?this.getPath():(this.get_award_lake(),this.getList())},methods:{oks:function(){var t,e=this;t={type:this.sendType,num:this.sendMoney},Object(u.a)({url:"/user/award_lake/".concat(t.type),method:"post",data:t}).then(function(){var t=Object(i.a)(Object(s.a)().mark((function t(a){return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(a.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getPath:function(){this.formValidate.page=1,this.formValidate.status=parseInt(this.$route.query.status),this.getList()},get_award_lake:function(){var t=this;Object(u.a)({url:"/user/award_lake",method:"get"}).then(function(){var e=Object(i.a)(Object(s.a)().mark((function e(a){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.typeList=a.data,t.getUserRecharge(t.typeList);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getUserRecharge:function(t){this.cardLists=t.map((function(t){return{col:6,count:t.award,name:t.name,id:t.id,user:t.user}}))},onchangeTime:function(t){this.timeVal=t,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()},selChange:function(){this.formValidate.page=1,this.getList()},getList:function(){var t,e=this;this.loading=!0,t=this.formValidate,Object(u.a)({url:"/user/award_lake/log",method:"get",params:t}).then(function(){var t=Object(i.a)(Object(s.a)().mark((function t(a){var i;return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=a.data,e.tabList=i.list,e.total=i.count,e.loading=!1;case 4: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)}))}}},a("e480"),n=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"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":"right",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:{clearable:"",placeholder:"请选择"},on:{change:t.selChange},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[e("el-option",{attrs:{value:"",label:"全部"}}),t._l(t.typeList,(function(t,a){return e("el-option",{key:a,attrs:{value:t.id,label:t.name}})}))],2),e("el-button",{attrs:{type:"primary"},on:{click:t.selChange}},[t._v("查询")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.modals=!0}}},[t._v("发放奖励")])],1)],1)],1)]),t.extractStatistics?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("el-card",{attrs:{bordered:!1,shadow:"never"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.tabList,"empty-text":"暂无数据"}},[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":"130"},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":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(t._s(a.row.num))])]}}])}),e("el-table-column",{attrs:{label:"类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return t._l(t.typeList,(function(s){return s.id==a.row.type?e("span",[t._v(t._s(s.name))]):t._e()}))}}])}),e("el-table-column",{attrs:{label:"备注","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.mark))])]}}])})],1)],1),e("el-dialog",{attrs:{visible:t.modals,title:"发放奖励","close-on-click-modal":!1,width:"540px"},on:{"update:visible":function(e){t.modals=e}}},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":"right",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"奖励类型:"}},[e("el-select",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请选择"},model:{value:t.sendType,callback:function(e){t.sendType=e},expression:"sendType"}},[e("el-option",{attrs:{value:"",label:"全部"}}),t._l(t.typeList,(function(t,a){return e("el-option",{key:a,attrs:{value:t.id,label:t.name}})}))],2)],1),e("el-form-item",{attrs:{label:"发放金额:"}},[e("el-input",{attrs:{type:"number",placeholder:"请输入发放金额"},model:{value:t.sendMoney,callback:function(e){t.sendMoney=e},expression:"sendMoney"}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.oks}},[t._v("确定")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.modals=!1}}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"72fe64ac",null),e.default=n.exports},"9e4d":function(t,e,a){},a8f2:function(t,e,a){"use strict";a("dd11")},c607:function(t,e,a){"use strict";var s=a("83ab"),i=a("fce3"),n=a("c6b6"),r=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;s&&i&&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")}}})},d28d:function(t,e,a){},dd11:function(t,e,a){},e480:function(t,e,a){"use strict";a("9e4d")},fe99:function(t,e,a){"use strict";a("d28d")}}]);