(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d12e733","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"22c1":function(e,t,a){"use strict";a("8d8d")},"2b12":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("custom-bread",{attrs:{breadList:e.breadList}}),a("div",{staticClass:"customContent"},[a("a-layout",{style:{}},[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(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}}},[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"},[e._v("\n 商品名称\n ")]),a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("message.PleaseEnter")},model:{value:e.queryParam.title,callback:function(t){e.$set(e.queryParam,"title",t)},expression:"queryParam.title"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 商户SKU\n ")]),a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("message.PleaseEnter")},model:{value:e.queryParam.merchant_sku,callback:function(t){e.$set(e.queryParam,"merchant_sku",t)},expression:"queryParam.merchant_sku"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 商品ID\n ")]),a("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("message.PleaseEnter")},model:{value:e.queryParam.product_id,callback:function(t){e.$set(e.queryParam,"product_id",t)},expression:"queryParam.product_id"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("div",{staticClass:"page-user-button"},[a("a-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v(e._s(e.$t("message.Search")))]),a("a-button",{on:{click:e.reset}},[e._v(e._s(e.$t("message.Reset")))])],1)])],1)],1)],1)])]),a("a-layout-content",{style:{background:"#fff",padding:"24px"}},[a("a-button",{staticClass:"marginBottom24",on:{click:e.productExport}},[e._v("导出")]),a("a-table",{ref:"table",attrs:{dataSource:e.dataSource,columns:e.columns,pagination:e.paginationSet,rowKey:"product_id",loading:e.loading,rowSelection:e.rowSelection},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"titleSlot",fn:function(t,s){return[t?[a("a-tooltip",[a("template",{slot:"title"},[e._v("\n "+e._s(t)+"\n ")]),a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[a("a",{attrs:{target:"_blank",href:s.url_path}},[e._v("\n "+e._s(e._f("stringFilter")(t))+"\n ")])])],2)]:[a("p",{staticClass:"line_table_hidden",staticStyle:{height:"14px","line-height":"14px"}},[e._v(e._s(e._f("stringFilter")(t)))])]]}}])}),a("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)],1),a("product-export",{ref:"productExport",on:{exportSucess:e.exportSucess}}),a("export-success",{ref:"exportSuccess",attrs:{windowOpen:""}})],1)],1)},i=[],n=(a("386d"),a("bf43")),r=a("5633"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-modal",{attrs:{title:"导出",visible:e.visible,okText:"确定",cancelText:"取消",width:e.stepNumber?1e3:400,bodyStyle:{padding:"24px 24px 0"}},on:{ok:e.handleOk,cancel:e.handleCancel}},[a("div",{directives:[{name:"show",rawName:"v-show",value:!e.stepNumber,expression:"!stepNumber"}],staticClass:"mb24"},[a("export-first",{ref:"exportFirst",attrs:{limitOne:"请选择最少一条"},on:{firstCallback:e.firstCallback}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:e.stepNumber,expression:"stepNumber"}]})])],1)},o=[],c=(a("c5f6"),a("73f5")),u=a("c4ae"),d={name:"ExportCommodity",components:{exportFirst:u["a"]},data:function(){return{visible:!1,isAllChecked:!1,type_id:4,selectedRowKeys:"",queryParam:{},stepNumber:0,firstValue:{},defaultSet:[]}},methods:{backFirst:function(){this.stepNumber=0},firstCallback:function(e){var t={website_id:this.$store.getters.websiteId,product_id:this.selectedRowKeys.join(","),limit:1===e.firstValue.type?this.selectedRowKeys.length:Number(e.firstValue.value)},a=Object.assign({},this.queryParam,t);this.exportTask(a)},firstTask:function(){this.$refs.exportFirst.handleSubmit(this.selectedRowKeys)},showModal:function(e,t){this.selectedRowKeys=e,this.queryParam=t,this.visible=!0},secondCallback:function(e){this.dataConcat(e.fieldName)},dataConcat:function(e){var t={type_id:this.type_id,field_names:e},a=this.selectedRowKeys.length||0;if(1===this.firstValue.type){var s={product_ids:this.selectedRowKeys.join(",")};t.condition_params=JSON.stringify(Object.assign(JSON.parse(JSON.stringify(this.queryParam)),s))}else t.condition_params=JSON.stringify(this.queryParam);t=1===this.firstValue.type?Object.assign(t,{expect_rows:Number(a)}):Object.assign(t,{expect_rows:Number(this.firstValue.value)}),this.exportTask(t)},exportTask:function(e){var t=this;this.visible=!1,Object(c["h"])(e).then((function(e){e?(t.$emit("exportSucess"),t.handleCancel()):t.$message.error("导出失败")}))},handleOk:function(e){this.stepNumber?this.firstCallback():this.firstTask()},handleCancel:function(e){this.visible=!1,this.stepNumber=0,this.defaultSet=[],this.$refs.exportFirst.errorHidden()}}},b=d,p=a("2877"),m=Object(p["a"])(b,l,o,!1,null,null,null),h=m.exports,f=a("2af9"),v=a("ac0d"),g=[{title:"商品标题",dataIndex:"title",width:"30%",scopedSlots:{customRender:"titleSlot"},align:"center"},{title:"商户SKU",dataIndex:"merchant_sku",align:"center"},{title:"商品ID",dataIndex:"product_id",align:"center"},{title:"待提醒用户数",dataIndex:"subscription_count",align:"center",sorter:!0,sortDirections:["descend","ascend"]}],_={components:{PAgination:n["a"],customBread:r["a"],productExport:h,exportSuccess:f["c"]},mixins:[v["h"]],computed:{rowSelection:function(){var e=this.selectedRowKeys;return{selectedRowKeys:e,onChange:this.onSelectChange,hideDefaultSelections:!0,selections:!1,columnTitle:"",type:"checkbox"}}},data:function(){return{breadList:{current:"到货提醒",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"用户"},{name:"2",title:"用户触达"},{name:"4",title:"到货提醒"}]},columns:g,queryParam:{title:"",product_id:"",merchant_sku:"",sort_fields:"",sort_type:""},loading:!1,selectedRowKeys:[]}},methods:{exportSucess:function(){this.$refs.exportSuccess.showModal()},onSelectChange:function(e){this.selectedRowKeys=e},getTableList:function(){var e=this;this.loading=!0;var t=Object.assign({},this.query,this.queryParam);Object(c["g"])(t).then((function(t){var a=t.data;a?(e.loading=!1,e.dataSource=a.alert_subscription_infos,e.pageTotal=a.total_num):e.resultNull()}))},search:function(){this.query.page=1,this.getTableList()},reset:function(){this.queryParam.title="",this.queryParam.product_id="",this.queryParam.merchant_sku="",this.queryParam.sort_fields="",this.queryParam.sort_type="",this.search()},handleTableChange:function(e,t,a){void 0!==a.order?(this.queryParam.sort_fields="subscription_count","descend"===a.order?this.queryParam.sort_type="DESC":"ascend"===a.order&&(this.queryParam.sort_type="ASC")):this.queryParam.sort_fields="",this.getTableList()},productExport:function(){this.$refs.productExport.showModal(this.selectedRowKeys,this.queryParam)}},mounted:function(){this.$store.commit("SET_Controller_HddenLanguages",!0)},beforeRouteLeave:function(e,t,a){this.$store.commit("SET_Controller_HddenLanguages",!1),a()}},y=_,x=(a("66043"),Object(p["a"])(y,s,i,!1,null,"27ff6494",null));t["default"]=x.exports},5633:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;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"},e._l(e.breadList.loopBread,(function(t){return a("a-breadcrumb-item",{key:t.name},[t.href?a("router-link",{attrs:{to:{path:t.href}}},[e._v("\n "+e._s(t.title)+"\n ")]):a("span",[e._v(e._s(t.title))])],1)})),1),a("div",{staticClass:"detail"},[a("div",{staticClass:"customBreadcrumb-current"},[a("h1",{staticClass:"title"},[e._v(e._s(e.breadList.current))]),e.breadList.showNote&&e.breadList.isText?a("a-tooltip",{attrs:{placement:"bottomLeft"}},[a("template",{slot:"title"},[a("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),a("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e.breadList.showNote?a("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[a("template",{slot:"content"},[a("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),a("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e._e()],1)])],1),a("div",{staticClass:"customBreadRight"},[e._t("default")],2)])])},i=[],n={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var e=this.breadList.current;switch(e){case"热搜词":return'\n
商品综合排序规则说明:
\n