1 |
- import{_ as ht,__tla as vt}from"./ContentWrap-e91b2b5a.js";import{_ as gt,__tla as bt}from"./index-341fc94c.js";import{d as xt,n as wt,u as kt,r as n,a_ as Ct,B as Vt,P as Tt,o as c,l as b,w as o,g as s,i as r,a,Q as St,d$ as Ut,e0 as It,j as f,C as X,c as x,a2 as $,F as B,k as J,t as y,aO as Et,e1 as zt,a1 as Mt,aq as Yt,b2 as jt,J as Dt,U as Nt,v as Pt,b_ as Rt,H as Ht,I as At,K as Kt,z as Lt,A as qt,E as Ft,s as Ot,ac as Qt,ad as Xt,_ as $t,__tla as Bt}from"./index-b2b3c6c4.js";import{E as Jt,__tla as Zt}from"./el-card-bd6e27c9.js";import{__tla as Gt}from"./index-677601df.js";import{h as Wt,d as ta}from"./tree-0af4953a.js";import{c as Z}from"./constants-a1da293a.js";import{f as aa,b as ea,__tla as ra}from"./spu-ed9fb429.js";import{g as la,__tla as oa}from"./category-39c7fbf6.js";import _a,{__tla as sa}from"./index-143d7038.js";import{u as na,__tla as ca}from"./useMessage-a5edbb0f.js";import{__tla as ia}from"./index-2d76a87c.js";import{__tla as ua}from"./el-image-viewer-b5664270.js";import{__tla as pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-2554109a.js";import{__tla as ma}from"./tagsView-6c80c80f.js";import{__tla as da}from"./InfoForm-c044b48f.js";import{__tla as fa}from"./UploadImgs-5ed43a7f.js";import{__tla as ya}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-0ec352e2.js";import{__tla as ha}from"./brand-1965037f.js";import{__tla as va}from"./formRules-6084ed5c.js";import{__tla as ga}from"./DescriptionForm-f48102f6.js";import{__tla as ba}from"./Editor-b514e2f8.js";import{__tla as xa}from"./OtherForm-d2e91f61.js";import{__tla as wa}from"./SkuForm-9b4fd3cb.js";import{__tla as ka}from"./index-94a35483.js";import{__tla as Ca}from"./SkuList-c798f670.js";import{__tla as Va}from"./el-image-d434829d.js";import{__tla as Ta}from"./UploadImg-5f639045.js";import{__tla as Sa}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-5cfa6a42.js";import{__tla as Ua}from"./ProductAttributes-2f4a78c3.js";import{__tla as Ia}from"./el-text-466bfabe.js";import{__tla as Ea}from"./property-791930dd.js";import{__tla as za}from"./ProductPropertyAddForm-13cebfe2.js";import{__tla as Ma}from"./Dialog-70b24cbf.js";import{__tla as Ya}from"./DeliveryForm-e695f052.js";import{__tla as ja}from"./index-333bd70f.js";import{__tla as Da}from"./dict-7f0cc6d2.js";let G,Na=Promise.all([(()=>{try{return vt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Da}catch{}})()]).then(async()=>{let V,T,S,U,I,E,z,M,Y,j,D,N;V={style:{position:"relative"}},T={style:{"text-align":"right",background:"#fafbfc",padding:"10px"}},S={key:0,class:"searchMore"},U={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},I=["title"],E=["onClick"],z={style:{display:"flex","align-items":"center"}},M=["src"],Y={style:{"line-height":"25px"}},j={key:0},D=[(h=>(Qt("data-v-b78c7ed6"),h=h(),Xt(),h))(()=>s("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],N=xt({name:"ProductSpu",__name:"index",setup(h){na(),wt(),kt();const P=n(!1);n(!1);const R=n(0),m=n([]),H=n([{name:"\u51FA\u552E\u4E2D",type:0,count:0},{name:"\u4ED3\u5E93\u4E2D",type:1,count:0},{name:"\u5DF2\u552E\u7F44",type:2,count:0},{name:"\u8B66\u6212\u5E93\u5B58",type:3,count:0},{name:"\u56DE\u6536\u7AD9",type:4,count:0}]),l=n({pageNo:1,pageSize:10,tabType:0,name:"",categoryId:void 0,createTime:void 0}),W=n(),d=n(!1),tt=_=>{_.target.src="https://static.iocoder.cn/mall/a79f5d2ea6bf0c3c11b2127332dfe2df.jpg"},at=()=>{d.value=!d.value},et=()=>{d.value=!1},u=async()=>{P.value=!0;try{const _=await aa(l.value);_.list.forEach(e=>{e.showSetting=!1}),m.value=_.list,R.value=_.total}finally{P.value=!1,d.value=!1,A()}},rt=_=>{l.value.tabType=_.paneName,u()},A=async()=>{const _=await ea();for(let e in _)H.value[Number(e)].count=_[e]},v=()=>{u()},lt=()=>{l.value.categoryId=void 0,l.value.createTime=void 0,l.value.name="",v()},w=n(),K=(_,e,g,i)=>{w.value.open(_,e,g,i)},L=n();return Ct(()=>{u()}),Vt(async()=>{await A(),await u();const _=await la({});L.value=Wt(_,"id","parentId")}),(_,e)=>{const g=jt,i=Dt,ot=Nt,q=Pt,_t=Rt,F=Ht,st=At,nt=Kt,ct=Lt,it=qt,ut=Jt,pt=Ft,mt=Ot,dt=gt,ft=ht,yt=Tt("hasPermi");return c(),b(ft,{style:{},class:"spu-div"},{default:o(()=>[s("div",V,[s("div",T,[r(ot,{modelValue:a(l).name,"onUpdate:modelValue":e[0]||(e[0]=t=>a(l).name=t),class:"!w-240px",placeholder:"\u641C\u7D22\u5546\u54C1\u540D\u79F0",onKeyup:St(v,["enter"])},{suffix:o(()=>[r(g,{class:"el-input__icon",onClick:v,style:{cursor:"pointer"}},{default:o(()=>[r(a(Ut))]),_:1})]),append:o(()=>[r(i,{icon:a(It),onClick:at},null,8,["icon"])]),_:1},8,["modelValue"]),f(" \xA0 "),X((c(),b(i,{onClick:e[1]||(e[1]=t=>K("create","",0))},{default:o(()=>[r(q,{class:"mr-5px",icon:"ep:plus"}),f(" \u65B0\u589E ")]),_:1})),[[yt,["product:spu:create"]]])]),a(d)?(c(),x("div",S,[r(nt,{ref_key:"queryFormRef",ref:W,inline:!0,model:a(l),class:"-mb-15px","label-width":"68px"},{default:o(()=>[s("div",null,[r(F,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(_t,{modelValue:a(l).categoryId,"onUpdate:modelValue":e[2]||(e[2]=t=>a(l).categoryId=t),options:a(L),props:a(ta),class:"w-1/1",clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(F,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(st,{style:{"margin-right":"unset"},modelValue:a(l).createTime,"onUpdate:modelValue":e[3]||(e[3]=t=>a(l).createTime=t),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1})]),s("div",null,[r(i,{onClick:et},{default:o(()=>[f(" \u6536\u8D77 ")]),_:1}),r(i,{onClick:lt},{default:o(()=>[f(" \u91CD\u7F6E ")]),_:1}),r(i,{onClick:v,plain:"",type:"primary"},{default:o(()=>[r(q,{class:"mr-5px",icon:"ep:search"}),f(" \u641C\u7D22 ")]),_:1})])]),_:1},8,["model"])])):$("",!0)]),r(it,{modelValue:a(l).tabType,"onUpdate:modelValue":e[4]||(e[4]=t=>a(l).tabType=t),onTabClick:rt,class:"parent-tabs"},{default:o(()=>[(c(!0),x(B,null,J(a(H),t=>(c(),b(ct,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"]),r(mt,null,{default:o(()=>[(c(!0),x(B,null,J(a(m),(t,k)=>(c(),b(pt,{class:"product-card",key:k,span:7,onMouseover:C=>function(p){m.value[p].showSetting=!0}(k),onMouseout:C=>function(p){m.value[p].showSetting=!1}(k)},{default:o(()=>[r(ut,{onClick:C=>{return p="view",O=t,Q=a(Z).RECYCLE.status,a(l).tabType,void w.value.open(p,O,Q);var p,O,Q}},{default:o(()=>[s("div",U,[s("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},y(t.name),9,I),X(s("div",{onClick:Et(C=>K("update",t,a(Z).RECYCLE.status,a(l).tabType),["stop"]),class:"setting"},[r(g,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[r(a(zt))]),_:1})],8,E),[[Mt,t.showSetting]])]),s("div",z,[s("img",{src:t.picUrl,style:{width:"100px",height:"100px","margin-right":"10px",border:"1px solid rgb(220 223 231)","border-radius":"5px"},onError:tt},null,40,M),s("div",Y,[s("p",null,"\xA5"+y(a(Yt)(t.price)),1),s("p",null,"\u9500\u91CF:"+y(t.salesCount),1),s("p",null,"\u5E93\u5B58:"+y(t.stock),1),s("p",null,"\u72B6\u6001:"+y(t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(m).length==0?(c(),x("div",j,[...D])):$("",!0),r(dt,{limit:a(l).pageSize,"onUpdate:limit":e[5]||(e[5]=t=>a(l).pageSize=t),page:a(l).pageNo,"onUpdate:page":e[6]||(e[6]=t=>a(l).pageNo=t),total:a(R),onPagination:u},null,8,["limit","page","total"]),r(_a,{ref_key:"formRef",ref:w,onSuccess:u},null,512)]),_:1})}}}),G=$t(N,[["__scopeId","data-v-b78c7ed6"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{Na as __tla,G as default};
|