(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6339f086","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"22c1":function(t,e,a){"use strict";a("8d8d")},"45fb":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:"table-page-search-wrapper"},[a("a-layout",{style:{marginTop:"24px"}},[a("a-layout-content",{style:{background:"#fff",marginBottom:"16px",padding:"24px"}},[a("a-form",{attrs:{form:t.form,layout:"inline"},on:{submit:t.handleSubmit}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"导入模块"}},[a("a-select",{attrs:{placeholder:"请选择"},model:{value:t.formData.module_id,callback:function(e){t.$set(t.formData,"module_id",e)},expression:"formData.module_id"}},[a("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),t._l(t.selectArr,(function(e){return a("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])}))],2)],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{key:t.changeKey,attrs:{label:"导入类型"}},[a("a-select",{attrs:{placeholder:t.$t("message.PleaSeselect"),showSearch:"",filterOption:t.filterOption},on:{change:t.changeTaskType}},t._l(t.selectSecondArr,(function(e){return a("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"导入文件名称"}},[a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name","string"===typeof e?e.trim():e)},expression:"formData.name"}})],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.formData.status,callback:function(e){t.$set(t.formData,"status",e)},expression:"formData.status"}},[a("a-select-option",{attrs:{value:""}},[t._v("全部")]),a("a-select-option",{attrs:{value:"processing"}},[t._v("任务处理中")]),a("a-select-option",{attrs:{value:"successful"}},[t._v("任务成功")]),a("a-select-option",{attrs:{value:"half_failed"}},[t._v("任务部分失败")]),a("a-select-option",{attrs:{value:"failed"}},[t._v("任务失败")])],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:{placeholder:["开始时间","结束时间"]},model:{value:t.dateArr,callback:function(e){t.dateArr=e},expression:"dateArr"}})]],2)],1)],1),a("div",{staticClass:"page-user-button"},[a("a-button",{style:{marginRight:"8px"},attrs:{type:"primary","html-type":"submit"}},[t._v("查询")]),a("a-button",{on:{click:t.handleReset}},[t._v("重置")])],1)],1)],1),a("a-layout-content",{staticClass:"couponContent",style:{background:"#fff",padding:"24px"}},[a("a-table",{ref:"table",attrs:{dataSource:t.dataSource,columns:t.columns,pagination:t.paginationSet,loading:t.loading,rowKey:"id"},scopedSlots:t._u([{key:"file_name",fn:function(e){return[e?[a("a-tooltip",[a("template",{slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),a("p",{staticClass:"line_table_hidden"},[t._v(t._s(t._f("stringFilter")(e)))])],2)]:[a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[t._v(t._s(t._f("stringFilter")(e)))])]]}},{key:"status",fn:function(e,n){return[a("span",{domProps:{innerHTML:t._s(t.transStatus(e))}}),a("div",{staticStyle:{width:"90px"}},[t.showProgress?a("a-progress",{attrs:{percent:n.process,size:"small",status:"active"}}):t._e()],1)]}},{key:"operation",fn:function(e,n){return["processing"!==n.status?a("span",[n.file_id>0?a("a",{staticStyle:{"margin-right":"6px"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.downLoadTemplate(n.id,n.name,n.ext,1)}}},[t._v("下载文件")]):t._e(),n.error_file_id>0?a("a",{staticStyle:{"margin-right":"6px"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.downLoadTemplate(n.id,n.name,n.ext,2)}}},[t._v("下载错误文件")]):t._e(),n.promotion_file_id>0?a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.downLoadTemplate(n.id,n.name,n.ext,3)}}},[t._v("下载推广链接")]):t._e()]):a("span",[t._v("- -")])]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.query.page,computedPageNumber:t.computedPageNumber,pageSize:t.query.limit},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}})],1)],1)],1)],1)},s=[],r=(a("28a5"),a("bf43")),i=a("5633"),o=a("ac0d"),l=a("bc3a"),c=a.n(l),d=a("90e7"),u=a("c1df"),b=a.n(u),m=[{title:"导入模块",dataIndex:"module",width:"10%"},{title:"导入类型",dataIndex:"type",width:"10%"},{title:"导入文件名称",dataIndex:"name",width:"20%",scopedSlots:{customRender:"name"}},{title:"导入时间",dataIndex:"created_at",width:"15%",scopedSlots:{customRender:"created_at"}},{title:"状态",dataIndex:"status",width:"8%",scopedSlots:{customRender:"status"}},{title:"备注",dataIndex:"remark",width:"10%",scopedSlots:{customRender:"remark"}},{title:"操作",scopedSlots:{customRender:"operation"},width:"27%"}],p={components:{customBread:i["a"],PAgination:r["a"]},mixins:[o["h"]],data:function(){return{breadList:{current:"导入中心",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"数据"},{name:"5",title:"导入中心"}]},form:this.$form.createForm(this),loading:!1,columns:m,downLink:"",queryParam:{action_id:"6,7,8,9,10,11"},dateArr:[],selectArr:[],selectSecondArr:[],selectSecondArrAll:[],formData:{module_id:"0",type_id:"0",name:"",user:"",status:"",begin_at:"",end_at:""},changeKey:-12}},watch:{dateArr:function(t){t.length>0?(this.formData.begin_at=b()(t[0]).format("YYYY-MM-DD"),this.formData.end_at=b()(t[1]).format("YYYY-MM-DD")):(this.formData.begin_at="",this.formData.end_at="")},"formData.module_id":function(t){if(""!==t)for(var e=0;e任务处理中";case"successful":return this.showProgress=!1,'任务成功';case"half_failed":return this.showProgress=!1,'任务部分失败';case"failed":return this.showProgress=!1,'任务失败'}},changeTaskType:function(t){this.formData.type_id=t},resetType:function(){var t=Math.random();this.changeKey=t},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},handleReset:function(){this.formData.dateArr=[],this.formData.module_id="0",this.formData.type_id="0",this.formData.name="",this.formData.user="",this.formData.status="",this.formData.begin_at="",this.formData.end_at="",this.getTableList()},handleSubmit:function(t){void 0!==t&&t.preventDefault(),this.query.page=1,this.getTableList(this.query,this.formData)},getTableList:function(t,e){var a,n=this;this.loading=!0,t&&(a=t),e&&(a=Object.assign(t,e)),Object(d["e"])(a).then((function(t){var e=t.data;e&&(n.loading=!1,n.dataSource=e.items,n.pageTotal=e.total)})).finally((function(){n.loading=!1,n.pollingMethod()}))},downLoadTemplate:function(t,e,a,n){var s=c.a.create({withCredentials:!0,timeout:6e5});s({url:"/api-u2/import-center/task/download",method:"get",responseType:"blob",headers:{"Access-Token":this.$ls.get("token"),"Website-ID":this.$ls.get("website-id")},params:{id:t,file_type:n}}).then((function(t){return new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})})).then((function(t){var s=e.split(".")[0],r=window.URL.createObjectURL(t),i=document.createElement("a");1===n?i.download="".concat(s,".").concat(a):2===n?i.download="".concat(s,"-错误文件.xlsx"):3===n&&(i.download="".concat(s,"-推广链接.xlsx")),i.href=r,i.click()}))},pollingMethod:function(){var t=this.dataSource.filter((function(t){return"processing"===t.status}));if(t.length>0){var e=this;setTimeout((function(){e.getTableList()}),3e3)}}},mounted:function(){var t=this;this.$store.commit("SET_Controller_HddenLanguages",!0),this.$store.commit("SET_Comsumer_Stop_Select_Website",!0),this.$store.commit("SET_Controller_ShowSiteSelect",!1),Object(d["d"])().then((function(e){t.$nextTick((function(){var a=e.data;t.selectArr=a,a.map((function(e){null!==e.types&&e.types.map((function(e){t.selectSecondArr.push(e)}))})),t.selectSecondArrAll=t.selectSecondArr}))}))},beforeRouteLeave:function(t,e,a){this.$store.commit("SET_Controller_HddenLanguages",!1),this.$store.commit("SET_Comsumer_Stop_Select_Website",!1),this.$store.commit("SET_Controller_ShowSiteSelect",!0),a()}},f=p,h=a("2877"),g=Object(h["a"])(f,n,s,!1,null,null,null);e["default"]=g.exports},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)])])},s=[],r={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
  1. 无库存商品,排在有库存商品之后
  2. \n
  3. 热推商品展示在前,非热推商品展示在后;热推商品按热推商品排序值由小到大排序
  4. \n
  5. 运营分类商品列表:按运营分类人工排值由小到大排序(不适用搜索商品列表页、品牌商品列表页、店铺商品列表页)
  6. \n
  7. \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
  8. \n
  9. 若人工排序值和系统排序值都相同,则按照搜索引擎返回的顺序排序
  10. \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""}}}},i=r,o=(a("22c1"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"ceaaba20",null);e["a"]=l.exports},"8d8d":function(t,e,a){},"90e7":function(t,e,a){"use strict";a.d(e,"h",(function(){return i})),a.d(e,"f",(function(){return o})),a.d(e,"k",(function(){return l})),a.d(e,"j",(function(){return c})),a.d(e,"l",(function(){return d})),a.d(e,"g",(function(){return u})),a.d(e,"m",(function(){return b})),a.d(e,"c",(function(){return m})),a.d(e,"a",(function(){return p})),a.d(e,"b",(function(){return f})),a.d(e,"n",(function(){return h})),a.d(e,"i",(function(){return g})),a.d(e,"d",(function(){return v})),a.d(e,"e",(function(){return _}));var n=a("b775"),s="/api-u2",r={messageList:s+"/push/list",messageCreate:s+"/push/create",messageUnsubscribeList:s+"/sms-block/list",messageUnsubscribeDelete:s+"/sms-block/delete",messageUnsubscribePush:s+"/sms-block/create",messageDetail:s+"/push/detail",selectGroup:s+"/group/search",exportTask:s+"/export-center/create",exportList:s+"/export-center/list",exportListType:s+"/export-center/types",uploadList:s+"/push/upload",messageTemplate:s+"/push/sms-template",importListType:s+"/import-center/task/types",importSearchList:s+"/import-center/task/list",importDownloadList:s+"/import-center/task/download"};function i(t){return Object(n["b"])({url:r.messageList,method:"get",params:t})}function o(t){return Object(n["b"])({url:r.messageCreate,method:"post",data:t})}function l(t){return Object(n["b"])({url:r.messageUnsubscribeList,method:"get",params:t})}function c(t){return Object(n["b"])({url:r.messageUnsubscribeDelete,method:"post",data:t})}function d(t){return Object(n["b"])({url:r.messageUnsubscribePush,method:"post",data:t})}function u(t){return Object(n["b"])({url:r.messageDetail,method:"get",params:t})}function b(t){return Object(n["b"])({url:r.selectGroup,method:"get",params:t})}function m(t){return Object(n["b"])({url:r.exportTask,method:"post",data:t})}function p(t){return Object(n["b"])({url:r.exportList,method:"get",params:t})}function f(t){return Object(n["b"])({url:r.exportListType,method:"get",params:t})}function h(t){return Object(n["b"])({url:r.uploadList,method:"post",data:t})}function g(t){return Object(n["b"])({url:r.messageTemplate,method:"get",params:t})}function v(t){return Object(n["b"])({url:r.importListType,method:"get",params:t})}function _(t){return Object(n["b"])({url:r.importSearchList,method:"get",params:t})}}}]);