12345 |
- <<<<<<<< HEAD:dist/assets/index-ef7e7f77.js
- import{_ as Ie,__tla as Te}from"./ContentWrap-86859a54.js";import{_ as Ue,__tla as Ne}from"./index-d97002fd.js";import{d as Pe,u as Ae,Y as Ke,K as Ye,r as i,aV as ze,h as Oe,e as Ee,l as Fe,Q as je,o as g,c as k,f as t,w as s,g as d,a as e,e6 as Be,x as O,v as ue,n as C,P as pe,R as _,a4 as he,F as ve,q as Re,t as _e,aS as qe,d$ as Je,O as Le,C as Qe,j as We,V as $e,A as Ge,B as Xe,E as Ze,i as ea,D as aa,aT as ta,p as la,k as na,_ as oa,__tla as sa}from"./index-d75b4e4d.js";import{E as ia,__tla as ra}from"./el-card-7039354a.js";import{M as x,__tla as ca}from"./index-0699f481.js";import ma,{__tla as da}from"./MerchantTabs-f4cfb336.js";import{g as ua,__tla as pa}from"./index-3697fa66.js";import{c as ha,__tla as va}from"./template-411e2251.js";import{u as _a,__tla as fa}from"./useMessage-ba892ac2.js";import{__tla as ya}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c828aa93.js";import{__tla as ga}from"./index-adfb9349.js";import{__tla as ba}from"./SPuUploadImg-509f93ce.js";import{__tla as wa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-9da549c0.js";import{__tla as xa}from"./index-6c07820e.js";import{__tla as Va}from"./el-image-viewer-b9e519ff.js";let fe,Ma=Promise.all([(()=>{try{return Te}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})()]).then(async()=>{let V,E,F,j,B,R,q,J,L,Q,W,$,G,X,Z,ee,D,ae;V=M=>(la("data-v-8a189126"),M=M(),na(),M),E={style:{position:"relative"},class:"search"},F={style:{"text-align":"right"}},j={class:"searchMore"},B={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},R=["title"],q=["onClick"],J={style:{display:"flex","align-items":"center"}},L={style:{width:"151px",height:"85px","margin-right":"10px",border:"1px solid rgb(220 223 231)","border-radius":"5px",display:"flex","align-items":"center","justify-content":"center",overflow:"hidden"}},Q=["src"],W={style:{"line-height":"30px",width:"calc(100% - 170px)"}},$=V(()=>d("p",null,"\u9500\u91CF:111",-1)),G=V(()=>d("p",null,"\u5546\u54C1\u6570\u91CF:111",-1)),X=["title"],Z={key:0},ee=[V(()=>d("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u6237",-1))],D="views/system/sale/merchant/components/MerchantBaseInfo",ae=Pe({name:"Merchant",__name:"index",setup(M){const{currentRoute:Sa,push:ye}=Ae(),ge=Ke(),H=Ye(()=>ge.getMobile),te=i([{name:"BaseInfo",label:"\u57FA\u672C\u4FE1\u606F",component:"views/system/sale/merchant/components/MerchantBaseInfo"},{name:"Store",label:"\u5E97\u94FA",component:"views/system/sale/merchant/components/MerchantStore"},{name:"Product",label:"\u5546\u54C1",component:"views/system/sale/merchant/components/MerchantProduct"},{name:"Order",label:"\u8BA2\u5355",component:"views/system/sale/merchant/components/MerchantOrder"},{name:"Service",label:"\u5BA2\u670D",component:"views/system/sale/merchant/components/MerchantService"},{name:"AfterSales",label:"\u552E\u540E",component:"views/system/sale/merchant/components/MerchantAfterSales"},{name:"Campaign",label:"\u6D3B\u52A8",component:"views/system/sale/merchant/components/MerchantCampaign"},{name:"Points",label:"\u79EF\u5206",component:"views/system/sale/merchant/components/MerchantPoints"},{name:"Advertisement",label:"\u5E7F\u544A",component:"views/system/sale/merchant/components/MerchantAdvertisement"},{name:"Highlights",label:"\u770B\u70B9",component:"views/system/sale/merchant/components/MerchantHighlights"},{name:"Finance",label:"\u8D22\u52A1",component:"views/system/sale/merchant/components/MerchantFinance"},{name:"Employee",label:"\u4EBA\u5458",component:"views/system/sale/merchant/components/MerchantEmployee"}]),u=i({id:void 0,name:void 0,status:10,description:void 0,contact:void 0,address:void 0,contactNumber:void 0,website:void 0,complaintsHotline:void 0,createTime:void 0,customerServiceHotline:void 0,email:void 0,businessLicensePicture:void 0,expireTime:void 0,logoUrl:void 0,areaId:void 0});ze("updateInitialData",u);const be=i([{name:"\u5220\u9664",action:function(){Ve(u.value.id)},type:"danger",isAdd:!1},{name:"\u4FDD\u5B58",action:async function(){const r=I.value.ComponentRef.validate();if(!I.value.picUrl)return void b.error("\u8BF7\u4E0A\u4F20logo");const a=await r;if(console.log(a),!!a)try{const m=u.value;u.value.id==null?(await x.createMerchant(m).then(p=>{console.log("\u521B\u5EFA\u6210\u529F",p),console.log(u.value.name),ha({merId:p.merId,shopId:p.shopId,name:u.value.name})}),b.success(A("common.createSuccess")),y()):(await x.updateMerchant(m),b.success(A("common.updateSuccess")),y()),f.value=!1}finally{}},type:"primary",isAdd:!0}]),I=i(),T=i(0),f=i(!1),U=i(""),N=i(!1),le=i("");async function P(r,a){if(le.value=r,a!=null){if(u.value=await x.getMerchant(a.id),H.value)return void ye({name:"MobileDetail",query:{tabs:JSON.stringify(te.value),initialComponent:D.value,id:a.id,initialData:JSON.stringify(u.value),opentype:r}});N.value=r=="\u67E5\u770B",U.value=r+"-"+a.name,T.value=a.id}else N.value=!1,U.value=r,T.value=0,function(){for(const m of Object.keys(u.value))u.value[m]=void 0;u.value.status=10}();f.value=!0}const S=i(!1),we=()=>{S.value=!S.value},ne=()=>{S.value=!1},b=_a(),{t:A}=Oe(),oe=i(!0),w=i([]),se=i(0),n=Ee({pageNo:1,pageSize:10,name:void 0,status:void 0,description:void 0,contact:void 0,address:void 0,contactNumber:void 0,website:void 0,complaintsHotline:void 0,customerServiceHotline:void 0,email:void 0,expireTime:[],createTime:[]}),ie=i();i(!1);const y=async()=>{oe.value=!0;try{const r=await x.getMerchantPage(n);r.list.forEach(a=>{a.showSetting=!1}),w.value=r.list,se.value=r.total}finally{oe.value=!1}},h=()=>{n.pageNo=1,y(),ne()},xe=()=>{ie.value.resetFields(),h()};i();const Ve=async r=>{try{await b.delConfirm(),await x.deleteMerchant(r),b.success(A("common.delSuccess")),await y(),f.value=!1}catch{}},re=i([]);Fe(async()=>{re.value=await ua(),y()});const Me=r=>((m,p)=>{const c=[];let o=p;for(;o!==null;){const v=m.get(o);if(!v)break;c.unshift(v.name),o=v.parentId}return c})((m=>{const p=new Map,c=[...m.map(o=>({...o,parentId:null}))];for(;c.length>0;){const o=c.pop();p.set(o.id,{name:o.name,parentId:o.parentId}),o.children&&c.push(...o.children.map(v=>({...v,parentId:o.id})))}return p})(re.value),r).join("/");return(r,a)=>{const m=Qe,p=We,c=$e,o=Ge,v=Xe,ce=Ze,me=ea,Se=aa,ke=ta,Ce=ia,De=Ue,He=Ie,de=je("hasPermi");return g(),k(ve,null,[t(He,{class:"Content",style:{"min-height":"400px",border:"unset"}},{default:s(()=>[d("div",E,[d("div",F,[t(m,{icon:e(Be),onClick:we},null,8,["icon"]),e(H)?pe("",!0):O((g(),ue(m,{key:0,onClick:a[0]||(a[0]=l=>P("\u65B0\u589E"))},{default:s(()=>[t(p,{class:"mr-5px",icon:"ep:plus"}),C(" \u65B0\u589E ")]),_:1})),[[de,["sale:merchant:create"]]])]),O(d("div",j,[t(Se,{class:"-mb-15px",model:e(n),ref_key:"queryFormRef",ref:ie,inline:!0,"label-width":"68px"},{default:s(()=>[t(o,{label:"\u5546\u6237\u540D\u79F0",prop:"name"},{default:s(()=>[t(c,{modelValue:e(n).name,"onUpdate:modelValue":a[1]||(a[1]=l=>e(n).name=l),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u8D1F\u8D23\u4EBA",prop:"contact"},{default:s(()=>[t(c,{modelValue:e(n).contact,"onUpdate:modelValue":a[2]||(a[2]=l=>e(n).contact=l),placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u6240\u5728\u5730",prop:"address"},{default:s(()=>[t(c,{modelValue:e(n).address,"onUpdate:modelValue":a[3]||(a[3]=l=>e(n).address=l),placeholder:"\u8BF7\u8F93\u5165\u6240\u5728\u5730",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"contactNumber"},{default:s(()=>[t(c,{modelValue:e(n).contactNumber,"onUpdate:modelValue":a[4]||(a[4]=l=>e(n).contactNumber=l),placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u5B98\u7F51",prop:"website"},{default:s(()=>[t(c,{modelValue:e(n).website,"onUpdate:modelValue":a[5]||(a[5]=l=>e(n).website=l),placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u7EF4\u6743\u7535\u8BDD",prop:"complaintsHotline"},{default:s(()=>[t(c,{modelValue:e(n).complaintsHotline,"onUpdate:modelValue":a[6]||(a[6]=l=>e(n).complaintsHotline=l),placeholder:"\u8BF7\u8F93\u5165\u7EF4\u6743\u7535\u8BDD",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u5BA2\u670D\u7535\u8BDD",prop:"customerServiceHotline"},{default:s(()=>[t(c,{modelValue:e(n).customerServiceHotline,"onUpdate:modelValue":a[7]||(a[7]=l=>e(n).customerServiceHotline=l),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u670D\u7535\u8BDD",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u90AE\u7BB1",prop:"email"},{default:s(()=>[t(c,{modelValue:e(n).email,"onUpdate:modelValue":a[8]||(a[8]=l=>e(n).email=l),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u670D\u52A1\u5230\u671F\u65F6\u95F4",prop:"expireTime"},{default:s(()=>[t(v,{modelValue:e(n).expireTime,"onUpdate:modelValue":a[9]||(a[9]=l=>e(n).expireTime=l),style:{width:"auto"},"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")]},null,8,["modelValue","default-time"])]),_:1}),t(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:s(()=>[t(v,{modelValue:e(n).createTime,"onUpdate:modelValue":a[10]||(a[10]=l=>e(n).createTime=l),style:{width:"auto"},"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")]},null,8,["modelValue","default-time"])]),_:1}),t(me,null,{default:s(()=>[t(ce,null,{default:s(()=>[t(o,null,{default:s(()=>[t(m,{onClick:ne},{default:s(()=>[C(" \u6536\u8D77 ")]),_:1}),t(m,{onClick:xe},{default:s(()=>[C(" \u91CD\u7F6E ")]),_:1}),t(m,{onClick:h},{default:s(()=>[t(p,{icon:"ep:search",class:"mr-5px"}),C(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[he,e(S)]])]),t(me,null,{default:s(()=>[(g(!0),k(ve,null,Re(e(w),(l,K)=>(g(),ue(ce,{class:"card",key:K,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:Y=>function(z){w.value[z].showSetting=!0}(K),onMouseout:Y=>function(z){w.value[z].showSetting=!1}(K)},{default:s(()=>[t(Ce,{onClick:Y=>P("\u67E5\u770B",l)},{default:s(()=>[d("div",B,[d("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:l.name},_e(l.name),9,R),O((g(),k("div",{onClick:qe(Y=>P("\u7F16\u8F91",l),["stop"]),class:"setting"},[t(ke,{size:"20",color:"rgb(220 223 231)"},{default:s(()=>[t(e(Je))]),_:1})],8,q)),[[he,l.showSetting&&!e(H)],[de,["sale:merchant:update"]]])]),d("div",J,[d("div",L,[d("img",{src:l.logoUrl,style:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"}},null,8,Q)]),d("div",W,[$,G,d("p",{style:{"white-space":"nowrap","text-overflow":"ellipsis",width:"100%",overflow:"hidden"},title:l.address},_e(Me(l.areaId)),9,X)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),e(w).length==0?(g(),k("div",Z,[...ee])):pe("",!0),t(De,{total:e(se),page:e(n).pageNo,"onUpdate:page":a[11]||(a[11]=l=>e(n).pageNo=l),limit:e(n).pageSize,"onUpdate:limit":a[12]||(a[12]=l=>e(n).pageSize=l),onPagination:y},null,8,["total","page","limit"])]),_:1}),t(ma,{tabs:e(te),initialData:e(u),buttonActions:e(be),ref_key:"MerchantTabsRef",ref:I,isDetail:e(N),initialComponent:D,dialogTitle:e(U),id:e(T),modelValue:e(f),"onUpdate:modelValue":a[13]||(a[13]=l=>Le(f)?f.value=l:null),openType:e(le)},null,8,["tabs","initialData","buttonActions","isDetail","dialogTitle","id","modelValue","openType"])],64)}}}),fe=oa(ae,[["__scopeId","data-v-8a189126"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/sale/merchant/index.vue"]])});export{Ma as __tla,fe as default};
- ========
- import{_ as Ie,__tla as Te}from"./ContentWrap-9d77baa9.js";import{_ as Ue,__tla as Ne}from"./index-33d00c7a.js";import{d as Pe,u as Ae,Y as Ke,K as Ye,r as i,aV as Oe,h as ze,e as Ee,l as Fe,Q as je,o as g,c as k,f as t,w as s,g as d,a as e,e6 as Be,x as z,v as ue,n as C,P as pe,R as _,a4 as he,F as ve,q as Re,t as _e,aS as qe,d$ as Je,O as Qe,C as Le,j as We,V as $e,A as Ge,B as Xe,E as Ze,i as ea,D as aa,aT as ta,p as la,k as na,_ as oa,__tla as sa}from"./index-c9fff140.js";import{E as ia,__tla as ra}from"./el-card-49ad9acd.js";import{M as x,__tla as ca}from"./index-08f76f18.js";import ma,{__tla as da}from"./MerchantTabs-c5abddd1.js";import{g as ua,__tla as pa}from"./index-4a82296c.js";import{c as ha,__tla as va}from"./template-112f3c91.js";import{u as _a,__tla as fa}from"./useMessage-5d45d53a.js";import{__tla as ya}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6c8bd6dd.js";import{__tla as ga}from"./index-7759c842.js";import{__tla as ba}from"./SPuUploadImg-77870ebe.js";import{__tla as wa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-df9f9d77.js";import{__tla as xa}from"./index-71863882.js";import{__tla as Va}from"./el-image-viewer-0aee2692.js";let fe,Ma=Promise.all([(()=>{try{return Te}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})()]).then(async()=>{let V,E,F,j,B,R,q,J,Q,L,W,$,G,X,Z,ee,D,ae;V=M=>(la("data-v-8a189126"),M=M(),na(),M),E={style:{position:"relative"},class:"search"},F={style:{"text-align":"right"}},j={class:"searchMore"},B={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},R=["title"],q=["onClick"],J={style:{display:"flex","align-items":"center"}},Q={style:{width:"151px",height:"85px","margin-right":"10px",border:"1px solid rgb(220 223 231)","border-radius":"5px",display:"flex","align-items":"center","justify-content":"center",overflow:"hidden"}},L=["src"],W={style:{"line-height":"30px",width:"calc(100% - 170px)"}},$=V(()=>d("p",null,"\u9500\u91CF:111",-1)),G=V(()=>d("p",null,"\u5546\u54C1\u6570\u91CF:111",-1)),X=["title"],Z={key:0},ee=[V(()=>d("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u5546\u6237",-1))],D="views/system/sale/merchant/components/MerchantBaseInfo",ae=Pe({name:"Merchant",__name:"index",setup(M){const{currentRoute:Sa,push:ye}=Ae(),ge=Ke(),H=Ye(()=>ge.getMobile),te=i([{name:"BaseInfo",label:"\u57FA\u672C\u4FE1\u606F",component:"views/system/sale/merchant/components/MerchantBaseInfo"},{name:"Store",label:"\u5E97\u94FA",component:"views/system/sale/merchant/components/MerchantStore"},{name:"Product",label:"\u5546\u54C1",component:"views/system/sale/merchant/components/MerchantProduct"},{name:"Order",label:"\u8BA2\u5355",component:"views/system/sale/merchant/components/MerchantOrder"},{name:"Service",label:"\u5BA2\u670D",component:"views/system/sale/merchant/components/MerchantService"},{name:"AfterSales",label:"\u552E\u540E",component:"views/system/sale/merchant/components/MerchantAfterSales"},{name:"Campaign",label:"\u6D3B\u52A8",component:"views/system/sale/merchant/components/MerchantCampaign"},{name:"Points",label:"\u79EF\u5206",component:"views/system/sale/merchant/components/MerchantPoints"},{name:"Advertisement",label:"\u5E7F\u544A",component:"views/system/sale/merchant/components/MerchantAdvertisement"},{name:"Highlights",label:"\u770B\u70B9",component:"views/system/sale/merchant/components/MerchantHighlights"},{name:"Finance",label:"\u8D22\u52A1",component:"views/system/sale/merchant/components/MerchantFinance"},{name:"Employee",label:"\u4EBA\u5458",component:"views/system/sale/merchant/components/MerchantEmployee"}]),u=i({id:void 0,name:void 0,status:10,description:void 0,contact:void 0,address:void 0,contactNumber:void 0,website:void 0,complaintsHotline:void 0,createTime:void 0,customerServiceHotline:void 0,email:void 0,businessLicensePicture:void 0,expireTime:void 0,logoUrl:void 0,areaId:void 0});Oe("updateInitialData",u);const be=i([{name:"\u5220\u9664",action:function(){Ve(u.value.id)},type:"danger",isAdd:!1},{name:"\u4FDD\u5B58",action:async function(){const r=I.value.ComponentRef.validate();if(!I.value.picUrl)return void b.error("\u8BF7\u4E0A\u4F20logo");const a=await r;if(console.log(a),!!a)try{const m=u.value;u.value.id==null?(await x.createMerchant(m).then(p=>{console.log("\u521B\u5EFA\u6210\u529F",p),console.log(u.value.name),ha({merId:p.merId,shopId:p.shopId,name:u.value.name})}),b.success(A("common.createSuccess")),y()):(await x.updateMerchant(m),b.success(A("common.updateSuccess")),y()),f.value=!1}finally{}},type:"primary",isAdd:!0}]),I=i(),T=i(0),f=i(!1),U=i(""),N=i(!1),le=i("");async function P(r,a){if(le.value=r,a!=null){if(u.value=await x.getMerchant(a.id),H.value)return void ye({name:"MobileDetail",query:{tabs:JSON.stringify(te.value),initialComponent:D.value,id:a.id,initialData:JSON.stringify(u.value),opentype:r}});N.value=r=="\u67E5\u770B",U.value=r+"-"+a.name,T.value=a.id}else N.value=!1,U.value=r,T.value=0,function(){for(const m of Object.keys(u.value))u.value[m]=void 0;u.value.status=10}();f.value=!0}const S=i(!1),we=()=>{S.value=!S.value},ne=()=>{S.value=!1},b=_a(),{t:A}=ze(),oe=i(!0),w=i([]),se=i(0),n=Ee({pageNo:1,pageSize:10,name:void 0,status:void 0,description:void 0,contact:void 0,address:void 0,contactNumber:void 0,website:void 0,complaintsHotline:void 0,customerServiceHotline:void 0,email:void 0,expireTime:[],createTime:[]}),ie=i();i(!1);const y=async()=>{oe.value=!0;try{const r=await x.getMerchantPage(n);r.list.forEach(a=>{a.showSetting=!1}),w.value=r.list,se.value=r.total}finally{oe.value=!1}},h=()=>{n.pageNo=1,y(),ne()},xe=()=>{ie.value.resetFields(),h()};i();const Ve=async r=>{try{await b.delConfirm(),await x.deleteMerchant(r),b.success(A("common.delSuccess")),await y(),f.value=!1}catch{}},re=i([]);Fe(async()=>{re.value=await ua(),y()});const Me=r=>((m,p)=>{const c=[];let o=p;for(;o!==null;){const v=m.get(o);if(!v)break;c.unshift(v.name),o=v.parentId}return c})((m=>{const p=new Map,c=[...m.map(o=>({...o,parentId:null}))];for(;c.length>0;){const o=c.pop();p.set(o.id,{name:o.name,parentId:o.parentId}),o.children&&c.push(...o.children.map(v=>({...v,parentId:o.id})))}return p})(re.value),r).join("/");return(r,a)=>{const m=Le,p=We,c=$e,o=Ge,v=Xe,ce=Ze,me=ea,Se=aa,ke=ta,Ce=ia,De=Ue,He=Ie,de=je("hasPermi");return g(),k(ve,null,[t(He,{class:"Content",style:{"min-height":"400px",border:"unset"}},{default:s(()=>[d("div",E,[d("div",F,[t(m,{icon:e(Be),onClick:we},null,8,["icon"]),e(H)?pe("",!0):z((g(),ue(m,{key:0,onClick:a[0]||(a[0]=l=>P("\u65B0\u589E"))},{default:s(()=>[t(p,{class:"mr-5px",icon:"ep:plus"}),C(" \u65B0\u589E ")]),_:1})),[[de,["sale:merchant:create"]]])]),z(d("div",j,[t(Se,{class:"-mb-15px",model:e(n),ref_key:"queryFormRef",ref:ie,inline:!0,"label-width":"68px"},{default:s(()=>[t(o,{label:"\u5546\u6237\u540D\u79F0",prop:"name"},{default:s(()=>[t(c,{modelValue:e(n).name,"onUpdate:modelValue":a[1]||(a[1]=l=>e(n).name=l),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u8D1F\u8D23\u4EBA",prop:"contact"},{default:s(()=>[t(c,{modelValue:e(n).contact,"onUpdate:modelValue":a[2]||(a[2]=l=>e(n).contact=l),placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u6240\u5728\u5730",prop:"address"},{default:s(()=>[t(c,{modelValue:e(n).address,"onUpdate:modelValue":a[3]||(a[3]=l=>e(n).address=l),placeholder:"\u8BF7\u8F93\u5165\u6240\u5728\u5730",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u8D1F\u8D23\u4EBA\u7535\u8BDD",prop:"contactNumber"},{default:s(()=>[t(c,{modelValue:e(n).contactNumber,"onUpdate:modelValue":a[4]||(a[4]=l=>e(n).contactNumber=l),placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u7535\u8BDD",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u5B98\u7F51",prop:"website"},{default:s(()=>[t(c,{modelValue:e(n).website,"onUpdate:modelValue":a[5]||(a[5]=l=>e(n).website=l),placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u7EF4\u6743\u7535\u8BDD",prop:"complaintsHotline"},{default:s(()=>[t(c,{modelValue:e(n).complaintsHotline,"onUpdate:modelValue":a[6]||(a[6]=l=>e(n).complaintsHotline=l),placeholder:"\u8BF7\u8F93\u5165\u7EF4\u6743\u7535\u8BDD",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u5BA2\u670D\u7535\u8BDD",prop:"customerServiceHotline"},{default:s(()=>[t(c,{modelValue:e(n).customerServiceHotline,"onUpdate:modelValue":a[7]||(a[7]=l=>e(n).customerServiceHotline=l),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u670D\u7535\u8BDD",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u90AE\u7BB1",prop:"email"},{default:s(()=>[t(c,{modelValue:e(n).email,"onUpdate:modelValue":a[8]||(a[8]=l=>e(n).email=l),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",onKeyup:_(h,["enter"])},null,8,["modelValue"])]),_:1}),t(o,{label:"\u670D\u52A1\u5230\u671F\u65F6\u95F4",prop:"expireTime"},{default:s(()=>[t(v,{modelValue:e(n).expireTime,"onUpdate:modelValue":a[9]||(a[9]=l=>e(n).expireTime=l),style:{width:"auto"},"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")]},null,8,["modelValue","default-time"])]),_:1}),t(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:s(()=>[t(v,{modelValue:e(n).createTime,"onUpdate:modelValue":a[10]||(a[10]=l=>e(n).createTime=l),style:{width:"auto"},"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")]},null,8,["modelValue","default-time"])]),_:1}),t(me,null,{default:s(()=>[t(ce,null,{default:s(()=>[t(o,null,{default:s(()=>[t(m,{onClick:ne},{default:s(()=>[C(" \u6536\u8D77 ")]),_:1}),t(m,{onClick:xe},{default:s(()=>[C(" \u91CD\u7F6E ")]),_:1}),t(m,{onClick:h},{default:s(()=>[t(p,{icon:"ep:search",class:"mr-5px"}),C(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[he,e(S)]])]),t(me,null,{default:s(()=>[(g(!0),k(ve,null,Re(e(w),(l,K)=>(g(),ue(ce,{class:"card",key:K,span:7,xl:7,lg:7,md:7,sm:24,xs:24,onMouseover:Y=>function(O){w.value[O].showSetting=!0}(K),onMouseout:Y=>function(O){w.value[O].showSetting=!1}(K)},{default:s(()=>[t(Ce,{onClick:Y=>P("\u67E5\u770B",l)},{default:s(()=>[d("div",B,[d("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:l.name},_e(l.name),9,R),z((g(),k("div",{onClick:qe(Y=>P("\u7F16\u8F91",l),["stop"]),class:"setting"},[t(ke,{size:"20",color:"rgb(220 223 231)"},{default:s(()=>[t(e(Je))]),_:1})],8,q)),[[he,l.showSetting&&!e(H)],[de,["sale:merchant:update"]]])]),d("div",J,[d("div",Q,[d("img",{src:l.logoUrl,style:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"}},null,8,L)]),d("div",W,[$,G,d("p",{style:{"white-space":"nowrap","text-overflow":"ellipsis",width:"100%",overflow:"hidden"},title:l.address},_e(Me(l.areaId)),9,X)])])]),_:2},1032,["onClick"])]),_:2},1032,["onMouseover","onMouseout"]))),128))]),_:1}),e(w).length==0?(g(),k("div",Z,[...ee])):pe("",!0),t(De,{total:e(se),page:e(n).pageNo,"onUpdate:page":a[11]||(a[11]=l=>e(n).pageNo=l),limit:e(n).pageSize,"onUpdate:limit":a[12]||(a[12]=l=>e(n).pageSize=l),onPagination:y},null,8,["total","page","limit"])]),_:1}),t(ma,{tabs:e(te),initialData:e(u),buttonActions:e(be),ref_key:"MerchantTabsRef",ref:I,isDetail:e(N),initialComponent:D,dialogTitle:e(U),id:e(T),modelValue:e(f),"onUpdate:modelValue":a[13]||(a[13]=l=>Qe(f)?f.value=l:null),openType:e(le)},null,8,["tabs","initialData","buttonActions","isDetail","dialogTitle","id","modelValue","openType"])],64)}}}),fe=oa(ae,[["__scopeId","data-v-8a189126"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/sale/merchant/index.vue"]])});export{Ma as __tla,fe as default};
- >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/index-13624f8b.js
|