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-0d29ef24.aad13a89.js

1 lines
14 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0d29ef24"],{"1fc7":function(t,e,r){"use strict";r.r(e);var n=r("c7eb"),a=r("1da1"),i=r("5530"),o=(r("14d9"),r("b64b"),r("e9c4"),r("99af"),r("d3b7"),r("a434"),r("2f62")),s=r("b7be"),c=r("61f7"),l=r("3f2a");i={name:"marketing_storeSeckill",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.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(i.a)(Object(i.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),activated:function(){this.getList()},methods:{add:function(){this.$router.push({path:this.$routeProStr+"/marketing/store_seckill/create"})},exports:function(){var t=this;return Object(a.a)(Object(n.a)().mark((function e(){var r,a,i,o,s,c,l;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],a=[],i=[],o="",(s=JSON.parse(JSON.stringify(t.tableFrom))).page=1,s.limit=200,c=0;case 5:if(c<s.page+1)return e.next=8,t.getExcelData(s);e.next=22;break;case 8:l=e.sent,o=o||l.filename,a.length||(a=l.fileKey),r.length||(r=l.header),l.export.length?(i=i.concat(l.export),s.page++,e.next=19):e.next=17;break;case 17:return t.$exportExcel(r,a,o,i),e.abrupt("return");case 19:c++,e.next=5;break;case 22:case"end":return e.stop()}}),e)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(l.f)(t).then((function(t){e(t.data)}))}))},edit:function(t){this.$router.push({path:this.$routeProStr+"/marketing/store_seckill/create/"+t.id+"/0"})},copy:function(t){this.$router.push({path:this.$routeProStr+"/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:this.$routeProStr+"/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(a.a)(Object(n.a)().mark((function e(r){var a;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data,t.tableList=a.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)}))},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(a.a)(Object(n.a)().mark((function t(r){return Object(n.a)().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("394f"),o=r("2877"),r=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":"right",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"秒杀状态:"}},[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":"store_name"}},[e("el-input",{staticClass:"form_content_width",attrs:{placeholder:"请输入商品名称,ID"},model:{value:t.tableFrom.store_name,callback:function(e){t.$set(t.tableFrom,"store_name",e)},expression:"tableFrom.store_name"}})],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:["marketing-store_seckill-create"],expression:"['marketing-store_seckill-create']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加秒杀商品")]),e("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["export-storeSeckill"],expression:"['export-storeSeckill']"}],staticClass:"export",on:{click:t.exports}},[t._v("导出")]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],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(r){return[e("span",[t._v(t._s(r.row.id))])]}}])}),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.image,expression:"scope.row.image"}]})])]}}])}),e("el-table-column",{attrs:{label:"活动标题","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-tooltip",{attrs:{placement:"top","open-delay":600}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(r.row.title))]),e("span",{staticClass:"line2"},[t._v(t._s(r.row.title))])])]}}])}),e("el-table-column",{attrs:{label:"活动简介","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-tooltip",{attrs:{placement:"top","open-delay":600}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(r.row.info))]),e("span",{staticClass:"line2"},[t._v(t._s(r.row.info))])])]}}])}),e("el-table-column",{attrs:{label:"原价","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.ot_price))])]}}])}),e("el-table-column",{attrs:{label:"秒杀价","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.price))])]}}])}),e("el-table-column",{attrs:{label:"限量","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.quota_show))])]}}])}),e("el-table-column",{attrs:{label:"限量剩余","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.quota))])]}}])}),e("el-table-column",{attrs:{label:"秒杀状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.start_name))])]}}])}),e("el-table-column",{attrs:{label:"结束时间","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(" "+t._s(t._f("formatDate")(r.row.stop_time)))])]}}])}),e("el-table-column",{attrs:{label:"状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:r.row.status,size:"large","active-text":"开启","inactive-text":"关闭"},on:{change:function(e){return t.onchangeIsShow(r.row)}},model:{value:r.row.status,callback:function(e){t.$set(r.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(r){return[0===r.row.stop_status?e("a",{on:{click:function(e){return t.edit(r.row)}}},[t._v("编辑")]):t._e(),0===r.row.stop_status?e("el-divider",{attrs:{direction:"vertical"}}):t._e(),e("a",{on:{click:function(e){return t.copy(r.row)}}},[t._v("复制")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(r.row,"删除秒杀商品",r.$index)}}},[t._v("删除")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.viewInfo(r.row)}}},[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)],1)}),[],!1,null,"03045bbb",null);e.default=r.exports},"2c3e":function(t,e,r){"use strict";var n=r("83ab"),a=r("9f7f").MISSED_STICKY,i=r("c6b6"),o=r("edd0"),s=r("69f3").get,c=RegExp.prototype,l=TypeError;n&&a&&o(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).sticky;throw new l("Incompatible receiver, RegExp required")}}})},"394f":function(t,e,r){"use strict";r("b4b9")},"3f2a":function(t,e,r){"use strict";r.d(e,"g",(function(){return a})),r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"e",(function(){return s})),r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return l})),r.d(e,"f",(function(){return u})),r.d(e,"h",(function(){return d}));var n=r("6b6c");function a(t){return Object(n.a)({url:"/export/user_list",method:"get",params:t})}function i(t){return Object(n.a)({url:"/export/order_list",method:"get",params:t})}function o(t){return Object(n.a)({url:"/export/order_delivery_list",method:"get",params:t})}function s(t){return Object(n.a)({url:"/export/product_list",method:"get",params:t})}function c(t){return Object(n.a)({url:"/export/bargain_list",method:"get",params:t})}function l(t){return Object(n.a)({url:"/export/combination_list",method:"get",params:t})}function u(t){return Object(n.a)({url:"/export/seckill_list",method:"get",params:t})}function d(t){return Object(n.a)({url:"/export/member_card/".concat(t),method:"get"})}},"4d63":function(t,e,r){"use strict";var n=r("83ab"),a=r("da84"),i=r("e330"),o=r("94ca"),s=r("7156"),c=r("9112"),l=r("241c").f,u=r("3a9b"),d=r("44e7"),f=r("577e"),m=r("90d8"),p=r("9f7f"),b=r("aeb0"),h=r("cb2d"),g=r("d039"),v=r("1a2d"),_=r("69f3").enforce,w=r("2626"),x=r("b622"),k=r("fce3"),y=r("107c"),S=x("match"),O=a.RegExp,j=O.prototype,$=a.SyntaxError,E=i(j.exec),F=i("".charAt),R=i("".replace),C=i("".indexOf),D=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,W=/a/g,L=/a/g,M=(r=new O(W)!==W,p.MISSED_STICKY),N=p.UNSUPPORTED_Y;x=n&&(!r||M||k||y||g((function(){return L[S]=!1,O(W)!==W||O(L)===L||"/a/i"!==String(O(W,"i"))})));if(o("RegExp",x)){for(var P=function(t,e){var r,n,a=u(j,this),i=d(t),o=void 0===e,l=[],p=t;if(!a&&i&&o&&t.constructor===P)return t;if((i||u(j,t))&&(t=t.source,o)&&(e=m(p)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),p=t,i=e=k&&"dotAll"in W&&(r=!!e&&-1<C(e,"s"))?R(e,/s/g,""):e,M&&"sticky"in W&&(n=!!e&&-1<C(e,"y"))&&N&&(e=R(e,/y/g,"")),y&&(t=(o=function(t){for(var e,r=t.length,n=0,a="",i=[],o={},s=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(e=F(t,n)))e+=F(t,++n);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:E(I,D(t,n+1))&&(n+=2,c=!0),a+=e,l++;continue;case">"===e&&c:if(""===u||v(o,u))throw new $("Invalid capture group name");o[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=e:a+=e}return[a,i]}(t))[0],l=o[1]),o=s(O(t,e),a?this:j,P),(r||n||l.length)&&(e=_(o),r&&(e.dotAll=!0,e.raw=P(function(t){for(var e,r=t.length,n=0,a="",i=!1;n<=r;n++)"\\"===(e=F(t,n))?a+=e+F(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!==p)try{c(o,"source",""===p?"(?:)":p)}catch(t){}return o},q=l(O),T=0;q.length>T;)b(P,O,q[T++]);(j.constructor=P).prototype=j,h(a,"RegExp",P,{constructor:!0})}w("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("ade3"),a=r("5530");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("13d5"),r("b64b"),r("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(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)}s(c,"请输入%s"),s(l,"%s格式不正确");var u=Object.keys(o).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]:{},o="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"},o),i)},s(t[e],o[e]),t}),{})},b4b9:function(t,e,r){},c607:function(t,e,r){"use strict";var n=r("83ab"),a=r("fce3"),i=r("c6b6"),o=r("edd0"),s=r("69f3").get,c=RegExp.prototype,l=TypeError;n&&a&&o(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).dotAll;throw new l("Incompatible receiver, RegExp required")}}})}}]);