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-6da4b85c.4d8cc767.js

1 lines
15 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6da4b85c"],{1125:function(t,e,r){},"2c3e":function(t,e,r){"use strict";var a=r("83ab"),n=r("9f7f").MISSED_STICKY,i=r("c6b6"),o=r("edd0"),s=r("69f3").get,l=RegExp.prototype,c=TypeError;a&&n&&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")}}})},"3f2a":function(t,e,r){"use strict";r.d(e,"g",(function(){return n})),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 l})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"h",(function(){return d}));var a=r("6b6c");function n(t){return Object(a.a)({url:"/export/user_list",method:"get",params:t})}function i(t){return Object(a.a)({url:"/export/order_list",method:"get",params:t})}function o(t){return Object(a.a)({url:"/export/order_delivery_list",method:"get",params:t})}function s(t){return Object(a.a)({url:"/export/product_list",method:"get",params:t})}function l(t){return Object(a.a)({url:"/export/bargain_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"/export/combination_list",method:"get",params:t})}function u(t){return Object(a.a)({url:"/export/seckill_list",method:"get",params:t})}function d(t){return Object(a.a)({url:"/export/member_card/".concat(t),method:"get"})}},"49ba":function(t,e,r){"use strict";r.r(e);var a=r("c7eb"),n=r("1da1"),i=r("5530"),o=(r("14d9"),r("b64b"),r("e9c4"),r("99af"),r("d3b7"),r("a434"),r("2f62")),s=r("b7be"),l=r("61f7"),c=r("3f2a");i={name:"marketing_storeBargain",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{loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"砍价图片",slot:"image",minWidth:90},{title:"砍价名称",key:"title",minWidth:130},{title:"砍价价格",key:"price",minWidth:100},{title:"最低价",key:"min_price",minWidth:100},{title:"参与人数",key:"count_people_all",minWidth:100},{title:"帮忙砍价人数",key:"count_people_help",minWidth:100},{title:"砍价成功人数",key:"count_people_success",minWidth:100},{title:"限量",key:"quota_show",minWidth:100},{title:"限量剩余",key:"quota",minWidth:100},{title:"活动状态",slot:"start_name",minWidth:100},{title:"结束时间",slot:"stop_time",minWidth:150},{title:"上架状态",slot:"status",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:160}],tableList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},tableFrom:{status:"",store_name:"",page:1,limit:15},tableFrom2:{status:"",store_name:"",export:1},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_bargain/create"})},exportList:function(){var t=this;return Object(n.a)(Object(a.a)().mark((function e(){var r,n,i,o,s,l,c;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.tableFrom.status=t.tableFrom.status||"",r=[],n=[],i=[],o="",(s=JSON.parse(JSON.stringify(t.tableFrom))).page=1,s.limit=50,l=0;case 6:if(l<s.page+1)return e.next=9,t.getExcelData(s);e.next=23;break;case 9:c=e.sent,o=o||c.filename,n.length||(n=c.fileKey),r.length||(r=c.header),c.export.length?(i=i.concat(c.export),s.page++,e.next=20):e.next=18;break;case 18:return t.$exportExcel(r,n,o,i),e.abrupt("return");case 20:l++,e.next=6;break;case 23:case"end":return e.stop()}}),e)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(c.a)(t).then((function(t){e(t.data)}))}))},edit:function(t,e){this.$router.push({path:this.$routeProStr+"/marketing/store_bargain/create/".concat(t.id,"/").concat(e)})},del:function(t,e,r){var a=this;e={title:e,num:r,url:"marketing/bargain/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.tableList.splice(r,1)})).catch((function(t){a.$message.error(t.msg)}))},viewInfo:function(t){this.$router.push({path:this.$routeProStr+"/marketing/store_bargain/statistics/"+t.id})},getList:function(){var t=this;this.loading=!0,this.tableFrom.status=this.tableFrom.status||"",Object(s.e)(this.tableFrom).then(function(){var e=Object(n.a)(Object(a.a)().mark((function e(r){var n;return Object(a.a)().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)}))},userSearchs:function(){this.tableFrom.page=1,this.getList()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(s.f)(t).then(function(){var t=Object(n.a)(Object(a.a)().mark((function t(r){return Object(a.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(r.msg),e.getList();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("7da3"),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":t.labelPosition,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:{clearable:"",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_bargain-create"],expression:"['marketing-store_bargain-create']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加砍价商品")]),e("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["export-storeBargain"],expression:"['export-storeBargain']"}],staticClass:"export",attrs:{icon:"ios-share-outline"},on:{click:t.exportList}},[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("div",[t._v(t._s(r.row.id))])]}}])}),e("el-table-column",{attrs:{label:"砍价图片","min-width":"80"},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":"150"},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("div",[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("div",[t._v(t._s(r.row.min_price))])]}}])}),e("el-table-column",{attrs:{label:"参与人数","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",[t._v(t._s(r.row.count_people_all))])]}}])}),e("el-table-column",{attrs:{label:"帮忙砍价人数","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",[t._v(t._s(r.row.count_people_help))])]}}])}),e("el-table-column",{attrs:{label:"砍价成功人数","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",[t._v(t._s(r.row.count_people_success))])]}}])}),e("el-table-column",{attrs:{label:"限量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",[t._v(t._s(r.row.quota_show))])]}}])}),e("el-table-column",{attrs:{label:"限量剩余","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",[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("el-tag",{directives:[{name:"show",rawName:"v-show",value:"进行中"===r.row.start_name,expression:"scope.row.start_name === '进行中'"}],attrs:{size:"medium"}},[t._v("进行中")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:"未开始"===r.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:"已结束"===r.row.start_name,expression:"scope.row.start_name === '已结束'"}],attrs:{size:"medium",type:"info"}},[t._v("已结束")])]}}])}),e("el-table-column",{attrs:{label:"结束时间","min-width":"120"},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",{attrs:{"active-value":1,"inactive-value":0,value:r.row.status,disabled:!!r.row.stop_status,size:"large"},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,0)}}},[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.edit(r.row,1)}}},[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,"212c67e0",null);e.default=r.exports},"4d63":function(t,e,r){"use strict";var a=r("83ab"),n=r("da84"),i=r("e330"),o=r("94ca"),s=r("7156"),l=r("9112"),c=r("241c").f,u=r("3a9b"),d=r("44e7"),m=r("577e"),f=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"),y=r("fce3"),k=r("107c"),S=x("match"),O=n.RegExp,j=O.prototype,E=n.SyntaxError,$=i(j.exec),F=i("".charAt),R=i("".replace),W=i("".indexOf),D=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,C=/a/g,L=/a/g,N=(r=new O(C)!==C,p.MISSED_STICKY),M=p.UNSUPPORTED_Y;x=a&&(!r||N||y||k||g((function(){return L[S]=!1,O(C)!==C||O(L)===L||"/a/i"!==String(O(C,"i"))})));if(o("RegExp",x)){for(var P=function(t,e){var r,a,n=u(j,this),i=d(t),o=void 0===e,c=[],p=t;if(!n&&i&&o&&t.constructor===P)return t;if((i||u(j,t))&&(t=t.source,o)&&(e=f(p)),t=void 0===t?"":m(t),e=void 0===e?"":m(e),p=t,i=e=y&&"dotAll"in C&&(r=!!e&&-1<W(e,"s"))?R(e,/s/g,""):e,N&&"sticky"in C&&(a=!!e&&-1<W(e,"y"))&&M&&(e=R(e,/y/g,"")),k&&(t=(o=function(t){for(var e,r=t.length,a=0,n="",i=[],o={},s=!1,l=!1,c=0,u="";a<=r;a++){if("\\"===(e=F(t,a)))e+=F(t,++a);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:$(I,D(t,a+1))&&(a+=2,l=!0),n+=e,c++;continue;case">"===e&&l:if(""===u||v(o,u))throw new E("Invalid capture group name");o[u]=!0,l=!(i[i.length]=[u,c]),u="";continue}l?u+=e:n+=e}return[n,i]}(t))[0],c=o[1]),o=s(O(t,e),n?this:j,P),(r||a||c.length)&&(e=_(o),r&&(e.dotAll=!0,e.raw=P(function(t){for(var e,r=t.length,a=0,n="",i=!1;a<=r;a++)"\\"===(e=F(t,a))?n+=e+F(t,++a):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),n+=e):n+="[\\s\\S]";return n}(t),i)),a&&(e.sticky=!0),c.length)&&(e.groups=c),t!==p)try{l(o,"source",""===p?"(?:)":p)}catch(t){}return o},q=c(O),z=0;q.length>z;)b(P,O,q[z++]);(j.constructor=P).prototype=j,h(n,"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 l})),r.d(e,"b",(function(){return c}));var a=r("ade3"),n=r("5530");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r,a,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(r in n)new RegExp("(".concat(r,")")).test(e)&&(a=n[r]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.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 l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.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 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(a.a)({},e,t);return Object(n.a)(Object(n.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}),{})},"7da3":function(t,e,r){"use strict";r("1125")},c607:function(t,e,r){"use strict";var a=r("83ab"),n=r("fce3"),i=r("c6b6"),o=r("edd0"),s=r("69f3").get,l=RegExp.prototype,c=TypeError;a&&n&&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")}}})}}]);