import{d as L,r as n,a2 as h,o as x,q as C,w as l,i as a,a as s,a9 as S,j as b,t as A,dC as P,K as q,L as I,_ as E,__tla as D}from"./index-cae26250.js";import{E as U,__tla as j}from"./el-image-e3828c10.js";import{__tla as z}from"./el-image-viewer-bd702e31.js";import{c as K,__tla as R}from"./index-1108c1bb.js";import T,{__tla as $}from"./SkuList-a4670426.js";import{__tla as B}from"./UploadImg-4232cae7.js";import{__tla as F}from"./useMessage-e3736441.js";import{__tla as G}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-f21c5d34.js";import{__tla as H}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-ba802353.js";let w,J=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return H}catch{}})()]).then(async()=>{w=E(L({name:"PromotionSpuAndSkuList",__name:"SpuAndSkuList",props:{spuList:{type:Array,required:!0},ruleConfig:{type:Array,required:!0},spuPropertyListP:{type:Array,required:!0}},setup(k,{expose:g}){const d=k,m=n([]),f=n(),p=n([]),y=n();return g({getSkuConfigs:t=>{f.value.validateSku();const o=[];return p.value.forEach(r=>{r.spuDetail.skus.forEach(u=>{o.push(u[t])})}),o}}),h(()=>d.spuList,t=>{t&&(m.value=t)},{deep:!0,immediate:!0}),h(()=>d.spuPropertyListP,t=>{t&&(p.value=t,setTimeout(()=>{y.value=t.map(o=>o.spuId)},200))},{deep:!0,immediate:!0}),(t,o)=>{const r=q,u=U,v=I;return x(),C(v,{data:s(m),"expand-row-keys":s(y),"row-key":"id"},{default:l(()=>[a(r,{type:"expand",width:"30"},{default:l(({row:e})=>{var _,i;return[a(s(T),{ref_key:"skuListRef",ref:f,"is-activity-component":!0,"prop-form-data":(_=s(p).find(c=>c.spuId===e.id))==null?void 0:_.spuDetail,"property-list":(i=s(p).find(c=>c.spuId===e.id))==null?void 0:i.propertyList,"rule-config":t.ruleConfig},{extension:l(()=>[S(t.$slots,"default")]),_:2},1032,["prop-form-data","property-list","rule-config"])]}),_:3}),a(r,{key:"id",align:"center",label:"\u5546\u54C1\u7F16\u53F7",prop:"id"}),a(r,{label:"\u5546\u54C1\u56FE","min-width":"80"},{default:l(({row:e})=>[a(u,{src:e.picUrl,class:"h-30px w-30px",onClick:_=>{return i=e.picUrl,void K({zIndex:99999999,urlList:[i]});var i}},null,8,["src","onClick"])]),_:1}),a(r,{"show-overflow-tooltip":!0,label:"\u5546\u54C1\u540D\u79F0","min-width":"300",prop:"name"}),a(r,{align:"center",label:"\u5546\u54C1\u552E\u4EF7","min-width":"90",prop:"price"},{default:l(({row:e})=>[b(A(s(P)(e.price)),1)]),_:1}),a(r,{align:"center",label:"\u9500\u91CF","min-width":"90",prop:"salesCount"}),a(r,{align:"center",label:"\u5E93\u5B58","min-width":"90",prop:"stock"})]),_:3},8,["data","expand-row-keys"])}}}),[["__file","C:/work/bshop/yudao-ui/src/views/mall/promotion/components/SpuAndSkuList.vue"]])});export{J as __tla,w as default};