1 |
- import{_ as Ct,__tla as Tt}from"./ContentWrap-5f2f4872.js";import{_ as Vt,__tla as St}from"./index-51c17e69.js";import{d as zt,Y as Mt,K as Ut,h as Dt,u as It,r as n,az as Pt,l as Et,Q as Yt,o as c,v as u,w as o,g as _,a,c as w,F as M,q as U,P as D,f as r,R as jt,e5 as Nt,e6 as Rt,x as I,n as k,a4 as et,t as h,aT as Ft,d$ as Qt,at as qt,W as Ht,X as Kt,aU as Lt,C as Wt,V as $t,j as At,bc as Bt,A as Jt,y as Ot,z as Xt,B as Zt,E as Gt,i as ta,D as aa,p as ea,k as ra,_ as la,__tla as oa}from"./index-e3afde76.js";import{E as _a,__tla as sa}from"./el-card-6198c22a.js";import{__tla as na}from"./index-15373756.js";import{h as ca,d as ia}from"./tree-0af4953a.js";import{P as rt}from"./constants-40f13f5e.js";import{f as ua,b as pa,__tla as ma}from"./spu-9313bd7b.js";import{g as da,__tla as ya}from"./category-e7301561.js";import fa,{__tla as ha}from"./index-ede5a8c0.js";import{u as va,__tla as ga}from"./useMessage-0b1b25bd.js";import{__tla as ba}from"./index-2d20a7ff.js";import{__tla as xa}from"./el-image-viewer-9d1c7d33.js";import{__tla as wa}from"./SPuUploadImg-9d6f3265.js";import{__tla as ka}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb39998f.js";import{__tla as Ca}from"./tagsView-802b8cb6.js";import{__tla as Ta}from"./InfoForm-e572ceff.js";import{__tla as Va}from"./UploadImgs-94102248.js";import{__tla as Sa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-919f7924.js";import{__tla as za}from"./brand-e2c00116.js";import{__tla as Ma}from"./formRules-2fe7b606.js";import{__tla as Ua}from"./DescriptionForm-813b36a3.js";import{__tla as Da}from"./Editor-9c92736f.js";import{__tla as Ia}from"./OtherForm-5dc52988.js";import{__tla as Pa}from"./SkuForm-e4ed3301.js";import{__tla as Ea}from"./index-7cf37194.js";import{__tla as Ya}from"./SkuList-ea3d1cb7.js";import{__tla as ja}from"./el-image-65304aa9.js";import{__tla as Na}from"./UploadImg-78fd4518.js";import{__tla as Ra}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-97b1f5ff.js";import{__tla as Fa}from"./ProductAttributes-25e92ea3.js";import{__tla as Qa}from"./el-text-a1884411.js";import{__tla as qa}from"./property-d4cacf80.js";import{__tla as Ha}from"./ProductPropertyAddForm-380dc28a.js";import{__tla as Ka}from"./Dialog-c20523c4.js";import{__tla as La}from"./DeliveryForm-d2fe0b3b.js";import{__tla as Wa}from"./index-3f6e0b28.js";import{__tla as $a}from"./dict-a141296d.js";import{__tla as Aa}from"./Service-2863750d.js";import{__tla as Ba}from"./index-e23f4f5a.js";import{__tla as Ja}from"./AfterSale-964805ee.js";import{__tla as Oa}from"./Comment-09d092a6.js";let lt,Xa=Promise.all([(()=>{try{return Tt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}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 Ta}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Oa}catch{}})()]).then(async()=>{let P,E,Y,j,N,R,F,Q,q,H,K,L,W;P={class:"search"},E={style:{"text-align":"right"},class:"search-input"},Y={class:"searchMore"},j={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},N=["title"],R=["onClick"],F={style:{display:"flex","align-items":"center"}},Q={style:{width:"178px",height:"100px","margin-right":"10px",border:"1px solid rgb(220 223 231)","border-radius":"5px",display:"flex","align-items":"center","justify-content":"center",overflow:"hidden"}},q=["src"],H={style:{"line-height":"25px"}},K={key:0},L=[(v=>(ea("data-v-b78c7ed6"),v=v(),ra(),v))(()=>_("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],W=zt({name:"ProductSpu",__name:"index",setup(v){const ot=Mt(),g=Ut(()=>ot.getMobile);va(),Dt();const{push:_t}=It(),$=n(!1);n(!1);const A=n(0),p=n([]),m=n([{name:"\u5168\u90E8",type:"",count:0},{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:void 0,name:"",categoryId:void 0,createTime:void 0}),st=n(),d=n(!1),nt=()=>{d.value=!d.value},ct=()=>{d.value=!1},i=async()=>{$.value=!0;try{const s=await ua(l.value);s.list.forEach(e=>{e.showSetting=!1}),p.value=s.list,A.value=s.total}finally{$.value=!1,d.value=!1,B()}},it=s=>{l.value.tabType=s.paneName,i()},B=async()=>{const s=await pa();m.value[0].count=0;for(let e in s)(e<=1||e==="4")&&(m.value[0].count+=s[e]),m.value[Number(e)+1].count=s[e]},b=()=>{i()},ut=()=>{l.value.categoryId=void 0,l.value.createTime=void 0,l.value.name="",l.value.tabType=void 0,b()},C=n(),J=(s,e,T,V)=>{C.value.open(s,e,T,V)},O=n();return Pt(()=>{i()}),Et(async()=>{await B(),await i();const s=await da({});O.value=ca(s,"id","parentId")}),(s,e)=>{const T=Ht,V=Kt,X=Lt,y=Wt,pt=$t,Z=At,mt=Bt,x=Jt,dt=Ot,yt=Xt,ft=Zt,G=Gt,tt=ta,ht=aa,vt=_a,gt=Vt,bt=Ct,xt=Yt("hasPermi");return c(),u(bt,{style:{},class:"container"},{default:o(()=>[_("div",P,[a(g)?D("",!0):(c(),u(V,{key:0,modelValue:a(l).tabType,"onUpdate:modelValue":e[0]||(e[0]=t=>a(l).tabType=t),onTabClick:it,class:"parent-tabs"},{default:o(()=>[(c(!0),w(M,null,U(a(m),t=>(c(),u(T,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),_("div",E,[r(pt,{modelValue:a(l).name,"onUpdate:modelValue":e[1]||(e[1]=t=>a(l).name=t),placeholder:"\u641C\u7D22\u5546\u54C1\u540D\u79F0",onKeyup:jt(b,["enter"]),class:"!w-240px"},{suffix:o(()=>[r(X,{class:"el-input__icon",onClick:b,style:{cursor:"pointer"}},{default:o(()=>[r(a(Nt))]),_:1})]),append:o(()=>[r(y,{icon:a(Rt),onClick:nt},null,8,["icon"])]),_:1},8,["modelValue"]),a(g)?D("",!0):I((c(),u(y,{key:0,onClick:e[2]||(e[2]=t=>J("create","",0)),class:"ml-5px"},{default:o(()=>[r(Z,{class:"mr-5px",icon:"ep:plus"}),k(" \u65B0\u589E ")]),_:1})),[[xt,["product:spu:create"]]])])]),I(_("div",Y,[r(ht,{ref_key:"queryFormRef",ref:st,inline:!0,model:a(l),class:"-mb-15px","label-width":"68px"},{default:o(()=>[r(x,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(mt,{modelValue:a(l).categoryId,"onUpdate:modelValue":e[3]||(e[3]=t=>a(l).categoryId=t),options:a(O),props:a(ia),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(x,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[r(yt,{modelValue:a(l).tabType,"onUpdate:modelValue":e[4]||(e[4]=t=>a(l).tabType=t),placeholder:"\u5168\u90E8"},{default:o(()=>[(c(!0),w(M,null,U(a(m),t=>(c(),u(dt,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(x,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(ft,{style:{"margin-right":"unset",width:"auto !important"},modelValue:a(l).createTime,"onUpdate:modelValue":e[5]||(e[5]=t=>a(l).createTime=t),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],"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}),r(tt,null,{default:o(()=>[r(G,null,{default:o(()=>[r(x,null,{default:o(()=>[r(y,{onClick:ct},{default:o(()=>[k(" \u6536\u8D77 ")]),_:1}),r(y,{onClick:ut},{default:o(()=>[k(" \u91CD\u7F6E ")]),_:1}),r(y,{onClick:b,plain:"",type:"primary"},{default:o(()=>[r(Z,{class:"mr-5px",icon:"ep:search"}),k(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[et,a(d)]]),r(tt,null,{default:o(()=>[(c(!0),w(M,null,U(a(p),(t,S)=>(c(),u(G,{class:"card",key:S,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:z=>function(f){p.value[f].showSetting=!0}(S),onMouseout:z=>function(f){p.value[f].showSetting=!1}(S)},{default:o(()=>[r(vt,{onClick:z=>((f,at,wt)=>{const kt=at.id;g.value?_t({name:"ProductSpuMobileDetail",params:{id:kt}}):C.value.open(f,at,wt)})("view",t,a(rt).RECYCLE.status,a(l).tabType)},{default:o(()=>[_("div",j,[_("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},h(t.name),9,N),I(_("div",{onClick:Ft(z=>J("update",t,a(rt).RECYCLE.status,a(l).tabType),["stop"]),class:"setting"},[r(X,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[r(a(Qt))]),_:1})],8,R),[[et,t.showSetting&&!a(g)]])]),_("div",F,[_("div",Q,[_("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,q)]),_("div",H,[_("p",null,"\xA5"+h(a(qt)(t.price)),1),_("p",null,"\u9500\u91CF:"+h(t.salesCount),1),_("p",null,"\u5E93\u5B58:"+h(t.stock),1),_("p",null,"\u72B6\u6001:"+h(t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(p).length==0?(c(),w("div",K,[...L])):D("",!0),r(gt,{limit:a(l).pageSize,"onUpdate:limit":e[6]||(e[6]=t=>a(l).pageSize=t),page:a(l).pageNo,"onUpdate:page":e[7]||(e[7]=t=>a(l).pageNo=t),total:a(A),onPagination:i},null,8,["limit","page","total"]),r(fa,{ref_key:"formRef",ref:C,onSuccess:i},null,512)]),_:1})}}}),lt=la(W,[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{Xa as __tla,lt as default};
|