1 |
- import{_ as ht,__tla as vt}from"./ContentWrap-0aca5216.js";import{_ as gt,__tla as bt}from"./index-64aeaa78.js";import{d as xt,h as wt,u as kt,r as n,aX as Ct,q as Tt,M as Vt,o as c,x as b,w as o,g as _,f as r,a,N as St,e0 as Ut,e1 as Et,y as f,z as B,c as x,a0 as J,F as $,v as O,t as y,aL as Mt,e2 as zt,$ as It,an as jt,bb as Dt,G as Nt,R as Rt,j as Yt,bv as Lt,C as Ht,D as Pt,H as qt,m as Xt,n as Ft,E as Gt,i as Kt,p as At,k as Bt,_ as Jt,__tla as $t}from"./index-8dc1e40a.js";import{E as Ot,__tla as Qt}from"./el-card-18df90f0.js";import{__tla as Wt}from"./index-519182c1.js";import{h as Zt,d as ta}from"./tree-0af4953a.js";import{c as Q}from"./constants-a1da293a.js";import{f as aa,b as ea,__tla as ra}from"./spu-559f5d98.js";import{g as la,__tla as oa}from"./category-e7433506.js";import _a,{__tla as sa}from"./index-cc6a29eb.js";import{u as na,__tla as ca}from"./useMessage-7a27dd80.js";import{__tla as ia}from"./index-803dbf9a.js";import{__tla as ua}from"./el-image-viewer-3b8905e6.js";import{__tla as pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-703a828c.js";import{__tla as ma}from"./tagsView-7673bb19.js";import{__tla as da}from"./InfoForm-4adb417a.js";import{__tla as fa}from"./UploadImgs-c9e344db.js";import{__tla as ya}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-c25ae3d0.js";import{__tla as ha}from"./brand-c4a32907.js";import{__tla as va}from"./formRules-467f9efe.js";import{__tla as ga}from"./DescriptionForm-921bff78.js";import{__tla as ba}from"./Editor-78efff00.js";import{__tla as xa}from"./OtherForm-8cd81a4d.js";import{__tla as wa}from"./SkuForm-dff242fe.js";import{__tla as ka}from"./index-c31b5019.js";import{__tla as Ca}from"./SkuList-d3adf088.js";import{__tla as Ta}from"./el-image-6a48e9f1.js";import{__tla as Va}from"./UploadImg-c2c75279.js";import{__tla as Sa}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-fa07b40d.js";import{__tla as Ua}from"./ProductAttributes-5fd61aa5.js";import{__tla as Ea}from"./el-text-13e93c25.js";import{__tla as Ma}from"./property-22343ea6.js";import{__tla as za}from"./ProductPropertyAddForm-e7ce6cc1.js";import{__tla as Ia}from"./Dialog-41802231.js";import{__tla as ja}from"./DeliveryForm-77dc5a1d.js";import{__tla as Da}from"./index-034c00d4.js";import{__tla as Na}from"./dict-f13a3c8f.js";let W,Ra=Promise.all([(()=>{try{return vt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{let T,V,S,U,E,M,z,I,j,D,N,R;T={style:{position:"relative"}},V={style:{"text-align":"right",background:"#fafbfc",padding:"10px"}},S={key:0,class:"searchMore"},U={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},E=["title"],M=["onClick"],z={style:{display:"flex","align-items":"center"}},I=["src"],j={style:{"line-height":"25px"}},D={key:0},N=[(h=>(At("data-v-b78c7ed6"),h=h(),Bt(),h))(()=>_("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],R=xt({name:"ProductSpu",__name:"index",setup(h){na(),wt(),kt();const Y=n(!1);n(!1);const L=n(0),m=n([]),H=n([{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}]),l=n({pageNo:1,pageSize:10,tabType:0,name:"",categoryId:void 0,createTime:void 0}),Z=n(),d=n(!1),tt=s=>{s.target.src="https://static.iocoder.cn/mall/a79f5d2ea6bf0c3c11b2127332dfe2df.jpg"},at=()=>{d.value=!d.value},et=()=>{d.value=!1},u=async()=>{Y.value=!0;try{const s=await aa(l.value);s.list.forEach(e=>{e.showSetting=!1}),m.value=s.list,L.value=s.total}finally{Y.value=!1,d.value=!1,P()}},rt=s=>{l.value.tabType=s.paneName,u()},P=async()=>{const s=await ea();for(let e in s)H.value[Number(e)].count=s[e]},v=()=>{u()},lt=()=>{l.value.categoryId=void 0,l.value.createTime=void 0,l.value.name="",v()},w=n(),q=(s,e,g,i)=>{w.value.open(s,e,g,i)},X=n();return Ct(()=>{u()}),Tt(async()=>{await P(),await u();const s=await la({});X.value=Zt(s,"id","parentId")}),(s,e)=>{const g=Dt,i=Nt,ot=Rt,F=Yt,_t=Lt,G=Ht,st=Pt,nt=qt,ct=Xt,it=Ft,ut=Ot,pt=Gt,mt=Kt,dt=gt,ft=ht,yt=Vt("hasPermi");return c(),b(ft,{style:{},class:"spu-div"},{default:o(()=>[_("div",T,[_("div",V,[r(ot,{modelValue:a(l).name,"onUpdate:modelValue":e[0]||(e[0]=t=>a(l).name=t),class:"!w-240px",placeholder:"\u641C\u7D22\u5546\u54C1\u540D\u79F0",onKeyup:St(v,["enter"])},{suffix:o(()=>[r(g,{class:"el-input__icon",onClick:v,style:{cursor:"pointer"}},{default:o(()=>[r(a(Ut))]),_:1})]),append:o(()=>[r(i,{icon:a(Et),onClick:at},null,8,["icon"])]),_:1},8,["modelValue"]),f(" \xA0 "),B((c(),b(i,{onClick:e[1]||(e[1]=t=>q("create","",0))},{default:o(()=>[r(F,{class:"mr-5px",icon:"ep:plus"}),f(" \u65B0\u589E ")]),_:1})),[[yt,["product:spu:create"]]])]),a(d)?(c(),x("div",S,[r(nt,{ref_key:"queryFormRef",ref:Z,inline:!0,model:a(l),class:"-mb-15px","label-width":"68px"},{default:o(()=>[_("div",null,[r(G,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(_t,{modelValue:a(l).categoryId,"onUpdate:modelValue":e[2]||(e[2]=t=>a(l).categoryId=t),options:a(X),props:a(ta),class:"w-1/1",clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(G,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(st,{style:{"margin-right":"unset"},modelValue:a(l).createTime,"onUpdate:modelValue":e[3]||(e[3]=t=>a(l).createTime=t),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","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})]),_("div",null,[r(i,{onClick:et},{default:o(()=>[f(" \u6536\u8D77 ")]),_:1}),r(i,{onClick:lt},{default:o(()=>[f(" \u91CD\u7F6E ")]),_:1}),r(i,{onClick:v,plain:"",type:"primary"},{default:o(()=>[r(F,{class:"mr-5px",icon:"ep:search"}),f(" \u641C\u7D22 ")]),_:1})])]),_:1},8,["model"])])):J("",!0)]),r(it,{modelValue:a(l).tabType,"onUpdate:modelValue":e[4]||(e[4]=t=>a(l).tabType=t),onTabClick:rt,class:"parent-tabs"},{default:o(()=>[(c(!0),x($,null,O(a(H),t=>(c(),b(ct,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"]),r(mt,null,{default:o(()=>[(c(!0),x($,null,O(a(m),(t,k)=>(c(),b(pt,{class:"product-card",key:k,span:7,onMouseover:C=>function(p){m.value[p].showSetting=!0}(k),onMouseout:C=>function(p){m.value[p].showSetting=!1}(k)},{default:o(()=>[r(ut,{onClick:C=>{return p="view",K=t,A=a(Q).RECYCLE.status,a(l).tabType,void w.value.open(p,K,A);var p,K,A}},{default:o(()=>[_("div",U,[_("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},y(t.name),9,E),B(_("div",{onClick:Mt(C=>q("update",t,a(Q).RECYCLE.status,a(l).tabType),["stop"]),class:"setting"},[r(g,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[r(a(zt))]),_:1})],8,M),[[It,t.showSetting]])]),_("div",z,[_("div",{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"},onError:tt},[_("img",{src:t.picUrl,style:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"}},null,8,I)],32),_("div",j,[_("p",null,"\xA5"+y(a(jt)(t.price)),1),_("p",null,"\u9500\u91CF:"+y(t.salesCount),1),_("p",null,"\u5E93\u5B58:"+y(t.stock),1),_("p",null,"\u72B6\u6001:"+y(t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(m).length==0?(c(),x("div",D,[...N])):J("",!0),r(dt,{limit:a(l).pageSize,"onUpdate:limit":e[5]||(e[5]=t=>a(l).pageSize=t),page:a(l).pageNo,"onUpdate:page":e[6]||(e[6]=t=>a(l).pageNo=t),total:a(L),onPagination:u},null,8,["limit","page","total"]),r(_a,{ref_key:"formRef",ref:w,onSuccess:u},null,512)]),_:1})}}}),W=Jt(R,[["__scopeId","data-v-b78c7ed6"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/product/spu/index.vue"]])});export{Ra as __tla,W as default};
|