CRMEB/crmeb/public/admin/system_static/js/chunk-bc749b84.95e7dead.js
2023-04-06 18:14:33 +08:00

1 line
13 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-bc749b84"],{"2b2d":function(t,e,n){},"2c3e":function(t,e,n){var a=n("da84"),r=n("83ab"),i=n("9f7f").MISSED_STICKY,o=n("c6b6"),s=n("edd0"),c=n("69f3").get,l=RegExp.prototype,u=a.TypeError;r&&i&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!c(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,n){var a=n("83ab"),r=n("da84"),i=n("e330"),o=n("94ca"),s=n("7156"),c=n("9112"),l=n("241c").f,u=n("3a9b"),d=n("44e7"),p=n("577e"),f=n("90d8"),m=n("9f7f"),h=n("aeb0"),v=n("cb2d"),g=n("d039"),b=n("1a2d"),_=n("69f3").enforce,y=n("2626"),w=n("b622"),x=n("fce3"),k=n("107c"),F=w("match"),E=r.RegExp,O=E.prototype,R=r.SyntaxError,C=i(O.exec),S=i("".charAt),$=i("".replace),D=i("".indexOf),j=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,W=/a/g,L=(n=new E(M)!==M,m.MISSED_STICKY),P=m.UNSUPPORTED_Y;w=a&&(!n||L||x||k||g((function(){return W[F]=!1,E(M)!=M||E(W)==W||"/a/i"!=E(M,"i")})));if(o("RegExp",w)){function T(t,e){var n,a,r=u(O,this),i=d(t),o=void 0===e,l=[],m=t;if(!r&&i&&o&&t.constructor===T)return t;if((i||u(O,t))&&(t=t.source,o&&(e=f(m))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),m=t,i=e=x&&"dotAll"in M&&(n=!!e&&-1<D(e,"s"))?$(e,/s/g,""):e,L&&"sticky"in M&&(a=!!e&&-1<D(e,"y"))&&P&&(e=$(e,/y/g,"")),k&&(t=(o=function(t){for(var e,n=t.length,a=0,r="",i=[],o={},s=!1,c=!1,l=0,u="";a<=n;a++){if("\\"===(e=S(t,a)))e+=S(t,++a);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:C(I,j(t,a+1))&&(a+=2,c=!0),r+=e,l++;continue;case">"===e&&c:if(""===u||b(o,u))throw new R("Invalid capture group name");o[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=e:r+=e}return[r,i]}(t))[0],l=o[1]),o=s(E(t,e),r?this:O,T),(n||a||l.length)&&(e=_(o),n&&(e.dotAll=!0,e.raw=T(function(t){for(var e,n=t.length,a=0,r="",i=!1;a<=n;a++)"\\"===(e=S(t,a))?r+=e+S(t,++a):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),r+=e):r+="[\\s\\S]";return r}(t),i)),a&&(e.sticky=!0),l.length&&(e.groups=l)),t!==m)try{c(o,"source",""===m?"(?:)":m)}catch(t){}return o}for(var A=l(E),z=0;A.length>z;)h(T,E,A[z++]);(O.constructor=T).prototype=O,v(r,"RegExp",T,{constructor:!0})}y("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l}));var a=n("fc11"),r=n("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,a,r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(n in r)new RegExp("(".concat(n,")")).test(e)&&(a=r[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.length)));return e}n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("b64b"),n("99af");var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function s(t,e){t.message=function(t){return e.replace("%s",t||"")}}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(r.a)({required:!0,message:t,type:"string"},e)}function l(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(c,"请输入%s"),s(l,"%s格式不正确");var u=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(r.a)(Object(r.a)({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),i)},s(t[e],o[e]),t}),{})},a483:function(t,e,n){"use strict";var a=n("2b2d");n.n(a).a},c607:function(t,e,n){var a=n("da84"),r=n("83ab"),i=n("fce3"),o=n("c6b6"),s=n("edd0"),c=n("69f3").get,l=RegExp.prototype,u=a.TypeError;r&&i&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!c(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},edd0:function(t,e,n){var a=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&a(n.get,e,{getter:!0}),n.set&&a(n.set,e,{setter:!0}),r.f(t,e,n)}},fd8e:function(t,e,n){"use strict";n.r(e);var a=n("c964"),r=n("f3f3"),i=(n("a434"),n("96cf"),n("2f62")),o=n("b7be"),s=n("61f7");r={name:"storeCouponIssue",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(s.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{modals2:!1,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"优惠券名称",key:"coupon_title",minWidth:150},{title:"优惠券类型",slot:"type",minWidth:80},{title:"面值",key:"coupon_price",minWidth:100},{title:"领取方式",slot:"receive_type",minWidth:100},{title:"领取日期",slot:"start_time",minWidth:250},{title:"使用时间",slot:"start_use_time",minWidth:250},{title:"发布数量",slot:"count",minWidth:90},{title:"是否开启",slot:"status",minWidth:90},{title:"操作",slot:"action",fixed:"right",minWidth:200}],tableFrom:{status:"",coupon_title:"",receive_type:"",page:1,limit:10},receive_type:"",tableList:[],total:0,FromData:null,receiveList:[],loading2:!1,columns2:[{title:"ID",key:"uid",minWidth:150},{title:"用户名",key:"nickname",minWidth:150},{title:"用户头像",slot:"avatar",minWidth:100},{title:"领取时间",key:"add_time",minWidth:140}],total2:0,receiveFrom:{page:1,limit:15},rows:{}}},activated:function(){this.getList()},computed:Object(r.a)(Object(r.a)({},Object(i.e)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:90},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{couponInvalid:function(t,e,n){this.delfromData={title:e,num:n,url:"marketing/coupon/status/".concat(t.id),method:"PUT",ids:""},this.$refs.modelSure.modals=!0},receive:function(t){this.modals2=!0,this.rows=t,this.getReceivelist(t)},getReceivelist:function(t){var e=this;this.loading2=!0,Object(o.hb)(t.id).then(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=n.data,e.receiveList=a.list,e.total2=n.data.count,e.loading2=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading2=!1,e.$Message.error(t.msg)}))},receivePageChange:function(t){this.receiveFrom.page=t,this.getReceivelist(this.rows)},couponDel:function(t,e,n){var a=this;e={title:e,num:n,url:"marketing/coupon/released/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$Message.success(t.msg),a.tableList.splice(n,1)})).catch((function(t){a.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,this.tableFrom.receive_type="all"===this.receive_type?"":this.receive_type,this.tableFrom.status=this.tableFrom.status||"",Object(o.gb)(this.tableFrom).then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tableList=a.list,t.total=n.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.tableFrom.page=t,this.getList()},userSearchs:function(){this.tableFrom.page=1,this.getList()},add:function(){this.$router.push({path:this.$routeProStr+"/marketing/store_coupon_issue/create"})},copy:function(t){this.$router.push({path:this.$routeProStr+"/marketing/store_coupon_issue/create/".concat(t.id)})},openChange:function(t){var e=this;Object(o.t)(t).then((function(){return e.getList()}))}}},n("a483"),i=n("2877"),n=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"tableFrom",attrs:{model:t.tableFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"是否有效:","label-for":"status"}},[n("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("Option",{attrs:{value:"1"}},[t._v("正常")]),n("Option",{attrs:{value:"0"}},[t._v("未开启")])],1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"类型:","label-for":"status"}},[n("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.receive_type,callback:function(e){t.receive_type=e},expression:"receive_type"}},[n("Option",{attrs:{value:"all"}},[t._v("全部")]),n("Option",{attrs:{value:"1"}},[t._v("手动领取")]),n("Option",{attrs:{value:"2"}},[t._v("新用户自动发放")]),n("Option",{attrs:{value:"3"}},[t._v("后台赠送")]),n("Option",{attrs:{value:"4"}},[t._v("付费会员专享")])],1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"优惠券名称:","label-for":"coupon_title"}},[n("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入优惠券名称"},on:{"on-search":t.userSearchs},model:{value:t.tableFrom.coupon_title,callback:function(e){t.$set(t.tableFrom,"coupon_title",e)},expression:"tableFrom.coupon_title"}})],1)],1)],1),n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-marketing-store_coupon-add"],expression:"['admin-marketing-store_coupon-add']"}],attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加优惠券")])],1)],1)],1),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"count",fn:function(e){return e=e.row,[e.is_permanent?n("span",[t._v("不限量")]):n("div",[n("span",{staticClass:"fa"},[t._v("发布:"+t._s(e.total_count))]),n("span",{staticClass:"sheng"},[t._v("剩余:"+t._s(e.remain_count))])])]}},{key:"type",fn:function(e){return e=e.row,[1===e.type?n("span",[t._v("品类券")]):2===e.type?n("span",[t._v("商品券")]):3===e.type?n("span",[t._v("会员券")]):n("span",[t._v("通用券")])]}},{key:"receive_type",fn:function(e){return e=e.row,[1===e.receive_type?n("span",[t._v("手动领取")]):2===e.receive_type?n("span",[t._v("新人券")]):3===e.receive_type?n("span",[t._v("赠送券")]):4===e.receive_type?n("span",[t._v("会员券")]):n("span",[t._v("虚拟购买")])]}},{key:"start_time",fn:function(e){return e=e.row,[e.start_time?n("div",[t._v(t._s(t._f("formatDate")(e.start_time))+" - "+t._s(t._f("formatDate")(e.end_time)))]):n("span",[t._v("不限时")])]}},{key:"start_use_time",fn:function(e){return e=e.row,[e.start_use_time?n("div",[t._v("\n "+t._s(t._f("formatDate")(e.start_use_time))+" -\n "+t._s(t._f("formatDate")(e.end_use_time))+"\n ")]):n("div",[t._v(t._s(e.coupon_time)+"天")])]}},{key:"status",fn:function(e){var a=e.row;return[n("i-switch",{attrs:{value:a.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.openChange(a)}},model:{value:a.status,callback:function(e){t.$set(a,"status",e)},expression:"row.status"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(e){var a=e.row,r=e.index;return[n("a",{on:{click:function(e){return t.receive(a)}}},[t._v("领取记录")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.copy(a)}}},[t._v("复制")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.couponDel(a,"删除发布的优惠券",r)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1),n("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"领取记录","mask-closable":!1,width:"700"},model:{value:t.modals2,callback:function(e){t.modals2=e},expression:"modals2"}},[n("Table",{ref:"table",attrs:{columns:t.columns2,data:t.receiveList,loading:t.loading2,"highlight-row":"",height:"500","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatar",fn:function(t){var e=t.row;return t.index,[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])]}}])})],1)],1)}),[],!1,null,"5107d2f7",null);e.default=n.exports}}]);