import{d as g,r as _,M as h,o as L,x as b,w as o,g as a,a as s,aG as S,q as A,t as C,au as P,H as I,I as q,_ as z,__tla as D}from"./index-7d5b26d3.js";import{E,__tla as U}from"./el-image-c9079635.js";import{__tla as G}from"./el-image-viewer-2f0c9a58.js";import{c as H,__tla as M}from"./index-ac2a9b6d.js";import R,{__tla as T}from"./SkuList-e4d859d7.js";import{__tla as $}from"./PcComponents.css_vue_type_style_index_0_src_00d8480b_scoped_00d8480b_lang-92ac9b77.js";import{__tla as j}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-a1c2c60d.js";import{__tla as B}from"./useMessage-c81eaa5b.js";import{__tla as F}from"./UploadImg-1c4fc0d0.js";import{__tla as J}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-4277b60d.js";import{__tla as K}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-cd2ab574.js";let w,N=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return K}catch{}})()]).then(async()=>{w=z(g({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 m=k,d=_([]),f=_(),p=_([]),y=_();return v({getSkuConfigs:t=>{f.value.validateSku();const i=[];return p.value.forEach(r=>{r.spuDetail.skus.forEach(n=>{i.push(n[t])})}),i}}),h(()=>m.spuList,t=>{t&&(d.value=t)},{deep:!0,immediate:!0}),h(()=>m.spuPropertyListP,t=>{t&&(p.value=t,setTimeout(()=>{y.value=t.map(i=>i.spuId)},200))},{deep:!0,immediate:!0}),(t,i)=>{const r=I,n=E,x=q;return L(),b(x,{data:s(d),"expand-row-keys":s(y),"row-key":"id"},{default:o(()=>[a(r,{type:"expand",width:"30"},{default:o(({row:e})=>{var u,l;return[a(s(R),{ref_key:"skuListRef",ref:f,"is-activity-component":!0,"prop-form-data":(u=s(p).find(c=>c.spuId===e.id))==null?void 0:u.spuDetail,"property-list":(l=s(p).find(c=>c.spuId===e.id))==null?void 0:l.propertyList,"rule-config":t.ruleConfig},{extension:o(()=>[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:o(({row:e})=>[a(n,{src:e.picUrl,class:"h-30px w-30px",onClick:u=>{return l=e.picUrl,void H({zIndex:99999999,urlList:[l]});var l}},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:o(({row:e})=>[A(C(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","D:/zx/mall-newfeifan-zx-business/src/views/mall/promotion/components/SpuAndSkuList.vue"]])});export{N as __tla,w as default};
