1 |
- import{d as z,as as D,r as i,b as j,w as E,o as w,C as h,A as e,k as A,a as l,Y as B,f as t,a2 as v,D as p,E as y,dz as N,at as P,X,Z as Y,_ as Z,__tla as q}from"./index-0b2503c4.js";import{_ as F,__tla as G}from"./Dialog-3207cd36.js";import{E as H,__tla as J}from"./el-image-9584005f.js";import{__tla as K}from"./el-image-viewer-45bae442.js";import{g as L,__tla as M}from"./spu-c0fdff18.js";import{u as O,__tla as Q}from"./useMessage-d05433ee.js";let b,R=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})()]).then(async()=>{b=Z(z({name:"SkuTableSelect",__name:"SkuTableSelect",props:{spuId:D.number.def(null)},emits:["change"],setup(g,{expose:x,emit:V}){const c=g;O();const m=i([]),d=i(!1),s=i(!1),o=i(),S=V;return x({open:()=>{s.value=!0}}),j(async()=>{}),E(()=>c.spuId,()=>{c.spuId&&(async()=>{d.value=!0;try{const f=await L(c.spuId);m.value=f.skus}finally{d.value=!1}})()}),(f,u)=>{const k=P,n=X,I=H,C=F,T=Y;return w(),h(C,{modelValue:l(s),"onUpdate:modelValue":u[1]||(u[1]=a=>v(s)?s.value=a:null),appendToBody:!0,title:"\u9009\u62E9\u89C4\u683C",width:"700"},{default:e(()=>[A((w(),h(l(B),{data:l(m),"show-overflow-tooltip":""},{default:e(()=>[t(n,{label:"#",width:"55"},{default:e(({row:a})=>[t(k,{label:a.id,modelValue:l(o),"onUpdate:modelValue":u[0]||(u[0]=r=>v(o)?o.value=r:null),onChange:r=>(_=>{S("change",_),s.value=!1,o.value=void 0})(a)},{default:e(()=>[p("\xA0 ")]),_:2},1032,["label","modelValue","onChange"])]),_:1}),t(n,{label:"\u56FE\u7247","min-width":"80"},{default:e(({row:a})=>[t(I,{src:a.picUrl,class:"h-30px w-30px","preview-src-list":[a.picUrl],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),t(n,{label:"\u89C4\u683C",align:"center","min-width":"80"},{default:e(({row:a})=>{var r,_;return[p(y((_=(r=a.properties)==null?void 0:r.map(U=>U.valueName))==null?void 0:_.join(" ")),1)]}),_:1}),t(n,{align:"center",label:"\u9500\u552E\u4EF7(\u5143)","min-width":"80"},{default:e(({row:a})=>[p(y(l(N)(a.price)),1)]),_:1})]),_:1},8,["data"])),[[T,l(d)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/components/SkuTableSelect.vue"]])});export{R as __tla,b as default};
|