index-2b6797b4.js 11 KB

1
  1. import{_ as wt,__tla as xt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{_ as Vt,__tla as Ct}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{d as Tt,y as St,e as Mt,u as Ut,r as c,x as Pt,b as Dt,o as n,C as f,A as o,c as v,a,F as C,Q as T,a2 as S,B as _,f as r,dw as Et,aC as Nt,a4 as Yt,k as lt,v as rt,D as Y,E as g,aD as jt,aE as zt,dx as Ft,P as Rt,a9 as Bt,aa as Ht,aF as Lt,J as Jt,a8 as Kt,R as Qt,S as qt,U as At,b0 as Gt,I as Wt,_ as Xt,H as $t,K as Ot,V as Zt,L as ta,M as aa,__tla as ea}from"./index-f65577b8.js";import{E as la,__tla as ra}from"./el-card-ab53e6aa.js";import{h as oa,d as _a}from"./tree-0af4953a.js";import{P as ot}from"./constants-c811e5ff.js";import{b as sa,c as na,d as ca,__tla as ua}from"./spu-f470600f.js";import{g as ia,__tla as ma}from"./index-c8579bc8.js";import{g as pa,__tla as da}from"./category-60c03943.js";import ya,{__tla as fa}from"./index-46c395c0.js";import{u as ha,__tla as va}from"./useMessage-4dbf0ae4.js";import{_ as ga}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ba}from"./index-1896261a.js";import{__tla as Ia}from"./SPuUploadImg-bb83411e.js";import{__tla as ka}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-cac578ef.js";import{__tla as wa}from"./index-c1ff7b7a.js";import{__tla as xa}from"./el-image-viewer-7e496319.js";import{__tla as Va}from"./tagsView-207c45f9.js";import{__tla as Ca}from"./InfoForm-0293dfeb.js";import{__tla as Ta}from"./UploadImgs-3a300492.js";import{__tla as Sa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-84036457.js";import{__tla as Ma}from"./brand-dc679419.js";import{__tla as Ua}from"./formRules-632015f2.js";import{__tla as Pa}from"./DescriptionForm-f0144a0d.js";import{__tla as Da}from"./style.css_vue_type_style_index_0_src_true_lang-a4e14d4d.js";import{__tla as Ea}from"./OtherForm-a51f7be9.js";import{__tla as Na}from"./SkuForm-72508bea.js";import{__tla as Ya}from"./index-60580920.js";import{__tla as ja}from"./SkuList.vue_vue_type_script_setup_true_lang-92252110.js";import{__tla as za}from"./el-image-6b44629c.js";import{__tla as Fa}from"./UploadImg-9468593a.js";import{__tla as Ra}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-88692ca3.js";import{__tla as Ba}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-5f923fcf.js";import{__tla as Ha}from"./el-text-b0c95094.js";import{__tla as La}from"./property-8c9fcdf7.js";import{__tla as Ja}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-ad3fd9d6.js";import{__tla as Ka}from"./Dialog-bd3317a7.js";import{__tla as Qa}from"./DeliveryForm-1297f293.js";import{__tla as qa}from"./index-fe7f5c5f.js";import{__tla as Aa}from"./dict-fa3ffbd2.js";import{__tla as Ga}from"./Service-8a837b8c.js";import{__tla as Wa}from"./index-be51ff92.js";import{__tla as Xa}from"./AfterSale-52e4d3b6.js";import{__tla as $a}from"./Comment-2812c23a.js";import{__tla as Oa}from"./Apply-5944ff88.js";import{__tla as Za}from"./formatTime-411ed1a1.js";import{__tla as te}from"./permission-2462c0e6.js";let _t,ae=Promise.all([(()=>{try{return xt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return te}catch{}})()]).then(async()=>{let j,z,F,R,B,H,L,J,K,Q,q,A;j={key:0,class:"search"},z={style:{"text-align":"right"},class:"search-input"},F={class:"searchMore"},R={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},B=["title"],H=["onClick"],L={style:{display:"flex","align-items":"center"}},J={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"}},K=["src"],Q={style:{"line-height":"25px"}},q={key:1},A=[(u=>(ta("data-v-6909f7e6"),u=u(),aa(),u))(()=>_("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],_t=ga(Tt({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 st=St(),M=Mt(()=>st.getMobile),y=u;ha(),Rt();const{push:nt}=Ut(),U=c(!1);c(!1);const P=c(0),b=c([]),i=Pt([{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=c({pageNo:1,pageSize:10,tabType:"-1",name:"",categoryId:void 0,createTime:void 0,shopId:void 0,checkStatus:1}),ct=c(),I=c(!1),ut=()=>{I.value=!I.value},it=()=>{I.value=!1},h=async()=>{U.value=!0,e.value.tabType==="-1"?e.value.checkStatus=0:e.value.checkStatus=1,y.merchantId&&(e.value.merchantId=y.merchantId);try{let s;y.userId?(console.log(y.userId),e.value.userId=y.userId,s=await sa(e.value)):s=await na(e.value),s.list.forEach(l=>{l.showSetting=!1}),b.value=s.list,P.value=s.total}finally{U.value=!1,I.value=!1,G()}},mt=s=>{e.value.tabType=s.paneName,h()},G=async()=>{const s=c({...e.value});y.merchantId&&(s.value.merId=y.merchantId);const l=await ca(s.value);for(let p in i)i[p].type==="-1"?i[p].count=l[-1]:i[p].type===""?i[p].count=l[0]+l[1]+l[4]:i[p].count=l[i[p].type]},x=()=>{h()},pt=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",e.value.shopId=void 0,x()},D=c(),W=c();let X=c([]);return Dt(async()=>{await(async()=>{U.value=!0;const l=await ia();X.value=l})(),await G(),await h().then(()=>{P.value===0&&(e.value.tabType="",h())});const s=await pa({});W.value=oa(s,"id","parentId")}),(s,l)=>{const p=Bt,dt=Ht,$=Lt,V=Jt,yt=Kt,O=Qt,Z=qt,k=At,ft=Gt,ht=Wt,vt=Xt,tt=$t,at=Ot,gt=Zt,bt=la,It=Vt,kt=wt;return n(),f(kt,{style:{},class:"container"},{default:o(()=>[u.userId?S("",!0):(n(),v("div",j,[a(M)?S("",!0):(n(),f(dt,{key:0,modelValue:a(e).tabType,"onUpdate:modelValue":l[0]||(l[0]=t=>a(e).tabType=t),onTabClick:mt,class:"parent-tabs"},{default:o(()=>[(n(!0),v(C,null,T(a(i),t=>(n(),f(p,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),_("div",z,[r(yt,{modelValue:a(e).name,"onUpdate:modelValue":l[1]||(l[1]=t=>a(e).name=t),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Yt(x,["enter"]),class:"!w-240px"},{suffix:o(()=>[r($,{class:"el-input__icon",onClick:x,style:{cursor:"pointer"}},{default:o(()=>[r(a(Et))]),_:1})]),append:o(()=>[r(V,{icon:a(Nt),onClick:ut},null,8,["icon"])]),_:1},8,["modelValue"])])])),lt(_("div",F,[r(gt,{ref_key:"queryFormRef",ref:ct,inline:!0,model:a(e),class:"-mb-15px","label-width":"68px"},{default:o(()=>[u.merchantId||u.userId?S("",!0):(n(),f(k,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(Z,{modelValue:a(e).shopId,"onUpdate:modelValue":l[2]||(l[2]=t=>a(e).shopId=t),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(n(!0),v(C,null,T(a(X),t=>(n(),f(O,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(k,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(ft,{modelValue:a(e).categoryId,"onUpdate:modelValue":l[3]||(l[3]=t=>a(e).categoryId=t),options:a(W),props:a(_a),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(Z,{modelValue:a(e).tabType,"onUpdate:modelValue":l[4]||(l[4]=t=>a(e).tabType=t),placeholder:"\u5168\u90E8"},{default:o(()=>[(n(!0),v(C,null,T(a(i),t=>(n(),f(O,{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(at,null,{default:o(()=>[r(tt,null,{default:o(()=>[r(k,null,{default:o(()=>[r(V,{onClick:it},{default:o(()=>[Y(" \u6536\u8D77 ")]),_:1}),r(V,{onClick:pt},{default:o(()=>[Y(" \u91CD\u7F6E ")]),_:1}),r(V,{onClick:x,plain:"",type:"primary"},{default:o(()=>[r(vt,{class:"mr-5px",icon:"ep:search"}),Y(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[rt,a(I)]]),r(at,null,{default:o(()=>[(n(!0),v(C,null,T(a(b),(t,E)=>(n(),f(tt,{class:"card",key:E,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:N=>function(m){b.value[m].showSetting=!0}(E),onMouseout:N=>function(m){b.value[m].showSetting=!1}(E)},{default:o(()=>[r(bt,{onClick:N=>{return m="view",d=t,w=a(ot).RECYCLE.status,a(e).tabType,void(M.value?nt({name:"ProductSpuMobileDetail",params:{id:d.id,applyMemberUserId:d.applyMemberUserId,checkStatus:d.checkStatus}}):D.value.open(m,d,w));var m,d,w}},{default:o(()=>[_("div",R,[_("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},g(t.name),9,B),lt(_("div",{onClick:jt(N=>{return m="update",d=t,w=a(ot).RECYCLE.status,et=a(e).tabType,void D.value.open(m,d,w,et);var m,d,w,et},["stop"]),class:"setting"},[r($,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[r(a(zt))]),_:1})],8,H),[[rt,t.showSetting&&!a(M)&&!u.merchantId&&!u.userId]])]),_("div",L,[_("div",J,[_("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,K)]),_("div",Q,[_("p",null,g(t.spuPayType==2?"\u4F63\u91D1:":"\xA5")+" "+g(t.highPrecision?(t.highPrecisionPrice/100).toFixed(6):a(Ft)(t.price)),1),_("p",null,"\u9500\u91CF:"+g(t.salesCount),1),_("p",null,"\u5E93\u5B58:"+g(t.stock),1),_("p",null,"\u72B6\u6001:"+g(t.checkStatus?t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(b).length==0?(n(),v("div",q,A)):S("",!0),r(It,{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(P),onPagination:h},null,8,["limit","page","total"]),r(ya,{ref_key:"formRef",ref:D,onSuccess:h},null,512)]),_:1})}}}),[["__scopeId","data-v-6909f7e6"]])});export{ae as __tla,_t as default};