PageSourceSearch

https://www.mabangerp.com/amazon/static/js/chunk-5185.c6f92d89.js?site=amazon

js mabangerp.com collected 2026-10-01 10:34:02 UTC 35,843 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5185],{711:function(e,t,a){var i=a(41827),s=a(44899),o=a(76915),n=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.seller={},t.keywords="",t.height=document.documentElement.offsetHeight-50||500,t.isWidth=!1,t.defaultProps={children:"list",label:"campaignName",isLeaf:"leaf"},t}return(0,i.__extends)(t,e),t.prototype.watchSellers=function(e){var t=this;e&&e.length>0&&(this.$route.query.shopId?e.forEach(function(e){e.id==t.$route.query.shopId&&(t.seller=e,t.$emit("changWidth",t.isWidth,t.seller))}):(this.seller=e[0],this.$emit("changWidth",this.isWidth,this.seller)))},t.prototype.handleCheckChange=function(){var e=this.$refs.tree.getCheckedNodes();this.$emit("changTree",{},e)},t.prototype.loadNode=function(e,t){var a=this;e.data.list&&e.data.list.length>0&&t(e.data.list),e.data.portfolioId&&(0,o.getAdCampaignForPortfolios)({shopId:this.seller.id,portfolioId:e.data.portfolioId}).then(function(i){if(200!=i.code)return a.$message.error(i.message);i.data.forEach(function(t,a){t.campaignId=e.data.portfolioId+a,t.campaignName=t.name,t.list&&t.list.length>0?t.list.forEach(function(e){e.leaf=!0}):t.leaf=!0}),t(i.data)})},t.prototype.handleNodeClick=function(e,t){this.$emit("changTree",t)},t.prototype.changeSellers=function(){this.$emit("changWidth",this.isWidth,this.seller)},t.prototype.deSearch=function(){this.$refs.tree.filter(this.keywords)},t.prototype.filterNode=function(e,t){return!e||-1!==t.campaignName.indexOf(e)},t.prototype.showSidebar=function(){this.isWidth=!this.isWidth,this.$emit("changWidth",this.isWidth)},(0,i.__decorate)([(0,s.Prop)({default:{type:Array,default:function(){return[]}}})],t.prototype,"sellers",void 0),(0,i.__decorate)([(0,s.Prop)({default:{type:Array,default:function(){return[]}}})],t.prototype,"campaignForPortfoliosList",void 0),(0,i.__decorate)([(0,s.Watch)("sellers",{deep:!0,immediate:!0})],t.prototype,"watchSellers",null),(0,i.__decorate)([s.Component],t)}(s.Vue);t.A=n},56553:function(e,t,a){a.r(t),a.d(t,{default:function(){return S}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"advertisingAll"},[t("leftTree",{ref:"leftTree",attrs:{sellers:e.sellers,campaignForPortfoliosList:e.campaignForPortfoliosList},on:{changWidth:e.changWidth,changTree:e.changTree}}),t("div",{staticClass:"div_main_content",style:{width:e.isWidth?"100%":"",height:e.height+"px"}},[t("div",{staticClass:"div_main_content_top"},[t("span",[e._v("当前币种:"+e._s(e.seller.currency))]),t("span",[e._v(e._s(e.seller.timeZoneName)+":"+e._s(e.seller.date))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideChart,expression:"!hideChart"}],staticClass:"bid-card"},[t("div",{staticClass:"chart-top"},[e._l(e.selectquotaList,function(a){return t("div",{key:a.id,staticClass:"chart-top-body"},[t("div",{staticClass:"chart-top-body-left"}),t("div",{staticClass:"chart-top-body-right"},[t("div",{staticClass:"title"},[e._v(e._s(a.name))]),t("div",{staticClass:"num"},[e._v(e._s(a.total)),"CTR"==a.id||"ACOS"==a.id||"CVR"==a.id||"ROAS"==a.id?t("span",[e._v("%")]):e._e()])])])}),t("div",{staticClass:"chart-top-add",on:{click:function(t){e.dialogVisible=!0}}},[t("i",{staticClass:"el-icon-circle-plus"}),t("div",{staticClass:"chart-top-add-right"},[e._v("添加指标")])])],2),t("div",{style:{height:e.advertisingMixHeight+"px"},attrs:{id:"advertisingMixChart"}})]),t("div",{staticClass:"bid-card"},[t("div",{staticClass:"search-box"},[t("multi-select",{attrs:{placeholder:"广告组合",width:"120",options:e.portfolioList,selectedOptions:e.portfolioId,value:"portfolioId",name:"name"},on:{"update:selectedOptions":function(t){e.portfolioId=t},"update:selected-options":function(t){e.portfolioId=t},change:e.doSearch}}),t("el-cascader",{staticClass:"w-200",attrs:{size:"small",options:e.cpcTypeList,props:{multiple:!0},"collapse-tags":"",clearable:""},model:{value:e.cpcType,callback:function(t){e.cpcType=t},expression:"cpcType"}}),t("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":e.$getUnifiedDateRangeOptions(e.dateOptions),"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"left",size:"small",clearable:!1},on:{focus:e.hidePoper},model:{value:e.searchDate,callback:function(t){e.searchDate=t},expression:"searchDate"}}),t("el-select",{staticClass:"w-200",attrs:{placeholder:"全部广告组合类型",size:"small",clearable:""},model:{value:e.policy,callback:function(t){e.policy=t},expression:"policy"}},e._l(e.getCampaignList,function(e){return t("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}),1),t("el-date-picker",{attrs:{type:"date",placeholder:"选择创建时间","value-format":"yyyy-MM-dd",size:"small"},model:{value:e.createTime,callback:function(t){e.createTime=t},expression:"createTime"}}),t("div",{staticClass:"search-last"},[t("div",{staticClass:"search-block"},[t("el-input",{staticClass:"input-with-select",staticStyle:{width:"200px"},attrs:{placeholder:"搜索广告活动",size:"small",clearable:""},on:{clear:e.doSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearch.apply(null,arguments)}},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}}
1),t("i",{staticClass:"iconfont ak-search",on:{click:e.doSearch}})],1)])],1)]),t("div",{staticClass:"bid-card"},[t("div",{staticClass:"operation-box"},[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.addActivity}},[t("el-button",{attrs:{size:"small",type:"primary"}},[e._v(" 创建广告活动"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"1"}},[e._v("创建SP广告活动")]),t("el-dropdown-item",{attrs:{command:"2"}},[e._v("创建SB广告活动")])],1)],1),t("MoreOperateSelect",{staticClass:"w-100 ml-8",attrs:{size:"small",value:"修改状态",groupBtns:[{name:"启用",value:"enabled"},{name:"暂停",value:"paused"},{name:"归档",value:"archived"}]},on:{change:e.handleBatchChanged}}),t("MoreOperateSelect",{staticClass:"w-100 ml-8",attrs:{size:"small",value:"批量操作",groupBtns:[{name:"批量调整预算",value:"1"},{name:"移动到其他广告组合",value:"3"},{name:"修改广告活动开始时间",value:"4"},{name:"修改广告活动结束时间",value:"5"}]},on:{change:e.handleBtnChanged}}),t("div",{staticClass:"table-btn"},[t("BaseBtnDownload",{attrs:{isDownLoading:e.isDownLoading},on:{downloadChanged:e.down}}),t("el-checkbox",{staticClass:"ml-8",on:{change:e.changeHideChart},model:{value:e.hideChart,callback:function(t){e.hideChart=t},expression:"hideChart"}},[e._v("隐藏图表")]),t("CustomColumnConfig",{ref:"customColumnConfig",attrs:{applyAutoNames:{},width:760,moudleType:"14"},on:{updateTableColumnConfigs:e.updateTableColumnConfigs}})],1)],1),t("div",{staticClass:"table-box"},[t("vxe-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"mainTable",attrs:{align:"left","max-height":"500px",resizable:"","show-header-overflow":"","highlight-hover-row":"","highlight-current-row":"",data:e.tableData,"auto-resize":!0,"sort-config":{remote:!0,trigger:"cell",orders:["desc","asc"]},"show-overflow":"",id:"advertisingMix","custom-config":{storage:{visible:!0,resizable:!0}}},on:{"sort-change":e.sortChange}},[t("vxe-table-column",{attrs:{fixed:"left",type:"checkbox",field:"customPros",params:{id:"cell"},width:"40",resizable:!1}}),e.getCol("cpcTypeName")?t("vxe-table-column",{attrs:{"min-width":"140",fixed:"left",field:"cpcTypeName",title:"广告类型"}}):e._e(),e.getCol("campaignName")?t("vxe-table-column",{attrs:{field:"campaignName","min-width":"140",fixed:"left",title:"广告活动"}}):e._e(),e.getCol("portfolioName")?t("vxe-table-column",{attrs:{"min-width":"140",title:"广告组合",field:"portfolioName"}}):e._e(),e.getCol("dailyBudget")?t("vxe-table-column",{attrs:{"min-width":"140",title:"预算",field:"dailyBudget",sortable:""},scopedSlots:e._u([{key:"default",fn:function(a){var i=a.row;return[t("span",[e._v(e._s(i.dailyBudget))]),t("el-popover",{staticStyle:{display:"inline-block"},attrs:{placement:"top",width:"160",trigger:"click"},model:{value:i.dailyBudgetVisible,callback:function(t){e.$set(i,"dailyBudgetVisible",t)},expression:"row.dailyBudgetVisible"}},[t("el-input",{directives:[{name:"number-input",rawName:"v-number-input",value:{float:2},expression:"{ float: 2 }"}],attrs:{size:"small",placeholder:"请输入预算"},model:{value:e.dailyBudget,callback:function(t){e.dailyBudget=t},expression:"dailyBudget"}}),t("div",{staticStyle:{"text-align":"right","margin-top":"10px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(e){i.dailyBudgetVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini",loading:e.loading},on:{click:function(t){return e.changStatus(i)}}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(t){e.dailyBudget=i.dailyBudget}},slot:"reference"},[e._v("修改")])],1)]}}],null,!1,702752833)}
1):e._e(),e.getCol("state")?t("vxe-table-column",{attrs:{"min-width":"140",field:"state"},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("广告状态")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("状态:状态是结合父级广告对象的状态而确定的")])]},proxy:!0}],null,!1,2367491598)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0},{key:"default",fn:function(a){var i=a.row;return[t("span",{class:e.stateChineseColor(i.state)},[e._v(e._s(i.state))])]}}],null,!1,2872232047)}):e._e(),e.getCol("startDate")?t("vxe-table-column",{attrs:{"min-width":"140",field:"startDate",sortable:"",title:"开始时间"}}):e._e(),e.getCol("endDate")?t("vxe-table-column",{attrs:{"min-width":"140",field:"endDate",sortable:"",title:"结束时间"}}):e._e(),e.getCol("creationDate")?t("vxe-table-column",{attrs:{"min-width":"140",field:"creationDate",sortable:"",title:"创建时间"}}):e._e(),e.getCol("policy")?t("vxe-table-column",{attrs:{"min-width":"140",field:"policy",title:"广告组合类型"}}):e._e(),e.getCol("impressions")?t("vxe-table-column",{attrs:{"min-width":"140",field:"impressions",title:"展示量",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("展示量")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("广告被展示的次数。")]),t("p",[e._v("注意:一旦识别出无效点击,系统最多会在 3 天内予以删除。")])]},proxy:!0}],null,!1,2725836516)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,2075650113)}):e._e(),e.getCol("clicks")?t("vxe-table-column",{attrs:{"min-width":"140",field:"clicks",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("点击")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("店铺广告中的总点击次数")])]},proxy:!0}],null,!1,3409668042)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,280801952)}
1):e._e(),e.getCol("CTR")?t("vxe-table-column",{attrs:{"min-width":"140",field:"CTR",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("CTR")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("点击量/展示量*100%")]),t("p",[e._v("注意:一旦识别出无效点击,亚马逊系统最多会在 3 天内从您的支出统计数据中删除这些点击记录。")]),t("p",[e._v("日期范围(含过去 3 天内的支出)可能因点击和支出失效而有所调整")])]},proxy:!0}],null,!1,154187396)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0},{key:"default",fn:function(a){var i=a.row;return[t("span",[e._v(e._s(i.CTR)+"%")])]}}],null,!1,1688096093)}):e._e(),e.getCol("CPC")?t("vxe-table-column",{attrs:{"min-width":"140",field:"CPC",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("CPC")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("单次点击成本,CPC=广告花费/点击")])]},proxy:!0}],null,!1,1327374664)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,421298547)}):e._e(),e.getCol("cost")?t("vxe-table-column",{attrs:{"min-width":"140",field:"cost",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("花费")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("店铺内所有广告的总花费")])]},proxy:!0}],null,!1,2069955952)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,1161282970)}):e._e(),e.getCol("contributionSales")?t("vxe-table-column",{attrs:{"min-width":"140",field:"contributionSales",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("销售额")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("因广告出单的总销售额")])]},proxy:!0}],null,!1,2435931557)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,1058132690)}):e._e(),e.getCol("ACOS")?t("vxe-table-column",{attrs:{"min-width":"140",field:"ACOS",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("ACOS")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("ACOS=广告花费/广告销售额*100%")])]},proxy:!0}],null,!1,1336498618)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0},{key:"default",fn:function(a){var i=a.row;return[t("span",[e._v(e._s(i.ACOS)+"%")])]}}],null,!1,3016038172)}):e._e(),e.getCol("ROAS")?t("vxe-table-column",{attrs:{"min-width":"140",field:"ROAS",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("ROAS")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("ROAS=广告销售额/花费*100%")])]},proxy:!0}],null,!1,3813221150)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0},{key:"default",fn:function(a){var i=a.row;return[t("span",[e._v(e._s(i.ROAS)+"%")])]}}],null,!1,25118201)}):e._e(),e.getCol("CPA")?t("vxe-table-column",{attrs:{"min-width":"140",field:"CPA",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("CPA")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("CPA:平均到每笔应告订单蛋的花费金额。每笔订单花费=Spend/Orders")])]},proxy:!0}],null,!1,491924291)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,161933440)}):e._e(),e.getCol("CVR")?t("vxe-table-column",{attrs:{"min-width":"140",field:"CVR",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("CVR")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("广告转化率,CVR=广告订单数/点击*100%")])]},proxy:!0}],null,!1,2584651948)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0},{key:"default",fn:function(a){var i=a.row;return[t("span",[e._v(e._s(i.CVR)+"%")])]}}],null,!1,4118855723)}
1):e._e(),e.getCol("orderQuantity")?t("vxe-table-column",{attrs:{"min-width":"140",field:"orderQuantity",sortable:""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"table-tr-tooltip"},[t("span",[e._v("广告订单数")]),t("el-tooltip",{attrs:{effect:"dark",placement:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("p",[e._v("广告订单数:订单数量是指买家在点击您广告后提交的亚马逊订单数量。")]),t("p",[e._v("商品推广: 7天内购买的推广商品及库存中其他商品的订单数量。")]),t("p",[e._v("品牌推广: 14 天内在亚马逊及第三方卖家处售出")]),t("p",[e._v("的推广商品及同品牌所有商品的订单数量。")]),t("p",[e._v("在亚马逊系统中,您的订单数据可能需要12 小时")]),t("p",[e._v("才会更新。因此;-我们建议您使用2天前的订单数")]),t("p",[e._v("量去评估广告活动绩效。")]),t("p",[e._v("付款失败的订单数量和72小时内取消的订单数量")]),t("p",[e._v("将从订单总量中删除。")]),t("p",[e._v("该广告订单数:包括otherasin的订单。")])]},proxy:!0}],null,!1,696692925)},[t("i",{staticClass:"iconfont ak-tips_nor"})])],1)]},proxy:!0}],null,!1,1487131453)}):e._e(),t("vxe-table-column",{attrs:{"min-width":"140",fixed:"right",title:"操作"},scopedSlots:e._u([{key:"default",fn:function(a){var i=a.row;return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openLogDialog(i)}}},[e._v("日志")])]}}])})],1)],1),t("div",{staticClass:"mb_pagination"},[t("el-pagination",{attrs:{"page-size":e.pageSize,"current-page":e.pageNum,"page-sizes":[20,50,100,200],total:e.total,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"update:currentPage":function(t){e.pageNum=t},"update:current-page":function(t){e.pageNum=t},"current-change":e.currentChange,"size-change":e.handerSize}})],1)])]),t("el-dialog",{attrs:{title:"添加指标",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-body"},[t("el-checkbox-group",{staticClass:"quotaList",attrs:{size:"small"},model:{value:e.quotaList,callback:function(t){e.quotaList=t},expression:"quotaList"}},e._l(e.selectTotal,function(a){return t("el-checkbox-button",{key:a.id,attrs:{label:a.id}},[e._v(e._s(a.name)+"("+e._s(a.total)+")"),"CTR"==a.id||"ACOS"==a.id||"CVR"==a.id||"ROAS"==a.id?t("span",[e._v("%")]):e._e()])}),1)],1),t("span",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"default",size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitQuota}},[e._v("确认")])],1)]),t("el-dialog",{attrs:{title:"批量修改",width:"400px",visible:e.batchVisible},on:{"update:visible":function(t){e.batchVisible=t}}},["1"==e.rowsValue?t("div",{staticClass:"dialog-body"},[t("el-input",{directives:[{name:"number-input",rawName:"v-number-input",value:{float:2},expression:"{ float: 2 }"}],attrs:{placeholder:"请输入预算",size:"small"},model:{value:e.dailyBudget,callback:function(t){e.dailyBudget=t},expression:"dailyBudget"}})],1):e._e(),"3"==e.rowsValue?t("div",{staticClass:"dialog-body"},[t("el-select",{staticClass:"w-200",attrs:{placeholder:"请选择广告组合",size:"small",filterable:""},model:{value:e.batchBortfolioId,callback:function(t){e.batchBortfolioId=t},expression:"batchBortfolioId"}},e._l(e.portfolioList,function(e){return t("el-option",{key:e.portfolioId,attrs:{value:e.portfolioId,label:e.name}})}),1)],1):e._e(),"4"==e.rowsValue?t("div",{staticClass:"dialog-body"},[t("el-date-picker",{attrs:{type:"date",size:"small","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,placeholder:"起始时间"},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}})],1):e._e(),"5"==e.rowsValue?t("div",{staticClass:"dialog-body"},[t("el-date-picker",{attrs:{"picker-options":e.pickerOptions,type:"date",size:"small","value-format":"yyyy-MM-dd",placeholder:"结束时间"},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}}
1)],1):e._e(),t("span",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"default",size:"small"},on:{click:function(t){e.batchVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"small",loading:e.loading},on:{click:e.submitBatch}},[e._v("确认")])],1)]),t("dialogAdvertisingMix",{ref:"dialogAdvertisingMix"}),t("DialogLog",{ref:"dialogLog"}),t("addAdvertising",{ref:"addAdvertising",on:{doSearch:e.doSearch}}),t("addAdvertisingSb",{ref:"addAdvertisingSb"}),t("switchaDMask",{ref:"switchaDMask"})],1)};i._withStripped=!0;var s=a(94300),o=a(31838),n=a(45841),r=a(61790),l=a.n(r),c=a(19610),d=a(76915),u=a(5661),p=a(94545),h=a(53037),f=a(29869),m=a(11748),g=a(60899),v=a(85128),y=a(71604),b=a(10262);function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?C(Object(a),!0).forEach(function(t){(0,o.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):C(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var _={name:"advertisingAll",components:{CustomColumnConfig:h.default,dialogAdvertisingMix:f.A,leftTree:m.A,DialogLog:v.A,addAdvertising:y.A,addAdvertisingSb:b.A},computed:{},provide:function(){var e=this;return{getSeller:function(){return e.seller},getSellers:function(){return e.getSellers()}}},data:function(){return{isWidth:!1,batchVisible:!1,dailyBudget:"",batchBortfolioId:"",startTime:"",endTime:"",pickerOptions:{disabledDate:function(e){return e<new Date}},getCampaignList:[{label:"无预算上限",value:"budgetNull"},{label:"日期范围上限",value:"dateRange"},{label:"每月定期上限",value:"MonthlyRecurring"}],policy:"",activeName:"1",createTime:"",quotaList:["impressions","clicks","CTR"],selectquotaList:[],url:{},tableData:[],total:0,pageNum:1,pageSize:20,height:document.documentElement.offsetHeight-50||500,advertisingMixHeight:0,tableLoading:!1,loading:!1,hideChart:!1,dialogVisible:!1,country:[],portfolioList:[],campaignForPortfoliosList:[],portfolioId:[],cpcType:[],sellers:[],checkedNodes:[],seller:{},orders:[{id:1,name:"全部订单类型",currency_code:"ALL"},{id:2,name:"FBA",currency_code:"FBA"},{id:3,name:"FBM",currency_code:"FBM"}],cpcTypeList:[{value:100,label:"SP广告",children:[{value:120,label:"SP手动"},{value:110,label:"SP自动"}]},{value:200,label:"SB自动"}],order:"",keywords:"",sro:"",ord:"",dateOptions:(0,u.getDateOptions)(!0),poperHide:{country:!1,seller:!1,tableColumns:!1},searchDate:(0,p.dateRangeFromDateBefore)(7),isDownLoading:!1,isVisible:!1,rowsList:[],rowsValue:"",tableColumnConfigs:[],xData:[],selectTotal:[{id:"impressions",name:"展示量",series:[],total:0},{id:"clicks",name:"点击量",series:[],total:0},{id:"CTR",name:"CTR",series:[],total:0},{id:"cost",name:"花费",series:[],total:0},{id:"CPC",name:"CPC",series:[],total:0},{id:"orderQuantity",name:"广告订单量",series:[],total:0},{id:"CVR",name:"CVR",series:[],total:0},{id:"CPA",name:"CPA",series:[],total:0},{id:"contributionSales",name:"销售额",series:[],total:0},{id:"ACOS",name:"ACOS",series:[],total:0},{id:"ROAS",name:"ROAS",series:[],total:0}]}},created:function(){JSON.parse(localStorage.getItem("userInfos")||"").companyId,JSON.parse(localStorage.getItem("userInfos")||"").name,localStorage.hideChartAll&&"true"==localStorage.hideChartAll&&(this.hideChart=!0),this.getCountrySellers()},methods:{getSellers:function(){return this.sellers},changStatus:function(e){var t=this;return(0,n.A)(l().mark(function a(){var i,s,o;return l().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.dailyBudget){a.next=1;break}return t.$message.warning("请输入预算"),a.abrupt("return");case 1:return i="100",e.cpcTypeName.includes("SP")?i="100":e.cpcTypeName.includes("SB")?i="200":e.cpcTypeName.includes("SD")&&(i="300"),s={shopId:t.seller.id,value:t.dailyBudget,type:"dailyBudget",data:[{cpcType:i,campaignId:e.campaignId}]},t.loading=!0,a.next=2,(0,d.putAdCampaign)(s);case 2:if(o=a.sent,t.loading=!1,200===o.code){a.next=3;break}return t.$message.error(o.message),a.abrupt("return");case 3:e.dailyBudgetVisible=!1,t.$message.success("操作成功"),t.doSearch();case 4:case"end":return a.stop()}},a)}))()},stateChineseColor:function(e){return"正在投放"==e?"green":"已暂停"==e?"grey":"red"},changWidth:function(e,t){this.isWidth=e,t&&(this.seller=t,this.getPortfolios())},changTree:function(e,t){var a=this;t&&(this.checkedNodes=t),1==e.level&&(e.data.portfolioId&&this.portfolioList.forEach(function(t){t.campaignId=t.portfolioId,t.campaignName=t.name,t.list=[],t.portfolioId==e.data.portfolioId&&(a.portfolioId=[t])}),this.doSearch())},changeHideChart:function(){var e=this;localStorage.hideChartAll=this.hideChart,1!=this.hideChart&&this.$nextTick(function(){e.submitQuota()})},submitBatch:function(){var e=this;return(0,n.A)(l().mark(function t(){var a,i,s,o,n,r;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.rowsValue,t.next="1"===r?1:"3"===r?3:"4"===r?5:"5"===r?7:9;break;case 1:if(e.dailyBudget){t.next=2;break}return e.$message.warning("请输入预算"),t.abrupt("return");case 2:return a="dailyBudget",i=e.dailyBudget,t.abrupt("continue",10);case 3:if(e.batchBortfolioId){t.next=4;break}return e.$message.warning("请选择广告组合"),t.abrupt("return");case 4:return a="portfolioId",i=e.batchBortfolioId,t.abrupt("continue",10);case 5:if(e.startTime){t.next=6;break}return e.$message.warning("请选择开始时间"),t.abrupt("return");case 6:return a="startDate",i=e.startTime,t.abrupt("continue",10);case 7:if(e.endTime){t.next=8;break}return e.$message.warning("请选择结束时间"),t.abrupt("return");case 8:return a="endDate",i=e.endTime,t.abrupt("continue",10);case 9:return t.abrupt("continue",10);case 10:return s=[],e.rowsList.forEach(function(e){var t="100";e.cpcTypeName.includes("SP")?t="100":e.cpcTypeName.includes("SB")?t="200":e.cpcTypeName.includes("SD")&&(t="300"),s.push({cpcType:t,campaignId:e.campaignId})}),o={shopId:e.seller.id,value:i,type:a,data:s},e.loading=!0,t.next=11,(0,d.putAdCampaign)(o);case 11:if(n=t.sent,e.loading=!1,200===n.code){t.next=12;break}return e.$message.error(n.message),t.abrupt("return");case 12:e.batchVisible=!1,e.$message.success("操作成功"),e.doSearch();case 13:case"end":return t.stop()}},t)}))()},handleBatchChanged:function(e){var t=this;return(0,n.A)(l().mark(function a(){var i,s,o,n;return l().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if((i=t.$refs.mainTable.getCheckboxRecords()).length){a.next=1;break}return t.$message.warning("请选择广告活动"),a.abrupt("return");
1case 1:return s=[],i.forEach(function(e){var t="100";e.cpcTypeName.includes("SP")?t="100":e.cpcTypeName.includes("SB")?t="200":e.cpcTypeName.includes("SD")&&(t="300"),s.push({cpcType:t,campaignId:e.campaignId})}),o={shopId:t.seller.id,value:e.value,type:"state",data:s},t.tableLoading=!0,a.next=2,(0,d.putAdCampaign)(o);case 2:if(n=a.sent,t.tableLoading=!1,200===n.code){a.next=3;break}return t.$message.error(n.message),a.abrupt("return");case 3:t.$message.success("操作成功"),t.doSearch();case 4:case"end":return a.stop()}},a)}))()},handleBtnChanged:function(e){var t=this.$refs.mainTable.getCheckboxRecords();t.length?(this.rowsList=t,this.rowsValue=e.value,this.dailyBudget="",this.batchBortfolioId="",this.startTime="",this.endTime="",this.batchVisible=!0):this.$message.warning("请选择广告活动")},addActivity:function(e){"1"==e?g.authUtils.openThirdPage("addActivity?shopId=".concat(this.seller.id,"&currency=").concat(this.seller.currency)):"2"==e&&this.$refs.addAdvertisingSb.dialogStart()},submitQuota:function(){this.quotaList.length<=0?this.$message.warning("请选择指标"):this.quotaList.length>4?this.$message.warning("最多选择四项指标"):(localStorage.setItem("quotaList",JSON.stringify(this.quotaList)),this.changeEcharts())},changeEcharts:function(){var e=this;if(!(this.quotaList.length<=0)){this.selectquotaList=[];var t=[],a=[];this.quotaList.forEach(function(i){e.selectTotal.forEach(function(s){if(i==s.id){e.selectquotaList.push(s),t.push(s.name);var o={yAxisIndex:0,name:s.name,type:"line",smooth:!0,data:s.series};"CTR"!=s.id&&"ACOS"!=s.id&&"CVR"!=s.id&&"ROAS"!=s.id||(o.yAxisIndex=1),a.push(o)}})}),this.dialogVisible=!1,this.advertisingMixHeight=300,this.$nextTick(function(){e.getLoadEcharts(t,a)})}},getLoadEcharts:function(e,t){var a=this.$echarts.init(document.getElementById("advertisingMixChart")),i={color:["#85afff","#90e3a9","#fed54b","#fd8c6d"],tooltip:{trigger:"axis",formatter:function(e){for(var t=e[0].name+"<br>",a=0;a<e.length;a++)t+=e[a].marker+e[a].seriesName+":"+e[a].value,"CTR"!=e[a].seriesName&&"ACOS"!=e[a].seriesName&&"CVR"!=e[a].seriesName&&"ROAS"!=e[a].seriesName||(t+="%"),t+="<br>";return t}},legend:{data:e,bottom:0},grid:{top:"3%",left:"2%",right:"3%",bottom:"10%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:this.xData},yAxis:[{type:"value"},{type:"value",axisLabel:{formatter:"{value}%"}}],series:t};a.setOption(i,!0)},getCol:function(e){return this.tableColumnConfigs.find(function(t){return t.value===e})},updateTableColumnConfigs:function(e){var t=this;this.tableColumnConfigs=[],this.$nextTick(function(){t.tableColumnConfigs=e})},openLogDialog:function(e){var t="1";e.cpcTypeName.includes("SP")?t="1":e.cpcTypeName.includes("SB")?t="2":e.cpcTypeName.includes("SD")&&(t="3"),e.shopId=this.seller.id,e.objectType=t;var a={row:e};this.$refs.dialogLog.openDialog(a)},openDetail:function(e){console.log(e)},down:function(){var e=this;return(0,n.A)(l().mark(function t(){var a,i,s;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=JSON.parse(JSON.stringify(e.url))).export=1,i={reportEndDate:a.endDate,reportStartDate:a.startDate,simpleTaskConfigId:"exportAdCampaignList",reportParams:a},e.isDownLoading=!0,t.next=1,(0,c.push)(i);case 1:if(s=t.sent,e.isDownLoading=!1,200!==s.code){t.next=3;break}return t.next=2,(0,p.openTaskCenterDialog)();case 2:t.next=4;break;case 3:e.$message.error(s.msg);case 4:case"end":return t.stop()}},t)}))()},getPortfolios:function(){var e=this;(0,d.getPortfolios)({shopId:this.seller.id}).then(function(t){if(200!=t.code)return e.$message.error(t.message);t.data.list.forEach(function(t){t.campaignId=t.portfolioId,t.campaignName=t.name,t.list=[],e.$route.query.portfolioId&&t.portfolioId==e.$route.query.portfolioId&&(e.portfolioId=[t])}),e.campaignForPortfoliosList=t.data.list,e.portfolioList=t.data.list,e.doSearch()})},getCountrySellers:function(){var e=this;(0,c.getAuthAdvertisementShop)().then(function(t){if(200!=t.code)return e.$message.error(t.message);var a=[];for(var i in t.data)a.push(k({},t.data[i]));e.sellers=a,e.$route.query.shopId?a.forEach(function(t){t.id==e.$route.query.shopId&&(e.seller=t)}):e.seller=a[0]})},doSearch:function(e){"current"!==e&&(this.pageNum=1);var t={page:this.pageNum,perPage:this.pageSize,policy:this.policy,shopId:this.seller.id,startDate:this.searchDate[0],endDate:this.searchDate[1],startCreationDate:this.createTime,endCreationDate:this.createTime,portfolioId:this.portfolioId.map(function(e){return e.portfolioId})};if(this.checkedNodes&&this.checkedNodes.length>0){var a=[];
1this.checkedNodes.forEach(function(e){e.leaf&&a.push(e.campaignId),e.list&&e.list.length>0&&e.list.forEach(function(e){e.leaf&&a.push(e.campaignId)})}),a=(0,s.A)(new Set(a)),t.campaignId=a}if(this.cpcType&&this.cpcType.length>0){var i=[];this.cpcType.forEach(function(e){i.push.apply(i,e)}),i=(0,s.A)(new Set(i)),t.adType=i}for(var o in this.sro&&(t.sortType=this.ord,t.sortField=this.sro),""!=this.keywords&&(t.keyword=this.keywords.trim()),t)(!t[o]||Array.isArray(t[o])&&!t[o].length)&&delete t[o];this.url=t,this.getTableData(t)},getTableData:function(e){var t=this;this.tableLoading=!0,(0,d.getAdCampaignList)(e).then(function(e){if(t.tableLoading=!1,200!=e.code)return t.tableData=[],t.$message.error(e.message);t.tableData=e.data.list,t.total=e.data.total;var a=e.data.dateList,i=e.data.sumData;if(a){t.xData=[],t.selectTotal=[{id:"impressions",name:"展示量",series:[],total:0},{id:"clicks",name:"点击量",series:[],total:0},{id:"CTR",name:"CTR",series:[],total:0},{id:"cost",name:"花费",series:[],total:0},{id:"CPC",name:"CPC",series:[],total:0},{id:"orderQuantity",name:"广告订单量",series:[],total:0},{id:"CVR",name:"CVR",series:[],total:0},{id:"CPA",name:"CPA",series:[],total:0},{id:"contributionSales",name:"销售额",series:[],total:0},{id:"ACOS",name:"ACOS",series:[],total:0},{id:"ROAS",name:"ROAS",series:[],total:0}];var s=function(e){t.xData.push(e),t.selectTotal.forEach(function(t){for(var i in a[e])t.id==i&&(t.series.push(a[e][i]),t.total=0)})};for(var o in a)s(o);
1t.selectTotal.forEach(function(e){for(var t in i)t==e.id&&(e.total=i[t])}),localStorage.quotaList&&(t.quotaList=JSON.parse(localStorage.quotaList)),1!=t.hideChart&&t.submitQuota()}})},sortChange:function(e){var t=e.property,a=e.order;this.sro=t,this.ord=a,this.doSearch()},hidePoper:function(e){for(var t in this.poperHide)this.poperHide[t]=!e||e!=t},currentChange:function(e){this.pageNum=e,this.doSearch("current")},handerSize:function(e){this.pageSize=e,this.doSearch()}}},S=(0,a(67658).A)(_,i,[],!1,null,"58707069",null).exports},11748:function(e,t,a){a.d(t,{A:function(){return o}});var i=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticStyle:{position:"relative",background:"#fff"},style:{height:e.height+"px"}},[t("div",{staticClass:"leftTree",class:[e.isWidth?"width-hide":""]},[t("div",{staticClass:"leftTree-top"},[t("single-select",{attrs:{options:e.sellers,selectedOption:e.seller,ShowShopOwner:!0,value:"id",name:"name",subTitle:"countryName",placeholder:"店铺"},on:{change:e.changeSellers,"update:selectedOption":function(t){e.seller=t},"update:selected-option":function(t){e.seller=t}}})],1),t("div",{staticClass:"leftTree-block"},[t("el-input",{staticClass:"input-with-select",attrs:{placeholder:"搜索广告组合",size:"small"},on:{clear:e.deSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deSearch.apply(null,arguments)}},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}}),t("i",{staticClass:"iconfont ak-search",on:{click:e.deSearch}})],1),t("el-tree",{ref:"tree",staticClass:"stafftree",attrs:{data:e.campaignForPortfoliosList,"show-checkbox":"","node-key":"campaignId","filter-node-method":e.filterNode,"highlight-current":"",props:e.defaultProps,lazy:"",load:e.loadNode},on:{"node-click":e.handleNodeClick,"check-change":e.handleCheckChange},scopedSlots:e._u([{key:"default",fn:function(a){var i=a.data;return t("div",{staticClass:"custom-tree-node"},[i.list?t("span",[e._v(e._s(i.campaignName))]):t("span",{staticStyle:{color:"#006eff"}},[e._v(e._s(i.campaignName))])])}}])})],1),t("div",{staticClass:"leftTree-sidebar",class:[e.isWidth?"left-hide":""],on:{click:e.showSidebar}},[t("span",[e._v(e._s(e.isWidth?"展开侧栏":"收起侧栏"))]),e.isWidth?t("i",{staticClass:"el-icon-caret-right"}):t("i",{staticClass:"el-icon-caret-left"})])])};i._withStripped=!0;var s=a(711).A,o=(0,a(67658).A)(s,i,[],!1,null,"fa6c5d06",null).exports}}]);
2//# sourceMappingURL=chunk-5185.c6f92d89.js.map?site=amazon

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.