1 |
- import{_ as bt,__tla as kt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-13de8544.js";import{_ as wt,__tla as xt}from"./index.vue_vue_type_script_setup_true_lang-3eecd42d.js";import{d as It,b as Tt,e as Ct,A as St,u as Vt,r as n,g as Pt,aB as Mt,y as Ut,S as Yt,o as c,k as i,w as _,j as u,a,c as b,F as M,B as U,R as Y,i as l,T as Dt,e1 as Et,dx as zt,C as D,l as x,a6 as W,t as d,b8 as Nt,dA as Rt,aY as jt,Y as Bt,Z as Ft,aP as Ht,q as Xt,X as qt,_ as At,aU as Kt,H as Lt,D as Zt,G as Gt,p as Qt,n as Jt,I as Ot,E as Wt,s as $t,v as ta,__tla as aa}from"./index-ecc2785b.js";import{E as ea,__tla as ra}from"./el-card-99460cde.js";import{I as la,__tla as _a}from"./ImageCard-5b923ec6.js";import{h as oa,d as ca}from"./tree-0af4953a.js";import{d as $}from"./constants-e43f22dd.js";import{h as sa,e as na,__tla as ua}from"./spu-51624fee.js";import{g as ma,__tla as pa}from"./category-0b0c3478.js";import ia,{__tla as da}from"./index-22bf8848.js";import{u as ya,__tla as fa}from"./useMessage-23ea1f6c.js";import{_ as ha}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./index-bfba6893.js";import{__tla as ga}from"./SPuUploadImg-72fecbb4.js";import{__tla as ba}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4bdbbeec.js";import{__tla as ka}from"./index-670a17bc.js";import{__tla as wa}from"./el-image-viewer-24503c90.js";import{__tla as xa}from"./InfoForm-7890c25a.js";import{__tla as Ia}from"./UploadImgs-73cd68a7.js";import{__tla as Ta}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-3cf734dd.js";import{__tla as Ca}from"./brand-46962bef.js";import{__tla as Sa}from"./formRules-1de535e0.js";import{__tla as Va}from"./DescriptionForm-867255fa.js";import{__tla as Pa}from"./style.css_vue_type_style_index_0_src_true_lang-176a174f.js";import{__tla as Ma}from"./OtherForm-40982720.js";import{__tla as Ua}from"./SkuForm-1e518313.js";import{__tla as Ya}from"./index-7abb6cbf.js";import{__tla as Da}from"./SkuList.vue_vue_type_script_setup_true_lang-dd15a218.js";import{__tla as Ea}from"./el-image-2ba3072e.js";import{__tla as za}from"./UploadImg-4317a633.js";import{__tla as Na}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-e5c6057f.js";import{__tla as Ra}from"./PcComponents.css_vue_type_style_index_0_src_bf8feb19_scoped_bf8feb19_lang-9bf36c17.js";import{__tla as ja}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-8187e44c.js";import{__tla as Ba}from"./el-text-310fa9d1.js";import{__tla as Fa}from"./property-d9716a40.js";import{__tla as Ha}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-cabfac5f.js";import{__tla as Xa}from"./Dialog-e3083a37.js";import{__tla as qa}from"./MobileSkuList-4e1e6026.js";import{__tla as Aa}from"./DeliveryForm-ca1ca5cb.js";import{__tla as Ka}from"./index-4dc8b4bc.js";import{__tla as La}from"./dict-9266706a.js";import{__tla as Za}from"./Service-a3b1d926.js";import{__tla as Ga}from"./index-499bccaa.js";import{__tla as Qa}from"./AfterSale-e7fa321e.js";import{__tla as Ja}from"./index-e1d7ff6d.js";import{__tla as Oa}from"./Comment-0f0e992a.js";import{__tla as Wa}from"./Apply-58e30bfb.js";import{__tla as $a}from"./formatTime-158d9eb6.js";let tt,te=Promise.all([(()=>{try{return kt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{let E,z,N,R,j,B,F,H;E={class:"search"},z={style:{"text-align":"right"},class:"search-input"},N={class:"searchMore"},R={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},j=["title"],B=["onClick"],F={key:0},H=[(y=>($t("data-v-55cf89ff"),y=y(),ta(),y))(()=>u("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],tt=ha(It({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:0},isDetail:{type:Boolean,default:!1}},setup(y){const at=Tt(),I=Ct(()=>at.getMobile),k=y;ya(),St();const{push:et}=Vt(),X=n(!1);n(!1);const q=n(0),f=n([]),m=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=n({pageNo:1,pageSize:10,tabType:"",checkStatus:1,merchantId:0,name:"",categoryId:void 0,createTime:void 0}),rt=n(),h=n(!1),lt=()=>{h.value=!h.value},_t=()=>{h.value=!1},p=async()=>{X.value=!0,e.value.tabType==="-1"?e.value.checkStatus=0:e.value.checkStatus=1,k.merchantId&&(e.value.merchantId=k.merchantId);try{const o=await sa(e.value);o.list.forEach(r=>{r.showSetting=!1}),f.value=o.list,q.value=o.total}finally{X.value=!1,h.value=!1,A()}},ot=o=>{e.value.tabType=o.paneName,p()},A=async()=>{const o=n({...e.value});k.merchantId&&(o.value.merId=k.merchantId);const r=await na(o.value);for(let s in m)m[s].type==="-1"?m[s].count=r[-1]:m[s].type===""?m[s].count=r[0]+r[1]+r[4]:m[s].count=r[m[s].type]},w=()=>{p()},ct=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",e.value.checkStatus=1,w()},T=n(),K=(o,r,s,C)=>{T.value.open(o,r,s,C)},L=n();return Mt(()=>{p()}),Ut(async()=>{await A(),await p();const o=await ma({});L.value=oa(o,"id","parentId")}),(o,r)=>{const s=Bt,C=Ft,Z=Ht,v=Xt,st=qt,G=At,nt=Kt,S=Lt,ut=Zt,mt=Gt,pt=Qt,Q=Jt,it=Ot,dt=ea,yt=Wt,ft=wt,ht=bt,J=Yt("hasPermi");return c(),i(ht,{style:{},class:"container"},{default:_(()=>[u("div",E,[a(I)?Y("",!0):(c(),i(C,{key:0,modelValue:a(e).tabType,"onUpdate:modelValue":r[0]||(r[0]=t=>a(e).tabType=t),onTabClick:ot,class:"parent-tabs"},{default:_(()=>[(c(!0),b(M,null,U(a(m),t=>(c(),i(s,{key:t.type,label:t.name+"("+t.count+")",name:t.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),u("div",z,[l(st,{modelValue:a(e).name,"onUpdate:modelValue":r[1]||(r[1]=t=>a(e).name=t),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Dt(w,["enter"]),class:"!w-240px"},{suffix:_(()=>[l(Z,{class:"el-input__icon",onClick:w,style:{cursor:"pointer"}},{default:_(()=>[l(a(Et))]),_:1})]),append:_(()=>[l(v,{icon:a(zt),onClick:lt},null,8,["icon"])]),_:1},8,["modelValue"]),a(I)?Y("",!0):D((c(),i(v,{key:0,onClick:r[2]||(r[2]=t=>K("create","",0)),class:"ml-5px"},{default:_(()=>[l(G,{class:"mr-5px",icon:"ep:plus"}),x(" \u65B0\u589E ")]),_:1})),[[J,["product:spu:create"]]])])]),D(u("div",N,[l(it,{ref_key:"queryFormRef",ref:rt,inline:!0,model:a(e),class:"-mb-15px","label-width":"80px"},{default:_(()=>[l(S,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:_(()=>[l(nt,{modelValue:a(e).categoryId,"onUpdate:modelValue":r[3]||(r[3]=t=>a(e).categoryId=t),options:a(L),props:a(ca),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),l(S,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:_(()=>[l(mt,{modelValue:a(e).tabType,"onUpdate:modelValue":r[4]||(r[4]=t=>a(e).tabType=t),placeholder:"\u5168\u90E8"},{default:_(()=>[(c(!0),b(M,null,U(a(m),t=>(c(),i(ut,{key:t.type,label:t.name,value:t.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(S,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:_(()=>[l(pt,{style:{"margin-right":"unset",width:"auto !important"},modelValue:a(e).createTime,"onUpdate:modelValue":r[5]||(r[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}),l(Q,{class:"pb-20px flex justify-end"},{default:_(()=>[l(v,{onClick:_t},{default:_(()=>[x(" \u6536\u8D77 ")]),_:1}),l(v,{onClick:ct},{default:_(()=>[x(" \u91CD\u7F6E ")]),_:1}),l(v,{onClick:w,plain:"",type:"primary"},{default:_(()=>[l(G,{class:"mr-5px",icon:"ep:search"}),x(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1},8,["model"])],512),[[W,a(h)]]),l(Q,null,{default:_(()=>[(c(!0),b(M,null,U(a(f),(t,V)=>(c(),i(yt,{class:"card",key:V,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:P=>function(g){f.value[g].showSetting=!0}(V),onMouseout:P=>function(g){f.value[g].showSetting=!1}(V)},{default:_(()=>[l(dt,{onClick:P=>((g,O,vt)=>{const gt=O.id;I.value?et({name:"ProductSpuMobileDetail",params:{id:gt}}):T.value.open(g,O,vt)})("view",t,a($).RECYCLE.status,a(e).tabType)},{default:_(()=>[u("div",R,[u("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.name},d(t.name),9,j),D((c(),b("div",{onClick:Nt(P=>K("update",t,a($).RECYCLE.status,a(e).tabType),["stop"]),class:"setting"},[l(Z,{size:"20",color:"rgb(220 223 231)"},{default:_(()=>[l(a(Rt))]),_:1})],8,B)),[[W,t.showSetting&&t.checkStatus],[J,["product:spu:update"]]])]),l(la,{url:t.picUrl,width:178,height:100},{label:_(()=>[u("p",null,d(t.spuPayType==2?"\u4F63\u91D1:":"\xA5")+" "+d(t.highPrecision?(t.highPrecisionPrice/100).toFixed(6):a(jt)(t.price)),1),u("p",null,"\u9500\u91CF:"+d(t.salesCount),1),u("p",null,"\u5E93\u5B58:"+d(t.stock),1),u("p",null,"\u72B6\u6001:"+d(t.checkStatus?t.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)]),_:2},1032,["url"])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),a(f).length==0?(c(),b("div",F,H)):Y("",!0),l(ft,{limit:a(e).pageSize,"onUpdate:limit":r[6]||(r[6]=t=>a(e).pageSize=t),page:a(e).pageNo,"onUpdate:page":r[7]||(r[7]=t=>a(e).pageNo=t),total:a(q),onPagination:p},null,8,["limit","page","total"]),l(ia,{ref_key:"formRef",ref:T,onSuccess:p},null,512)]),_:1})}}}),[["__scopeId","data-v-55cf89ff"]])});export{te as __tla,tt as default};
|