import{r as t,p as B,X as d}from"./index.b098562c.js";import{B as p,U as u,ai as F,S as l}from"./vue.adf17aba.js";const r="/api/ad_manage/summary/report/trend/";function s(e){return t({url:r+"weekly",method:"get",params:e})}function D(e){return t({url:r,method:"post",data:e})}function c(e){return t({url:r+e.id+"/",method:"put",data:e})}function b(e){return t({url:r+e+"/",method:"delete",data:{id:e}})}function h(e){return t({url:"/api/ad_manage/summary/report/total",method:"GET",params:e})}function y(e){return e.dateRangeType="D",t({url:r+"weekly",method:"GET",params:e})}function x(e){return e.dateRangeType="W",t({url:r+"hourly",method:"GET",params:e})}function w(e){return e.dateRangeType="M",t({url:r+"hourly",method:"GET",params:e})}const m=function({crudExpose:e,context:a}){const A=async n=>{const E=B(a.value);return d.assign(n,E),await s(n)},o=async({form:n,row:E})=>(n.id=E.id,await c(n)),i=async({row:n})=>await b(n.id),C=async({form:n})=>await D(n);return p("$hasPermissions"),{crudOptions:{table:{height:800,showSummary:!0,stripe:!1,headerCellStyle:{backgroundColor:"#f6f7fa",borderRight:"none"},cellStyle:{border:"none",borderBottom:"0.5px solid #ddd"}},container:{fixedHeight:!1},actionbar:{show:!0,buttons:{add:{show:!1}}},search:{show:!1},toolbar:{buttons:{search:{show:!0},compact:{show:!1}}},request:{pageRequest:A,addRequest:C,editRequest:o,delRequest:i},rowHandle:{show:!1},columns:{id:{title:"ID",column:{show:!1},form:{show:!1}},Name:{title:"日期",column:{width:130,align:"left",fixed:"left",cellStyle:{border:"1px solid #ddd"}}},Spend:{title:"花费",column:{align:"center",width:100,sortable:!0,border:"0.5px solid #ddd",renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"来自亚马逊广告API,亚马逊系统会在3天内将无效点击从统计数据中删除,因此过去3天内的花费可能会有所变化"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("花费")])])}}},TotalSales:{title:"销售额",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"Seller类型店铺:
销售额,来自亚马逊广告API。
在点击广告后的7天内(商品推广)、14天内(品牌推广)、浏览或点击广告后的14天内(展示型推广)售
出的广告商品及库存中其他商品的销售额;
亚马逊系统此项数据最多可能延迟12小时更新。因此,“今天”日期范围内的销售数据可能会延迟。
付款失败的订单数量和72小时内取消的订单产生的销售额将从总销售额中删除。
Vendor类型店铺:
销售额,来自亚马逊广告API。
在点击广告后的14天内(商品推广)、14天内(品牌推广)、浏览或点击广告后的14天内(展示型推广)售
出的广告商品及库存中其他商品的销售额;
亚马逊系统此项数据最多可能延迟12小时更新。因此,“今天”日期范围内的销售数据可能会延迟。
付款失败的订单数量和72小时内取消的订单产生的销售额将从总销售额中删除。","raw-content":!0},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("销售额")])])}}},ACOS:{title:"ACOS",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"广告投入产出比,系统计算,广告花费/广告带来的销售额。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("ACOS")])])}}},ROAS:{title:"ROAS",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"广告支出回报,系统计算,广告带来的销售额/广告花费。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("ROAS")])])}}},CPC:{title:"点击成本",column:{align:"center",sortable:!0,width:130,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"单次点击成本,系统计算,花费/点击量"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("点击成本")])])}}},CPA:{title:"订单成本",column:{align:"center",sortable:!0,width:130,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"平均每笔订单的花费,系统计算,花费/广告订单量"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("订单成本")])])}}},Click:{title:"点击量",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"来自亚马逊广告API,广告被点击的次数。亚马逊系统会在3天内将无效点击去除。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("点击量")])])}}},CTR:{title:"点击率",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"点击率,系统计算,点击量/曝光量。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("点击率")])])}}},TotalPurchases:{title:"订单数",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"Seller类型店铺:
订单数,来自亚马逊广告API。
在点击广告后的7天内(商品推广)、14天内(品牌推广)、浏览或点击广告后的14天内(展示型推广)售
出的广告商品及库存中其他商品的订单数量;
亚马逊系统此项数据最多可能延迟12小时更新。因此,“今天”日期范围内的销售数据可能会延迟。
付款失败的订单数量和72小时内取消的订单数量将从订单总数中删除。
Vendor类型店铺:
订单数,来自亚马逊广告API。
在点击广告后的14天内(商品推广)、14天内(品牌推广)、浏览或点击广告后的14天内(展示型推广)售
出的广告商品及库存中其他商品的订单数量;
亚马逊系统此项数据最多可能延迟12小时更新。因此,“今天”日期范围内的销售数据可能会延迟。
付款失败的订单数量和72小时内取消的订单数量将从订单总数中删除","raw-content":!0},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("订单数")])])}}},TotalUnitOrdered:{title:"销量",column:{align:"center",width:100,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"Seller类型店铺:
销售件数,来自亚马逊广告API。
在点击广告后的7天内(商品推广)、14天内(品牌推广)、浏览或点击广告后的14天内(展示型推广)售
出的广告商品及库存中其他商品的件数;
亚马逊系统此项数据最多可能延迟12小时更新。因此,“今天”日期范围内的销售数据可能会延迟。
付款失败的订单和72小时内取消的订单产生的销售件数将从销量总数中删除。
Vendor类型店铺:
销售件数,来自亚马逊广告API。
在点击广告后的14天内(商品推广)、14天内(品牌推广)、浏览或点击广告后的14天内(展示型推广)售
出的广告商品及库存中其他商品的件数;
亚马逊系统此项数据最多可能延迟12小时更新。因此,“今天”日期范围内的销售数据可能会延迟。
付款失败的订单和72小时内取消的订单产生的销售件数将从销量总数中删除。","raw-content":!0},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("销量")])])}}},Impression:{title:"曝光量",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"来自亚马逊广告API,广告被展示的次数。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("曝光量")])])}}},PurchasesRate:{title:"转化率",column:{align:"center",width:130,sortable:!0,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"广告转化率,系统计算,广告订单量/点击量*100%,展示型推广vCPM成本类型的广告活动不予计算。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("转化率")])])}}},CPM:{title:"千次曝光成本",column:{align:"center",sortable:!0,width:150,renderHeader(){return u("span",null,[u(F("el-tooltip"),{placement:"top",content:"点击率,系统计算,点击量/曝光量。"},{default:()=>[u("span",null,[u(F("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[u(F("InfoFilled"),null,null)]})])]}),u("span",null,[l("千次曝光成本")])])}}}}}}},I=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:m},Symbol.toStringTag,{value:"Module"}));export{y as a,w as b,x as c,m as d,I as e,h as g};