1 |
- import{_ as ga,__tla as ba}from"./ContentWrap-a3bb871b.js";import{_ as wa,__tla as xa}from"./index-ccc64a6d.js";import{d as Ia,Z as ka,L as Va,i as Ta,u as Ca,r as u,aB as Sa,l as Ua,o as s,x as p,w as o,c as y,a as t,F as k,v as V,Q as T,h as n,g as r,S as Ma,e5 as Pa,av as Da,y as za,n as U,a5 as Na,t as f,a$ as ja,X as Ya,Y as Ea,ay as La,D as Xa,W as Ba,z as Fa,A as Ha,B as Ra,aX as qa,C as Ga,q as Qa,E as Wa,j as Za,G as $a,p as Aa,k as Ja,_ as Ka,__tla as Oa}from"./index-b362e1d5.js";import{E as at,__tla as tt}from"./el-card-732e29b8.js";import{__tla as et}from"./index-6b00d885.js";import{h as lt,d as rt}from"./tree-0af4953a.js";import{d as ot}from"./constants-637baed6.js";import{e as _t,d as st,f as nt,b as ut,__tla as ct}from"./spu-8db32dd2.js";import{h as it,__tla as mt}from"./index-73fd237a.js";import{g as pt,__tla as dt}from"./category-d9e07750.js";import yt,{__tla as ft}from"./index-2e1593af.js";import{u as ht,__tla as vt}from"./useMessage-7c1dd10e.js";import{__tla as gt}from"./index-39b44010.js";import{__tla as bt}from"./el-image-viewer-68ae3e49.js";import{__tla as wt}from"./SPuUploadImg-8c588231.js";import{__tla as xt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b4af8eb1.js";import{__tla as It}from"./tagsView-cac7a8eb.js";import{__tla as kt}from"./InfoForm-6a492fa8.js";import{__tla as Vt}from"./UploadImgs-38746988.js";import{__tla as Tt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-e4965946.js";import{__tla as Ct}from"./brand-bdcce6f8.js";import{__tla as St}from"./formRules-c26349aa.js";import{__tla as Ut}from"./DescriptionForm-dda44a96.js";import{__tla as Mt}from"./Editor-e146bd91.js";import{__tla as Pt}from"./OtherForm-c951703f.js";import{__tla as Dt}from"./SkuForm-444781cf.js";import{__tla as zt}from"./index-9be4403d.js";import{__tla as Nt}from"./SkuList-bd9b424b.js";import{__tla as jt}from"./el-image-6c94a1ed.js";import{__tla as Yt}from"./UploadImg-badad53e.js";import{__tla as Et}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-830ad10b.js";import{__tla as Lt}from"./ProductAttributes-b3d95847.js";import{__tla as Xt}from"./el-text-50b1587f.js";import{__tla as Bt}from"./property-771c5075.js";import{__tla as Ft}from"./ProductPropertyAddForm-e02370d6.js";import{__tla as Ht}from"./Dialog-71bebaff.js";import{__tla as Rt}from"./DeliveryForm-96af1d1f.js";import{__tla as qt}from"./index-6bcfd169.js";import{__tla as Gt}from"./dict-9948b178.js";import{__tla as Qt}from"./Service-b1b77285.js";import{__tla as Wt}from"./index-4596f7c2.js";import{__tla as Zt}from"./AfterSale-592d9425.js";import{__tla as $t}from"./Comment-86b31dc2.js";let O,At=Promise.all([(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})()]).then(async()=>{let M,P,D,z,N,j,Y,E,L,X,B;M={key:0,class:"search"},P={style:{"text-align":"right"},class:"search-input"},D={class:"searchMore"},z={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},N=["title"],j={style:{display:"flex","align-items":"center"}},Y={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"}},E=["src"],L={style:{"line-height":"25px"}},X={key:1},B=[(c=>(Aa("data-v-b78c7ed6"),c=c(),Ja(),c))(()=>n("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],O=Ka(Ia({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:void 0},userId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1}},setup(c){const aa=ka(),F=Va(()=>aa.getMobile),i=c;ht(),Ta();const{push:ta}=Ca(),C=u(!1);u(!1);const H=u(0),h=u([]),v=u([{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:"",name:"",categoryId:void 0,createTime:void 0,shopId:void 0}),ea=u(),g=u(!1),la=()=>{g.value=!g.value},ra=()=>{g.value=!1},d=async()=>{C.value=!0,i.merchantId&&(e.value.merchantId=i.merchantId);try{let _;i.userId?(console.log(i.userId),e.value.userId=i.userId,_=await _t(e.value)):_=await st(e.value),_.list.forEach(l=>{l.showSetting=!1}),h.value=_.list,H.value=_.total}finally{C.value=!1,g.value=!1,R()}},oa=_=>{e.value.tabType=_.paneName,d()},R=async()=>{const _=u({...e.value});let l;i.merchantId?(_.value.merId=i.merchantId,l=await nt(_.value)):l=await ut(_.value),v.value[0].count=0;for(let m in l)(m<=1||m==="4")&&(v.value[0].count+=l[m]),v.value[Number(m)+1].count=l[m]},x=()=>{d()},_a=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",e.value.shopId=void 0,x()},q=u(),G=u();Sa(()=>{d()});let Q=u([]);return Ua(async()=>{await(async()=>{C.value=!0;const l=await it();Q.value=l})(),await R(),await d();const _=await pt({});G.value=lt(_,"id","parentId")}),(_,l)=>{const m=Ya,sa=Ea,na=La,I=Xa,ua=Ba,W=Fa,Z=Ha,b=Ra,ca=qa,ia=Ga,ma=Qa,$=Wa,A=Za,pa=$a,da=at,ya=wa,fa=ga;return s(),p(fa,{style:{},class:"container"},{default:o(()=>[c.userId?T("",!0):(s(),y("div",M,[t(F)?T("",!0):(s(),p(sa,{key:0,modelValue:t(e).tabType,"onUpdate:modelValue":l[0]||(l[0]=a=>t(e).tabType=a),onTabClick:oa,class:"parent-tabs"},{default:o(()=>[(s(!0),y(k,null,V(t(v),a=>(s(),p(m,{key:a.type,label:a.name+"("+a.count+")",name:a.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),n("div",P,[r(ua,{modelValue:t(e).name,"onUpdate:modelValue":l[1]||(l[1]=a=>t(e).name=a),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Ma(x,["enter"]),class:"!w-240px"},{suffix:o(()=>[r(na,{class:"el-input__icon",onClick:x,style:{cursor:"pointer"}},{default:o(()=>[r(t(Pa))]),_:1})]),append:o(()=>[r(I,{icon:t(Da),onClick:la},null,8,["icon"])]),_:1},8,["modelValue"])])])),za(n("div",D,[r(pa,{ref_key:"queryFormRef",ref:ea,inline:!0,model:t(e),class:"-mb-15px","label-width":"68px"},{default:o(()=>[c.merchantId||c.userId?T("",!0):(s(),p(b,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(Z,{modelValue:t(e).shopId,"onUpdate:modelValue":l[2]||(l[2]=a=>t(e).shopId=a),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(s(!0),y(k,null,V(t(Q),a=>(s(),p(W,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(b,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(ca,{modelValue:t(e).categoryId,"onUpdate:modelValue":l[3]||(l[3]=a=>t(e).categoryId=a),options:t(G),props:t(rt),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(b,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[r(Z,{modelValue:t(e).tabType,"onUpdate:modelValue":l[4]||(l[4]=a=>t(e).tabType=a),placeholder:"\u5168\u90E8"},{default:o(()=>[(s(!0),y(k,null,V(t(v),a=>(s(),p(W,{key:a.type,label:a.name,value:a.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(b,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(ia,{style:{"margin-right":"unset",width:"auto !important"},modelValue:t(e).createTime,"onUpdate:modelValue":l[5]||(l[5]=a=>t(e).createTime=a),"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(A,null,{default:o(()=>[r($,null,{default:o(()=>[r(b,null,{default:o(()=>[r(I,{onClick:ra},{default:o(()=>[U(" \u6536\u8D77 ")]),_:1}),r(I,{onClick:_a},{default:o(()=>[U(" \u91CD\u7F6E ")]),_:1}),r(I,{onClick:x,plain:"",type:"primary"},{default:o(()=>[r(ma,{class:"mr-5px",icon:"ep:search"}),U(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Na,t(g)]]),r(A,null,{default:o(()=>[(s(!0),y(k,null,V(t(h),(a,S)=>(s(),p($,{class:"card",key:S,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:J=>function(w){h.value[w].showSetting=!0}(S),onMouseout:J=>function(w){h.value[w].showSetting=!1}(S)},{default:o(()=>[r(da,{onClick:J=>((w,K,ha)=>{const va=K.id;F.value?ta({name:"ProductSpuMobileDetail",params:{id:va}}):q.value.open(w,K,ha)})("view",a,t(ot).RECYCLE.status,t(e).tabType)},{default:o(()=>[n("div",z,[n("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:a.name},f(a.name),9,N)]),n("div",j,[n("div",Y,[n("img",{src:a.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,E)]),n("div",L,[n("p",null,f(a.spuPayType==2?"\u79EF\u5206:":"\xA5")+" "+f(a.highPrecision?(a.highPrecisionPrice/100).toFixed(6):t(ja)(a.price)),1),n("p",null,"\u9500\u91CF:"+f(a.salesCount),1),n("p",null,"\u5E93\u5B58:"+f(a.stock),1),n("p",null,"\u72B6\u6001:"+f(a.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),t(h).length==0?(s(),y("div",X,[...B])):T("",!0),r(ya,{limit:t(e).pageSize,"onUpdate:limit":l[6]||(l[6]=a=>t(e).pageSize=a),page:t(e).pageNo,"onUpdate:page":l[7]||(l[7]=a=>t(e).pageNo=a),total:t(H),onPagination:d},null,8,["limit","page","total"]),r(yt,{ref_key:"formRef",ref:q,onSuccess:d},null,512)]),_:1})}}}),[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{At as __tla,O as default};
|