chunk-bda448c4.13512798.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-bda448c4"],{"2c3e":function(t,e,a){"use strict";var r=a("83ab"),n=a("9f7f").MISSED_STICKY,i=a("c6b6"),o=a("edd0"),s=a("69f3").get,c=RegExp.prototype,l=TypeError;r&&n&&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")}}})},3082:function(t,e,a){},"3f2a":function(t,e,a){"use strict";a.d(e,"g",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return s})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return l})),a.d(e,"f",(function(){return u})),a.d(e,"h",(function(){return d}));var r=a("6b6c");function n(t){return Object(r.a)({url:"/export/user_list",method:"get",params:t})}function i(t){return Object(r.a)({url:"/export/order_list",method:"get",params:t})}function o(t){return Object(r.a)({url:"/export/order_delivery_list",method:"get",params:t})}function s(t){return Object(r.a)({url:"/export/product_list",method:"get",params:t})}function c(t){return Object(r.a)({url:"/export/bargain_list",method:"get",params:t})}function l(t){return Object(r.a)({url:"/export/combination_list",method:"get",params:t})}function u(t){return Object(r.a)({url:"/export/seckill_list",method:"get",params:t})}function d(t){return Object(r.a)({url:"/export/member_card/".concat(t),method:"get"})}},"4d63":function(t,e,a){"use strict";var r=a("83ab"),n=a("da84"),i=a("e330"),o=a("94ca"),s=a("7156"),c=a("9112"),l=a("241c").f,u=a("3a9b"),d=a("44e7"),f=a("577e"),m=a("90d8"),p=a("9f7f"),b=a("aeb0"),h=a("cb2d"),g=a("d039"),v=a("1a2d"),w=a("69f3").enforce,_=a("2626"),x=a("b622"),k=a("fce3"),y=a("107c"),S=x("match"),O=n.RegExp,j=O.prototype,$=n.SyntaxError,E=i(j.exec),N=i("".charAt),R=i("".replace),V=i("".indexOf),C=i("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,L=/a/g,M=(a=new O(I)!==I,p.MISSED_STICKY),P=p.UNSUPPORTED_Y;x=r&&(!a||M||k||y||g((function(){return L[S]=!1,O(I)!==I||O(L)===L||"/a/i"!==String(O(I,"i"))})));if(o("RegExp",x)){for(var z=function(t,e){var a,r,n=u(j,this),i=d(t),o=void 0===e,l=[],p=t;if(!n&&i&&o&&t.constructor===z)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 I&&(a=!!e&&-1<V(e,"s"))?R(e,/s/g,""):e,M&&"sticky"in I&&(r=!!e&&-1<V(e,"y"))&&P&&(e=R(e,/y/g,"")),y&&(t=(o=function(t){for(var e,a=t.length,r=0,n="",i=[],o={},s=!1,c=!1,l=0,u="";r<=a;r++){if("\\"===(e=N(t,r)))e+=N(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:E(D,C(t,r+1))&&(r+=2,c=!0),n+=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:n+=e}return[n,i]}(t))[0],l=o[1]),o=s(O(t,e),n?this:j,z),(a||r||l.length)&&(e=w(o),a&&(e.dotAll=!0,e.raw=z(function(t){for(var e,a=t.length,r=0,n="",i=!1;r<=a;r++)"\\"===(e=N(t,r))?n+=e+N(t,++r):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),n+=e):n+="[\\s\\S]";return n}(t),i)),r&&(e.sticky=!0),l.length)&&(e.groups=l),t!==p)try{c(o,"source",""===p?"(?:)":p)}catch(t){}return o},T=l(O),q=0;T.length>q;)b(z,O,T[q++]);(j.constructor=z).prototype=j,h(n,"RegExp",z,{constructor:!0})}_("RegExp")},"603a":function(t,e,a){"use strict";a("3082")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"b",(function(){return l}));var r=a("ade3"),n=a("5530");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,r,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in n)new RegExp("(".concat(a,")")).test(e)&&(r=n[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+r).substr(r.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 c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.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 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(r.a)({},e,t);return Object(n.a)(Object(n.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}),{})},"82f1":function(t,e,a){"use strict";a.r(e);var r=a("c7eb"),n=a("1da1"),i=a("5530"),o=(a("b64b"),a("e9c4"),a("99af"),a("d3b7"),a("14d9"),a("a434"),a("b7be")),s=a("2f62"),c=a("61f7"),l=a("3f2a");i={name:"marketing_combinalist",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{loading:!1,grid:{xl:7,lg:7,md:12,sm:24,xs:24},formValidate:{is_show:"",store_name:"",page:1,limit:15},value:"",tableList:[],total:0,statisticsList:[]}},computed:Object(i.a)(Object(i.a)({},Object(s.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),activated:function(){this.getList()},methods:{exports:function(){var t=this;return Object(n.a)(Object(r.a)().mark((function e(){var a,n,i,o,s,c,l;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=[],n=[],i=[],o="",(s=JSON.parse(JSON.stringify(t.formValidate))).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,n.length||(n=l.fileKey),a.length||(a=l.header),l.export.length?(i=i.concat(l.export),s.page++,e.next=19):e.next=17;break;case 17:return t.$exportExcel(a,n,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,a){Object(l.b)(t).then((function(t){e(t.data)}))}))},add:function(){this.$router.push({path:this.$routeProStr+"/marketing/store_combination/create"})},edit:function(t){this.$router.push({path:this.$routeProStr+"/marketing/store_combination/create/"+t.id+"/0"})},copy:function(t){this.$router.push({path:this.$routeProStr+"/marketing/store_combination/create/"+t.id+"/1"})},del:function(t,e,a){var r=this;e={title:e,num:a,url:"marketing/combination/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){r.$message.success(t.msg),r.tableList.splice(a,1)})).catch((function(t){r.$message.error(t.msg)}))},viewInfo:function(t){this.$router.push({path:this.$routeProStr+"/marketing/store_combination/statistics/"+t.id})},getList:function(){var t=this;this.loading=!0,Object(o.k)(this.formValidate).then(function(){var e=Object(n.a)(Object(r.a)().mark((function e(a){var n;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.tableList=n.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.formValidate.page=1,this.getList()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.is_show};Object(o.l)(t).then(function(){var t=Object(n.a)(Object(r.a)().mark((function t(a){return Object(r.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)}))}}},a("603a"),s=a("2877"),a=Object(s.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:"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:"拼团状态:",clearable:""}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[e("el-option",{attrs:{value:1,label:"开启"}}),e("el-option",{attrs:{value:0,label:"关闭"}})],1)],1),e("el-form-item",{attrs:{label:"商品搜索:",prop:"store_name","label-for":"store_name"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入请输入商品名称/ID"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1),e("el-form-item",[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],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_combination-create"],expression:"['marketing-store_combination-create']"},{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加拼团商品")]),e("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["export-storeCombination"],expression:"['export-storeCombination']"},{name:"db-click",rawName:"v-db-click"}],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(a){return[e("span",[t._v(t._s(a.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(a){return[e("el-tooltip",{attrs:{placement:"top","open-delay":600}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(a.row.title))]),e("span",{staticClass:"line2"},[t._v(t._s(a.row.title))])])]}}])}),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.ot_price))])]}}])}),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.price))])]}}])}),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.count_people))])]}}])}),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.count_people_all))])]}}])}),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.count_people_pink))])]}}])}),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.quota_show))])]}}])}),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.quota))])]}}])}),e("el-table-column",{attrs:{label:"活动状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tag",{directives:[{name:"show",rawName:"v-show",value:"进行中"===a.row.start_name,expression:"scope.row.start_name === '进行中'"}],attrs:{size:"medium"}},[t._v("进行中")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:"未开始"===a.row.start_name,expression:"scope.row.start_name === '未开始'"}],attrs:{size:"medium",type:"warning"}},[t._v("未开始")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:"已结束"===a.row.start_name,expression:"scope.row.start_name === '已结束'"}],attrs:{size:"medium",type:"info"}},[t._v("已结束")])]}}])}),e("el-table-column",{attrs:{label:"结束时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(t._f("formatDate")(a.row.stop_time)))])]}}])}),e("el-table-column",{attrs:{label:"上架状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:a.row.is_show,disabled:!!a.row.stop_status,size:"large","active-text":"上架","inactive-text":"下架"},on:{change:function(e){return t.onchangeIsShow(a.row)}},model:{value:a.row.is_show,callback:function(e){t.$set(a.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(a){return[0===a.row.stop_status?e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.edit(a.row)}}},[t._v("编辑")]):t._e(),0===a.row.stop_status?e("el-divider",{attrs:{direction:"vertical"}}):t._e(),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.copy(a.row)}}},[t._v("复制")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.del(a.row,"删除拼团商品",a.$index)}}},[t._v("删除")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.viewInfo(a.row)}}},[t._v("统计")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"4c6dbf39",null);e.default=a.exports},c607:function(t,e,a){"use strict";var r=a("83ab"),n=a("fce3"),i=a("c6b6"),o=a("edd0"),s=a("69f3").get,c=RegExp.prototype,l=TypeError;r&&n&&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")}}})}}]);