MerchantEmployee-d32a897e.js 6.6 KB

1
  1. import{_ as ce,__tla as me}from"./index-9a0614c1.js";import{_ as pe,r as c,e as ue,Y as de,K as ye,l as fe,Q as he,o as i,c as _,g as r,f as a,w as l,a as e,dD as ge,R as X,x as M,v as Z,n as y,P as f,a4 as ve,au as be,F as z,q as $,t as b,b3 as ke,e1 as xe,j as we,C as Ce,V as Ne,A as Me,E as ze,i as Ve,D as je,aM as De,p as Ue,k as Ee,__tla as Ie}from"./index-3f6d2b3a.js";import{E as Ke,__tla as Pe}from"./el-card-850c26c2.js";import{M as Se,__tla as Ae}from"./index-78f00153.js";import{__tla as Fe}from"./dict-9cca1721.js";import{__tla as Re}from"./Dialog-d80e1167.js";import{u as qe,__tla as Be}from"./useMessage-d75e3be7.js";import{__tla as Oe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-beff78ef.js";import{__tla as Qe}from"./permission-92dae88d.js";import Te,{__tla as Ye}from"./MerchantUserTab-05cb8fc4.js";import{__tla as Ge}from"./index-d56f2a51.js";import{__tla as He}from"./ContentWrap-ccf34dcf.js";import{__tla as Je}from"./SPuUploadImg-a69fc92f.js";import{__tla as Le}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f1809502.js";import{__tla as We}from"./index-da8e53a3.js";import{__tla as Xe}from"./el-image-viewer-34b57ad7.js";import{__tla as Ze}from"./MerchantUserForm-871bf9cc.js";import"./constants-a3c69b57.js";import{__tla as $e}from"./index-2b82af71.js";import{__tla as et}from"./index-73ef6782.js";import{__tla as tt}from"./formatTime-15ffed0a.js";import{__tla as at}from"./MerchantUserAssignRoleForm-46be2ea0.js";import{__tla as lt}from"./index-a386ce87.js";import{__tla as rt}from"./index-2c4af64d.js";let ee,st=Promise.all([(()=>{try{return me}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})()]).then(async()=>{let V,j,D,U,E,I,K,P,S,A,F,R,q;V={class:"search-one"},j={style:{"text-align":"right"},class:"search-input"},D={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},U=["title"],E=["onClick"],I={style:{display:"flex"}},K={style:{width:"70px",height:"70px","margin-right":"10px",border:"1px solid rgb(220 223 231)","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center",overflow:"hidden"}},P=["src"],S={style:{"line-height":"25px"}},A={key:0},F={key:0},R={key:0},q=[(n=>(Ue("data-v-51bd62ea"),n=n(),Ee(),n))(()=>r("p",{style:{"text-align":"center","margin-top":"100px"}},"\u8BE5\u5E97\u94FA\u6682\u65E0\u7528\u6237",-1))],ee=pe(Object.assign({name:"MemberUser"},{__name:"MerchantEmployee",props:{id:{default:null,type:Number},isDetail:{default:!1,type:Boolean}},setup(n){qe();const B=c(!0),O=c(0),k=c([]),s=ue({merId:void 0,pageNo:1,pageSize:10,nickname:void 0,mobile:void 0}),Q=n,x=Q.id,te=de(),w=ye(()=>te.getMobile),h=c(!1),ae=()=>{h.value=!h.value},C=()=>{h.value=!1},T=c(),N=(p,o,u)=>{T.value.open(p,o,u)},Y=c(),g=async()=>{B.value=!0;try{const p=await Se.getAllUserByMer(s);k.value=p,O.value=p.total}finally{B.value=!1}},m=()=>{s.pageNo=1,g(),C()},le=()=>{Y.value.resetFields(),m(),C()};return fe(()=>{s.merId=Q.id,g()}),(p,o)=>{const u=we,d=Ce,G=Ne,H=Me,J=ze,L=Ve,re=je,se=De,oe=Ke,ie=ce,W=he("hasPermi");return i(),_(z,null,[r("div",V,[r("div",j,[a(G,{modelValue:e(s).nickname,"onUpdate:modelValue":o[0]||(o[0]=t=>e(s).nickname=t),placeholder:"\u7528\u6237\u6635\u79F0",clearable:"",onKeyup:X(m,["enter"])},{suffix:l(()=>[a(u,{class:"mr-5px",icon:"ep:search",onClick:m,style:{cursor:"pointer"}})]),append:l(()=>[a(d,{icon:e(ge),onClick:ae},null,8,["icon"])]),_:1},8,["modelValue"]),e(w)||n.isDetail?f("",!0):M((i(),Z(d,{key:0,type:"primary",plain:"",onClick:o[1]||(o[1]=t=>N("create",{},e(x)))},{default:l(()=>[a(u,{icon:"ep:plus"}),y(" \u65B0\u589E ")]),_:1})),[[W,["system:user:create"]]])])]),M(r("div",{class:"searchMore",style:be({width:e(w)?"88.7%":"96%"})},[a(re,{class:"-mb-15px",model:e(s),ref_key:"queryFormRef",ref:Y,inline:!0,"label-width":"68px"},{default:l(()=>[a(H,{label:"\u624B\u673A\u53F7",prop:"mobile"},{default:l(()=>[a(G,{modelValue:e(s).mobile,"onUpdate:modelValue":o[2]||(o[2]=t=>e(s).mobile=t),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",onKeyup:X(m,["enter"])},null,8,["modelValue"])]),_:1}),a(L,null,{default:l(()=>[a(J,null,{default:l(()=>[a(H,null,{default:l(()=>[a(d,{onClick:C},{default:l(()=>[y(" \u6536\u8D77 ")]),_:1}),a(d,{onClick:le},{default:l(()=>[y(" \u91CD\u7F6E ")]),_:1}),a(d,{onClick:m},{default:l(()=>[a(u,{icon:"ep:search"}),y("\u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[ve,e(h)]]),a(L,null,{default:l(()=>[(i(!0),_(z,null,$(e(k),(t,_e)=>(i(),Z(J,{class:"card",key:_e,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:l(()=>[a(oe,{onClick:v=>N("view",t,e(x)),style:{cursor:"pointer"}},{default:l(()=>[r("div",D,[r("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:t.nickname},b(t.nickname),9,U),e(w)||n.isDetail?f("",!0):M((i(),_("div",{key:0,class:"setting",onClick:ke(v=>N("update",t,e(x)),["stop"])},[a(se,{size:"20",color:"rgb(220 223 231)"},{default:l(()=>[a(e(xe))]),_:1})],8,E)),[[W,["system:user:update"]]])]),r("div",I,[r("div",K,[r("img",{src:t.avatar,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,P)]),r("div",S,[r("p",null,b(t.username||"\u65E0\u624B\u673A\u53F7"),1),r("p",null,[t.roleName.length?f("",!0):(i(),_("span",A,"\u672A\u5206\u914D\u89D2\u8272 ")),(i(!0),_(z,null,$(t.roleName,(v,ne)=>(i(),_("span",{key:v},[y(b(v)+" ",1),ne<t.roleName.length-1&&t.roleName.length>1?(i(),_("span",F,",")):f("",!0)]))),128))]),r("p",null,b(t.status==1?"\u505C\u7528":"\u5728\u7528"),1)])])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(k).length==0?(i(),_("div",R,[...q])):f("",!0),a(ie,{limit:e(s).pageSize,"onUpdate:limit":o[3]||(o[3]=t=>e(s).pageSize=t),page:e(s).pageNo,"onUpdate:page":o[4]||(o[4]=t=>e(s).pageNo=t),total:e(O),onPagination:g},null,8,["limit","page","total"]),a(Te,{ref_key:"userTabRef",ref:T,onSuccess:g},null,512)],64)}}}),[["__scopeId","data-v-51bd62ea"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/sale/merchant/components/MerchantEmployee.vue"]])});export{st as __tla,ee as default};