import{d as L,r as n,aP as h,o as x,l as P,w as l,i as a,a as i,aF as S,j as A,t as b,dG as C,L as E,M as I,_ as q,__tla as D}from"./index-2c56227b.js";import{E as G,__tla as U}from"./el-image-cae97e2e.js";import{__tla as j}from"./el-image-viewer-da1b6008.js";import{c as z,__tla as F}from"./index-8d031f1e.js";import H,{__tla as M}from"./SkuList-e2e21d1d.js";import{__tla as O}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6a2e2b1d.js";import{__tla as R}from"./useMessage-96878a4a.js";import{__tla as T}from"./UploadImg-6d25031e.js";import{__tla as $}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-e792c2fc.js";import{__tla as B}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-ed1f393e.js";let w,J=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{w=q(L({name:"PromotionSpuAndSkuList",__name:"SpuAndSkuList",props:{spuList:{type:Array,required:!0},ruleConfig:{type:Array,required:!0},spuPropertyListP:{type:Array,required:!0}},setup(k,{expose:v}){const d=k,m=n([]),f=n(),p=n([]),y=n();return v({getSkuConfigs:t=>{f.value.validateSku();const s=[];return p.value.forEach(r=>{r.spuDetail.skus.forEach(_=>{s.push(_[t])})}),s}}),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(s=>s.spuId)},200))},{deep:!0,immediate:!0}),(t,s)=>{const r=E,_=G,g=I;return x(),P(g,{data:i(m),"expand-row-keys":i(y),"row-key":"id"},{default:l(()=>[a(r,{type:"expand",width:"30"},{default:l(({row:e})=>{var u,o;return[a(i(H),{ref_key:"skuListRef",ref:f,"is-activity-component":!0,"prop-form-data":(u=i(p).find(c=>c.spuId===e.id))==null?void 0:u.spuDetail,"property-list":(o=i(p).find(c=>c.spuId===e.id))==null?void 0:o.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(_,{src:e.picUrl,class:"h-30px w-30px",onClick:u=>{return o=e.picUrl,void z({zIndex:99999999,urlList:[o]});var o}},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})=>[A(b(i(C)(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","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mall/promotion/components/SpuAndSkuList.vue"]])});export{J as __tla,w as default};
