CRMEB/crmeb/public/admin/system_static/js/chunk-00542f4f.64e2871d.js
2025-06-19 17:25:41 +08:00

1 line
15 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-00542f4f"],{"2c3e":function(t,e,r){var a=r("83ab"),n=r("9f7f").MISSED_STICKY,i=r("c6b6"),o=r("edd0"),s=r("69f3").get,c=RegExp.prototype,l=TypeError;a&&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")}}})},"3f2a":function(t,e,r){r.d(e,"h",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"f",(function(){return s})),r.d(e,"e",(function(){return c})),r.d(e,"j",(function(){return l})),r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return d})),r.d(e,"g",(function(){return f})),r.d(e,"i",(function(){return m}));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 c(t){return Object(a.a)({url:"/product/product_export",method:"get",params:t})}function l(t){return Object(a.a)({url:"/product/product_import",method:"post",data:t})}function u(t){return Object(a.a)({url:"/export/bargain_list",method:"get",params:t})}function d(t){return Object(a.a)({url:"/export/combination_list",method:"get",params:t})}function f(t){return Object(a.a)({url:"/export/seckill_list",method:"get",params:t})}function m(t){return Object(a.a)({url:"/export/member_card/".concat(t),method:"get"})}},"4d63":function(t,e,r){var a=r("83ab"),n=r("da84"),i=r("e330"),o=r("94ca"),s=r("7156"),c=r("9112"),l=r("7c73"),u=r("241c").f,d=r("3a9b"),f=r("44e7"),m=r("577e"),p=r("90d8"),h=r("9f7f"),b=r("aeb0"),g=r("cb2d"),v=r("d039"),w=r("1a2d"),_=r("69f3").enforce,x=r("2626"),k=r("b622"),y=r("fce3"),S=r("107c"),O=k("match"),j=n.RegExp,$=j.prototype,E=n.SyntaxError,N=i($.exec),V=i("".charAt),R=i("".replace),C=i("".indexOf),I=i("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,M=/a/g,P=(r=new j(L)!==L,h.MISSED_STICKY),z=h.UNSUPPORTED_Y;k=a&&(!r||P||y||S||v((function(){return M[O]=!1,j(L)!==L||j(M)===M||"/a/i"!==String(j(L,"i"))})));if(o("RegExp",k)){for(var T=function(t,e){var r,a,n=d($,this),i=f(t),o=void 0===e,u=[],h=t;if(!n&&i&&o&&t.constructor===T)return t;if((i||d($,t))&&(t=t.source,o)&&(e=p(h)),t=void 0===t?"":m(t),e=void 0===e?"":m(e),h=t,i=e=y&&"dotAll"in L&&(r=!!e&&-1<C(e,"s"))?R(e,/s/g,""):e,P&&"sticky"in L&&(a=!!e&&-1<C(e,"y"))&&z&&(e=R(e,/y/g,"")),S&&(t=(o=function(t){for(var e,r=t.length,a=0,n="",i=[],o=l(null),s=!1,c=!1,u=0,d="";a<=r;a++){if("\\"===(e=V(t,a)))e+=V(t,++a);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:N(D,I(t,a+1))&&(a+=2,c=!0),n+=e,u++;continue;case">"===e&&c:if(""===d||w(o,d))throw new E("Invalid capture group name");o[d]=!0,c=!(i[i.length]=[d,u]),d="";continue}c?d+=e:n+=e}return[n,i]}(t))[0],u=o[1]),o=s(j(t,e),n?this:$,T),(r||a||u.length)&&(e=_(o),r&&(e.dotAll=!0,e.raw=T(function(t){for(var e,r=t.length,a=0,n="",i=!1;a<=r;a++)"\\"===(e=V(t,a))?n+=e+V(t,++a):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),n+=e):n+="[\\s\\S]";return n}(t),i)),a&&(e.sticky=!0),u.length)&&(e.groups=u),t!==h)try{c(o,"source",""===h?"(?:)":h)}catch(t){}return o},q=u(j),A=0;q.length>A;)b(T,j,q[A++]);($.constructor=T).prototype=$,g(n,"RegExp",T,{constructor:!0})}x("RegExp")},"61f7":function(t,e,r){r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return l}));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("99af"),r("13d5"),r("b64b"),r("d3b7"),r("4d63"),r("c607"),r("ac1f"),r("2c3e"),r("00b4"),r("25f0"),r("5319"),r("498a");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 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}),{})},"82f1":function(t,e,r){r.r(e);var a=r("c7eb"),n=r("1da1"),i=r("5530"),o=(r("99af"),r("14d9"),r("a434"),r("e9c4"),r("b64b"),r("d3b7"),r("b7be")),s=r("2f62"),c=r("61f7"),l=r("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(a.a)().mark((function e(){var r,n,i,o,s,c,l;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],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),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,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,r){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,r){var a=this;e={title:e,num:r,url:"marketing/combination/".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_combination/statistics/"+t.id})},getList:function(){var t=this;this.loading=!0,this.formValidate.product_id=this.$route.params.product_id||"",Object(o.k)(this.formValidate).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.formValidate.page=1,this.getList()},onchangeIsShow:function(t){var e=this,r={id:t.id,status:t.is_show};Object(o.l)(r).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);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(r){e.$message.error(r.msg),t.is_show=!t.is_show}))}}},r("fc97"),s=r("2877"),r=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:"上架状态:"}},[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(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":"130"},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":"130"},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":"80"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.count_people))])]}}])}),e("el-table-column",{attrs:{label:"参与人数","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.count_people_all))])]}}])}),e("el-table-column",{attrs:{label:"成团数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.count_people_pink))])]}}])}),e("el-table-column",{attrs:{label:"限量","min-width":"80"},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":"80"},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("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":"180"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("p",[t._v("开始:"+t._s(r.row.start_time))]),e("p",[t._v("结束:"+t._s(r.row.stop_time))])]}}])}),e("el-table-column",{attrs:{label:"上架状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:r.row.is_show,size:"large","active-text":"上架","inactive-text":"下架"},on:{change:function(e){return t.onchangeIsShow(r.row)}},model:{value:r.row.is_show,callback:function(e){t.$set(r.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(r){return[0===r.row.stop_status?e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],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",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.copy(r.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(r.row,"删除拼团商品",r.$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(r.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,"106d917e",null);e.default=r.exports},"96ca":function(t,e,r){},c607:function(t,e,r){var a=r("83ab"),n=r("fce3"),i=r("c6b6"),o=r("edd0"),s=r("69f3").get,c=RegExp.prototype,l=TypeError;a&&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")}}})},fc97:function(t,e,r){r("96ca")}}]);