1 |
- import{_ as wt,__tla as xt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{_ as Vt,__tla as Ct}from"./index.vue_vue_type_script_setup_true_lang-cf2a6735.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 qt,aa as Lt,aF as Bt,J as Ht,a8 as Jt,R as Kt,S as Qt,U as At,b0 as Gt,I as Xt,_ as Zt,H as $t,K as Ot,V as Wt,L as ta,M as aa,__tla as ea}from"./index-1f518666.js";import{E as la,__tla as ra}from"./el-card-955661ed.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-7f489e39.js";import{g as ia,__tla as ma}from"./index-eb0421d0.js";import{g as pa,__tla as da}from"./category-af81e9cc.js";import ya,{__tla as fa}from"./index-bdb3a34f.js";import{u as ha,__tla as va}from"./useMessage-633c11d2.js";import{_ as ga}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ba}from"./index-a37b14c7.js";import{__tla as Ia}from"./SPuUploadImg-41da98e4.js";import{__tla as ka}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-f02ca529.js";import{__tla as wa}from"./index-32463859.js";import{__tla as xa}from"./el-image-viewer-91778fd6.js";import{__tla as Va}from"./tagsView-5f5ec285.js";import{__tla as Ca}from"./InfoForm-844f627d.js";import{__tla as Ta}from"./UploadImgs-cff47360.js";import{__tla as Sa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-c1ca9484.js";import{__tla as Ma}from"./brand-f1d03f48.js";import{__tla as Ua}from"./formRules-c96b6a75.js";import{__tla as Pa}from"./DescriptionForm-280513fd.js";import{__tla as Da}from"./style.css_vue_type_style_index_0_src_true_lang-4c80b346.js";import{__tla as Ea}from"./OtherForm-53ab991c.js";import{__tla as Na}from"./SkuForm-022e8174.js";import{__tla as Ya}from"./index-43761a7b.js";import{__tla as ja}from"./SkuList.vue_vue_type_script_setup_true_lang-be3b32c8.js";import{__tla as za}from"./el-image-1ae80d1a.js";import{__tla as Fa}from"./UploadImg-832a2277.js";import{__tla as Ra}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d48dad9e.js";import{__tla as qa}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-44313f42.js";import{__tla as La}from"./el-text-51f1e949.js";import{__tla as Ba}from"./property-e914cd5f.js";import{__tla as Ha}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-635d64c3.js";import{__tla as Ja}from"./Dialog-4c960d8c.js";import{__tla as Ka}from"./DeliveryForm-2a680eef.js";import{__tla as Qa}from"./index-c06d95ba.js";import{__tla as Aa}from"./dict-167d9193.js";import{__tla as Ga}from"./Service-1cccf6e1.js";import{__tla as Xa}from"./index-0df6bae7.js";import{__tla as Za}from"./AfterSale-91d87e93.js";import{__tla as $a}from"./Comment-006d3a21.js";import{__tla as Oa}from"./Apply-833f59d6.js";import{__tla as Wa}from"./formatTime-a4909bb5.js";import{__tla as te}from"./permission-0d7bfa3b.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 qa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return te}catch{}})()]).then(async()=>{let j,z,F,R,q,L,B,H,J,K,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"}},q=["title"],L=["onClick"],B={style:{display:"flex","align-items":"center"}},H={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"}},J=["src"],K={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(),X=c();let Z=c([]);return Dt(async()=>{await(async()=>{U.value=!0;const l=await ia();Z.value=l})(),await G(),await h().then(()=>{P.value===0&&(e.value.tabType="",h())});const s=await pa({});X.value=oa(s,"id","parentId")}),(s,l)=>{const p=qt,dt=Lt,$=Bt,V=Ht,yt=Jt,O=Kt,W=Qt,k=At,ft=Gt,ht=Xt,vt=Zt,tt=$t,at=Ot,gt=Wt,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(W,{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(Z),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(X),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(W,{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,q),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,L),[[rt,t.showSetting&&!a(M)&&!u.merchantId&&!u.userId]])]),_("div",B,[_("div",H,[_("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,J)]),_("div",K,[_("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};
|