CRMEB/crmeb/public/admin/js/chunk-6760844d.e36e7b89.js
2021-07-13 16:49:21 +08:00

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6760844d"],{"291e":function(t,e,n){},"3b2b":function(t,e,n){var r=n("7726"),o=n("5dbc"),a=n("86cc").f,i=n("9093").f,c=n("aae3"),u=n("0bfb"),s=r.RegExp,l=s,d=s.prototype,m=/a/g,f=/a/g,g=new s(m)!==m;if(n("9e1e")&&(!g||n("79e5")((function(){return f[n("2b4c")("match")]=!1,s(m)!=m||s(f)==f||"/a/i"!=s(m,"i")})))){s=function(t,e){var n=this instanceof s,r=c(t),a=void 0===e;return!n&&r&&t.constructor===s&&a?t:o(g?new l(r&&!a?t.source:t,e):l((r=t instanceof s)?t.source:t,r&&a?u.call(t):e),n?this:d,s)};for(var p=function(t){t in s||a(s,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},h=i(l),b=0;h.length>b;)p(h[b++]);d.constructor=s,s.prototype=d,n("2aba")(r,"RegExp",s)}n("7a56")("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return d}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86");n("6b54"),n("3b2b"),n("a481");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(new RegExp("(".concat(r,")")).test(e)){var o=n[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?o:c(o))}return e}function c(t){return("00"+t).substr(t.length)}var u={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};var s=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a({required:!0,message:t,type:"string"},e)}function d(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(l,"请输入%s"),s(d,"%s格式不正确");var m=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:Object(r["a"])({},e,t);return a(a({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i),o)},s(t[e],u[e]),t}),{})},"82f1":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"拼团状态:",clearable:""}},[n("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[n("Option",{attrs:{value:1}},[t._v("开启")]),n("Option",{attrs:{value:0}},[t._v("关闭")])],1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"商品搜索:",prop:"store_name","label-for":"store_name"}},[n("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入请输入商品名称,ID"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1)],1),n("Row",{attrs:{type:"flex"}},[n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["marketing-store_combination-create"],expression:"['marketing-store_combination-create']"}],staticClass:"bnt mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加拼团商品")]),n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-storeCombination"],expression:"['export-storeCombination']"}],staticClass:"export",attrs:{icon:"ios-share-outline"},on:{click:t.exports}},[t._v("导出")])],1)],1),n("Table",{staticClass:"mt25",attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"is_fail",fn:function(t){var e=t.row;t.index;return[1===e.is_fail?n("Icon",{attrs:{type:"md-checkmark",color:"#0092DC",size:"14"}}):n("Icon",{attrs:{type:"md-close",color:"#ed5565",size:"14"}})]}},{key:"image",fn:function(t){var e=t.row;t.index;return[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])]}},{key:"stop_time",fn:function(e){var r=e.row;e.index;return[n("span",[t._v(" "+t._s(t._f("formatDate")(r.stop_time)))])]}},{key:"is_show",fn:function(e){var r=e.row;e.index;return[n("i-switch",{attrs:{value:r.is_show,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r)}},model:{value:r.is_show,callback:function(e){t.$set(r,"is_show",e)},expression:"row.is_show"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(e){var r=e.row,o=e.index;return[0===r.stop_status?n("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]):t._e(),0===r.stop_status?n("Divider",{attrs:{type:"vertical"}}):t._e(),n("a",{on:{click:function(e){return t.copy(r)}}},[t._v("复制")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(r,"删除拼团商品",o)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)],1)},o=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),i=n("bd86"),c=n("b7be"),u=n("2f62"),s=n("61f7");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m={name:"index",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(s["a"])(e,"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:"",columns1:[{title:"ID",key:"id",width:80},{title:"拼团图片",slot:"image",minWidth:90},{title:"拼团名称",key:"title",minWidth:130},{title:"原价",key:"ot_price",minWidth:100},{title:"拼团价",key:"price",minWidth:120},{title:"拼团人数",key:"count_people",minWidth:100},{title:"参与人数",key:"count_people_all",minWidth:100},{title:"成团数量",key:"count_people_pink",minWidth:100},{title:"限量",key:"quota_show",minWidth:100},{title:"限量剩余",key:"quota",minWidth:100},{title:"结束时间",slot:"stop_time",minWidth:150},{title:"状态",slot:"is_show",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:170}],tableList:[],total:0,statisticsList:[]}},computed:d(d({},Object(u["e"])("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),created:function(){this.getList()},methods:{exports:function(){var t=this,e=this.formValidate,n={is_show:e.is_show,store_name:e.store_name};Object(c["F"])(n).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))},add:function(){this.$router.push({path:"/admin/marketing/store_combination/create"})},edit:function(t){this.$router.push({path:"/admin/marketing/store_combination/create/"+t.id+"/0"})},copy:function(t){this.$router.push({path:"/admin/marketing/store_combination/create/"+t.id+"/1"})},del:function(t,e,n){var r=this,o={title:e,num:n,url:"marketing/combination/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).then((function(t){r.$Message.success(t.msg),r.tableList.splice(n,1)})).catch((function(t){r.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(c["i"])(this.formValidate).then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,t.tableList=r.list,t.total=n.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.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},onchangeIsShow:function(t){var e=this,n={id:t.id,status:t.is_show};Object(c["j"])(n).then(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(n.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)}))}}},f=m,g=(n("a928"),n("2877")),p=Object(g["a"])(f,r,o,!1,null,"624f6384",null);e["default"]=p.exports},a928:function(t,e,n){"use strict";n("291e")},b7be:function(t,e,n){"use strict";n.d(e,"p",(function(){return o})),n.d(e,"m",(function(){return a})),n.d(e,"o",(function(){return i})),n.d(e,"r",(function(){return c})),n.d(e,"x",(function(){return u})),n.d(e,"y",(function(){return s})),n.d(e,"s",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"q",(function(){return m})),n.d(e,"n",(function(){return f})),n.d(e,"I",(function(){return g})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return b})),n.d(e,"d",(function(){return v})),n.d(e,"i",(function(){return O})),n.d(e,"j",(function(){return k})),n.d(e,"E",(function(){return j})),n.d(e,"h",(function(){return _})),n.d(e,"g",(function(){return w})),n.d(e,"k",(function(){return y})),n.d(e,"v",(function(){return x})),n.d(e,"B",(function(){return E})),n.d(e,"A",(function(){return P})),n.d(e,"z",(function(){return $})),n.d(e,"C",(function(){return C})),n.d(e,"t",(function(){return D})),n.d(e,"u",(function(){return S})),n.d(e,"D",(function(){return T})),n.d(e,"w",(function(){return V})),n.d(e,"f",(function(){return M})),n.d(e,"e",(function(){return R})),n.d(e,"J",(function(){return W})),n.d(e,"H",(function(){return G})),n.d(e,"F",(function(){return I})),n.d(e,"G",(function(){return L}));var r=n("6b6c");function o(t){return Object(r["a"])({url:"marketing/coupon/list",method:"get",params:t})}function a(t){return Object(r["a"])({url:"marketing/coupon/create/".concat(t),method:"get"})}function i(t){return Object(r["a"])({url:"marketing/coupon/".concat(t,"/edit"),method:"get"})}function c(t){return Object(r["a"])({url:"marketing/coupon/issue/".concat(t),method:"get"})}function u(t){return Object(r["a"])({url:"marketing/coupon/released",method:"get",params:t})}function s(t){return Object(r["a"])({url:"marketing/coupon/released/issue_log/".concat(t),method:"get"})}function l(t){return Object(r["a"])({url:"marketing/coupon/status/".concat(t.id,"/").concat(t.status),method:"get"})}function d(t){return Object(r["a"])({url:"product/category/tree/".concat(t),method:"get"})}function m(t){return Object(r["a"])({url:"marketing/coupon/save_coupon",method:"post",data:t})}function f(t){return Object(r["a"])({url:"marketing/coupon/copy/".concat(t),method:"get"})}function g(t){return Object(r["a"])({url:"/marketing/coupon/user",method:"get",params:t})}function p(t){return Object(r["a"])({url:"marketing/bargain",method:"get",params:t})}function h(t){return Object(r["a"])({url:"marketing/bargain/".concat(t),method:"get"})}function b(t){return Object(r["a"])({url:"marketing/bargain/".concat(t.id),method:"POST",data:t})}function v(t){return Object(r["a"])({url:"marketing/bargain/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function O(t){return Object(r["a"])({url:"marketing/combination",method:"get",params:t})}function k(t){return Object(r["a"])({url:"marketing/combination/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(){return Object(r["a"])({url:"marketing/combination/statistics",method:"GET"})}function _(t){return Object(r["a"])({url:"marketing/combination/".concat(t),method:"get"})}function w(t){return Object(r["a"])({url:"marketing/combination/".concat(t.id),method:"POST",data:t})}function y(t){return Object(r["a"])({url:"marketing/combination/combine/list",method:"GET",params:t})}function x(t){return Object(r["a"])({url:"marketing/combination/order_pink/".concat(t),method:"GET"})}function E(t){return Object(r["a"])({url:"marketing/seckill",method:"GET",params:t})}function P(t){return Object(r["a"])({url:"marketing/seckill/".concat(t),method:"GET"})}function $(t){return Object(r["a"])({url:"marketing/seckill/".concat(t.id),method:"post",data:t})}function C(t){return Object(r["a"])({url:"marketing/seckill/set_status/".concat(t.id,"/").concat(t.status),method:"put"})}function D(t){return Object(r["a"])({url:"marketing/integral",method:"GET",params:t})}function S(t){return Object(r["a"])({url:"marketing/integral/statistics",method:"GET",params:t})}function T(){return Object(r["a"])({url:"marketing/seckill/time_list",method:"GET"})}function V(t,e){return Object(r["a"])({url:"product/product/attrs/".concat(t,"/").concat(e),method:"GET"})}function M(t){return Object(r["a"])({url:"marketing/bargain_list",method:"get",params:t})}function R(t){return Object(r["a"])({url:"marketing/bargain_list_info/".concat(t),method:"get"})}function W(t){return Object(r["a"])({url:"export/userPoint",method:"get",params:t})}function G(t){return Object(r["a"])({url:"export/storeBargain",method:"get",params:t})}function I(t){return Object(r["a"])({url:"export/storeCombination",method:"get",params:t})}function L(t){return Object(r["a"])({url:"export/storeSeckill",method:"get",params:t})}}}]);