(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b5bbf4f","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"0629":function(e,t,n){"use strict";n("4a2f2")},1950:function(e,t,n){"use strict";n("fb14")},"22c1":function(e,t,n){"use strict";n("8d8d")},"2d82":function(e,t,n){"use strict";n("524a")},3533:function(e,t,n){"use strict";n("a481"),n("c5f6");var a=n("53ca");function i(e){return e&&"object"===Object(a["a"])(e)&&"componentOptions"in e&&"context"in e&&void 0!==e.tag}var r,s,o={name:"CustomToolTip",props:{limitLine:{type:String,default:"1"},limitSize:{type:String,default:"16"},maxWidth:{type:String,default:function(){return"250"}}},computed:{lineNumber:function(){return{"-webkit-line-clamp":this.limitLine}}},methods:{setDomWidth:function(e){return e>46&&Number(this.maxWidth)>250?this.maxWidth:"250"}},render:function(){var e=arguments[0],t=this.$slots.default&&this.$slots.default[0];if(i(t))return e("div",{class:"customToolTip-limitWidth"},[this.$slots.default]);var n=t.text.trim().replace(/[\r\n]/g,"").length;return n<=Number(this.limitSize)?e("p",{class:"customToolTip-line_table_hidden",style:this.lineNumber},[this.$options.filters.stringFilter(t.text.trim())]):e("div",{class:"customToolTip-limitWidth"},[e("a-tooltip",{attrs:{placement:"topLeft"}},[e("template",{slot:"title"},[this.$slots.default]),e("p",{class:"customToolTip-line_table_hidden",style:this.lineNumber},[this.$slots.default])])])}},c=o,l=(n("ebc0"),n("2877")),u=Object(l["a"])(c,r,s,!1,null,null,null);t["a"]=u.exports},3835:function(e,t,n){"use strict";function a(e){if(Array.isArray(e))return e}function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,i=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done);a=!0)if(n.push(s.value),t&&n.length===t)break}catch(c){i=!0,r=c}finally{try{a||null==o["return"]||o["return"]()}finally{if(i)throw r}}return n}}n.d(t,"a",(function(){return o}));var r=n("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){return a(e)||i(e,t)||Object(r["a"])(e,t)||s()}},"4a2f2":function(e,t,n){},"524a":function(e,t,n){},5633:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customBread"},[n("div",{staticClass:"page-header clearfix"},[n("div",{staticClass:"page-header-index-wide",staticStyle:{float:"left"}},[n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList.loopBread,(function(t){return n("a-breadcrumb-item",{key:t.name},[t.href?n("router-link",{attrs:{to:{path:t.href}}},[e._v("\n "+e._s(t.title)+"\n ")]):n("span",[e._v(e._s(t.title))])],1)})),1),n("div",{staticClass:"detail"},[n("div",{staticClass:"customBreadcrumb-current"},[n("h1",{staticClass:"title"},[e._v(e._s(e.breadList.current))]),e.breadList.showNote&&e.breadList.isText?n("a-tooltip",{attrs:{placement:"bottomLeft"}},[n("template",{slot:"title"},[n("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),n("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e.breadList.showNote?n("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[n("template",{slot:"content"},[n("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),n("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e._e()],1)])],1),n("div",{staticClass:"customBreadRight"},[e._t("default")],2)])])},i=[],r={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var e=this.breadList.current;switch(e){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""}}}},s=r,o=(n("22c1"),n("2877")),c=Object(o["a"])(s,a,i,!1,null,"ceaaba20",null);t["a"]=c.exports},5708:function(e,t,n){"use strict";n.d(t,"c",(function(){return W})),n.d(t,"b",(function(){return ve})),n.d(t,"d",(function(){return xe})),n.d(t,"e",(function(){return Ae})),n.d(t,"a",(function(){return Pe}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"select-class"},[n("a-tree-select",{staticStyle:{"min-width":"40%"},attrs:{dropdownClassName:"","tree-data":e.treeData,"tree-checkable":"",replaceFields:e.replaceFields,"dropdown-style":{maxHeight:"400px",width:"40%",overflow:"auto"},"show-checked-strategy":e.SHOW_PARENT,placeholder:"请选择"},on:{change:e.selectClass},model:{value:e.checkedKeys,callback:function(t){e.checkedKeys=t},expression:"checkedKeys"}}),e.errTip?n("span",{staticClass:"err-tip"},[e._v(e._s(e.errTip))]):e._e()],1)},i=[],r=n("7bec"),s=r["a"].SHOW_PARENT,o={props:{treeData:{type:Array,require:!0,default:function(){return[]}}},data:function(){return{SHOW_PARENT:s,checkedKeys:[],errTip:"",replaceFields:{children:"child",title:"name",key:"id",label:"name",value:"id"}}},watch:{checkedKeys:{handler:function(e){e.length&&this.clearTip()},deep:!0}},methods:{setKeys:function(e){this.checkedKeys=e},setTip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请选择运营分类";this.errTip=e},clearTip:function(){this.errTip=""},restSelectKeys:function(){this.checkedKeys=[],this.$emit("select",this.checkedKeys)},selectClass:function(){this.$emit("select",this.checkedKeys)}}},c=o,l=(n("0629"),n("2877")),u=Object(l["a"])(c,a,i,!1,null,"ce59ef3a",null),d=(u.exports,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-form-item",{attrs:{label:"运营分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:e.isRequired,"validate-status":e.validateCustomeStatus,help:e.validateCustomeErrorInfo}},[n("a-button",{on:{click:e.selectModal}},[e._v(e._s(e.buttonLabel))])],1),n("select-category",{ref:"selectCategory",on:{selectAction:e.addAction}}),n("edit-select-class",{ref:"editSelectClass",on:{selectAction:e.selectAction}}),n("div",{staticClass:"mb8 form-item-radio-margin-top"},[n("a-row",[n("a-col",{attrs:{span:4}}),n("a-col",{attrs:{span:20}},e._l(e.dataSource,(function(t){return n("a-tag",{key:t.id,staticClass:"mb16"},[e._v(e._s(t.title))])})),1)],1)],1)],1)}),f=[],h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{title:"选择运营分类",width:878,bodyStyle:{padding:"0 0 24px"}},on:{ok:e.handleOk,cancel:e.handleCancel},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a-tabs",{attrs:{tabBarStyle:{paddingLeft:"24px"}},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-tab-pane",{key:"1",attrs:{tab:"选择分类"}},[n("div",{staticStyle:{padding:"0 24px"}},[n("div",{staticClass:"flex-layout search-category-position"},[n("div",{staticStyle:{"min-width":"80px","line-height":"30px"}},[e._v("\n 运营分类:\n ")]),n("div",{staticStyle:{flex:"1"}},[n("custom-single-select",{key:e.customKey,attrs:{requestObj:e.asyncObj,needTooltip:""},on:{asyncSelectCallback:e.asyncSelectCallback}})],1)]),n("div",{staticClass:"tree-container"},[n("a-tree",{attrs:{checkable:"","expanded-keys":e.expandedKeys,"auto-expand-parent":e.autoExpandParent,"tree-data":e.gData,replaceFields:e.replaceFields,selectable:!1},on:{expand:e.onExpand,check:e.checkAction},scopedSlots:e._u([{key:"custom",fn:function(t){var a=t.title,i=t.category_id;return[n("span",{attrs:{"data-id":i}},[e._v(e._s(a))])]}}]),model:{value:e.checkedKeys,callback:function(t){e.checkedKeys=t},expression:"checkedKeys"}})],1)])]),e.hideInput?e._e():n("a-tab-pane",{key:"2",attrs:{tab:"手动录入分类ID"}},[n("div",{staticStyle:{padding:"0 24px"}},[n("a-textarea",{attrs:{placeholder:"请输入分类ID,多个时以英文逗号隔开","auto-size":{minRows:10,maxRows:10}},model:{value:e.userInputValue,callback:function(t){e.userInputValue=t},expression:"userInputValue"}})],1)])],1)],1)],1)},p=[],b=(n("ac4d"),n("8a81"),n("7f7f"),n("6b54"),n("8e6e"),n("2909")),m=(n("4f7f"),n("1c4c"),n("3835")),v=(n("5df3"),n("f400"),n("c5f6"),n("456d"),n("28a5"),n("ac6a"),n("55dd"),n("6762"),n("2fdb"),n("a481"),n("ade3")),y=n("aab4"),g=n("cb5b"),_=n("2f62");function S(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,r=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw r}}}}function k(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];"editAdd"===e&&(this.isEdit=!0),this.checkedKeys=n,this.userInputValue="",this.activeKey="1",n.length&&(this.expandedKeys=n.map((function(e){return t.getExpandedKeys(e)})).reduce((function(e,t){return e.concat(t.flat())}),[]),this.autoExpandParent=!0),this.visible=!0},handleOk:function(){var e=this.realCheckedKeys;if(e.length||this.userInputValue){var t=this.userInputValue.split(",").filter(Boolean).map(Number),n=[];t.length>0&&(n=this.setRealCheckedKeys(this.conductCheck(t,!0,this.treeMap).checkedKeys)),this.$emit("selectAction",{ids:e,userInputValue:n}),this.handleCancel()}else this.$message.error("请选择运营分类")},handleCancel:function(){this.visible=!1,this.customKey=Math.random(),this.expandedKeys=[],this.selectedKeys=[],this.searchValue=null,this.autoExpandParent=!0,this.initScroll(),this.isEdit&&this.$emit("modalClosed")},checkAction:function(e){},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},init:function(){var e=this;return Object(y["k"])().then((function(t){var n=t.data;if(!n.category_list)return e.treeLoading=!1,null;e.gData=n.category_list;var a=function(e,t){return"".concat(e,"-").concat(t)};e.dataList=[];var i=function t(n,i){for(var r=0;r-1?K(n.key,t.gData):null})).filter((function(e,t,n){return e&&n.indexOf(e)===t}))},onChange:function(e){var t=this;if(""===e)return this.searchValue=null,void(this.expandedKeys=[]);var n=this.expandedKeys.concat(this.getExpandedKeys(e).filter(Boolean));Object.assign(this,{expandedKeys:n,searchValue:e,autoExpandParent:!0}),this.setSearchCheck(e),this.$nextTick((function(){return t.scrollProcess(e)}))},conductCheck:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new Map,r=new Map;function s(e){if(i.get(e)!==t){var a=n.get(e);if(a){var o=a.children,c=a.parent_id,l=!0,u=!1;(o||[]).forEach((function(e){var t=e.category_id,n=i.get(t),a=r.get(t);(n||a)&&(u=!0),n||(l=!1)})),t?i.set(e,l):i.set(e,!1),r.set(e,u),c&&s(c)}}}function o(e){if(i.get(e)!==t){var a=n.get(e);if(a){var r=a.children;i.set(e,t),(r||[]).forEach((function(e){o(e.key)}))}}}function c(e){var a=n.get(e);if(a){var r=a.children,c=a.parent_id;i.set(e,t),(r||[]).forEach((function(e){o(e.category_id)})),c&&s(c)}}(a.checkedKeys||[]).forEach((function(e){i.set(e,!0)})),(a.halfCheckedKeys||[]).forEach((function(e){r.set(e,!0)})),(e||[]).forEach((function(e){c(e)}));var l,u=[],d=[],f=S(i);try{for(f.s();!(l=f.n()).done;){var h=Object(m["a"])(l.value,2),p=h[0],b=h[1];b&&u.push(p)}}catch(C){f.e(C)}finally{f.f()}var v,y=S(r);try{for(y.s();!(v=y.n()).done;){var g=Object(m["a"])(v.value,2),_=g[0],k=g[1];!i.get(_)&&k&&d.push(_)}}catch(C){y.e(C)}finally{y.f()}return{checkedKeys:u,halfCheckedKeys:d}},setSearchCheck:function(e){var t=[];function n(e,n){var a={},i=function e(n){n.forEach((function(n){var i={parent_id:n.parent_id,children:n.child,category_id:n.category_id};a[n.category_id]=i,t.push(i),n.child&&e(n.child)}))};return i(n),a}for(var a=0,i=0;i480?function(){var e=r-200;t.$nextTick((function(){setTimeout((function(){return document.querySelector(".tree-container").scroll(0,e)}),1e3)}))}():n.scroll(0,0);break}}},mounted:function(){}},T=O,j=(n("a693"),Object(l["a"])(T,h,p,!1,null,"ab03d4e0",null)),I=j.exports,A=I,E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{title:"编辑运营分类",width:878,visible:e.visible,bodyStyle:{padding:"0"}},on:{cancel:e.handleCancel}},[n("div",{staticClass:"layout-padding"},[n("a-button",{staticClass:"mr8 mb24",attrs:{type:"primary"},on:{click:e.showModal}},[e._v("添加运营分类")]),n("a-button",{attrs:{disabled:!e.selectedRowKeys.length},on:{click:function(){e.deleteAction()}}},[e._v("删除")]),n("a-table",{key:e.tableKey,attrs:{dataSource:e.dataSource,columns:e.columns,rowSelection:e.rowSelection,pagination:!1,rowKey:"key",loading:e.loading,scroll:{y:355}},scopedSlots:e._u([{key:"nameSlot",fn:function(t){return[n("text-tool-tip",[e._v("\n "+e._s(e._f("stringFilter")(t))+"\n ")])]}},{key:"positionSlot",fn:function(t){return[n("text-tool-tip",[e._v("\n "+e._s(e._f("stringFilter")(t.join(">")))+"\n ")])]}},{key:"operateSlot",fn:function(t,a){return[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(t){return e.singleDelete([a.key])}}},[n("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])})],1),n("template",{slot:"footer"},[n("div",{staticClass:"flex-layout flex-space"},[n("div",{staticStyle:{"margin-left":"8px"}},[e._v("共 "+e._s(e.dataSource.length)+" 条记录")]),n("div",[n("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("取消")]),n("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleAction}},[e._v("\n 确定\n ")])],1)])])],2),n("select-category",{ref:"selectCategory",on:{selectAction:e.addAction,modalClosed:e.modalClosed}})],1)},D=[],R=n("de6a"),L=n("3533");function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];this.visible=!0,"editAdd"===e&&(this.isEdit=!0),this.dataSource.length||this.getTableList(),this.selectedRowKeys=t,this.userInputValue="",this.activeKey="1"},onSelectChange:function(e){this.selectedRowKeys=e},selectAction:function(){var e=this;this.selectedRowKeys.length||this.userInputValue?(this.$emit("selectAction",{ids:this.selectedRowKeys,dataSource:this.dataSource.filter((function(t){return e.selectedRowKeys.includes(t.brand_id)})),userInputValue:this.userInputValue}),this.closeModal()):this.$message.error("请选择品牌")},closeModal:function(){this.visible=!1,this.isEdit&&this.$emit("modalClosed")},search:function(){this.query.page=1,this.getTableList()},getTableList:function(){var e=this;this.loading=!0;var t=Object.assign({},this.query,this.queryParam);Object(ee["c"])(t).then((function(t){var n=t.data;n?(e.dataSource=n.brand_infos,e.pageTotal=n.total_num,e.changeTableKey()):e.resultNull()})).finally((function(){e.loading=!1}))}}},ae=ne,ie=(n("efe2"),Object(l["a"])(ae,J,Q,!1,null,null,null)),re=ie.exports,se=re,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{title:"编辑品牌",width:878,visible:e.visible,bodyStyle:{padding:"0"}},on:{cancel:e.handleCancel}},[n("div",{staticClass:"layout-padding"},[n("a-button",{staticClass:"mr8 mb24",attrs:{type:"primary"},on:{click:e.brandAction}},[e._v("添加品牌")]),n("a-button",{attrs:{disabled:!e.selectedRowKeys.length},on:{click:function(){e.deleteAction()}}},[e._v("删除")]),n("a-table",{key:e.tableKey,attrs:{dataSource:e.dataSource,columns:e.columns,rowSelection:e.rowSelection,pagination:!1,rowKey:"brand_id",loading:e.loading,scroll:{y:355}},scopedSlots:e._u([{key:"nameSlot",fn:function(t){return[n("text-tool-tip",[e._v("\n "+e._s(e._f("stringFilter")(t))+"\n ")])]}},{key:"brandLogo",fn:function(t){return[t?[n("span",{staticClass:"logo",attrs:{slot:"brandLogo"},slot:"brandLogo"},[n("img",{staticStyle:{width:"50px",height:"50px","object-fit":"contain"},attrs:{src:t}})])]:[n("p",{staticClass:"line_table_hidden"},[e._v(e._s(e._f("stringFilter")(t)))])]]}},{key:"operateSlot",fn:function(t,a){return[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(t){return e.singleDelete([a.brand_id])}}},[n("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])})],1),n("template",{slot:"footer"},[n("div",{staticClass:"flex-layout flex-space"},[n("div",{staticStyle:{"margin-left":"8px"}},[e._v("共 "+e._s(e.dataSource.length)+" 条记录")]),n("div",[n("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("取消")]),n("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleAction}},[e._v("\n 确定\n ")])],1)])])],2),n("select-brand",{ref:"selectBrand",on:{selectAction:e.addAction,modalClosed:e.modalClosed}})],1)},ce=[],le=[{title:"品牌ID",dataIndex:"brand_id",width:"17%"},{title:"品牌名称",dataIndex:"origin_name",width:"25%",scopedSlots:{customRender:"nameSlot"}},{title:"品牌LOGO",dataIndex:"logo",width:"20%",scopedSlots:{customRender:"brandLogo"}},{title:"商品数量",dataIndex:"product_count",width:"20%"},{title:"操作",width:"18%",scopedSlots:{customRender:"operateSlot"}}],ue={components:{textToolTip:L["a"],selectBrand:se},computed:{rowSelection:function(){var e=this.selectedRowKeys;return{selectedRowKeys:e,onChange:this.onSelectChange,hideDefaultSelections:!0,selections:!1,columnTitle:"",type:"checkbox"}}},data:function(){return{columns:le,dataSource:[],selectedRowKeys:[],pageTotal:0,loading:!1,visible:!1,tableKey:1}},mounted:function(){},methods:{changeTableKey:function(){this.tableKey=Math.random()},addAction:function(e){var t=[],n=e.ids||[];e.userInputValue&&(t=e.userInputValue.split(",").map(Number).filter(Boolean));var a=this.dataSource.map((function(e){return e.brand_id})),i=n.concat(a).filter((function(e){return!n.includes(e)||!a.includes(e)})),r=i.filter((function(e){return!n.includes(e)}));a=a.filter((function(e){return!r.includes(e)}));var s=Array.from(new Set([].concat(Object(b["a"])(n),Object(b["a"])(a)))),o=s.concat(a).filter((function(e){return!s.includes(e)||!a.includes(e)})),c=o.concat(a).concat(t),l=Object(b["a"])(new Set(c));this.getTableList({brand_id:l.join(",")}),this.visible=!0},singleDelete:function(e){this.deleteProcess(e)},deleteAction:function(e){e=e||this.selectedRowKeys;var t=this;this.$confirm({icon:function(e){return e(R["a"])},title:"确定删除吗?",onOk:function(){t.deleteProcess(e)},cancelText:"取消",okText:"确定"})},brandAction:function(){this.closeAction(),this.$refs.selectBrand.readyShow("editAdd",this.dataSource.map((function(e){return e.brand_id})))},readyShow:function(e,t){var n=[],a=t.ids||[];t.userInputValue&&(n=t.userInputValue.split(",").map(Number).filter(Boolean));var i=Array.from(new Set(a.concat(n)));this.getTableList({brand_id:i.join(",")}),this.visible=!0,this.targetAttr=e},onSelectChange:function(e){this.selectedRowKeys=e},handleAction:function(){this.$emit("selectAction",{ids:this.dataSource.map((function(e){return e.brand_id})),dataSource:this.dataSource}),this.handleCancel()},closeAction:function(){this.visible=!1},handleCancel:function(){this.visible=!1},deleteProcess:function(e){e.length===this.dataSource.length?(this.dataSource=[],this.selectedRowKeys=[]):(this.dataSource=this.dataSource.filter((function(t){return!e.includes(t.brand_id)})),this.selectedRowKeys=this.selectedRowKeys.filter((function(t){return!e.includes(t)})))},sizeLimit:function(e){var t=10;return e.brand_id&&(t=e.brand_id.length>1e3?1e3:e.brand_id.length),t},modalClosed:function(){this.visible=!0},customSort:function(e,t){var n=e.brand_id.split(",").map(Number),a=[];return n.forEach((function(e){a.push(t.find((function(t){return t.brand_id===e})))})),a},getTableList:function(e){var t=this;this.loading=!0,this.$store.dispatch("Get_modal_brandList",e).then((function(e){var n=e.data;n?(t.dataSource=n.brand_infos,t.pageTotal=n.total_num,t.changeTableKey()):t.resultNull()})).finally((function(){t.loading=!1}))}}},de=ue,fe=Object(l["a"])(de,oe,ce,!1,null,null,null),he=fe.exports,pe={components:{selectBrand:se,editSelectBrand:he},props:{isRequired:{type:Boolean,default:function(){return!0}},errInfo:{type:String,default:function(){return"请选择品牌"}}},data:function(){return{labelCol:{span:4},wrapperCol:{span:16},customWrapperCol:{span:8},validateCustomeStatus:"success",validateCustomeErrorInfo:"",enterValue:[],dataSource:[],buttonLabel:"请选择"}},methods:{selectModal:function(){this.enterValue.length?this.$refs.editSelectBrand.readyShow("editSelectBrand",{ids:this.enterValue,dataSource:this.dataSource}):this.$refs.selectBrand.readyShow()},errStatus:function(){this.validateCustomeStatus="error",this.validateCustomeErrorInfo=this.errInfo},clearErrorStatus:function(){this.validateCustomeStatus="success",this.validateCustomeErrorInfo=""},ClassValueCallback:function(e){return this.enterValue},customSort:function(e,t){var n=e.map(Number),a=[];return n.forEach((function(e){a.push(t.find((function(t){return t.brand_id===e})))})),a},noticeEnter:function(e){var t=this;this.enterValue=e||[],this.enterValue.length?this.$store.dispatch("Get_modal_brandList",{brand_id:e.join(",")}).then((function(e){if(e){var n=e.data.brand_infos;t.dataSource=n,t.buttonLabel="编辑品牌"}})):(this.dataSource=[],this.buttonLabel="请选择")},addAction:function(e){this.$refs.editSelectBrand.readyShow("editSelectBrand",e)},selectAction:function(e){this.enterValue=e.ids,this.dataSource=e.dataSource,this.dataSource.length?this.buttonLabel="编辑品牌":this.buttonLabel="请选择",this.clearErrorStatus()}}},be=pe,me=(n("dfd6"),Object(l["a"])(be,U,G,!1,null,"600a945c",null)),ve=me.exports,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{position:"relative"}},[n("a-range-picker",{staticStyle:{width:"65%"},attrs:{value:e.value,showTime:{defaultValue:[e.moment(),e.moment("23:59:59","HH:mm:ss")]},placeholder:[e.$t("message.StarTime"),e.$t("message.EndTime")],"disabled-date":e.disabledDate},on:{change:e.hanleTimeChange}},[n("template",{slot:"renderExtraFooter"},[n("div",{on:{click:function(t){return e.clickHour(t,"start")}}},[e._v("\n 开始:"),e._l(e.timeSelect,(function(t){return n("a-tag",{key:t.value,staticStyle:{cursor:"pointer"},attrs:{color:"blue","data-value":t.label}},[e._v("\n "+e._s(t.label)+"\n ")])}))],2),n("div",{on:{click:function(t){return e.clickHour(t,"end")}}},[e._v("\n 结束:"),e._l(e.timeSelect,(function(t){return n("a-tag",{key:t.value,staticStyle:{cursor:"pointer"},attrs:{color:"blue","data-value":t.label}},[e._v("\n "+e._s(t.label)+"\n ")])}))],2)])],2)],1)},ge=[],_e=n("c1df"),Se=n.n(_e),ke={model:{prop:"value",event:"change"},props:{value:{type:Array,default:function(){return[]}},disabledDate:{type:Function,default:function(e){return e&&e0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";this.tipTxt=e,this.tipColor=this.tipColors[t],this.hasErr=!0},clearTip:function(){this.tipTxt="",this.tipColor="#f5222d",this.hasErr=!1},handleBorderRadius:function(){var e=[];this.borderRadius=e},handleBlur:function(e){this.$emit("blur",e.target.value)}}},Le=Re,$e=(n("2d82"),Object(l["a"])(Le,Ee,De,!1,null,"67b6dcb3",null)),Pe=$e.exports},"57cc":function(e,t,n){"use strict";n("6836")},6836:function(e,t,n){},"713c":function(e,t,n){},"8d8d":function(e,t,n){},a072:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"commodity-box pr"},[n("a-row",{staticClass:"header-box",attrs:{gutter:32}},[n("a-col",{attrs:{span:e.firstSpan}},[n("span",{staticStyle:{width:"24px"}}),e._v("\n 商品信息\n ")]),e._l(e.columns,(function(t){return n("a-col",{key:t.dataIndex,style:{textAlign:t.align?t.align:"center"},attrs:{span:t.span}},[e._v("\n "+e._s(t.title)+"\n ")])}))],2),n("a-spin",{attrs:{spinning:e.loading}},[n("div",{staticClass:"custome-loop"},e._l(e.dataSource,(function(t){return n("single-comp",{key:t.key,ref:"singleComp",refInFor:!0,attrs:{receiveData:t,columns:e.columns,formId:e.formId,apiUrl:e.apiUrl},on:{deleteProduct:e.deleteProduct}})})),1),n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.dataSource.length,expression:"dataSource.length === 0"}]},[n("empty-comp")],1)])],1)},i=[],r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customeLayout"},[n("a-row",[n("a-col",{staticClass:"single-header",attrs:{span:24}},[n("div",{staticClass:"rowHeader"},[n("i",{staticClass:"rowCheck"}),n("span",[e._v("店铺:"+e._s(e.receiveData.store_name))]),n("span",[e._v("商品类型: "+e._s(e.receiveData.product_type))]),n("span",[e._v("商品ID: "+e._s(e.receiveData.id))])])])],1),n("a-row",{staticClass:"table-table"},[n("a-col",{staticClass:"commodityPadding16 table-td",attrs:{span:e.firstSpan}},[n("commodity-comp",{ref:"singleCommodity",attrs:{commodityObj:e.receiveData.operation}})],1),e._l(e.columns,(function(t){return n("a-col",{key:t.dataIndex,staticClass:"single-content-padding table-td",attrs:{span:t.span}},[t.isDom?"operation"===t.dataIndex?[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.onDelete(e.receiveData)}}},[e._v("删除")])]:"level_price"===t.dataIndex?[n("div",{staticClass:"level_price"},e._l(e.receiveData[t.dataIndex],(function(t){return n("p",{key:t.level_id},[e._v("\n "+e._s(t.name)+"价 : "+e._s(t.format_price)+"\n ")])})),0)]:[n("p",[e._v(e._s(e._f("stringFilter")(e.receiveData[t.dataIndex])))])]:[t.showLable?[n("a-tooltip",[n("template",{slot:"title"},[e._v("\n "+e._s(e.receiveData[t.dataIndex])+"\n ")]),n("p",[e._v(e._s(e._f("stringFilter")(e.receiveData[t.dataIndex])))])],2)]:[n("p",[e._v(e._s(e._f("stringFilter")(e.receiveData[t.dataIndex])))])]]],2)}))],2)],1)},s=[],o=(n("c5f6"),n("d9885")),c=n("3258"),l=n("8916"),u={inject:{firstSpan:{default:12}},components:{commodityComp:o["a"]},props:{receiveData:{type:Object,required:!0},columns:{type:Array,required:!0},formId:{type:String,default:function(){return""}},apiUrl:{type:String,default:"commodity"}},data:function(){return{singleHeight:Number}},methods:{onDelete:function(e){var t={form_id:this.formId||this.$store.getters.commodityFormId,product_ids:[e.id]},n=this,a="commodity"===this.apiUrl?c["g"]:l["t"];a(t).then((function(e){e&&n.$emit("deleteProduct")}))}},filters:{statusFilter:function(e){switch(e){case 0:return"普通商品";case 1:return"套装商品";case 2:return"虚拟商品";default:return"- -"}}}},d=u,f=(n("1950"),n("2877")),h=Object(f["a"])(d,r,s,!1,null,"69298c68",null),p=h.exports,b=n("792b"),m={name:"CustomeTable",inject:{firstSpan:{default:12}},props:{columns:{type:Array,required:!0},dataSource:{type:Array,required:!0},apiUrl:{type:String,default:"commodity"},loading:{type:Boolean,required:!0},formId:{type:String,default:function(){return""}}},components:{singleComp:p,emptyComp:b["a"]},data:function(){return{}},methods:{deleteProduct:function(){this.$emit("deleteProduct")}}},v=m,y=(n("c5cc"),Object(f["a"])(v,a,i,!1,null,"0599610b",null));t["a"]=y.exports},a693:function(e,t,n){"use strict";n("c1af")},b26b:function(e,t,n){},bf75:function(e,t,n){},c1af:function(e,t,n){},c5cc:function(e,t,n){"use strict";n("e59a")},dfd6:function(e,t,n){"use strict";n("bf75")},e59a:function(e,t,n){},ebc0:function(e,t,n){"use strict";n("b26b")},efe2:function(e,t,n){"use strict";n("713c")},fb14:function(e,t,n){}}]);