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.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-286b15fa.c61ddceb.js

1 lines
14 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-286b15fa"],{"069d":function(t,e,a){"use strict";a("bacbf")},"2c3e":function(t,e,a){"use strict";var n=a("83ab"),r=a("9f7f").MISSED_STICKY,i=a("c6b6"),o=a("edd0"),s=a("69f3").get,l=RegExp.prototype,c=TypeError;n&&r&&o(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===i(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,a){"use strict";var n=a("83ab"),r=a("da84"),i=a("e330"),o=a("94ca"),s=a("7156"),l=a("9112"),c=a("241c").f,u=a("3a9b"),d=a("44e7"),f=a("577e"),p=a("90d8"),m=a("9f7f"),b=a("aeb0"),v=a("cb2d"),h=a("d039"),g=a("1a2d"),_=a("69f3").enforce,w=a("2626"),y=a("b622"),k=a("fce3"),x=a("107c"),S=y("match"),F=r.RegExp,E=F.prototype,$=r.SyntaxError,O=i(E.exec),j=i("".charAt),R=i("".replace),D=i("".indexOf),C=i("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,M=/a/g,P=(a=new F(I)!==I,m.MISSED_STICKY),T=m.UNSUPPORTED_Y;y=n&&(!a||P||k||x||h((function(){return M[S]=!1,F(I)!==I||F(M)===M||"/a/i"!==String(F(I,"i"))})));if(o("RegExp",y)){for(var N=function(t,e){var a,n,r=u(E,this),i=d(t),o=void 0===e,c=[],m=t;if(!r&&i&&o&&t.constructor===N)return t;if((i||u(E,t))&&(t=t.source,o)&&(e=p(m)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,i=e=k&&"dotAll"in I&&(a=!!e&&-1<D(e,"s"))?R(e,/s/g,""):e,P&&"sticky"in I&&(n=!!e&&-1<D(e,"y"))&&T&&(e=R(e,/y/g,"")),x&&(t=(o=function(t){for(var e,a=t.length,n=0,r="",i=[],o={},s=!1,l=!1,c=0,u="";n<=a;n++){if("\\"===(e=j(t,n)))e+=j(t,++n);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O(L,C(t,n+1))&&(n+=2,l=!0),r+=e,c++;continue;case">"===e&&l:if(""===u||g(o,u))throw new $("Invalid capture group name");o[u]=!0,l=!(i[i.length]=[u,c]),u="";continue}l?u+=e:r+=e}return[r,i]}(t))[0],c=o[1]),o=s(F(t,e),r?this:E,N),(a||n||c.length)&&(e=_(o),a&&(e.dotAll=!0,e.raw=N(function(t){for(var e,a=t.length,n=0,r="",i=!1;n<=a;n++)"\\"===(e=j(t,n))?r+=e+j(t,++n):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),r+=e):r+="[\\s\\S]";return r}(t),i)),n&&(e.sticky=!0),c.length)&&(e.groups=c),t!==m)try{l(o,"source",""===m?"(?:)":m)}catch(t){}return o},A=c(F),Y=0;A.length>Y;)b(N,F,A[Y++]);(E.constructor=N).prototype=E,v(r,"RegExp",N,{constructor:!0})}w("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return c}));var n=a("ade3"),r=a("5530");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,n,r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in r)new RegExp("(".concat(a,")")).test(e)&&(n=r[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.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 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 l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(r.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)}s(l,"请输入%s"),s(c,"%s格式不正确");var u=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var a=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(n.a)({},e,t);return Object(r.a)(Object(r.a)({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),i)},s(t[e],o[e]),t}),{})},bacbf:function(t,e,a){},c607:function(t,e,a){"use strict";var n=a("83ab"),r=a("fce3"),i=a("c6b6"),o=a("edd0"),s=a("69f3").get,l=RegExp.prototype,c=TypeError;n&&r&&o(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===i(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},fd8e:function(t,e,a){"use strict";a.r(e);var n=a("c7eb"),r=a("1da1"),i=a("5530"),o=(a("a434"),a("14d9"),a("2f62")),s=a("b7be"),l=a("61f7");i={name:"marketing_storeCouponIssue",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(l.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,tableFrom:{status:"",coupon_title:"",receive_type:"",page:1,limit:15},receive_type:"",tableList:[],total:0,FromData:null,receiveList:[],loading2:!1,total2:0,receiveFrom:{page:1,limit:15},rows:{}}},activated:function(){this.getList()},computed:Object(i.a)(Object(i.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"90px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{couponInvalid:function(t,e,a){this.delfromData={title:e,num:a,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(s.hb)(t.id,this.receiveFrom).then(function(){var t=Object(r.a)(Object(n.a)().mark((function t(a){var r;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=a.data,e.receiveList=r.list,e.total2=a.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,a){var n=this;e={title:e,num:a,url:"marketing/coupon/released/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.$message.success(t.msg),n.tableList.splice(a,1),n.total--})).catch((function(t){n.$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(s.gb)(this.tableFrom).then(function(){var e=Object(r.a)(Object(n.a)().mark((function e(a){var r;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.tableList=r.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)}))},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(s.t)(t).then((function(){return e.getList()}))}}},a("069d"),o=a("2877"),a=Object(o.a)(i,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"tableFrom",attrs:{model:t.tableFrom,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"是否有效:","label-for":"status"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[e("el-option",{attrs:{value:"1",label:"正常"}}),e("el-option",{attrs:{value:"0",label:"未开启"}})],1)],1),e("el-form-item",{attrs:{label:"发放方式:","label-for":"status"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.receive_type,callback:function(e){t.receive_type=e},expression:"receive_type"}},[e("el-option",{attrs:{value:"all",label:"全部"}}),e("el-option",{attrs:{value:"1",label:"手动领取"}}),e("el-option",{attrs:{value:"2",label:"新用户自动发放"}}),e("el-option",{attrs:{value:"3",label:"后台赠送"}}),e("el-option",{attrs:{value:"4",label:"付费会员专享"}})],1)],1),e("el-form-item",{attrs:{label:"优惠券名称:","label-for":"coupon_title"}},[e("el-input",{staticClass:"form_content_width",attrs:{placeholder:"请输入优惠券名称"},model:{value:t.tableFrom.coupon_title,callback:function(e){t.$set(t.tableFrom,"coupon_title",e)},expression:"tableFrom.coupon_title"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[e("el-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("添加优惠券")]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.tableList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-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":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.coupon_title))])]}}])}),e("el-table-column",{attrs:{label:"优惠券类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[1===a.row.type?e("span",[t._v("品类券")]):2===a.row.type?e("span",[t._v("商品券")]):3===a.row.type?e("span",[t._v("会员券")]):e("span",[t._v("通用券")])]}}])}),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.coupon_price))])]}}])}),e("el-table-column",{attrs:{label:"领取方式","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[1===a.row.receive_type?e("span",[t._v("手动领取")]):2===a.row.receive_type?e("span",[t._v("新人券")]):3===a.row.receive_type?e("span",[t._v("赠送券")]):4===a.row.receive_type?e("span",[t._v("会员券")]):e("span",[t._v("虚拟购买")])]}}])}),e("el-table-column",{attrs:{label:"领取日期","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.start_time?e("div",[t._v("\n "+t._s(t._f("formatDate")(a.row.start_time))+" - "+t._s(t._f("formatDate")(a.row.end_time))+"\n ")]):e("span",[t._v("不限时")])]}}])}),e("el-table-column",{attrs:{label:"使用时间","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.start_use_time?e("div",[t._v("\n "+t._s(t._f("formatDate")(a.row.start_use_time))+" -\n "+t._s(t._f("formatDate")(a.row.end_use_time))+"\n ")]):e("div",[t._v(t._s(a.row.coupon_time)+"天")])]}}])}),e("el-table-column",{attrs:{label:"发布数量","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.is_permanent?e("span",[t._v("不限量")]):e("div",[e("span",{staticClass:"fa"},[t._v("发布:"+t._s(a.row.total_count))]),e("span",{staticClass:"sheng"},[t._v("剩余:"+t._s(a.row.remain_count))])])]}}])}),e("el-table-column",{attrs:{label:"是否开启","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:a.row.status,size:"large"},on:{change:function(e){return t.openChange(a.row)}},model:{value:a.row.status,callback:function(e){t.$set(a.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{on:{click:function(e){return t.receive(a.row)}}},[t._v("领取记录")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.copy(a.row)}}},[t._v("复制")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.couponDel(a.row,"删除发布的优惠券",a.$index)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.tableFrom.page,limit:t.tableFrom.limit},on:{"update:page":function(e){return t.$set(t.tableFrom,"page",e)},"update:limit":function(e){return t.$set(t.tableFrom,"limit",e)},pagination:t.getList}}):t._e()],1)],1),e("el-dialog",{attrs:{visible:t.modals2,title:"领取记录","close-on-click-modal":!1,width:"720px"},on:{"update:visible":function(e){t.modals2=e}}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"table",attrs:{data:t.receiveList,"highlight-current-row":"",height:"500","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(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(a.row.nickname))])]}}])}),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":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.add_time))])]}}])})],1)],1)],1)}),[],!1,null,"0ffda410",null);e.default=a.exports}}]);