(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["promotion-turntable-lottery","chunk-ae7cb8dc","chunk-ae7cb8dc"],{1184:function(t,e,a){"use strict";a.d(e,"f",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"c",(function(){return s})),a.d(e,"k",(function(){return d})),a.d(e,"n",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"b",(function(){return b})),a.d(e,"l",(function(){return p})),a.d(e,"o",(function(){return m})),a.d(e,"g",(function(){return f})),a.d(e,"i",(function(){return y})),a.d(e,"d",(function(){return h})),a.d(e,"e",(function(){return v})),a.d(e,"j",(function(){return _})),a.d(e,"m",(function(){return g}));var n=a("b775"),r="/api-p",i={lotteryList:r+"/lottery/list",lotteryCreate:r+"/lottery/create",lotteryDetail:r+"/lottery/detail",lotterySubmitVerify:r+"/lottery/checking",lotteryVerify:r+"/lottery/check",lotteryPause:r+"/lottery/pause",lotteryDelete:r+"/lottery/del",lotteryUpdate:r+"/lottery/update",lotteryVerifyUpdate:r+"/lottery/base-update",lotteryOperationLog:r+"/lottery/loglist",lotteryRecordList:r+"/lottery/award-entity/record-list",lotteryExport:r+"/lottery/customer-take/export",lotteryImport:r+"/lottery/customer-take/logistics-import",lotteryShip:r+"/lottery/award-entity/update-ship-status",lotteryUpdateShipAddress:r+"/lottery/award-entity/update-address"};function o(t){return Object(n["b"])({url:i.lotteryList,method:"get",params:t})}function l(t){return Object(n["b"])({url:i.lotteryCreate,method:"post",data:t})}function s(t){return Object(n["b"])({url:i.lotteryDetail,method:"get",params:t})}function d(t){return Object(n["b"])({url:i.lotterySubmitVerify,method:"post",data:t})}function c(t){return Object(n["b"])({url:i.lotteryVerify,method:"post",data:t})}function u(t){return Object(n["b"])({url:i.lotteryPause,method:"post",data:t})}function b(t){return Object(n["b"])({url:i.lotteryDelete,method:"post",data:t})}function p(t){return Object(n["b"])({url:i.lotteryUpdate,method:"post",data:t})}function m(t){return Object(n["b"])({url:i.lotteryVerifyUpdate,method:"post",data:t})}function f(t){return Object(n["b"])({url:i.lotteryOperationLog,method:"get",params:t})}function y(t){return Object(n["b"])({url:i.lotteryRecordList,method:"get",params:t})}function h(t){return Object(n["b"])({url:i.lotteryExport,method:"post",data:t})}function v(t){return Object(n["b"])({url:i.lotteryImport,method:"post",data:t})}function _(t){return Object(n["b"])({url:i.lotteryShip,method:"post",data:t})}function g(t){return Object(n["b"])({url:i.lotteryUpdateShipAddress,method:"post",data:t})}},"22c1":function(t,e,a){"use strict";a("8d8d")},5633:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customBread"},[a("div",{staticClass:"page-header clearfix"},[a("div",{staticClass:"page-header-index-wide",staticStyle:{float:"left"}},[a("a-breadcrumb",{staticClass:"breadcrumb"},t._l(t.breadList.loopBread,(function(e){return a("a-breadcrumb-item",{key:e.name},[e.href?a("router-link",{attrs:{to:{path:e.href}}},[t._v("\n "+t._s(e.title)+"\n ")]):a("span",[t._v(t._s(e.title))])],1)})),1),a("div",{staticClass:"detail"},[a("div",{staticClass:"customBreadcrumb-current"},[a("h1",{staticClass:"title"},[t._v(t._s(t.breadList.current))]),t.breadList.showNote&&t.breadList.isText?a("a-tooltip",{attrs:{placement:"bottomLeft"}},[a("template",{slot:"title"},[a("div",{domProps:{innerHTML:t._s(t.noteRender())}})]),a("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):t.breadList.showNote?a("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[a("template",{slot:"content"},[a("div",{domProps:{innerHTML:t._s(t.noteRender())}})]),a("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):t._e()],1)])],1),a("div",{staticClass:"customBreadRight"},[t._t("default")],2)])])},r=[],i={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var t=this.breadList.current;switch(t){case"热搜词":return'\n
\n
\n
\n

\n
\n
\n
\n ';case"搜索暗文":return'\n \n
\n
\n

\n
\n
\n
\n ';case"搜索跳转":return'\n \n
\n
\n 设置搜索词跳转到指定的落地页\n
\n
\n
\n ';case"搜索联想词":return'\n \n
\n
\n

\n
\n
\n
\n ';case"热推商品":return'\n \n
\n
\n 搜索商品列表页、运营分类商品列表页、品牌商品列表页、店铺商品列表页的商品,优先展示热推商品,同为热推商品,按排序值由小到大展示。\n
\n
\n
\n ';case"搜索无结果关联词":return'\n \n
\n
\n

\n
\n
\n
\n ';case"商品排序得分":return'\n \n
\n
商品综合排序规则说明:
\n
\n - 无库存商品,排在有库存商品之后
\n - 热推商品展示在前,非热推商品展示在后;热推商品按热推商品排序值由小到大排序
\n - 运营分类商品列表:按运营分类人工排值由小到大排序(不适用搜索商品列表页、品牌商品列表页、店铺商品列表页)
\n - \n 排序值相同,按系统自动计算的商品排序得分由大到小排序。
\n 商品排序得分="0.7*支付件数+0.03*下单件数+0.02*加购件数+0.05*访问uv+0.2*新品得分(新品=1,否则=0)
\n 支付件数:最近一年已支付状态订单的sku件数合计
\n 下单件数:最近一年所有状态订单的sku件数合计
\n 加购件数:最近一年加入购物车的sku件数合计
\n 访问uv:最近一年商品浏览访问uv合计
\n 新品得分:新品=1,否则=0。设置新品规则 >>\n \n - 若人工排序值和系统排序值都相同,则按照搜索引擎返回的顺序排序
\n
\n
\n
\n ';case"异款SPU规则":return'\n \n
\n
\n 将属于规则设置范围内,且属于同一店铺、同一品牌、同一品类,且符合价格最大极差的不同款商品,聚合成一个SPU商品\n
\n
\n
\n ';case"主图视频":return'\n \n
\n
\n 按SPU编码维度,通过第三方视频生成服务,使用商品主图生成主图视频\n
\n
\n
\n ';default:return""}}}},o=i,l=(a("22c1"),a("2877")),s=Object(l["a"])(o,n,r,!1,null,"ceaaba20",null);e["a"]=s.exports},"8d8d":function(t,e,a){},ac45:function(t,e,a){"use strict";a.d(e,"i",(function(){return n})),a.d(e,"l",(function(){return r})),a.d(e,"j",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"k",(function(){return d})),a.d(e,"g",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"a",(function(){return b})),a.d(e,"e",(function(){return l})),a.d(e,"c",(function(){return s})),a.d(e,"f",(function(){return p})),a.d(e,"b",(function(){return m}));var n=[{id:0,label:"全部"},{id:1,label:"新建"},{id:2,label:"待审核"},{id:3,label:"审核通过"},{id:4,label:"审核拒绝"},{id:5,label:"已暂停"},{id:6,label:"活动中"},{id:7,label:"已结束"}],r=[{id:0,label:"全部"},{id:1,label:"免费抽奖"},{id:2,label:"积分抽奖"}],i=[{title:"活动ID",dataIndex:"activity_id",align:"left",width:"75px"},{title:"活动标题",dataIndex:"title",width:"18%",align:"left",scopedSlots:{customRender:"titleSlot"}},{title:"状态",dataIndex:"status",align:"left",width:"90px",scopedSlots:{customRender:"statusSlot"}},{title:"中奖人数",dataIndex:"winner_count",align:"left",width:"11%",sorter:!0,sortDirections:["descend","ascend"],scopedSlots:{customRender:"numberFormatSlot"}},{title:"抽奖人数",dataIndex:"lottery_count",align:"left",width:"11%",sorter:!0,sortDirections:["descend","ascend"],scopedSlots:{customRender:"numberFormatSlot"}},{title:"消耗积分",dataIndex:"used_points",align:"left",width:"11%",sorter:!0,sortDirections:["descend","ascend"],scopedSlots:{customRender:"numberFormatSlot"}},{title:"活动时间",dataIndex:"started_at",width:"20%",align:"left",scopedSlots:{customRender:"timeSlot"}},{title:"操作",dataIndex:"ended_at",width:"170px",align:"left",scopedSlots:{customRender:"operatorSlot"}}],o={current:"新建大转盘",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"营销"},{name:"3",title:"大转盘",href:"/promotion/turntableLottery/list"},{name:"4",title:"新建大转盘"}]},l={current:"编辑大转盘",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"营销"},{name:"3",title:"大转盘",href:"/promotion/turntableLottery/list"},{name:"4",title:"编辑大转盘"}]},s={current:"复制大转盘",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"营销"},{name:"3",title:"大转盘",href:"/promotion/turntableLottery/list"},{name:"4",title:"复制大转盘"}]},d=[{label:"0:00",value:"0:00"},{label:"8:00",value:"8:00"},{label:"9:00",value:"9:00"},{label:"9:30",value:"9:30"},{label:"10:00",value:"10:00"},{label:"18:00",value:"18:00"},{label:"22:00",value:"22:00"}],c=[{title:"位置",dataIndex:"award_sort",align:"center",width:"60px"},{title:"奖品图片",dataIndex:"image",align:"center",scopedSlots:{customRender:"imageSlot"},width:"90px"},{title:"奖品名称",dataIndex:"name",align:"left",scopedSlots:{customRender:"nameSlot"},width:"12%"},{title:"奖品类型",dataIndex:"award_type",align:"left",width:"100px",scopedSlots:{customRender:"awardTypeSlot"}},{title:"中奖数量/总数量",dataIndex:"num_concat",align:"left",width:"12%",scopedSlots:{customRender:"lotteryNumSlot"}},{title:"每天限制中奖数量",dataIndex:"win_times_per_day",align:"left",width:"105px",scopedSlots:{customRender:"winTimesSlot"}},{title:"中奖概率",dataIndex:"probability",align:"left",width:"95px",scopedSlots:{customRender:"probabilitySlot"}},{title:"模拟中奖名单",dataIndex:"fake_data",align:"left",width:"100px",scopedSlots:{customRender:"fakeDataSlot"}},{title:"中奖提示",dataIndex:"win_tips",align:"left",scopedSlots:{customRender:"tipSlot"},width:"12%"},{title:"操作",dataIndex:"operation",align:"left",width:"180px",scopedSlots:{customRender:"actionSolt"}}],u=[{id:0,label:"谢谢参与"},{id:1,label:"优惠券"},{id:2,label:"实物"},{id:3,label:"积分"}],b=[{id:0,label:"红色促销"},{id:1,label:"金色轻奢"},{id:2,label:"简约清新"},{id:3,label:"自定义"}],p=[{title:"抽奖记录ID",dataIndex:"id",align:"left",width:"8%"},{title:"用户",dataIndex:"user",align:"left",width:"160px",scopedSlots:{customRender:"userSlot"}},{title:"奖品信息",dataIndex:"awardInfo",align:"left",width:"16%",scopedSlots:{customRender:"awardInfoSlot"}},{title:"消耗积分",dataIndex:"use_points",align:"left",width:"90px",scopedSlots:{customRender:"usePointSlot"}},{title:"中奖时间",dataIndex:"draw_time",align:"left",width:"12%"},{title:"发货状态",dataIndex:"ship_status",align:"left",width:"110px",scopedSlots:{customRender:"shipStatusSlot"}},{title:"发货信息",dataIndex:"shipInfo",align:"left",width:"16%",scopedSlots:{customRender:"shipInfoSlot"}},{title:"操作",dataIndex:"operation",align:"left",width:"130px",scopedSlots:{customRender:"operationSlot"}}],m=[{title:"位置",dataIndex:"award_sort",align:"center",width:"60px"},{title:"奖品图片",dataIndex:"image",align:"center",scopedSlots:{customRender:"imageSlot"},width:"80px"},{title:"奖品名称",dataIndex:"name",align:"left",scopedSlots:{customRender:"nameSlot"},width:"13%"},{title:"奖品类型",dataIndex:"award_type",align:"left",width:"90px",scopedSlots:{customRender:"awardTypeSlot"}},{title:"中奖数量/总数量",dataIndex:"num_concat",align:"left",width:"120px",scopedSlots:{customRender:"lotteryNumSlot"}},{title:"每天限制中奖数量",dataIndex:"win_times_per_day",align:"left",width:"130px",scopedSlots:{customRender:"winTimesSlot"}},{title:"中奖概率",dataIndex:"probability",align:"left",width:"90px",scopedSlots:{customRender:"probabilitySlot"}},{title:"模拟中奖名单",dataIndex:"fake_data",align:"left",width:"110px",scopedSlots:{customRender:"fakeDataSlot"}},{title:"中奖提示",dataIndex:"win_tips",align:"left",scopedSlots:{customRender:"tipSlot"},width:"13%"}]},d83e:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("custom-bread",{attrs:{breadList:t.breadList}}),a("div",{staticClass:"customContent"},[a("a-layout",{style:{background:"#f0f2f5"}},[a("a-layout-content",{style:{background:"#fff",marginBottom:"16px",padding:"24px"}},[a("div",{staticClass:"tableForm"},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("活动ID")]),a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:t.queryParam.activity_id,callback:function(e){t.$set(t.queryParam,"activity_id",e)},expression:"queryParam.activity_id"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("活动标题")]),a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"状态"}},[a("a-select",{attrs:{placeholder:"请选择"},model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},t._l(t.statusSet,(function(e){return a("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.label))])})),1)],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"活动类型"}},[a("a-select",{attrs:{placeholder:"请选择"},model:{value:t.queryParam.activity_type,callback:function(e){t.$set(t.queryParam,"activity_type",e)},expression:"queryParam.activity_type"}},t._l(t.typeSet,(function(e){return a("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.label))])})),1)],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"活动时间"}},[a("a-range-picker",{staticStyle:{width:"100%"},attrs:{format:"YYYY-MM-DD"},model:{value:t.dateArr,callback:function(e){t.dateArr=e},expression:"dateArr"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("新建人")]),a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:t.queryParam.operator,callback:function(e){t.$set(t.queryParam,"operator",e)},expression:"queryParam.operator"}})],1)],1)],1),a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("div",{staticClass:"page-user-button"},[a("a-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("查询")]),a("a-button",{on:{click:t.reset}},[t._v("重置")])],1)])],1)],1)],1)])]),a("a-layout-content",{style:{background:"#fff",padding:"24px"}},[a("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"promotion_new:/lottery/create",expression:"'promotion_new:/lottery/create'"}],staticStyle:{"margin-bottom":"24px"},attrs:{type:"primary"},on:{click:t.enterCreate}},[t._v("新建")]),a("a-table",{ref:"table",attrs:{dataSource:t.dataSource,columns:t.columns,pagination:t.paginationSet,rowKey:"activity_id",loading:t.loading},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"titleSlot",fn:function(e,n){return[e?[a("a-tooltip",[a("template",{slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px",color:"#1890ff"}},[a("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.onCheck(n)}}},[t._v(" "+t._s(e))])])],2)]:[a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("stringFilter")(e)))])]]}},{key:"statusSlot",fn:function(e){return[a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("statusFilter")(e)))])]}},{key:"numberFormatSlot",fn:function(e){return[a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("NumberFormat")(e)))])]}},{key:"timeSlot",fn:function(e,n){return[[a("a-tooltip",[a("template",{slot:"title"},[t._v("\n "+t._s(n.started_at)+" ~ "+t._s(n.ended_at)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v("\n "+t._s(n.started_at)+"\n ~\n "+t._s(n.ended_at)+"\n ")])],2)]]}},{key:"operatorSlot",fn:function(e,n){return[a("a",{directives:[{name:"permission",rawName:"v-permission",value:"promotion_new:/lottery/detail",expression:"'promotion_new:/lottery/detail'"}],attrs:{href:"javascript:;"},on:{click:function(e){return t.onCheck(n)}}},[t._v("查看")]),a("a",{directives:[{name:"permission",rawName:"v-permission",value:"promotion_new:/lottery/record",expression:"'promotion_new:/lottery/record'"}],staticStyle:{padding:"0 12px"},attrs:{href:"javascript:;"},on:{click:function(e){return t.onRecord(n)}}},[t._v("抽奖记录")]),a("a",{directives:[{name:"permission",rawName:"v-permission",value:"promotion_new:/lottery/copy",expression:"'promotion_new:/lottery/copy'"}],attrs:{href:"javascript:;"},on:{click:function(e){return t.onCopy(n)}}},[t._v("复制")])]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.query.page,computedPageNumber:t.computedPageNumber,pageSize:t.query.size},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}})],1)],1)],1)],1)},r=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("386d"),a("ade3")),o=a("c1df"),l=a.n(o),s=a("5633"),d=a("bf43"),c=a("ac0d"),u=a("ac45"),b=a("1184");function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function m(t){for(var e=1;e0?(this.queryParam.start_at=l()(t[0]).format("YYYY-MM-DD"),this.queryParam.end_at=l()(t[1]).format("YYYY-MM-DD")):(this.queryParam.start_at="",this.queryParam.end_at="")}}},y=f,h=a("2877"),v=Object(h["a"])(y,n,r,!1,null,null,null);e["default"]=v.exports}}]);