1 |
- import{_ as ga,__tla as Ia}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{_ as ka,__tla as wa}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{d as xa,y as Va,e as Sa,u as Ta,r as n,x as Ca,b as Ua,o as s,C as h,A as o,c as v,a as t,F as T,Q as C,a2 as U,B as i,f as r,dw as Ma,aC as Pa,a4 as Ea,k as $,v as aa,D as R,E as b,aD as Da,aE as Na,dx as Ya,P as za,n as Ra,a9 as Fa,aa as ja,aF as Ha,J as Ja,a8 as Ka,R as La,S as qa,U as Aa,b0 as Ba,I as Wa,_ as Ga,K as Qa,V as Xa,H as Oa,L as Za,M as $a,__tla as at}from"./index-6e0fa573.js";import{E as tt,__tla as et}from"./el-card-f999e23d.js";import{h as lt,d as rt}from"./tree-0af4953a.js";import{P as ta}from"./constants-c811e5ff.js";import{I as ot,__tla as _t}from"./ImageCard-2e4257de.js";import{b as ct,c as st,d as nt,__tla as ut}from"./spu-d1310ca3.js";import{g as it,__tla as mt}from"./index-41b6ecec.js";import{g as pt,__tla as dt}from"./category-cf27cb18.js";import yt,{__tla as ht}from"./index-20a2ee6b.js";import{u as ft,__tla as vt}from"./useMessage-7f978edc.js";import{_ as bt}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as gt}from"./index-99c4720b.js";import{__tla as It}from"./SPuUploadImg-57a4a7e3.js";import{__tla as kt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-16273a08.js";import{__tla as wt}from"./index-f34352a4.js";import{__tla as xt}from"./el-image-viewer-bd37a3c0.js";import{__tla as Vt}from"./tagsView-73f01bae.js";import{__tla as St}from"./InfoForm-03826d27.js";import{__tla as Tt}from"./UploadImgs-d20458da.js";import{__tla as Ct}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-eaa39ea2.js";import{__tla as Ut}from"./brand-ee6da8a0.js";import{__tla as Mt}from"./formRules-fc997671.js";import{__tla as Pt}from"./DescriptionForm-0d054cba.js";import{__tla as Et}from"./style.css_vue_type_style_index_0_src_true_lang-f8cebfb8.js";import{__tla as Dt}from"./OtherForm-509ddf35.js";import{__tla as Nt}from"./SkuForm-81836d2d.js";import{__tla as Yt}from"./index-e51978ae.js";import{__tla as zt}from"./SkuList.vue_vue_type_script_setup_true_lang-8a949c88.js";import{__tla as Rt}from"./el-image-f27c893c.js";import{__tla as Ft}from"./UploadImg-db85e21f.js";import{__tla as jt}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-4b94ac58.js";import{__tla as Ht}from"./ProductAttributes.vue_vue_type_script_setup_true_lang-8b1d7f87.js";import{__tla as Jt}from"./el-text-2f236ec9.js";import{__tla as Kt}from"./property-31d05b14.js";import{__tla as Lt}from"./ProductPropertyAddForm.vue_vue_type_script_setup_true_lang-3659c844.js";import{__tla as qt}from"./Dialog-a16029e3.js";import{__tla as At}from"./DeliveryForm-d16e54a5.js";import{__tla as Bt}from"./index-58e1141c.js";import{__tla as Wt}from"./dict-33efee75.js";import{__tla as Gt}from"./Service-422a1461.js";import{__tla as Qt}from"./index-01fa4814.js";import{__tla as Xt}from"./AfterSale-4b581e1f.js";import{__tla as Ot}from"./Comment-988e4d82.js";import{__tla as Zt}from"./Apply-42e4bb19.js";import{__tla as $t}from"./formatTime-4408999b.js";import{__tla as ae}from"./permission-76a7b86a.js";let ea,te=Promise.all([(()=>{try{return Ia}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ae}catch{}})()]).then(async()=>{let F,j,H,J,K,L,q,A;F={key:0,class:"search"},j={style:{"text-align":"right"},class:"search-input"},H={class:"searchMore"},J={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},K=["title"],L=["onClick"],q={key:1},A=[(u=>(Za("data-v-e59c56cc"),u=u(),$a(),u))(()=>i("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u54C1",-1))],ea=bt(xa({name:"ProductSpu",__name:"index",props:{merchantId:{type:Number,default:void 0},userId:{type:Number,default:void 0},isDetail:{type:Boolean,default:!1}},setup(u){const la=Va(),M=Sa(()=>la.getMobile),y=u;ft(),za();const{push:ra}=Ta(),P=n(!1);n(!1);const E=n(0),g=n([]),oa=n(178),m=Ca([{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:"-1",name:"",categoryId:void 0,createTime:void 0,shopId:void 0,checkStatus:1}),_a=n(),I=n(!1),ca=()=>{I.value=!I.value},sa=()=>{I.value=!1},f=async()=>{P.value=!0,e.value.tabType==="-1"?e.value.checkStatus=0:e.value.checkStatus=1,y.merchantId&&(e.value.merchantId=y.merchantId);try{let _;y.userId?(console.log(y.userId),e.value.userId=y.userId,_=await ct(e.value)):_=await st(e.value),_.list.forEach(l=>{l.showSetting=!1}),g.value=_.list,E.value=_.total}finally{P.value=!1,I.value=!1,B()}},na=_=>{e.value.tabType=_.paneName,f()},B=async()=>{const _=n({...e.value});y.merchantId&&(_.value.merId=y.merchantId);const l=await nt(_.value);for(let c in m)m[c].type==="-1"?m[c].count=l[-1]:m[c].type===""?m[c].count=l[0]+l[1]+l[4]:m[c].count=l[m[c].type]},x=()=>{f()},ua=()=>{e.value.categoryId=void 0,e.value.createTime=void 0,e.value.name="",e.value.tabType="",e.value.shopId=void 0,x()},D=n(),W=n();let G=n([]);return Ua(async()=>{await(async()=>{P.value=!0;const l=await it();G.value=l})(),await B(),await f().then(()=>{E.value===0&&(e.value.tabType="",f())});const _=await pt({});W.value=lt(_,"id","parentId"),Ra(()=>{const l=document.querySelectorAll(".card-img");let c=1/0;l.forEach(N=>{const k=N.clientWidth;k<c&&(c=k)}),c!==1/0&&(oa.value=c)})}),(_,l)=>{const c=Fa,N=ja,k=Ha,V=Ja,ia=Ka,Q=La,X=qa,S=Aa,ma=Ba,pa=Wa,da=Ga,O=Qa,ya=Xa,ha=tt,fa=Oa,va=ka,ba=ga;return s(),h(ba,{style:{},class:"container"},{default:o(()=>[u.userId?U("",!0):(s(),v("div",F,[t(M)?U("",!0):(s(),h(N,{key:0,modelValue:t(e).tabType,"onUpdate:modelValue":l[0]||(l[0]=a=>t(e).tabType=a),onTabClick:na,class:"parent-tabs"},{default:o(()=>[(s(!0),v(T,null,C(t(m),a=>(s(),h(c,{key:a.type,label:a.name+"("+a.count+")",name:a.type},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),i("div",j,[r(ia,{modelValue:t(e).name,"onUpdate:modelValue":l[1]||(l[1]=a=>t(e).name=a),placeholder:"\u5546\u54C1\u540D\u79F0",onKeyup:Ea(x,["enter"]),class:"!w-240px"},{suffix:o(()=>[r(k,{class:"el-input__icon",onClick:x,style:{cursor:"pointer"}},{default:o(()=>[r(t(Ma))]),_:1})]),append:o(()=>[r(V,{icon:t(Pa),onClick:ca},null,8,["icon"])]),_:1},8,["modelValue"])])])),$(i("div",H,[r(ya,{ref_key:"queryFormRef",ref:_a,inline:!0,model:t(e),class:"-mb-15px","label-width":"80px"},{default:o(()=>[u.merchantId||u.userId?U("",!0):(s(),h(S,{key:0,label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(X,{modelValue:t(e).shopId,"onUpdate:modelValue":l[2]||(l[2]=a=>t(e).shopId=a),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(s(!0),v(T,null,C(t(G),a=>(s(),h(Q,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),r(S,{label:"\u5546\u54C1\u5206\u7C7B",prop:"categoryId"},{default:o(()=>[r(ma,{modelValue:t(e).categoryId,"onUpdate:modelValue":l[3]||(l[3]=a=>t(e).categoryId=a),options:t(W),props:t(rt),clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","options","props"])]),_:1}),r(S,{label:"\u5546\u54C1\u72B6\u6001",prop:""},{default:o(()=>[r(X,{modelValue:t(e).tabType,"onUpdate:modelValue":l[4]||(l[4]=a=>t(e).tabType=a),placeholder:"\u5168\u90E8"},{default:o(()=>[(s(!0),v(T,null,C(t(m),a=>(s(),h(Q,{key:a.type,label:a.name,value:a.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(S,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(pa,{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(O,{class:"pb-20px flex justify-end"},{default:o(()=>[r(V,{onClick:sa},{default:o(()=>[R(" \u6536\u8D77 ")]),_:1}),r(V,{onClick:ua},{default:o(()=>[R(" \u91CD\u7F6E ")]),_:1}),r(V,{onClick:x,plain:"",type:"primary"},{default:o(()=>[r(da,{class:"mr-5px",icon:"ep:search"}),R(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1},8,["model"])],512),[[aa,t(I)]]),r(O,null,{default:o(()=>[(s(!0),v(T,null,C(t(g),(a,Y)=>(s(),h(fa,{class:"card",key:Y,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:z=>function(p){g.value[p].showSetting=!0}(Y),onMouseout:z=>function(p){g.value[p].showSetting=!1}(Y)},{default:o(()=>[r(ha,{onClick:z=>{return p="view",d=a,w=t(ta).RECYCLE.status,t(e).tabType,void(M.value?ra({name:"ProductSpuMobileDetail",params:{id:d.id,applyMemberUserId:d.applyMemberUserId,checkStatus:d.checkStatus}}):D.value.open(p,d,w));var p,d,w}},{default:o(()=>[i("div",J,[i("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:a.name},b(a.name),9,K),$(i("div",{onClick:Da(z=>{return p="update",d=a,w=t(ta).RECYCLE.status,Z=t(e).tabType,void D.value.open(p,d,w,Z);var p,d,w,Z},["stop"]),class:"setting"},[r(k,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[r(t(Na))]),_:1})],8,L),[[aa,a.showSetting&&!t(M)&&!u.merchantId&&!u.userId]])]),r(ot,{url:a.picUrl,width:178,height:100},{label:o(()=>[i("p",null,b(a.spuPayType==2?"\u4F63\u91D1:":"\xA5")+" "+b(a.highPrecision?(a.highPrecisionPrice/100).toFixed(6):t(Ya)(a.price)),1),i("p",null,"\u9500\u91CF:"+b(a.salesCount),1),i("p",null,"\u5E93\u5B58:"+b(a.stock),1),i("p",null,"\u72B6\u6001:"+b(a.checkStatus?a.status==1?"\u4E0A\u67B6":"\u4E0B\u67B6":"\u5BA1\u6838\u4E2D"),1)]),_:2},1032,["url"])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),t(g).length==0?(s(),v("div",q,A)):U("",!0),r(va,{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(E),onPagination:f},null,8,["limit","page","total"]),r(yt,{ref_key:"formRef",ref:D,onSuccess:f},null,512)]),_:1})}}}),[["__scopeId","data-v-e59c56cc"]])});export{te as __tla,ea as default};
|