index-cbd94a60.js 11 KB

1
  1. import{_ as gt,__tla as xt}from"./ContentWrap-96bb70ec.js";import{_ as It,__tla as wt}from"./index-58a94653.js";import{d as kt,y as Vt,e as Tt,u as St,r as c,x as Ct,b as Mt,o as s,C as d,A as o,c as f,a as e,F as k,R as V,a3 as T,B as n,f as r,dy as Ut,aD as Pt,a5 as Dt,k as zt,v as Nt,D as P,E as h,dz as jt,P as Et,aa as Yt,ab as Bt,aG as Kt,J as Rt,a9 as Ft,S as Ht,U as Lt,V as qt,b1 as Wt,I as At,Q as Gt,H as Jt,K as Ot,W as Qt,L as Xt,M as Zt,_ as $t,__tla as ta}from"./index-f6fb8e95.js";import{E as aa,__tla as ea}from"./el-card-8db16709.js";import{h as la,d as ra}from"./tree-0af4953a.js";import{P as oa}from"./constants-c811e5ff.js";import{b as _a,c as sa,d as na,__tla as ca}from"./spu-a7f31871.js";import{g as ua,__tla as ia}from"./index-74af911b.js";import{g as ma,__tla as pa}from"./category-4baa8823.js";import da,{__tla as ya}from"./index-fe26b38d.js";import{u as fa,__tla as ha}from"./useMessage-3b767a67.js";import{__tla as va}from"./index-07a2f7ed.js";import{__tla as ba}from"./SPuUploadImg-95101882.js";import{__tla as ga}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8b438c45.js";import{__tla as xa}from"./index-b76b57e5.js";import{__tla as Ia}from"./el-image-viewer-cfdb08a7.js";import{__tla as wa}from"./tagsView-99b53ea3.js";import{__tla as ka}from"./InfoForm-854f4ded.js";import{__tla as Va}from"./UploadImgs-52ac4257.js";import{__tla as Ta}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-1b59ad7e.js";import{__tla as Sa}from"./brand-ad379847.js";import{__tla as Ca}from"./formRules-e7596da3.js";import{__tla as Ma}from"./DescriptionForm-53896f4d.js";import{__tla as Ua}from"./Editor-87b5f27a.js";import{__tla as Pa}from"./OtherForm-f2af2890.js";import{__tla as Da}from"./SkuForm-31cd50f4.js";import{__tla as za}from"./index-8bf65b8f.js";import{__tla as Na}from"./SkuList-d402df2e.js";import{__tla as ja}from"./el-image-fefb4b54.js";import{__tla as Ea}from"./UploadImg-76a51b31.js";import{__tla as Ya}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3d49d983.js";import{__tla as Ba}from"./ProductAttributes-56aad337.js";import{__tla as Ka}from"./el-text-0047659b.js";import{__tla as Ra}from"./property-40d7be25.js";import{__tla as Fa}from"./ProductPropertyAddForm-b3029d18.js";import{__tla as Ha}from"./Dialog-ac2b0e4e.js";import{__tla as La}from"./DeliveryForm-4a16b5fa.js";import{__tla as qa}from"./index-aac71c4d.js";import{__tla as Wa}from"./dict-c9a7f6a4.js";import{__tla as Aa}from"./Service-c3f4917f.js";import{__tla as Ga}from"./index-fb236505.js";import{__tla as Ja}from"./AfterSale-bb603685.js";import{__tla as Oa}from"./Comment-89ff6a3c.js";import{__tla as Qa}from"./Apply-db2834c8.js";import{__tla as Xa}from"./formatTime-ddd96ac8.js";import{__tla as Za}from"./permission-f83c775b.js";let tt,$a=Promise.all([(()=>{try{return xt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})()]).then(async()=>{let D,z,N,j,E,Y,B,K,R,F,H;D={key:0,class:"search"},z={style:{"text-align":"right"},class:"search-input"},N={class:"searchMore"},j={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},E=["title"],Y={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"}},K=["src"],R={style:{"line-height":"25px"}},F={key:1},H=[(i=>(Xt("data-v-b78c7ed6"),i=i(),Zt(),i))(()=>n("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],tt=$t(kt({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=Vt(),L=Tt(()=>at.getMobile),p=i;fa(),Et();const{push:et}=St(),S=c(!1);c(!1);const C=c(0),v=c([]),u=Ct([{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()=>{S.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 _a(a.value)):_=await sa(a.value),_.list.forEach(l=>{l.showSetting=!1}),v.value=_.list,C.value=_.total}finally{S.value=!1,b.value=!1,q()}},_t=_=>{a.value.tabType=_.paneName,y()},q=async()=>{const _=c({...a.value});p.merchantId&&(_.value.merId=p.merchantId);const l=await na(_.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]},I=()=>{y()},st=()=>{a.value.categoryId=void 0,a.value.createTime=void 0,a.value.name="",a.value.tabType="",a.value.shopId=void 0,I()},W=c(),A=c();let G=c([]);return Mt(async()=>{await(async()=>{S.value=!0;const l=await ua();G.value=l})(),await q(),await y().then(()=>{C.value===0&&(a.value.tabType="",y())});const _=await ma({});A.value=la(_,"id","parentId")}),(_,l)=>{const m=Yt,nt=Bt,ct=Kt,w=Rt,ut=Ft,J=Ht,O=Lt,g=qt,it=Wt,mt=At,pt=Gt,Q=Jt,X=Ot,dt=Qt,yt=aa,ft=It,ht=gt;return s(),d(ht,{style:{},class:"container"},{default:o(()=>[i.userId?T("",!0):(s(),f("div",D,[e(L)?T("",!0):(s(),d(nt,{key:0,modelValue:e(a).tabType,"onUpdate:modelValue":l[0]||(l[0]=t=>e(a).tabType=t),onTabClick:_t,class:"parent-tabs"},{default:o(()=>[(s(!0),f(k,null,V(e(u),t=>(s(),d(m,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),n("div",z,[r(ut,{modelValue:e(a).name,"onUpdate:modelValue":l[1]||(l[1]=t=>e(a).name=t),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Dt(I,["enter"]),class:"!w-240px"},{suffix:o(()=>[r(ct,{class:"el-input__icon",onClick:I,style:{cursor:"pointer"}},{default:o(()=>[r(e(Ut))]),_:1})]),append:o(()=>[r(w,{icon:e(Pt),onClick:rt},null,8,["icon"])]),_:1},8,["modelValue"])])])),zt(n("div",N,[r(dt,{ref_key:"queryFormRef",ref:lt,inline:!0,model:e(a),class:"-mb-15px","label-width":"68px"},{default:o(()=>[i.merchantId||i.userId?T("",!0):(s(),d(g,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(O,{modelValue:e(a).shopId,"onUpdate:modelValue":l[2]||(l[2]=t=>e(a).shopId=t),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(s(!0),f(k,null,V(e(G),t=>(s(),d(J,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(g,{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(A),props:e(ra),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(g,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[r(O,{modelValue:e(a).tabType,"onUpdate:modelValue":l[4]||(l[4]=t=>e(a).tabType=t),placeholder:"\u5168\u90E8"},{default:o(()=>[(s(!0),f(k,null,V(e(u),t=>(s(),d(J,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(g,{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(X,null,{default:o(()=>[r(Q,null,{default:o(()=>[r(g,null,{default:o(()=>[r(w,{onClick:ot},{default:o(()=>[P(" \u6536\u8D77 ")]),_:1}),r(w,{onClick:st},{default:o(()=>[P(" \u91CD\u7F6E ")]),_:1}),r(w,{onClick:I,plain:"",type:"primary"},{default:o(()=>[r(pt,{class:"mr-5px",icon:"ep:search"}),P(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Nt,e(b)]]),r(X,null,{default:o(()=>[(s(!0),f(k,null,V(e(v),(t,M)=>(s(),d(Q,{class:"card",key:M,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:Z=>function(x){v.value[x].showSetting=!0}(M),onMouseout:Z=>function(x){v.value[x].showSetting=!1}(M)},{default:o(()=>[r(yt,{onClick:Z=>((x,U,vt)=>{const bt=U.id,$=U.applyMemberUserId;console.log($),L.value?et({name:"ProductSpuMobileDetail",params:{id:bt,applyMemberUserId:$}}):W.value.open(x,U,vt)})("view",t,e(oa).RECYCLE.status,e(a).tabType)},{default:o(()=>[n("div",j,[n("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},h(t.name),9,E)]),n("div",Y,[n("div",B,[n("img",{src:t.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,K)]),n("div",R,[n("p",null,h(t.spuPayType==2?"\u79EF\u5206:":"\xA5")+" "+h(t.highPrecision?(t.highPrecisionPrice/100).toFixed(6):e(jt)(t.price)),1),n("p",null,"\u9500\u91CF:"+h(t.salesCount),1),n("p",null,"\u5E93\u5B58:"+h(t.stock),1),n("p",null,"\u72B6\u6001:"+h(t.checkStatus?t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),e(v).length==0?(s(),f("div",F,[...H])):T("",!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(C),onPagination:y},null,8,["limit","page","total"]),r(da,{ref_key:"formRef",ref:W,onSuccess:y},null,512)]),_:1})}}}),[["__scopeId","data-v-b78c7ed6"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{$a as __tla,tt as default};