(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ca00ef3","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"177e":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{display:"inline-block"}},[a("a-modal",{attrs:{title:t.modalTitle,destroyOnClose:!0,okText:"确定",cancelText:"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("a-form",{attrs:{"label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[a("a-form-item",{staticClass:"form-item-hide-margin-bottom",attrs:{label:"文件",required:""}},[a("div",{staticClass:"flex-layout pr"},[a("a-upload",{attrs:{name:"file",action:t.uploadPath,headers:t.headers,remove:t.removeUpload,fileList:t.fileList,beforeUpload:t.beforeUpload},on:{change:t.handleChange}},[a("a-button",[a("a-icon",{attrs:{type:"upload"}}),t._v(" 选择文件 ")],1)],1),a("a",{staticClass:"down",attrs:{href:t.templatePath,download:""}},[t._v("下载模板")])],1),a("div",{staticClass:"customizeErrorRight"},[t._v(t._s(t.importDecideInfo))])]),a("a-form-item",{staticClass:"upload-intro form-item-hide-margin-bottom",attrs:{label:"说明"}},[a("div",{staticStyle:{"line-height":"27px","margin-top":"6px"}},[t._t("default")],2)])],1)],1)],1)},i=[],r=(a("7f7f"),a("2909")),n=(a("96cf"),a("1da1")),o={props:{templatePath:{type:String,default:function(){return"/api-product/admin/import/template"}},submitMethod:{type:Function,required:!0},fieldType:{type:String,default:function(){return""}}},computed:{uploadPath:function(){var t="";if(this.fieldType){var e=this.fieldType;switch(e){case"product":t="/api-product/admin/file/upload";break}}else t="/api-cms/cms/file/import_upload";return t}},data:function(){return{visible:!1,modalTitle:"",fileId:null,fileName:null,headers:{"Access-Token":this.$ls.get("token"),"Website-ID":this.$ls.get("website-id")},labelCol:{span:4},wrapperCol:{span:20},importDecideStatus:!1,importDecideInfo:"",fileList:[],throttle:!1,attrs:{}}},methods:{powerShow:function(t,e){this.modalTitle=t||"批量新建普通商品",this.attrs=e||{},this.visible=!0},handleOk:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.fileId){t.next=3;break}return this.confirmMessage(),t.abrupt("return");case 3:if(!this.throttle){t.next=5;break}return t.abrupt("return");case 5:return this.throttle=!0,t.next=8,this.startImport(this.fileId);case 8:a=t.sent,a&&(this.$store.commit("Decide_toggleLanguage_success"),this.$emit("uploadSuccess"),this.handleCancel()),this.throttle=!1;case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleChange:function(t){var e=Object(r["a"])(t.fileList);if(e=e.slice(-1),this.fileList=e,t.fileList=e,"done"===t.file.status){var a=t.file.response;0===a.status?(this.fileId=a.data.file_id,this.fileName=t.file.name,this.resetUploadStatus()):(this.fileId="",this.importDecideStatus=!0,this.importDecideInfo=a.message)}},startImport:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return a=Object.assign(this.attrs,{file_id:e,name:this.fileName}),t.abrupt("return",this.submitMethod(a));case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),removeUpload:function(t){this.resetUploadStatus(),this.fileId=null,this.fileList=[]},confirmMessage:function(){this.importDecideStatus||(this.importDecideStatus=!0,this.importDecideInfo="文件不能为空")},resetUploadStatus:function(){this.importDecideStatus=!1,this.importDecideInfo=""},handleCancel:function(){this.visible=!1,this.removeUpload(),this.resetUploadStatus()},beforeUpload:function(t){var e=t.size<20971520;return e||(this.importDecideStatus=!0,this.importDecideInfo="请选择小于20M的文件"),e}}},l=o,c=(a("e843"),a("2877")),d=Object(c["a"])(l,s,i,!1,null,null,null);e["a"]=d.exports},"22c1":function(t,e,a){"use strict";a("8d8d")},"3df3":function(t,e,a){"use strict";a("7c59")},5633:function(t,e,a){"use strict";var s=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)])])},i=[],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""}}}},n=r,o=(a("22c1"),a("2877")),l=Object(o["a"])(n,s,i,!1,null,"ceaaba20",null);e["a"]=l.exports},"7c59":function(t,e,a){},"8d8d":function(t,e,a){},d3be:function(t,e,a){},e843:function(t,e,a){"use strict";a("d3be")},ed4a:function(t,e,a){"use strict";a("fe35")},f0e2:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=this,a=e.$createElement,s=e._self._c||a;return s("div",[s("custom-bread",{attrs:{breadList:e.breadList}}),s("div",{staticClass:"couponContent",style:{marginTop:"24px"}},[s("a-card",{attrs:{bordered:!1}},[s("div",{staticClass:"table-page-search-wrapper"},[s("a-form",{attrs:{layout:"inline"}},[s("a-row",{staticClass:"search-table",attrs:{gutter:24}},[s("a-col",{attrs:{md:8,sm:24,xxl:6,"label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[s("a-form-item",[s("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 品牌ID\n "),s("a-tooltip",{attrs:{placement:"topLeft",title:"支持批量查询,最多1000个,输入多个时用英文逗号隔开"}},[s("a-icon",{attrs:{type:"info-circle-o"}})],1)],1),s("a-input",{staticClass:"import",attrs:{placeholder:"请输入"},on:{pressEnter:e.pressEnter},model:{value:e.queryParam.brand_id,callback:function(t){e.$set(e.queryParam,"brand_id",t)},expression:"queryParam.brand_id"}}),e.showText?s("span",{staticClass:"tip_text"},[e._v("只能输入1000个id")]):e._e()],1)],1),s("a-col",{attrs:{md:8,sm:24,xxl:6}},[s("a-form-item",{attrs:{label:"品牌名称"}},[s("a-input",{staticClass:"import",attrs:{placeholder:"请输入"},on:{pressEnter:e.pressEnter},model:{value:e.queryParam.origin_name,callback:function(t){e.$set(e.queryParam,"origin_name",t)},expression:"queryParam.origin_name"}})],1)],1),s("a-col",{attrs:{md:8,sm:24,xxl:6}},[s("a-form-item",{attrs:{label:"品牌中文名"}},[s("a-input",{staticClass:"import",attrs:{placeholder:"请输入"},on:{pressEnter:e.pressEnter},model:{value:e.queryParam.chinese_name,callback:function(t){e.$set(e.queryParam,"chinese_name",t)},expression:"queryParam.chinese_name"}})],1)],1),s("a-col",{attrs:{md:8,sm:24,xxl:6}},[s("a-form-item",{attrs:{label:"销售平台"}},[s("a-select",{staticClass:"import",model:{value:e.queryParam.plat_ids,callback:function(t){e.$set(e.queryParam,"plat_ids",t)},expression:"queryParam.plat_ids"}},[s("a-select-option",{attrs:{value:"0"}},[e._v("全部")]),s("a-select-option",{attrs:{value:"1"}},[e._v("PC")]),s("a-select-option",{attrs:{value:"2"}},[e._v("H5")]),s("a-select-option",{attrs:{value:"3"}},[e._v("Android")]),s("a-select-option",{attrs:{value:"4"}},[e._v("iOS")]),s("a-select-option",{attrs:{value:"5"}},[e._v("微信H5")]),s("a-select-option",{attrs:{value:"6"}},[e._v("微信小程序")]),s("a-select-option",{attrs:{value:"7"}},[e._v("支付宝小程序")])],1)],1)],1),s("a-col",{attrs:{md:8,sm:24,xxl:6}},[s("a-form-item",{attrs:{label:"热门品牌"}},[s("a-select",{staticClass:"import",model:{value:e.queryParam.is_hot,callback:function(t){e.$set(e.queryParam,"is_hot",t)},expression:"queryParam.is_hot"}},[s("a-select-option",{attrs:{value:""}},[e._v("全部")]),s("a-select-option",{attrs:{value:"1"}},[e._v("是")]),s("a-select-option",{attrs:{value:"0"}},[e._v("否")])],1)],1)],1)],1),s("a-row",{attrs:{gutter:24}},[s("a-col",{attrs:{offset:1,md:8,sm:24,xxl:6}},[s("a-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:e.search}},[e._v("查询")]),s("a-button",{staticClass:"btn reset",on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)],1)])],1),s("div",{staticStyle:{height:"16px","background-color":"#f0f2f5"}}),s("a-card",{attrs:{bordered:!1}},[s("div",{staticClass:"main-content-btn"},[s("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/import/brand_update",expression:"'product:/admin/import/brand_update'"}],attrs:{type:"primary"},on:{click:function(){t.$refs.brand_update.powerShow("批量编辑品牌")}}},[e._v("批量编辑品牌")]),s("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/export/brand",expression:"'product:/admin/export/brand'"}],staticClass:"export",on:{click:e.startExport}},[e._v("导出")]),s("export-task",{ref:"exportModule",attrs:{"query-params":e.queryParam,selectedRow:e.selectedRowKeys},on:{exportSucess:e.exportSucess}})],1),s("div",{staticClass:"main-content-list"},[s("div",{staticClass:"ant-table-body"},[s("a-table",{attrs:{dataSource:e.dataSource,columns:e.columns,rowKey:"brand_id",rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:e.paginationSet,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"origin_name",fn:function(t){return[t?[s("a-tooltip",{attrs:{placement:"topLeft"}},[s("template",{slot:"title"},[e._v("\n "+e._s(t)+"\n ")]),s("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])],2)]:[s("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])]]}},{key:"chinese_name",fn:function(t){return[t?[s("a-tooltip",{attrs:{placement:"topLeft"}},[s("template",{slot:"title"},[e._v("\n "+e._s(t)+"\n ")]),s("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])],2)]:[s("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])]]}},{key:"product_count",fn:function(t){return[s("span",[e._v(e._s(t))])]}},{key:"brandLogo",fn:function(t){return[t?[s("span",{staticClass:"logo",attrs:{slot:"brandLogo"},slot:"brandLogo"},[s("img",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t}})])]:[s("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])]]}},{key:"plat_ids",fn:function(t){return[t?[s("span",{staticClass:"plat_ids line_table_hidden",attrs:{slot:"plat_ids"},slot:"plat_ids"},[s("a-tooltip",{attrs:{placement:"topLeft",title:e.transPlat(t).long}},[e._v("\n "+e._s(e._f("stringFilter")(e.transPlat(t).short))+"\n ")])],1)]:[s("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])]]}},{key:"isHot",fn:function(t){return s("span",{staticClass:"isHot"},[e._v("\n "+e._s(t?"是":"否")+"\n ")])}},{key:"operation",fn:function(t,a){return s("span",{staticClass:"operation"},[s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(t){return e.goDetailPage(a)}}},[e._v("查看")])])}}])})],1)]),s("div",{staticClass:"main-content-pagination"},[s("p-agination",{attrs:{total:e.pageTotal,currentPage:e.query.page,computedPageNumber:e.computedPageNumber,pageSize:e.query.limit},on:{jumpTableChange:e.jumpTableChange,selectPageSizeChange:e.selectPageSizeChange}})],1),s("import-component",{ref:"brand_update",attrs:{fieldType:"product",templatePath:"/api-product/admin/import/template?action=brand_update",submitMethod:e.postProductImportBrand_update},on:{uploadSuccess:e.uploadSuccess}},[s("p",[e._v("1、导入时请严格按模板导入,不要对模板格式做任何修改;")]),s("p",[e._v("2、Sheet1中的第一行和第二行禁止删除和修改;")]),s("p",[e._v("3、模板内容请参考Sheet2中的示例进行填写;")]),s("p",[e._v("4、单次导入最多50000条数据,文件最大20M;")])]),s("export-success",{ref:"exportSuccess",attrs:{windowOpen:""}})],1)],1)},i=[],r=(a("28a5"),a("ac6a"),a("a481"),a("5633")),n=a("bf43"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-modal",{attrs:{title:"导出",visible:t.visible,confirmLoading:t.confirmLoading,bodyStyle:{padding:"24px 24px 0 24px"}},on:{cancel:t.handleCancel}},[t.stepNumber?a("div",{staticClass:"secondBox"},[a("a-checkbox-group",{on:{change:t.secondCheckout},model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[a("a-row",[a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"brand_id"}},[t._v("品牌ID")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"origin_name"}},[t._v("品牌名称")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"chinese_name"}},[t._v("品牌中文名")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"own_country"}},[t._v("所属国家")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"product_count"}},[t._v("商品数量")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"alias_name"}},[t._v("品牌别名")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"plat_ids"}},[t._v("销售平台")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"is_hot"}},[t._v("热门品牌")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"description"}},[t._v("品牌描述")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"context_block"}},[t._v("品牌静态块-PC")])],1),a("a-col",{staticClass:"mb24",attrs:{span:8}},[a("a-checkbox",{attrs:{value:"wap_block"}},[t._v("品牌静态块-H5")])],1)],1)],1),a("p",{directives:[{name:"show",rawName:"v-show",value:t.decideSelect,expression:"decideSelect"}],staticClass:"errorColor"},[t._v("至少选择一个字段")])],1):a("div",[a("a-radio-group",{on:{change:t.onChange},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}},[a("a-radio",{style:t.radioStyle,attrs:{value:1}},[t._v("导出勾选数据")]),a("p",{directives:[{name:"show",rawName:"v-show",value:t.selectUserDecide,expression:"selectUserDecide"}],staticClass:"customizeError"},[t._v("至少勾选一个品牌")]),a("a-radio",{style:t.radioStyle,attrs:{value:2}},[t._v("\n 导出查询数据 (单次最多导出30万条数据)\n ")]),a("div",{staticStyle:{height:"24px"}},[a("p",{directives:[{name:"show",rawName:"v-show",value:t.maxTips,expression:"maxTips"}],staticClass:"customizeError"},[t._v("单次最多导出30万条数据")])])],1)],1),a("template",{slot:"footer"},[a("div",{staticClass:"exportTaskBox"},[a("div",[a("a-button",{directives:[{name:"show",rawName:"v-show",value:t.stepNumber,expression:"stepNumber"}],on:{click:t.backFirst}},[t._v("上一步")])],1),a("div",[a("a-button",{on:{click:t.handleCancel}},[t._v("取消")]),a("a-button",{attrs:{type:"primary"},on:{click:t.handleOk}},[t._v(t._s(t.stepNumber?"确定":"下一步"))])],1)])])],2)],1)},l=[],c=a("6b5c"),d={props:{queryParams:{type:Object,default:function(){return{}}},selectedRow:{type:Array,default:function(){return[]}}},data:function(){return{visible:!1,confirmLoading:!1,firstValue:1,brandidlength:"",selectrowid:"",firstSelect:1e4,radioStyle:{display:"block",height:"30px",lineHeight:"30px"},stepNumber:0,checkedList:["brand_id","origin_name","chinese_name","own_country","product_count","alias_name","plat_ids","is_hot","description"],decideSelect:!1,selectUserDecide:!1,selectUser:{},userListQuery:{},queryObj:{type_id:1},maxTips:!1,pageTotal:0}},watch:{firstValue:function(t){this.errorHidden()},checkedList:function(t){t.length>0&&this.checkHidden()}},methods:{showModal:function(t,e,a){this.selectUser=t,this.pageTotal=a,this.visible=!0},onChange:function(t){this.firstValue=t.target.value},secondCheckout:function(t){this.checkedList=t},backFirst:function(){this.stepNumber=0},processDone:function(){this.visible=!1,this.confirmLoading=!1},errorHidden:function(){this.selectUserDecide=!1,this.maxTips=!1},firstTask:function(){if(1!==this.firstValue){if(this.pageTotal>3e5)return void(this.maxTips=!0);this.stepNumber=1}else this.selectedRow.length?this.stepNumber=1:this.selectUserDecide=!0},exportTask:function(){var t=this;if(this.checkedList.length<=0)this.decideSelect=!0;else{1===this.firstValue?(this.queryParams.brand_id=this.selectedRow.join(","),this.queryObj=Object.assign(this.queryObj,{condition_params:JSON.stringify(this.queryParams)},this.userListQuery,{expect_rows:this.selectedRow.length}),this.queryParams.brand_id=""):this.queryObj=Object.assign(this.queryObj),2===this.firstValue?this.queryObj=Object.assign(this.queryObj,{condition_params:JSON.stringify(this.queryParams)},this.userListQuery,{expect_rows:this.pageTotal}):this.queryObj=Object.assign(this.queryObj);var e={field_names:this.checkedList.join(",")},a=Object.assign(this.queryObj,e);""===a.brand_id&&(a.brand_id=[]),"0"===a.register_platform&&(a.register_platform=""),Object(c["qb"])(a).then((function(e){e&&0===e.status?(t.$emit("exportSucess"),t.handleCancel(),t.httpRestData()):t.$message.error("导出失败")}))}},handleOk:function(t){this.stepNumber?this.exportTask():this.firstTask()},httpRestData:function(){this.selectUser={},this.userListQuery={},this.queryObj={type_id:1},this.checkedList=["brand_id","origin_name","chinese_name","own_country","product_count","alias_name","plat_ids","is_hot","description"]},handleCancel:function(t){this.errorHidden(),this.backFirst(),this.visible=!1},checkHidden:function(t){this.decideSelect=!1}}},u=d,p=(a("ed4a"),a("2877")),b=Object(p["a"])(u,o,l,!1,null,"79828f7c",null),h=b.exports,m=a("2af9"),f=a("177e"),_=a("782b"),v=a("ac0d"),g=[{title:"品牌ID",dataIndex:"brand_id",width:"8%"},{title:"品牌名称",dataIndex:"origin_name",width:"15%",scopedSlots:{customRender:"origin_name"}},{title:"品牌中文名",dataIndex:"chinese_name",width:"15%",ellipsis:!0,scopedSlots:{customRender:"chinese_name"}},{title:"品牌LOGO",dataIndex:"logo",width:"10%",scopedSlots:{customRender:"brandLogo"}},{title:"商品数量",dataIndex:"product_count",width:"12%",sorter:!0,sortDirections:["descend","ascend"],scopedSlots:{customRender:"product_count"}},{title:"销售平台",dataIndex:"plat_ids",scopedSlots:{customRender:"plat_ids"}},{title:"热门品牌",dataIndex:"is_hot",width:"12%",scopedSlots:{customRender:"isHot"}},{title:"操作",scopedSlots:{customRender:"operation"},width:"8%"}],y={},x={components:{PAgination:n["a"],exportTask:h,exportSuccess:m["c"],importComponent:f["a"],customBread:r["a"]},mixins:[v["h"]],data:function(){return{breadList:{current:"品牌管理",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"商品"},{name:"33",title:"商品管理"},{name:"3",title:"品牌管理"}]},showText:!1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:18}},columns:g,loading:!0,confirmLoading:!1,selectedRowKeys:[],visible:!1,firstValue:1,firstSelect:"10000",radioStyle:{display:"block",height:"30px",lineHeight:"30px"},queryParam:{brand_id:"",origin_name:"",chinese_name:"",plat_ids:"0",is_hot:"",sort_fields:0,sort_type:0,limit:10,page:1},sortDefault:"",selectUserDecide:!1,decideSelect:!1,selectUser:y,postProductImportBrand_update:c["Cb"]}},computed:{websiteId:function(){return this.$store.getters.websiteId}},methods:{exportSucess:function(){this.$refs.exportSuccess.showModal("导出任务已提交","导出中心","/analysis/export/list")},pressEnter:function(t){this.queryParam.brand_id=this.queryParam.brand_id.replace(/(^\s*)|(\s*$)/g,""),this.queryParam.origin_name=this.queryParam.origin_name.replace(/(^\s*)|(\s*$)/g,""),this.queryParam.chinese_name=this.queryParam.chinese_name.replace(/(^\s*)|(\s*$)/g,""),Object.assign(this.query,this.queryParam),this.getTableList(this.query),this.query.page=1},onSelectChange:function(t){this.selectedRowKeys=t},getTableList:function(){var t=this;this.loading=!0,Object(_["c"])(this.query).then((function(e){e&&0===e.status&&(t.loading=!1,t.dataSource=e.data.brand_infos,t.pageTotal=e.data.total_num)}))},search:function(){this.query.page=1,this.queryParam.brand_id=this.queryParam.brand_id.replace(/(^\s*)|(\s*$)/g,""),this.queryParam.origin_name=this.queryParam.origin_name.replace(/(^\s*)|(\s*$)/g,""),this.queryParam.chinese_name=this.queryParam.chinese_name.replace(/(^\s*)|(\s*$)/g,""),Object.assign(this.query,this.queryParam),this.query.brand_id.length>5999&&(this.showText=!0),this.getTableList(this.query),this.query.page=1},resetForm:function(){this.queryParam.brand_id="",this.queryParam.origin_name="",this.queryParam.chinese_name="",this.queryParam.plat_ids="0",this.queryParam.is_hot="",Object.assign(this.query,this.queryParam),this.getTableList(this.query)},handleTableChange:function(t,e,a){void 0!==a.order?("product_count"===a.field?this.queryParam.sort_fields=3:"brand_id"===a.field&&(this.queryParam.sort_fields=1),"descend"===a.order?this.queryParam.sort_type=1:"ascend"===a.order&&(this.queryParam.sort_type=0)):(this.queryParam.sort_type=0,this.queryParam.sort_fields=0),Object.assign(this.query,this.queryParam),this.getTableList(this.query)},transPlat:function(t){var e=["PC","H5","Android","iOS","微信H5","微信小程序","支付宝小程序"];if("0"===t)return{short:e.join("/").length>12?e.join("/").substring(0,13)+"...":e.join("/"),long:e.join("/")};var a=[];return t.split(",").forEach((function(t){a.push(e[t-1])})),{short:a.join("/").length>12?a.join("/").substring(0,13)+"...":a.join("/"),long:a.join("/")}},startExport:function(){this.$refs.exportModule.showModal(y,this.queryParam,this.pageTotal)},showModal:function(){this.visible=!0},handleok:function(t){this.visible=!1},secondCheckout:function(t){this.checkedList=t},uploadSuccess:function(){this.$refs.exportSuccess.showModal("导入任务已提交","导入中心","/analysis/import/list")},goDetailPage:function(t){var e=this.websiteId;window.open("/product/manage/brand/detail/"+t.brand_id+"/websiteId/"+e,"_blank")}}},C=x,k=(a("3df3"),Object(p["a"])(C,s,i,!1,null,"6fb584cf",null));e["default"]=k.exports},fe35:function(t,e,a){}}]);