import{_ as y}from"./_plugin-vue_export-helper.c27b6911.js";import{k as g,ai as u,o,c,a as e,T as s,U as i,O as l,S as a,M as m,R as r,J as b,aF as S,aG as T}from"./vue.adf17aba.js";const x=t=>(S("data-v-5c6e34a0"),t=t(),T(),t),C={key:0},I={style:{"font-weight":"700"}},A={style:{color:"#c9cdd4"}},B={style:{"font-weight":"700"}},N={style:{color:"#c9cdd4"}},R={key:1},D={class:"list-content"},U={class:"image-item"},V=["src"],M={class:"item-title"},K={class:"text-black font-medium"},q={class:"text-black font-medium"},F={class:"item-font"},O={class:"black-color"},$={class:"item-font mt-1"},j={class:"black-color"},p={class:"black-color"},z={key:2},E={class:"list-content"},G={class:"image-item"},J=["src"],P={class:"item-title"},H={class:"item-font"},L={class:"item-font"},Q={class:"black-color"},W={class:"item-font display-line"},X={class:"black-color"},Y={key:3},Z={class:"list-content"},tt={class:"image-item"},et=["src"],st={style:{display:"flex","flex-direction":"column"}},ot={class:"item-title"},at={class:"text-slate-950"},lt=x(()=>e("span",{class:"item-font px-2"},"|",-1)),nt={class:"item-font"},ct={class:"item-font"},it={class:"black-color"},dt={class:"item-font display-line"},ut={class:"black-color"},mt={key:4},rt={key:5},ht={key:6},vt={__name:"DataTableCell",props:{value:String,field:String,row:Object,isCompare:Boolean},setup(t){const h=t,n=g(()=>{const f=`gap${h.field.charAt(0).toUpperCase()}${h.field.slice(1)}`;return h.row[f]});return(f,ft)=>{const d=u("el-tooltip"),v=u("el-tag"),k=u("Top"),_=u("el-icon"),w=u("Bottom");return o(),c("div",null,[t.field==="rank"?(o(),c("div",C,[e("div",I,"BigRank: #"+s(t.row.bigCatRank?t.row.bigCatRank:"--"),1),e("div",A,"Rank: #"+s(t.row.smallCatRank?t.row.smallCatRank:"--"),1),e("div",B,"BigTitle: "+s(t.row.bigCatTitle),1),e("div",N,"Title: "+s(t.row.smallCatTitle),1)])):t.field==="Asin"?(o(),c("div",R,[e("div",D,[e("div",U,[e("img",{src:t.row.Image,alt:""},null,8,V)]),e("div",null,[i(d,{effect:"dark",content:t.row.Title,placement:"top-start"},{default:l(()=>[e("span",M,s(t.row.Title),1)]),_:1},8,["content"]),e("div",null,[e("span",K,s(t.row.priceMax),1),a(" ~ "),e("span",q,s(t.row.priceMin),1)]),e("div",F,[a(" Parent ASIN: "),e("span",O,s(t.row.parentAsin),1)]),e("div",$,[a(" ASIN: "),e("span",j,s(t.row.Asin),1),a(" SKU: "),e("span",p,s(t.row.skuNumbers),1)])])])])):t.field==="sku"?(o(),c("div",z,[e("div",E,[e("div",G,[e("img",{src:t.row.Image,alt:""},null,8,J)]),e("div",null,[i(d,{effect:"dark",content:t.row.Title,placement:"top-start"},{default:l(()=>[e("span",P,s(t.row.Title),1)]),_:1},8,["content"]),e("div",null,[e("span",H,s(t.row.quantity?"有库存":"缺货"),1)]),e("span",L,[a(" ASIN: "),e("span",Q,s(t.row.Asin),1)]),i(d,{effect:"dark",content:t.row.sku,placement:"top-start"},{default:l(()=>[e("span",W,[a(" SKU: "),e("span",X,s(t.row.sku),1)])]),_:1},8,["content"])])])])):t.field==="bestSku"?(o(),c("div",Y,[e("div",Z,[e("div",tt,[e("img",{src:t.row.Image,alt:""},null,8,et)]),e("div",st,[i(d,{effect:"dark",content:t.row.Title,placement:"top-start"},{default:l(()=>[e("span",ot,s(t.row.Title),1)]),_:1},8,["content"]),e("div",null,[e("span",at,s(t.row.price),1),lt,e("span",nt,s(t.row.quantity?"有库存":"缺货"),1)]),e("div",ct,[a(" ASIN: "),e("span",it,s(t.row.Asin),1)]),i(d,{effect:"dark",content:t.row.bestSku,placement:"top-start"},{default:l(()=>[e("div",dt,[a(" SKU: "),e("span",ut,s(t.row.bestSku),1)])]),_:1},8,["content"])])])])):t.field==="status"?(o(),c("div",mt,[t.value==="Active"?(o(),m(v,{key:0,type:"success"},{default:l(()=>[a("在售")]),_:1})):r("",!0),t.value==="Inactive"?(o(),m(v,{key:1,type:"info"},{default:l(()=>[a("停售")]),_:1})):r("",!0),t.value==="Incomplete"?(o(),m(v,{key:2,type:"warning"},{default:l(()=>[a("不完整")]),_:1})):r("",!0)])):t.field==="launchDatetime"?(o(),c("div",rt,s(t.value?t.value.split("T")[0]:"--"),1)):(o(),c("div",ht,[a(s(t.value)+" ",1),t.isCompare?(o(),c("div",{key:0,style:b({color:n.value>0?"#59b939":n.value<0?"#ee7973":"#dde0eb"})},[n.value>0?(o(),m(_,{key:0},{default:l(()=>[i(k,{style:{position:"absolute",top:"2px"}})]),_:1})):n.value<0?(o(),m(_,{key:1},{default:l(()=>[i(w,{style:{position:"absolute",top:"2px"}})]),_:1})):r("",!0),a(" "+s(n.value!==void 0?n.value===null||n.value===0?"0%":(n.value<0?"-":"")+Math.abs(n.value)+"%":""),1)],4)):r("",!0)]))])}}},wt=y(vt,[["__scopeId","data-v-5c6e34a0"]]);export{wt as default};
