1 |
- import{_ as ga,__tla as Ia}from"./ContentWrap-260746ab.js";import{_ as ka,__tla as wa}from"./index-e6a7fd1e.js";import{d as xa,y as Ta,e as Va,u as Sa,r as n,x as Ca,b as Ua,o as c,C as f,A as _,c as v,a as t,F as S,R as C,a3 as U,B as i,f as r,dy as Ma,aD as Pa,a5 as Da,k as Z,v as aa,D as R,E as b,aE as Ea,aF as za,dz as Na,P as Ya,n as Ra,aa as qa,ab as Fa,aG as Ka,J as ja,a9 as Ha,S as La,U as Aa,V as Ba,b3 as Ja,I as Ga,Q as Oa,K as Qa,W as Wa,H as $a,L as Xa,M as Za,_ as at,__tla as tt}from"./index-54aa57d8.js";import{E as et,__tla as lt}from"./el-card-e7d6628c.js";import{h as rt,d as _t}from"./tree-0af4953a.js";import{P as ta}from"./constants-c811e5ff.js";import{I as ot,__tla as st}from"./ImageCard-dcb28e16.js";import{b as ct,c as nt,d as ut,__tla as it}from"./spu-b4744276.js";import{g as mt,__tla as pt}from"./index-692b7677.js";import{g as dt,__tla as yt}from"./category-25a5e37a.js";import ft,{__tla as ht}from"./index-d98f03a9.js";import{u as vt,__tla as bt}from"./useMessage-f56cafbb.js";import{__tla as gt}from"./index-254a9b5e.js";import{__tla as It}from"./SPuUploadImg-d377301f.js";import{__tla as kt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-03e554d4.js";import{__tla as wt}from"./index-1a846221.js";import{__tla as xt}from"./el-image-viewer-ec0edec4.js";import{__tla as Tt}from"./tagsView-de336f1c.js";import{__tla as Vt}from"./InfoForm-8a1156fa.js";import{__tla as St}from"./UploadImgs-1c3a9b0d.js";import{__tla as Ct}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-6e3f8f3f.js";import{__tla as Ut}from"./brand-e7a4cd3c.js";import{__tla as Mt}from"./formRules-de58d92d.js";import{__tla as Pt}from"./DescriptionForm-9b580d1b.js";import{__tla as Dt}from"./Editor-2839cd89.js";import{__tla as Et}from"./OtherForm-7d2e07e5.js";import{__tla as zt}from"./SkuForm-cc53e4f6.js";import{__tla as Nt}from"./index-e0572f5f.js";import{__tla as Yt}from"./SkuList-6694cde5.js";import{__tla as Rt}from"./el-image-94dad5a7.js";import{__tla as qt}from"./UploadImg-46306ddf.js";import{__tla as Ft}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-ebe3d168.js";import{__tla as Kt}from"./ProductAttributes-406417eb.js";import{__tla as jt}from"./el-text-5b70ca38.js";import{__tla as Ht}from"./property-e665e647.js";import{__tla as Lt}from"./ProductPropertyAddForm-3cfd6c3c.js";import{__tla as At}from"./Dialog-7bb778a5.js";import{__tla as Bt}from"./DeliveryForm-6c649f33.js";import{__tla as Jt}from"./index-fc0842b4.js";import{__tla as Gt}from"./dict-573b3b04.js";import{__tla as Ot}from"./Service-3d4da465.js";import{__tla as Qt}from"./index-e7a32376.js";import{__tla as Wt}from"./AfterSale-255a48ee.js";import{__tla as $t}from"./Comment-ceea28c0.js";import{__tla as Xt}from"./Apply-6360d92c.js";import{__tla as Zt}from"./formatTime-e6197688.js";import{__tla as ae}from"./permission-1c0fa4cd.js";let ea,te=Promise.all([(()=>{try{return Ia}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return ae}catch{}})()]).then(async()=>{let q,F,K,j,H,L,A,B;q={key:0,class:"search"},F={style:{"text-align":"right"},class:"search-input"},K={class:"searchMore"},j={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},H=["title"],L=["onClick"],A={key:1},B=[(u=>(Xa("data-v-b78c7ed6"),u=u(),Za(),u))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],ea=at(xa({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:void 0},userId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1}},setup(u){const la=Ta(),M=Va(()=>la.getMobile),y=u;vt(),Ya();const{push:ra}=Sa(),P=n(!1);n(!1);const D=n(0),g=n([]),_a=n(178),m=Ca([{name:"\u5F85\u5BA1\u6838",type:"-1",count:0},{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:"-1",name:"",categoryId:void 0,createTime:void 0,shopId:void 0,checkStatus:1}),oa=n(),I=n(!1),sa=()=>{I.value=!I.value},ca=()=>{I.value=!1},h=async()=>{P.value=!0,e.value.tabType==="-1"?e.value.checkStatus=0:e.value.checkStatus=1,y.merchantId&&(e.value.merchantId=y.merchantId);try{let o;y.userId?(console.log(y.userId),e.value.userId=y.userId,o=await ct(e.value)):o=await nt(e.value),o.list.forEach(l=>{l.showSetting=!1}),g.value=o.list,D.value=o.total}finally{P.value=!1,I.value=!1,J()}},na=o=>{e.value.tabType=o.paneName,h()},J=async()=>{const o=n({...e.value});y.merchantId&&(o.value.merId=y.merchantId);const l=await ut(o.value);for(let s in m)m[s].type==="-1"?m[s].count=l[-1]:m[s].type===""?m[s].count=l[0]+l[1]+l[4]:m[s].count=l[m[s].type]},x=()=>{h()},ua=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",e.value.shopId=void 0,x()},E=n(),G=n();let O=n([]);return Ua(async()=>{await(async()=>{P.value=!0;const l=await mt();O.value=l})(),await J(),await h().then(()=>{D.value===0&&(e.value.tabType="",h())});const o=await dt({});G.value=rt(o,"id","parentId"),Ra(()=>{const l=document.querySelectorAll(".card-img");let s=1/0;l.forEach(z=>{const k=z.clientWidth;k<s&&(s=k)}),s!==1/0&&(_a.value=s)})}),(o,l)=>{const s=qa,z=Fa,k=Ka,T=ja,ia=Ha,Q=La,W=Aa,V=Ba,ma=Ja,pa=Ga,da=Oa,$=Qa,ya=Wa,fa=et,ha=$a,va=ka,ba=ga;return c(),f(ba,{style:{},class:"container"},{default:_(()=>[u.userId?U("",!0):(c(),v("div",q,[t(M)?U("",!0):(c(),f(z,{key:0,modelValue:t(e).tabType,"onUpdate:modelValue":l[0]||(l[0]=a=>t(e).tabType=a),onTabClick:na,class:"parent-tabs"},{default:_(()=>[(c(!0),v(S,null,C(t(m),a=>(c(),f(s,{key:a.type,label:a.name+"("+a.count+")",name:a.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),i("div",F,[r(ia,{modelValue:t(e).name,"onUpdate:modelValue":l[1]||(l[1]=a=>t(e).name=a),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Da(x,["enter"]),class:"!w-240px"},{suffix:_(()=>[r(k,{class:"el-input__icon",onClick:x,style:{cursor:"pointer"}},{default:_(()=>[r(t(Ma))]),_:1})]),append:_(()=>[r(T,{icon:t(Pa),onClick:sa},null,8,["icon"])]),_:1},8,["modelValue"])])])),Z(i("div",K,[r(ya,{ref_key:"queryFormRef",ref:oa,inline:!0,model:t(e),class:"-mb-15px","label-width":"80px"},{default:_(()=>[u.merchantId||u.userId?U("",!0):(c(),f(V,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:_(()=>[r(W,{modelValue:t(e).shopId,"onUpdate:modelValue":l[2]||(l[2]=a=>t(e).shopId=a),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:_(()=>[(c(!0),v(S,null,C(t(O),a=>(c(),f(Q,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(V,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:_(()=>[r(ma,{modelValue:t(e).categoryId,"onUpdate:modelValue":l[3]||(l[3]=a=>t(e).categoryId=a),options:t(G),props:t(_t),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(V,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:_(()=>[r(W,{modelValue:t(e).tabType,"onUpdate:modelValue":l[4]||(l[4]=a=>t(e).tabType=a),placeholder:"\u5168\u90E8"},{default:_(()=>[(c(!0),v(S,null,C(t(m),a=>(c(),f(Q,{key:a.type,label:a.name,value:a.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(V,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:_(()=>[r(pa,{style:{"margin-right":"unset",width:"auto !important"},modelValue:t(e).createTime,"onUpdate:modelValue":l[5]||(l[5]=a=>t(e).createTime=a),"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($,{class:"pb-20px flex justify-end"},{default:_(()=>[r(T,{onClick:ca},{default:_(()=>[R(" \u6536\u8D77 ")]),_:1}),r(T,{onClick:ua},{default:_(()=>[R(" \u91CD\u7F6E ")]),_:1}),r(T,{onClick:x,plain:"",type:"primary"},{default:_(()=>[r(da,{class:"mr-5px",icon:"ep:search"}),R(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1},8,["model"])],512),[[aa,t(I)]]),r($,null,{default:_(()=>[(c(!0),v(S,null,C(t(g),(a,N)=>(c(),f(ha,{class:"card",key:N,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:Y=>function(p){g.value[p].showSetting=!0}(N),onMouseout:Y=>function(p){g.value[p].showSetting=!1}(N)},{default:_(()=>[r(fa,{onClick:Y=>{return p="view",d=a,w=t(ta).RECYCLE.status,t(e).tabType,void(M.value?ra({name:"ProductSpuMobileDetail",params:{id:d.id,applyMemberUserId:d.applyMemberUserId,checkStatus:d.checkStatus}}):E.value.open(p,d,w));var p,d,w}},{default:_(()=>[i("div",j,[i("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:a.name},b(a.name),9,H),Z(i("div",{onClick:Ea(Y=>{return p="update",d=a,w=t(ta).RECYCLE.status,X=t(e).tabType,void E.value.open(p,d,w,X);var p,d,w,X},["stop"]),class:"setting"},[r(k,{size:"20",color:"rgb(220 223 231)"},{default:_(()=>[r(t(za))]),_:1})],8,L),[[aa,a.showSetting&&!t(M)&&!u.merchantId&&!u.userId]])]),r(ot,{url:a.picUrl,width:178,height:100},{label:_(()=>[i("p",null,b(a.spuPayType==2?"\u4F63\u91D1:":"\xA5")+" "+b(a.highPrecision?(a.highPrecisionPrice/100).toFixed(6):t(Na)(a.price)),1),i("p",null,"\u9500\u91CF:"+b(a.salesCount),1),i("p",null,"\u5E93\u5B58:"+b(a.stock),1),i("p",null,"\u72B6\u6001:"+b(a.checkStatus?a.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)]),_:2},1032,["url"])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),t(g).length==0?(c(),v("div",A,[...B])):U("",!0),r(va,{limit:t(e).pageSize,"onUpdate:limit":l[6]||(l[6]=a=>t(e).pageSize=a),page:t(e).pageNo,"onUpdate:page":l[7]||(l[7]=a=>t(e).pageNo=a),total:t(D),onPagination:h},null,8,["limit","page","total"]),r(ft,{ref_key:"formRef",ref:E,onSuccess:h},null,512)]),_:1})}}}),[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{te as __tla,ea as default};
|