index-4629ab69.js 10 KB

1
  1. import{_ as Ct,__tla as Tt}from"./ContentWrap-ba2a4753.js";import{_ as It,__tla as Vt}from"./index-45a8312e.js";import{d as St,$ as zt,L as Mt,i as Ut,u as Dt,r as n,ay as Yt,m as Et,S as Pt,o as c,x as m,w as o,h as _,a,c as b,F as M,v as U,R as D,g as r,T as jt,e1 as Nt,dz as Rt,y as Y,q as C,a6 as rt,t as x,b9 as Bt,dA as Lt,aY as Xt,Y as $t,Z as qt,aO as Ft,D as Ht,X as Zt,k as At,aU as Gt,B as Jt,z as Kt,A as Ot,C as Qt,E as Wt,j as ta,G as aa,p as ea,l as ra,_ as la,__tla as oa}from"./index-f90b5c34.js";import{E as _a,__tla as sa}from"./el-card-8f26f411.js";import{__tla as na}from"./index-86de76ed.js";import{h as ca,d as ua}from"./tree-0af4953a.js";import{P as lt}from"./constants-40f13f5e.js";import{h as ia,e as ma,__tla as pa}from"./spu-1cf8be87.js";import{g as da,__tla as ya}from"./category-658a1b96.js";import fa,{__tla as ha}from"./index-de996524.js";import{u as va,__tla as ga}from"./useMessage-b63be42a.js";import{__tla as ba}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c084c361.js";import{__tla as xa}from"./index-308c7aa8.js";import{__tla as wa}from"./el-image-viewer-ac6c2905.js";import{__tla as ka}from"./SPuUploadImg-d3560121.js";import{__tla as Ca}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb96616a.js";import{__tla as Ta}from"./tagsView-c046870f.js";import{__tla as Ia}from"./InfoForm-bdf49375.js";import{__tla as Va}from"./UploadImgs-1757da95.js";import{__tla as Sa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-c65d3d9a.js";import{__tla as za}from"./brand-40c14753.js";import{__tla as Ma}from"./formRules-95403af0.js";import{__tla as Ua}from"./DescriptionForm-a7a403a0.js";import{__tla as Da}from"./Editor-fdd11b64.js";import{__tla as Ya}from"./OtherForm-a99f2dd4.js";import{__tla as Ea}from"./SkuForm-b930dd48.js";import{__tla as Pa}from"./index-e2855980.js";import{__tla as ja}from"./SkuList-cbc908d6.js";import{__tla as Na}from"./el-image-ea8bcca0.js";import{__tla as Ra}from"./UploadImg-1aacf0d4.js";import{__tla as Ba}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-c8fae8e5.js";import{__tla as La}from"./ProductAttributes-0abb62c1.js";import{__tla as Xa}from"./el-text-7f029b42.js";import{__tla as $a}from"./property-4e880d00.js";import{__tla as qa}from"./ProductPropertyAddForm-edf0bc39.js";import{__tla as Fa}from"./Dialog-7f3c43da.js";import{__tla as Ha}from"./DeliveryForm-bd36c66d.js";import{__tla as Za}from"./index-82ccc401.js";import{__tla as Aa}from"./dict-94292190.js";import{__tla as Ga}from"./Service-01ac4784.js";import{__tla as Ja}from"./index-36104bda.js";import{__tla as Ka}from"./AfterSale-f96708f2.js";import{__tla as Oa}from"./index-62965d70.js";import{__tla as Qa}from"./Comment-008686e6.js";let ot,Wa=Promise.all([(()=>{try{return Tt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}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 Ia}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 Ya}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})()]).then(async()=>{let E,P,j,N,R,B,L,X,$,q,F,H;E={class:"search"},P={style:{"text-align":"right"},class:"search-input"},j={class:"searchMore"},N={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},R=["title"],B=["onClick"],L={style:{display:"flex","align-items":"center"}},X={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"}},$=["src"],q={style:{"line-height":"25px"}},F={key:0},H=[(p=>(ea("data-v-b78c7ed6"),p=p(),ra(),p))(()=>_("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],ot=la(St({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:0},isDetail:{type:Boolean,default:!1}},setup(p){const _t=zt(),T=Mt(()=>_t.getMobile),d=p;va(),Ut();const{push:st}=Dt(),Z=n(!1);n(!1);const A=n(0),y=n([]),f=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}]),e=n({pageNo:1,pageSize:10,tabType:"",name:"",categoryId:void 0,createTime:void 0}),nt=n(),h=n(!1),ct=()=>{h.value=!h.value},ut=()=>{h.value=!1},i=async()=>{Z.value=!0,console.log(d.merchantId),d.merchantId&&(e.value.merchantId=d.merchantId);try{const s=await ia(e.value);s.list.forEach(l=>{l.showSetting=!1}),y.value=s.list,A.value=s.total}finally{Z.value=!1,h.value=!1,G()}},it=s=>{e.value.tabType=s.paneName,i()},G=async()=>{const s=n({...e.value});d.merchantId&&(s.value.merId=d.merchantId);const l=await ma(s.value);f.value[0].count=0;for(let u in l)(u<=1||u==="4")&&(f.value[0].count+=l[u]),f.value[Number(u)+1].count=l[u]},w=()=>{i()},mt=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",w()},I=n(),J=(s,l,u,V)=>{I.value.open(s,l,u,V)},K=n();return Yt(()=>{i()}),Et(async()=>{await G(),await i();const s=await da({});K.value=ca(s,"id","parentId")}),(s,l)=>{const u=$t,V=qt,O=Ft,v=Ht,pt=Zt,Q=At,dt=Gt,k=Jt,yt=Kt,ft=Ot,ht=Qt,W=Wt,tt=ta,vt=aa,gt=_a,bt=It,xt=Ct,at=Pt("hasPermi");return c(),m(xt,{style:{},class:"container"},{default:o(()=>[_("div",E,[a(T)?D("",!0):(c(),m(V,{key:0,modelValue:a(e).tabType,"onUpdate:modelValue":l[0]||(l[0]=t=>a(e).tabType=t),onTabClick:it,class:"parent-tabs"},{default:o(()=>[(c(!0),b(M,null,U(a(f),t=>(c(),m(u,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),_("div",P,[r(pt,{modelValue:a(e).name,"onUpdate:modelValue":l[1]||(l[1]=t=>a(e).name=t),placeholder:"\u641C\u7D22\u5546\u54C1\u540D\u79F0",onKeyup:jt(w,["enter"]),class:"!w-240px"},{suffix:o(()=>[r(O,{class:"el-input__icon",onClick:w,style:{cursor:"pointer"}},{default:o(()=>[r(a(Nt))]),_:1})]),append:o(()=>[r(v,{icon:a(Rt),onClick:ct},null,8,["icon"])]),_:1},8,["modelValue"]),a(T)?D("",!0):Y((c(),m(v,{key:0,onClick:l[2]||(l[2]=t=>J("create","",0)),class:"ml-5px"},{default:o(()=>[r(Q,{class:"mr-5px",icon:"ep:plus"}),C(" \u65B0\u589E ")]),_:1})),[[at,["product:spu:create"]]])])]),Y(_("div",j,[r(vt,{ref_key:"queryFormRef",ref:nt,inline:!0,model:a(e),class:"-mb-15px","label-width":"68px"},{default:o(()=>[r(k,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(dt,{modelValue:a(e).categoryId,"onUpdate:modelValue":l[3]||(l[3]=t=>a(e).categoryId=t),options:a(K),props:a(ua),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(k,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[r(ft,{modelValue:a(e).tabType,"onUpdate:modelValue":l[4]||(l[4]=t=>a(e).tabType=t),placeholder:"\u5168\u90E8"},{default:o(()=>[(c(!0),b(M,null,U(a(f),t=>(c(),m(yt,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(k,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(ht,{style:{"margin-right":"unset",width:"auto !important"},modelValue:a(e).createTime,"onUpdate:modelValue":l[5]||(l[5]=t=>a(e).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(W,null,{default:o(()=>[r(k,null,{default:o(()=>[r(v,{onClick:ut},{default:o(()=>[C(" \u6536\u8D77 ")]),_:1}),r(v,{onClick:mt},{default:o(()=>[C(" \u91CD\u7F6E ")]),_:1}),r(v,{onClick:w,plain:"",type:"primary"},{default:o(()=>[r(Q,{class:"mr-5px",icon:"ep:search"}),C(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[rt,a(h)]]),r(tt,null,{default:o(()=>[(c(!0),b(M,null,U(a(y),(t,S)=>(c(),m(W,{class:"card",key:S,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:z=>function(g){y.value[g].showSetting=!0}(S),onMouseout:z=>function(g){y.value[g].showSetting=!1}(S)},{default:o(()=>[r(gt,{onClick:z=>((g,et,wt)=>{const kt=et.id;T.value?st({name:"ProductSpuMobileDetail",params:{id:kt}}):I.value.open(g,et,wt)})("view",t,a(lt).RECYCLE.status,a(e).tabType)},{default:o(()=>[_("div",N,[_("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},x(t.name),9,R),Y((c(),b("div",{onClick:Bt(z=>J("update",t,a(lt).RECYCLE.status,a(e).tabType),["stop"]),class:"setting"},[r(O,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[r(a(Lt))]),_:1})],8,B)),[[rt,t.showSetting],[at,["product:spu:update"]]])]),_("div",L,[_("div",X,[_("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,$)]),_("div",q,[_("p",null,"\xA5"+x(a(Xt)(t.price)),1),_("p",null,"\u9500\u91CF:"+x(t.salesCount),1),_("p",null,"\u5E93\u5B58:"+x(t.stock),1),_("p",null,"\u72B6\u6001:"+x(t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(y).length==0?(c(),b("div",F,[...H])):D("",!0),r(bt,{limit:a(e).pageSize,"onUpdate:limit":l[6]||(l[6]=t=>a(e).pageSize=t),page:a(e).pageNo,"onUpdate:page":l[7]||(l[7]=t=>a(e).pageNo=t),total:a(A),onPagination:i},null,8,["limit","page","total"]),r(fa,{ref_key:"formRef",ref:I,onSuccess:i},null,512)]),_:1})}}}),[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/product/spu/index.vue"]])});export{Wa as __tla,ot as default};