SkuTableSelect-8136d787.js 2.3 KB

1
  1. import{d as z,ah as C,r as i,l as P,M as B,o as h,x as w,w as e,y as D,a as l,I as E,g as t,P as v,n as p,t as y,a$ as H,ai as J,H as M,J as N,_ as $,__tla as q}from"./index-b362e1d5.js";import{_ as A,__tla as F}from"./Dialog-71bebaff.js";import{E as G,__tla as K}from"./el-image-6c94a1ed.js";import{__tla as L}from"./el-image-viewer-68ae3e49.js";import{g as O,__tla as Q}from"./spu-8db32dd2.js";import{u as R,__tla as W}from"./useMessage-7c1dd10e.js";let b,X=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{b=$(z({name:"SkuTableSelect",__name:"SkuTableSelect",props:{spuId:C.number.def(null)},emits:["change"],setup(g,{expose:x,emit:I}){const c=g;R();const m=i([]),d=i(!1),s=i(!1),o=i(),S=I;return x({open:()=>{s.value=!0}}),P(async()=>{}),B(()=>c.spuId,()=>{c.spuId&&(async()=>{d.value=!0;try{const f=await O(c.spuId);m.value=f.skus}finally{d.value=!1}})()}),(f,u)=>{const V=J,n=M,k=G,T=A,U=N;return h(),w(T,{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(()=>[D((h(),w(l(E),{data:l(m),"show-overflow-tooltip":""},{default:e(()=>[t(n,{label:"#",width:"55"},{default:e(({row:a})=>[t(V,{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(k,{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(j=>j.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(H)(a.price)),1)]),_:1})]),_:1},8,["data"])),[[U,l(d)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/components/SkuTableSelect.vue"]])});export{X as __tla,b as default};