1 |
- import{_ as wt,__tla as kt}from"./ContentWrap-0730b42c.js";import{_ as Ct,__tla as Tt}from"./index-98081839.js";import{d as Vt,Y as St,K as It,h as Dt,u as Mt,r as c,ay as zt,l as Ut,Q as Pt,o as i,v as m,w as _,g as o,Z as Yt,a,c as w,F as D,q as M,P as z,f as l,R as Et,e5 as jt,e6 as Nt,x as U,n as k,a4 as tt,t as v,aS as Bt,d$ as Rt,at as qt,W as Ft,X as $t,aT as Ht,C as Kt,V as Lt,j as Qt,ba as At,A as Gt,y as Wt,z as Xt,B as Zt,E as Jt,i as Ot,D as ta,p as aa,k as ea,_ as la,__tla as ra}from"./index-8e30b17f.js";import{E as _a,__tla as oa}from"./el-card-70b4f66a.js";import{__tla as sa}from"./index-7d9ab767.js";import{h as na,d as ca}from"./tree-0af4953a.js";import{P as at}from"./constants-40f13f5e.js";import{f as ia,b as ua,__tla as ma}from"./spu-9278ab05.js";import{g as pa,__tla as da}from"./category-d033fe8c.js";import ya,{__tla as fa}from"./index-5fde253e.js";import{u as ha,__tla as va}from"./useMessage-ee50bd51.js";import{__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-14d08aa7.js";import{__tla as ba}from"./index-bcb8595f.js";import{__tla as xa}from"./el-image-viewer-fb97741c.js";import{__tla as wa}from"./SPuUploadImg-d721f065.js";import{__tla as ka}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f9173f05.js";import{__tla as Ca}from"./tagsView-c2b8f0af.js";import{__tla as Ta}from"./InfoForm-0dcbf36b.js";import{__tla as Va}from"./UploadImgs-36eb6b9b.js";import{__tla as Sa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-18e90e1c.js";import{__tla as Ia}from"./brand-6fcb1407.js";import{__tla as Da}from"./formRules-57d6ba35.js";import{__tla as Ma}from"./DescriptionForm-377ee677.js";import{__tla as za}from"./Editor-ea1788e9.js";import{__tla as Ua}from"./OtherForm-5864e4ef.js";import{__tla as Pa}from"./SkuForm-794a79f6.js";import{__tla as Ya}from"./index-38f6741e.js";import{__tla as Ea}from"./SkuList-2a85f0a3.js";import{__tla as ja}from"./el-image-830684bc.js";import{__tla as Na}from"./UploadImg-1c51a097.js";import{__tla as Ba}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-f1b36410.js";import{__tla as Ra}from"./ProductAttributes-fe490a68.js";import{__tla as qa}from"./el-text-bd86be3e.js";import{__tla as Fa}from"./property-02e5a6de.js";import{__tla as $a}from"./ProductPropertyAddForm-3543f600.js";import{__tla as Ha}from"./Dialog-9917188a.js";import{__tla as Ka}from"./DeliveryForm-329512d9.js";import{__tla as La}from"./index-15221d0d.js";import{__tla as Qa}from"./dict-500f7ec9.js";import{__tla as Aa}from"./Service-5fc7efea.js";import{__tla as Ga}from"./index-0befdeaa.js";import{__tla as Wa}from"./AfterSale-eba2b4b8.js";import{__tla as Xa}from"./Comment-f14d29c2.js";let et,Za=Promise.all([(()=>{try{return kt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}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 Ta}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})()]).then(async()=>{let P,Y,E,j,N,B,R,q,F,$,H;P={style:{"text-align":"right"},class:"search-input"},Y={class:"searchMore"},E={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},j=["title"],N=["onClick"],B={style:{display:"flex","align-items":"center"}},R={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"],F={style:{"line-height":"25px"}},$={key:0},H=[(n=>(aa("data-v-b78c7ed6"),n=n(),ea(),n))(()=>o("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],et=la(Vt({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:0},isDetail:{type:Boolean,default:!1}},setup(n){const lt=St(),g=It(()=>lt.getMobile);console.log(n),ha(),Dt();const{push:rt}=Mt(),K=c(!1);c(!1);const L=c(0),p=c([]),d=c([{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}]),r=c({pageNo:1,pageSize:10,tabType:"",name:"",categoryId:void 0,createTime:void 0}),_t=c(),y=c(!1),ot=()=>{y.value=!y.value},st=()=>{y.value=!1},u=async()=>{K.value=!0;try{const s=await ia(r.value);s.list.forEach(e=>{e.showSetting=!1}),p.value=s.list,L.value=s.total}finally{K.value=!1,y.value=!1,Q()}},nt=s=>{r.value.tabType=s.paneName,u()},Q=async()=>{const s=await ua();d.value[0].count=0;for(let e in s)(e<=1||e==="4")&&(d.value[0].count+=s[e]),d.value[Number(e)+1].count=s[e]},b=()=>{u()},ct=()=>{r.value.categoryId=void 0,r.value.createTime=void 0,r.value.name="",r.value.tabType="",b()},C=c(),A=(s,e,T,V)=>{C.value.open(s,e,T,V)},G=c();return zt(()=>{u()}),Ut(async()=>{await Q(),await u();const s=await pa({});G.value=na(s,"id","parentId")}),(s,e)=>{const T=Ft,V=$t,W=Ht,f=Kt,it=Lt,X=Qt,ut=At,x=Gt,mt=Wt,pt=Xt,dt=Zt,Z=Jt,J=Ot,yt=ta,ft=_a,ht=Ct,vt=wt,gt=Pt("hasPermi");return i(),m(vt,{style:{},class:"container"},{default:_(()=>[o("div",{class:Yt(n.merchantId?"search-one":"search")},[a(g)||n.merchantId?z("",!0):(i(),m(V,{key:0,modelValue:a(r).tabType,"onUpdate:modelValue":e[0]||(e[0]=t=>a(r).tabType=t),onTabClick:nt,class:"parent-tabs"},{default:_(()=>[(i(!0),w(D,null,M(a(d),t=>(i(),m(T,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),o("div",P,[l(it,{modelValue:a(r).name,"onUpdate:modelValue":e[1]||(e[1]=t=>a(r).name=t),placeholder:"\u641C\u7D22\u5546\u54C1\u540D\u79F0",onKeyup:Et(b,["enter"]),class:"!w-240px"},{suffix:_(()=>[l(W,{class:"el-input__icon",onClick:b,style:{cursor:"pointer"}},{default:_(()=>[l(a(jt))]),_:1})]),append:_(()=>[l(f,{icon:a(Nt),onClick:ot},null,8,["icon"])]),_:1},8,["modelValue"]),a(g)||n.isDetail||n.merchantId?z("",!0):U((i(),m(f,{key:0,onClick:e[2]||(e[2]=t=>A("create","",0)),class:"ml-5px"},{default:_(()=>[l(X,{class:"mr-5px",icon:"ep:plus"}),k(" \u65B0\u589E ")]),_:1})),[[gt,["product:spu:create"]]])])],2),U(o("div",Y,[l(yt,{ref_key:"queryFormRef",ref:_t,inline:!0,model:a(r),class:"-mb-15px","label-width":"68px"},{default:_(()=>[l(x,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:_(()=>[l(ut,{modelValue:a(r).categoryId,"onUpdate:modelValue":e[3]||(e[3]=t=>a(r).categoryId=t),options:a(G),props:a(ca),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),l(x,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:_(()=>[l(pt,{modelValue:a(r).tabType,"onUpdate:modelValue":e[4]||(e[4]=t=>a(r).tabType=t),placeholder:"\u5168\u90E8"},{default:_(()=>[(i(!0),w(D,null,M(a(d),t=>(i(),m(mt,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(x,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:_(()=>[l(dt,{style:{"margin-right":"unset",width:"auto !important"},modelValue:a(r).createTime,"onUpdate:modelValue":e[5]||(e[5]=t=>a(r).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}),l(J,null,{default:_(()=>[l(Z,null,{default:_(()=>[l(x,null,{default:_(()=>[l(f,{onClick:st},{default:_(()=>[k(" \u6536\u8D77 ")]),_:1}),l(f,{onClick:ct},{default:_(()=>[k(" \u91CD\u7F6E ")]),_:1}),l(f,{onClick:b,plain:"",type:"primary"},{default:_(()=>[l(X,{class:"mr-5px",icon:"ep:search"}),k(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[tt,a(y)]]),l(J,null,{default:_(()=>[(i(!0),w(D,null,M(a(p),(t,S)=>(i(),m(Z,{class:"card",key:S,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:I=>function(h){p.value[h].showSetting=!0}(S),onMouseout:I=>function(h){p.value[h].showSetting=!1}(S)},{default:_(()=>[l(ft,{onClick:I=>((h,O,bt)=>{const xt=O.id;g.value?rt({name:"ProductSpuMobileDetail",params:{id:xt}}):C.value.open(h,O,bt)})("view",t,a(at).RECYCLE.status,a(r).tabType)},{default:_(()=>[o("div",E,[o("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},v(t.name),9,j),U(o("div",{onClick:Bt(I=>A("update",t,a(at).RECYCLE.status,a(r).tabType),["stop"]),class:"setting"},[l(W,{size:"20",color:"rgb(220 223 231)"},{default:_(()=>[l(a(Rt))]),_:1})],8,N),[[tt,t.showSetting&&!a(g)&&!n.isDetail]])]),o("div",B,[o("div",R,[o("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,q)]),o("div",F,[o("p",null,"\xA5"+v(a(qt)(t.price)),1),o("p",null,"\u9500\u91CF:"+v(t.salesCount),1),o("p",null,"\u5E93\u5B58:"+v(t.stock),1),o("p",null,"\u72B6\u6001:"+v(t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(p).length==0?(i(),w("div",$,[...H])):z("",!0),l(ht,{limit:a(r).pageSize,"onUpdate:limit":e[6]||(e[6]=t=>a(r).pageSize=t),page:a(r).pageNo,"onUpdate:page":e[7]||(e[7]=t=>a(r).pageNo=t),total:a(L),onPagination:u},null,8,["limit","page","total"]),l(ya,{ref_key:"formRef",ref:C,onSuccess:u},null,512)]),_:1})}}}),[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{Za as __tla,et as default};
|