1 |
- import{d as g,r as n,aM as h,o as L,x as S,w as l,f as a,a as s,aC as b,y as C,t as A,bi as P,I,J as q,_ as D,__tla as E}from"./index-8dc1e40a.js";import{E as U,__tla as z}from"./el-image-6a48e9f1.js";import{__tla as R}from"./el-image-viewer-3b8905e6.js";import{c as H,__tla as J}from"./index-519182c1.js";import M,{__tla as T}from"./SkuList-d3adf088.js";import{__tla as X}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-703a828c.js";import{__tla as $}from"./useMessage-7a27dd80.js";import{__tla as j}from"./UploadImg-c2c75279.js";import{__tla as B}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-c25ae3d0.js";import{__tla as F}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-fa07b40d.js";let w,G=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return F}catch{}})()]).then(async()=>{w=D(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 d=k,m=n([]),f=n(),p=n([]),y=n();return v({getSkuConfigs:t=>{f.value.validateSku();const i=[];return p.value.forEach(r=>{r.spuDetail.skus.forEach(_=>{i.push(_[t])})}),i}}),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(i=>i.spuId)},200))},{deep:!0,immediate:!0}),(t,i)=>{const r=I,_=U,x=q;return L(),S(x,{data:s(m),"expand-row-keys":s(y),"row-key":"id"},{default:l(()=>[a(r,{type:"expand",width:"30"},{default:l(({row:e})=>{var u,o;return[a(s(M),{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":(o=s(p).find(c=>c.spuId===e.id))==null?void 0:o.propertyList,"rule-config":t.ruleConfig},{extension:l(()=>[b(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 H({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})=>[C(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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/promotion/components/SpuAndSkuList.vue"]])});export{G as __tla,w as default};
|