1 |
- import{_ as vt,__tla as gt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-8883b5ea.js";import{_ as bt,__tla as It}from"./index.vue_vue_type_script_setup_true_lang-c008592f.js";import{d as xt,y as kt,e as wt,u as Vt,r as c,x as Tt,b as St,o as n,C as d,A as o,c as h,a as e,F as V,Q as T,a2 as S,B as s,f as r,dw as Ct,aC as Ut,a4 as Mt,k as Pt,v as Dt,D as P,E as v,dx as Nt,P as jt,a9 as Et,aa as Yt,aF as zt,J as Ft,a8 as Ht,R as Rt,S as qt,U as Bt,b0 as Jt,I as Kt,_ as Lt,H as Qt,K as At,V as Ot,L as Xt,M as Zt,__tla as $t}from"./index-92ee0c67.js";import{E as Gt,__tla as Wt}from"./el-card-82c8630d.js";import{h as ta,d as aa}from"./tree-0af4953a.js";import{P as ea}from"./constants-c811e5ff.js";import{b as la,c as ra,d as oa,__tla as _a}from"./spu-b4c28a80.js";import{g as na,__tla as sa}from"./index-987c121f.js";import{g as ca,__tla as ua}from"./category-7da3a1d4.js";import ia,{__tla as ma}from"./index-27d941d1.js";import{u as pa,__tla as da}from"./useMessage-f82a8260.js";import{_ as ya}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as fa}from"./index-85b58c6a.js";import{__tla as ha}from"./SPuUploadImg-e3c061ff.js";import{__tla as va}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-cac58d91.js";import{__tla as ga}from"./index-00287237.js";import{__tla as ba}from"./el-image-viewer-a14f333a.js";import{__tla as Ia}from"./tagsView-6825fe59.js";import{__tla as xa}from"./InfoForm-7b7412cd.js";import{__tla as ka}from"./UploadImgs-7fbd21d3.js";import{__tla as wa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-28dd6ae5.js";import{__tla as Va}from"./brand-b511bdba.js";import{__tla as Ta}from"./formRules-95d6547a.js";import{__tla as Sa}from"./DescriptionForm-361830ed.js";import{__tla as Ca}from"./style.css_vue_type_style_index_0_src_true_lang-56f60035.js";import{__tla as Ua}from"./OtherForm-9c0fe3e4.js";import{__tla as Ma}from"./SkuForm-aff4cbaf.js";import{__tla as Pa}from"./index-47ead28f.js";import{__tla as Da}from"./SkuList.vue_vue_type_script_setup_true_lang-e3146523.js";import{__tla as Na}from"./el-image-c580c30c.js";import{__tla as ja}from"./UploadImg-9d38bba5.js";import{__tla as Ea}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-f458093f.js";import{__tla as Ya}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-88026f8d.js";import{__tla as za}from"./el-text-490a5a20.js";import{__tla as Fa}from"./property-29e27b95.js";import{__tla as Ha}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-a3906edc.js";import{__tla as Ra}from"./Dialog-81b4474b.js";import{__tla as qa}from"./DeliveryForm-3c4fc1c2.js";import{__tla as Ba}from"./index-6bb8fd38.js";import{__tla as Ja}from"./dict-84c3ed73.js";import{__tla as Ka}from"./Service-62638e7b.js";import{__tla as La}from"./index-e0ae1d8d.js";import{__tla as Qa}from"./AfterSale-02effed3.js";import{__tla as Aa}from"./Comment-1ae39421.js";import{__tla as Oa}from"./Apply-ce1b28ba.js";import{__tla as Xa}from"./formatTime-a873e830.js";import{__tla as Za}from"./permission-530afd98.js";let tt,$a=Promise.all([(()=>{try{return gt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})()]).then(async()=>{let D,N,j,E,Y,z,F,H,R,q,B;D={key:0,class:"search"},N={style:{"text-align":"right"},class:"search-input"},j={class:"searchMore"},E={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},Y=["title"],z={style:{display:"flex","align-items":"center"}},F={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"],R={style:{"line-height":"25px"}},q={key:1},B=[(i=>(Xt("data-v-1e3480f6"),i=i(),Zt(),i))(()=>s("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],tt=ya(xt({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:void 0},userId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1}},setup(i){const at=kt(),J=wt(()=>at.getMobile),p=i;pa(),jt();const{push:et}=Vt(),C=c(!1);c(!1);const U=c(0),g=c([]),u=Tt([{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}]),a=c({pageNo:1,pageSize:10,tabType:"-1",name:"",categoryId:void 0,createTime:void 0,shopId:void 0,checkStatus:1}),lt=c(),b=c(!1),rt=()=>{b.value=!b.value},ot=()=>{b.value=!1},y=async()=>{C.value=!0,a.value.tabType==="-1"?a.value.checkStatus=0:a.value.checkStatus=1,p.merchantId&&(a.value.merchantId=p.merchantId);try{let _;p.userId?(console.log(p.userId),a.value.userId=p.userId,_=await la(a.value)):_=await ra(a.value),_.list.forEach(l=>{l.showSetting=!1}),g.value=_.list,U.value=_.total}finally{C.value=!1,b.value=!1,K()}},_t=_=>{a.value.tabType=_.paneName,y()},K=async()=>{const _=c({...a.value});p.merchantId&&(_.value.merId=p.merchantId);const l=await oa(_.value);for(let m in u)u[m].type==="-1"?u[m].count=l[-1]:u[m].type===""?u[m].count=l[0]+l[1]+l[4]:u[m].count=l[u[m].type]},k=()=>{y()},nt=()=>{a.value.categoryId=void 0,a.value.createTime=void 0,a.value.name="",a.value.tabType="",a.value.shopId=void 0,k()},L=c(),Q=c();let A=c([]);return St(async()=>{await(async()=>{C.value=!0;const l=await na();A.value=l})(),await K(),await y().then(()=>{U.value===0&&(a.value.tabType="",y())});const _=await ca({});Q.value=ta(_,"id","parentId")}),(_,l)=>{const m=Et,st=Yt,ct=zt,w=Ft,ut=Ht,O=Rt,X=qt,I=Bt,it=Jt,mt=Kt,pt=Lt,Z=Qt,$=At,dt=Ot,yt=Gt,ft=bt,ht=vt;return n(),d(ht,{style:{},class:"container"},{default:o(()=>[i.userId?S("",!0):(n(),h("div",D,[e(J)?S("",!0):(n(),d(st,{key:0,modelValue:e(a).tabType,"onUpdate:modelValue":l[0]||(l[0]=t=>e(a).tabType=t),onTabClick:_t,class:"parent-tabs"},{default:o(()=>[(n(!0),h(V,null,T(e(u),t=>(n(),d(m,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),s("div",N,[r(ut,{modelValue:e(a).name,"onUpdate:modelValue":l[1]||(l[1]=t=>e(a).name=t),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Mt(k,["enter"]),class:"!w-240px"},{suffix:o(()=>[r(ct,{class:"el-input__icon",onClick:k,style:{cursor:"pointer"}},{default:o(()=>[r(e(Ct))]),_:1})]),append:o(()=>[r(w,{icon:e(Ut),onClick:rt},null,8,["icon"])]),_:1},8,["modelValue"])])])),Pt(s("div",j,[r(dt,{ref_key:"queryFormRef",ref:lt,inline:!0,model:e(a),class:"-mb-15px","label-width":"68px"},{default:o(()=>[i.merchantId||i.userId?S("",!0):(n(),d(I,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(X,{modelValue:e(a).shopId,"onUpdate:modelValue":l[2]||(l[2]=t=>e(a).shopId=t),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(n(!0),h(V,null,T(e(A),t=>(n(),d(O,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(I,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(it,{modelValue:e(a).categoryId,"onUpdate:modelValue":l[3]||(l[3]=t=>e(a).categoryId=t),options:e(Q),props:e(aa),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(I,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[r(X,{modelValue:e(a).tabType,"onUpdate:modelValue":l[4]||(l[4]=t=>e(a).tabType=t),placeholder:"\u5168\u90E8"},{default:o(()=>[(n(!0),h(V,null,T(e(u),t=>(n(),d(O,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(I,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(mt,{style:{"margin-right":"unset",width:"auto !important"},modelValue:e(a).createTime,"onUpdate:modelValue":l[5]||(l[5]=t=>e(a).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($,null,{default:o(()=>[r(Z,null,{default:o(()=>[r(I,null,{default:o(()=>[r(w,{onClick:ot},{default:o(()=>[P(" \u6536\u8D77 ")]),_:1}),r(w,{onClick:nt},{default:o(()=>[P(" \u91CD\u7F6E ")]),_:1}),r(w,{onClick:k,plain:"",type:"primary"},{default:o(()=>[r(pt,{class:"mr-5px",icon:"ep:search"}),P(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Dt,e(b)]]),r($,null,{default:o(()=>[(n(!0),h(V,null,T(e(g),(t,M)=>(n(),d(Z,{class:"card",key:M,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:G=>function(f){g.value[f].showSetting=!0}(M),onMouseout:G=>function(f){g.value[f].showSetting=!1}(M)},{default:o(()=>[r(yt,{onClick:G=>{return f="view",x=t,W=e(ea).RECYCLE.status,e(a).tabType,void(J.value?et({name:"ProductSpuMobileDetail",params:{id:x.id,applyMemberUserId:x.applyMemberUserId,checkStatus:x.checkStatus}}):L.value.open(f,x,W));var f,x,W}},{default:o(()=>[s("div",E,[s("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},v(t.name),9,Y)]),s("div",z,[s("div",F,[s("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,H)]),s("div",R,[s("p",null,v(t.spuPayType==2?"\u4F63\u91D1:":"\xA5")+" "+v(t.highPrecision?(t.highPrecisionPrice/100).toFixed(6):e(Nt)(t.price)),1),s("p",null,"\u9500\u91CF:"+v(t.salesCount),1),s("p",null,"\u5E93\u5B58:"+v(t.stock),1),s("p",null,"\u72B6\u6001:"+v(t.checkStatus?t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),e(g).length==0?(n(),h("div",q,B)):S("",!0),r(ft,{limit:e(a).pageSize,"onUpdate:limit":l[6]||(l[6]=t=>e(a).pageSize=t),page:e(a).pageNo,"onUpdate:page":l[7]||(l[7]=t=>e(a).pageNo=t),total:e(U),onPagination:y},null,8,["limit","page","total"]),r(ia,{ref_key:"formRef",ref:L,onSuccess:y},null,512)]),_:1})}}}),[["__scopeId","data-v-1e3480f6"]])});export{$a as __tla,tt as default};
|