CRMEB/crmeb/public/admin/js/chunk-295998af.6dc9f8bf.js
2022-12-19 18:40:49 +08:00

1 line
11 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-295998af"],{"0cc1":function(t,e,r){"use strict";var n=r("8c52");r.n(n).a},"1fc7":function(t,e,r){"use strict";r.r(e);var n=r("c964"),a=r("f3f3"),i=(r("96cf"),r("a434"),r("2f62")),s=r("b7be"),o=r("61f7");a={name:"storeSeckill",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(o.a)(t,"yyyy-MM-dd")}},data:function(){return{loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"商品图片",slot:"image",minWidth:90},{title:"活动标题",key:"title",minWidth:130},{title:"活动简介",key:"info",minWidth:100},{title:"原价",key:"ot_price",minWidth:100},{title:"秒杀价",key:"price",minWidth:100},{title:"限量",key:"quota_show",minWidth:130},{title:"限量剩余",key:"quota",minWidth:130},{title:"秒杀状态",key:"start_name",minWidth:100},{title:"结束时间",slot:"stop_time",minWidth:100},{title:"状态",slot:"status",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:130}],tableList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},tableFrom:{status:"",store_name:"",page:1,limit:15},total:0}},computed:Object(a.a)(Object(a.a)({},Object(i.e)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),activated:function(){this.getList()},methods:{add:function(){this.$router.push({path:"/admin/marketing/store_seckill/create"})},exports:function(){var t=this,e=this.tableFrom;e={status:e.status,store_name:e.store_name};Object(s.qb)(e).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))},edit:function(t){this.$router.push({path:"/admin/marketing/store_seckill/create/"+t.id+"/0"})},copy:function(t){this.$router.push({path:"/admin/marketing/store_seckill/create/"+t.id+"/1"})},del:function(t,e,r){var n=this;e={title:e,num:r,url:"marketing/seckill/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.$Message.success(t.msg),n.tableList.splice(r,1)})).catch((function(t){n.$Message.error(t.msg)}))},viewInfo:function(t){this.$router.push({path:"/admin/marketing/store_seckill/statistics/"+t.id})},getList:function(){var t=this;this.loading=!0,this.tableFrom.status=this.tableFrom.status||"",Object(s.kb)(this.tableFrom).then(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableList=n.list,t.total=r.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()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(s.lb)(t).then(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getList(),e.$Message.success(r.msg);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}}},r("0cc1"),i=r("2877"),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Form",{ref:"tableFrom",attrs:{model:t.tableFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{type:"flex",gutter:24}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"秒杀状态:"}},[r("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"}},[r("Option",{attrs:{value:"1"}},[t._v("开启")]),r("Option",{attrs:{value:"0"}},[t._v("关闭")])],1)],1)],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"商品搜索:","label-for":"store_name"}},[r("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入商品名称ID"},on:{"on-search":t.userSearchs},model:{value:t.tableFrom.store_name,callback:function(e){t.$set(t.tableFrom,"store_name",e)},expression:"tableFrom.store_name"}})],1)],1)],1),r("Row",{staticClass:"mb20",attrs:{type:"flex"}},[r("Col",t._b({},"Col",t.grid,!1),[r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["marketing-store_seckill-create"],expression:"['marketing-store_seckill-create']"}],staticClass:"mr10",attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加秒杀商品")]),r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-storeSeckill"],expression:"['export-storeSeckill']"}],staticClass:"export",attrs:{icon:"ios-share-outline"},on:{click:t.exports}},[t._v("导出")])],1)],1)],1),r("Table",{attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var e=t.row;return t.index,[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])]}},{key:"stop_time",fn:function(e){var n=e.row;return e.index,[r("span",[t._v(" "+t._s(t._f("formatDate")(n.stop_time)))])]}},{key:"status",fn:function(e){var n=e.row;return e.index,[r("i-switch",{attrs:{value:n.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n)}},model:{value:n.status,callback:function(e){t.$set(n,"status",e)},expression:"row.status"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(e){var n=e.row,a=e.index;return[0===n.stop_status?r("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]):t._e(),0===n.stop_status?r("Divider",{attrs:{type:"vertical"}}):t._e(),r("a",{on:{click:function(e){return t.copy(n)}}},[t._v("复制")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.del(n,"删除秒杀商品",a)}}},[t._v("删除")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.viewInfo(n)}}},[t._v("统计")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("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)],1)}),[],!1,null,"53c95776",null);e.default=r.exports},"2c3e":function(t,e,r){var n=r("da84"),a=r("83ab"),i=r("9f7f").MISSED_STICKY,s=r("c6b6"),o=r("edd0"),c=r("69f3").get,l=RegExp.prototype,u=n.TypeError;a&&i&&o(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===s(this))return!!c(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,r){var n=r("83ab"),a=r("da84"),i=r("e330"),s=r("94ca"),o=r("7156"),c=r("9112"),l=r("241c").f,u=r("3a9b"),f=r("44e7"),d=r("577e"),g=r("90d8"),h=r("9f7f"),m=r("aeb0"),p=r("cb2d"),b=r("d039"),v=r("1a2d"),k=r("69f3").enforce,x=r("2626"),y=r("b622"),w=r("fce3"),_=r("107c"),E=y("match"),F=a.RegExp,$=F.prototype,R=a.SyntaxError,S=i($.exec),O=i("".charAt),C=i("".replace),I=i("".indexOf),M=i("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,W=/a/g,L=(r=new F(D)!==D,h.MISSED_STICKY),T=h.UNSUPPORTED_Y;y=n&&(!r||L||w||_||b((function(){return W[E]=!1,F(D)!=D||F(W)==W||"/a/i"!=F(D,"i")})));if(s("RegExp",y)){function q(t,e){var r,n,a=u($,this),i=f(t),s=void 0===e,l=[],h=t;if(!a&&i&&s&&t.constructor===q)return t;if((i||u($,t))&&(t=t.source,s&&(e=g(h))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),h=t,i=e=w&&"dotAll"in D&&(r=!!e&&-1<I(e,"s"))?C(e,/s/g,""):e,L&&"sticky"in D&&(n=!!e&&-1<I(e,"y"))&&T&&(e=C(e,/y/g,"")),_&&(t=(s=function(t){for(var e,r=t.length,n=0,a="",i=[],s={},o=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(e=O(t,n)))e+=O(t,++n);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:S(j,M(t,n+1))&&(n+=2,c=!0),a+=e,l++;continue;case">"===e&&c:if(""===u||v(s,u))throw new R("Invalid capture group name");s[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=e:a+=e}return[a,i]}(t))[0],l=s[1]),s=o(F(t,e),a?this:$,q),(r||n||l.length)&&(e=k(s),r&&(e.dotAll=!0,e.raw=q(function(t){for(var e,r=t.length,n=0,a="",i=!1;n<=r;n++)"\\"===(e=O(t,n))?a+=e+O(t,++n):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),a+=e):a+="[\\s\\S]";return a}(t),i)),n&&(e.sticky=!0),l.length&&(e.groups=l)),t!==h)try{c(s,"source",""===h?"(?:)":h)}catch(t){}return s}for(var A=l(F),N=0;A.length>N;)m(q,F,A[N++]);($.constructor=q).prototype=$,p(a,"RegExp",q,{constructor:!0})}x("RegExp")},"61f7":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return l}));var n=r("fc11"),a=r("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r,n,a={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(r in a)new RegExp("(".concat(r,")")).test(e)&&(n=a[r]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.length)));return e}r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0"),r("498a"),r("d3b7"),r("b64b"),r("99af");var s={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 c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(a.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)}o(c,"请输入%s"),o(l,"%s格式不正确");var u=Object.keys(s).reduce((function(t,e){return t[e]=function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s="range"===e?{min:t[0],max:t[1]}:Object(n.a)({},e,t);return Object(a.a)(Object(a.a)({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},s),i)},o(t[e],s[e]),t}),{})},"8c52":function(t,e,r){},c607:function(t,e,r){var n=r("da84"),a=r("83ab"),i=r("fce3"),s=r("c6b6"),o=r("edd0"),c=r("69f3").get,l=RegExp.prototype,u=n.TypeError;a&&i&&o(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===s(this))return!!c(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},edd0:function(t,e,r){var n=r("13d2"),a=r("9bf2");t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),a.f(t,e,r)}}}]);