1 |
- import{_ as Tt,__tla as Ct}from"./ContentWrap-9da801df.js";import{_ as St,__tla as It}from"./index-e6cd813f.js";import{d as Vt,b as Pt,e as zt,B as Mt,u as Ut,r as u,g as Dt,aC as Et,z as Yt,T as jt,o as c,k as m,w as o,j as _,a,c as b,F as z,C as M,S as U,i as l,U as Nt,e2 as Ft,dz as Rt,D,l as T,a7 as rt,t as d,b9 as qt,dB as Bt,aZ as Ht,Z as $t,$ as Jt,aQ as Lt,s as Qt,Y as Xt,n as Zt,aV as Gt,I as Kt,G as At,H as Ot,q as Wt,E as ta,p as aa,J as ea,v as ra,x as la,_ as oa,__tla as _a}from"./index-2f799233.js";import{E as sa,__tla as ca}from"./el-card-c64c83d1.js";import{h as na,d as ua}from"./tree-0af4953a.js";import{P as lt}from"./constants-d55a3460.js";import{i as ia,f as pa,__tla as ma}from"./spu-980b34a1.js";import{g as da,__tla as ya}from"./category-6df467a3.js";import fa,{__tla as ha}from"./index-530cb086.js";import{u as va,__tla as ga}from"./useMessage-e567ad40.js";import{__tla as ba}from"./index-1c180a16.js";import{__tla as xa}from"./SPuUploadImg-121cd89e.js";import{__tla as ka}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as wa}from"./index-5f6db4a5.js";import{__tla as Ta}from"./el-image-viewer-8e9e3571.js";import{__tla as Ca}from"./InfoForm-2a08666c.js";import{__tla as Sa}from"./UploadImgs-0a2b8085.js";import{__tla as Ia}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-872107b3.js";import{__tla as Va}from"./brand-51caed7c.js";import{__tla as Pa}from"./formRules-8aa12f76.js";import{__tla as za}from"./DescriptionForm-aa3c5dea.js";import{__tla as Ma}from"./Editor-3a97a075.js";import{__tla as Ua}from"./OtherForm-7be1840a.js";import{__tla as Da}from"./SkuForm-5e8f39e5.js";import{__tla as Ea}from"./index-7549c07e.js";import{__tla as Ya}from"./SkuList-c1eb35ef.js";import{__tla as ja}from"./el-image-4d26fa76.js";import{__tla as Na}from"./UploadImg-d46c0539.js";import{__tla as Fa}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-bc6f7cfd.js";import{__tla as Ra}from"./PcComponents.css_vue_type_style_index_0_src_00d8480b_scoped_00d8480b_lang-80062d91.js";import{__tla as qa}from"./ProductAttributes-a03a7812.js";import{__tla as Ba}from"./el-text-58158748.js";import{__tla as Ha}from"./property-9f44e48e.js";import{__tla as $a}from"./ProductPropertyAddForm-ac5c62a7.js";import{__tla as Ja}from"./Dialog-6fd39e06.js";import{__tla as La}from"./MobileSkuList-c5d6aa78.js";import{__tla as Qa}from"./DeliveryForm-068fb530.js";import{__tla as Xa}from"./index-6810ba49.js";import{__tla as Za}from"./dict-20c916e2.js";import{__tla as Ga}from"./Service-c0bda3f4.js";import{__tla as Ka}from"./index-36dfbc52.js";import{__tla as Aa}from"./AfterSale-babc95d3.js";import{__tla as Oa}from"./index-8cb2149a.js";import{__tla as Wa}from"./Comment-dabeb569.js";import{__tla as te}from"./Apply-0bed427f.js";import{__tla as ae}from"./formatTime-2157894c.js";let ot,ee=Promise.all([(()=>{try{return Ct}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ca}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 ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return ae}catch{}})()]).then(async()=>{let E,Y,j,N,F,R,q,B,H,$,J,L;E={class:"search"},Y={style:{"text-align":"right"},class:"search-input"},j={class:"searchMore"},N={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},F=["title"],R=["onClick"],q={style:{display:"flex","align-items":"center"}},B={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"}},H=["src"],$={style:{"line-height":"25px"}},J={key:0},L=[(y=>(ra("data-v-b78c7ed6"),y=y(),la(),y))(()=>_("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],ot=oa(Vt({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:0},isDetail:{type:Boolean,default:!1}},setup(y){const _t=Pt(),C=zt(()=>_t.getMobile),x=y;va(),Mt();const{push:st}=Ut(),Q=u(!1);u(!1);const X=u(0),f=u([]),i=Dt([{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=u({pageNo:1,pageSize:10,tabType:"",checkStatus:1,merchantId:0,name:"",categoryId:void 0,createTime:void 0}),ct=u(),h=u(!1),nt=()=>{h.value=!h.value},ut=()=>{h.value=!1},p=async()=>{Q.value=!0,e.value.tabType==="-1"?e.value.checkStatus=0:e.value.checkStatus=1,x.merchantId&&(e.value.merchantId=x.merchantId);try{const s=await ia(e.value);s.list.forEach(r=>{r.showSetting=!1}),f.value=s.list,X.value=s.total}finally{Q.value=!1,h.value=!1,Z()}},it=s=>{e.value.tabType=s.paneName,p()},Z=async()=>{const s=u({...e.value});x.merchantId&&(s.value.merId=x.merchantId);const r=await pa(s.value);for(let n in i)i[n].type==="-1"?i[n].count=r[-1]:i[n].type===""?i[n].count=r[0]+r[1]+r[4]:i[n].count=r[i[n].type]},k=()=>{p()},pt=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",e.value.checkStatus=1,k()},S=u(),G=(s,r,n,I)=>{S.value.open(s,r,n,I)},K=u();return Et(()=>{p()}),Yt(async()=>{await Z(),await p();const s=await da({});K.value=na(s,"id","parentId")}),(s,r)=>{const n=$t,I=Jt,A=Lt,v=Qt,mt=Xt,O=Zt,dt=Gt,w=Kt,yt=At,ft=Ot,ht=Wt,W=ta,tt=aa,vt=ea,gt=sa,bt=St,xt=Tt,at=jt("hasPermi");return c(),m(xt,{style:{},class:"container"},{default:o(()=>[_("div",E,[a(C)?U("",!0):(c(),m(I,{key:0,modelValue:a(e).tabType,"onUpdate:modelValue":r[0]||(r[0]=t=>a(e).tabType=t),onTabClick:it,class:"parent-tabs"},{default:o(()=>[(c(!0),b(z,null,M(a(i),t=>(c(),m(n,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),_("div",Y,[l(mt,{modelValue:a(e).name,"onUpdate:modelValue":r[1]||(r[1]=t=>a(e).name=t),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Nt(k,["enter"]),class:"!w-240px"},{suffix:o(()=>[l(A,{class:"el-input__icon",onClick:k,style:{cursor:"pointer"}},{default:o(()=>[l(a(Ft))]),_:1})]),append:o(()=>[l(v,{icon:a(Rt),onClick:nt},null,8,["icon"])]),_:1},8,["modelValue"]),a(C)?U("",!0):D((c(),m(v,{key:0,onClick:r[2]||(r[2]=t=>G("create","",0)),class:"ml-5px"},{default:o(()=>[l(O,{class:"mr-5px",icon:"ep:plus"}),T(" \u65B0\u589E ")]),_:1})),[[at,["product:spu:create"]]])])]),D(_("div",j,[l(vt,{ref_key:"queryFormRef",ref:ct,inline:!0,model:a(e),class:"-mb-15px","label-width":"68px"},{default:o(()=>[l(w,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[l(dt,{modelValue:a(e).categoryId,"onUpdate:modelValue":r[3]||(r[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}),l(w,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[l(ft,{modelValue:a(e).tabType,"onUpdate:modelValue":r[4]||(r[4]=t=>a(e).tabType=t),placeholder:"\u5168\u90E8"},{default:o(()=>[(c(!0),b(z,null,M(a(i),t=>(c(),m(yt,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(w,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[l(ht,{style:{"margin-right":"unset",width:"auto !important"},modelValue:a(e).createTime,"onUpdate:modelValue":r[5]||(r[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}),l(tt,null,{default:o(()=>[l(W,null,{default:o(()=>[l(w,null,{default:o(()=>[l(v,{onClick:ut},{default:o(()=>[T(" \u6536\u8D77 ")]),_:1}),l(v,{onClick:pt},{default:o(()=>[T(" \u91CD\u7F6E ")]),_:1}),l(v,{onClick:k,plain:"",type:"primary"},{default:o(()=>[l(O,{class:"mr-5px",icon:"ep:search"}),T(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[rt,a(h)]]),l(tt,null,{default:o(()=>[(c(!0),b(z,null,M(a(f),(t,V)=>(c(),m(W,{class:"card",key:V,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:P=>function(g){f.value[g].showSetting=!0}(V),onMouseout:P=>function(g){f.value[g].showSetting=!1}(V)},{default:o(()=>[l(gt,{onClick:P=>((g,et,kt)=>{const wt=et.id;C.value?st({name:"ProductSpuMobileDetail",params:{id:wt}}):S.value.open(g,et,kt)})("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},d(t.name),9,F),D((c(),b("div",{onClick:qt(P=>G("update",t,a(lt).RECYCLE.status,a(e).tabType),["stop"]),class:"setting"},[l(A,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[l(a(Bt))]),_:1})],8,R)),[[rt,t.showSetting&&t.checkStatus],[at,["product:spu:update"]]])]),_("div",q,[_("div",B,[_("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,H)]),_("div",$,[_("p",null,d(t.spuPayType==2?"\u79EF\u5206:":"\xA5")+" "+d(t.highPrecision?(t.highPrecisionPrice/100).toFixed(6):a(Ht)(t.price)),1),_("p",null,"\u9500\u91CF:"+d(t.salesCount),1),_("p",null,"\u5E93\u5B58:"+d(t.stock),1),_("p",null,"\u72B6\u6001:"+d(t.checkStatus?t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(f).length==0?(c(),b("div",J,[...L])):U("",!0),l(bt,{limit:a(e).pageSize,"onUpdate:limit":r[6]||(r[6]=t=>a(e).pageSize=t),page:a(e).pageNo,"onUpdate:page":r[7]||(r[7]=t=>a(e).pageNo=t),total:a(X),onPagination:p},null,8,["limit","page","total"]),l(fa,{ref_key:"formRef",ref:S,onSuccess:p},null,512)]),_:1})}}}),[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/product/spu/index.vue"]])});export{ee as __tla,ot as default};
|