import{r as d,d as F,al as g,x as _,p as N,a9 as n,o as f,c as x,a,M as t,G as p,u as e,F as b,a0 as q,E as A,K as P,L as M,A as R,aq as W,ar as G}from"./vue.6daa721c.js";import{k as K,l as U,m as z,n as $}from"./api.d42607bf.js";import{_ as j}from"./DataTable.vue_vue_type_script_setup_true_lang.b33010d0.js";import H from"./index.e8228353.js";import J from"./ProductDialog.c695c2a3.js";import O from"./ProductSelectCard.23e70607.js";import Q from"./TopFilter.e1f432a3.js";import{p as X}from"./enum.5c541b34.js";import{u as Y,a as Z}from"./index.ae7ce77b.js";import{e as u}from"./emitter.d780df30.js";import{_ as tt}from"./_plugin-vue_export-helper.c27b6911.js";import"./DataTableCell.5b5940d1.js";import"./DataTableCellFooter.2c1e2c30.js";import"./echarts.72dc8373.js";import"./index.7c65be8c.js";import"./mCard.18302276.js";import"./index.abe7750b.js";import"./elementPlus.346c766a.js";import"./enum.b537673d.js";import"./ProductDialogList.9696bdce.js";import"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";function et(){const o=["产品线","父ASIN","ASIN","SKU"],s=d("产品线"),r={color:"#3a83f7",backgroundColor:"#ebeef5"};function m(c){s.value=c}return{buttons:o,activeButton:s,activeStyle:r,handleClickBtn:m}}const ot=o=>(W("data-v-239d6437"),o=o(),G(),o),nt={class:"outer-container"},at={class:"table-tips"},st=ot(()=>a("p",{class:"prompt-words"},"商品中心广告数据统计不包含SB广告",-1)),rt={class:"pl-and-asin-tables"},ct={class:"asin-table-container"},it={class:"xp-radio-group-wrapper"},lt=F({__name:"index",setup(o){const s=d("ALL");u.on("TopFilters-selectValue",i=>{s.value=i.selectValue});const r=d("");u.on("TopFilters-searchItem",i=>{r.value=i.searchItem});const m=Y(),{profile:c}=g(m),y=Z(),{dateRange:h}=g(y),C=d({profileId:c.value.profile_id,dateRange:h,productlineId:s,searchItem:r});_("dateRange",h),_("profile",c);const{buttons:k,activeButton:v,activeStyle:I,handleClickBtn:S}=et();_("activeButton",v);function B(){u.emit("open-productLine-dialog",{isVisible:!0})}return N(()=>{u.all.clear()}),(i,pt)=>{const L=n("Warning"),D=n("el-icon"),w=n("el-card"),T=n("vxe-button"),V=n("el-button"),E=n("el-button-group");return f(),x(b,null,[a("div",nt,[t(Q),a("div",at,[t(D,null,{default:p(()=>[t(L)]),_:1}),st]),t(w,null,{default:p(()=>[t(H,{metricEnum:e(X),query:C.value,fetchCard:e(K),fetchLine:e(U),"fetch-line-month":e(z),"fetch-line-week":e($)},null,8,["metricEnum","query","fetchCard","fetchLine","fetch-line-month","fetch-line-week"])]),_:1})]),t(O),a("div",rt,[a("div",ct,[t(T,{class:"custom-button",type:"text",status:"primary",content:"创建产品线",icon:"vxe-icon-add",onClick:B}),a("div",it,[t(E,null,{default:p(()=>[(f(!0),x(b,null,q(e(k),l=>(f(),A(V,{bg:"",text:"",key:l,style:R(e(v)===l?e(I):{}),onClick:()=>e(S)(l)},{default:p(()=>[P(M(l),1)]),_:2},1032,["style","onClick"]))),128))]),_:1})]),t(j)])]),t(J)],64)}}});const Et=tt(lt,[["__scopeId","data-v-239d6437"]]);export{Et as default};
