MemberUserTab-1a7be562.js 4.1 KB

1
  1. import{d as E,h as I,r,o as n,v as i,aZ as R,a,w as f,g as y,n as W,P as d,x as X,f as e,O as b,c as q,F as B,W as J,X as Z,C as G,I as H,_ as K,__tla as L}from"./index-e3afde76.js";import{_ as N,__tla as Q}from"./ContentWrap-5f2f4872.js";import{_ as Y,__tla as $}from"./SPuUploadImg-9d6f3265.js";import{_ as aa,__tla as ea}from"./Dialog-c20523c4.js";import ta,{__tla as la}from"./UserForm-ebce994a.js";import{A as ra,O as _a,__tla as oa}from"./AfterSale-b57d2238.js";import{u as sa,__tla as na}from"./useMessage-0b1b25bd.js";import{__tla as ma}from"./el-card-6198c22a.js";import{__tla as ia}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb39998f.js";import{__tla as ua}from"./index-15373756.js";import{__tla as ca}from"./el-image-viewer-9d1c7d33.js";import{__tla as fa}from"./el-tree-select-58251b07.js";import{__tla as da}from"./dict-a141296d.js";import{__tla as pa}from"./index-e301609b.js";import{__tla as ya}from"./index-28a76ee4.js";import"./tree-0af4953a.js";import{__tla as va}from"./formatTime-cee700cd.js";import{__tla as ba}from"./index-e23f4f5a.js";let j,ha=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})()]).then(async()=>{let h,g,k,w;h={class:"left"},g={class:"right"},k=y("div",{style:{clear:"both"}},null,-1),w={class:"dialog-footer"},j=K(E({__name:"MemberUserTab",emits:["success"],setup(ga,{expose:T,emit:M}){const{t:z}=I();sa();const V=r(!1),o=r("info"),u=r(!1),v=r(""),s=r(!1),x=r("view"),p=r({}),m=r("avatar");T({open:async(_,l)=>{l.avatar==""?m.value="\u9ED8\u8BA4\u56FE\u7247":m.value=l.avatar,p.value=l,x.value=_,v.value=z("action."+_),_=="view"&&(v.value="\u67E5\u770B"),_=="view"?s.value=!0:(s.value=!1,o.value="info"),u.value=!0}});const C=M,U=r(),D=async()=>{var _;await((_=U.value)==null?void 0:_.submitForm())&&(C("success"),u.value=!1)};return(_,l)=>{const F=Y,t=J,O=Z,P=N,S=G,A=H;return n(),i(aa,{title:a(v),modelValue:a(u),"onUpdate:modelValue":l[2]||(l[2]=c=>b(u)?u.value=c:null),width:"70%"},R({default:f(()=>[X((n(),i(P,{style:{"max-height":"550px","min-height":"550px","overflow-y":"auto",border:"none"}},{default:f(()=>[y("div",h,[e(F,{modelValue:a(m),"onUpdate:modelValue":l[0]||(l[0]=c=>b(m)?m.value=c:null),disabled:a(s)},null,8,["modelValue","disabled"]),e(O,{modelValue:a(o),"onUpdate:modelValue":l[1]||(l[1]=c=>b(o)?o.value=c:null),"tab-position":"left",class:"child-tabs"},{default:f(()=>[e(t,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(s)?(n(),q(B,{key:0},[e(t,{label:"\u56E2\u961F",name:"team"}),e(t,{label:"\u79EF\u5206",name:"points"}),e(t,{label:"\u770B\u70B9",name:"highlights"}),e(t,{label:"\u4EFB\u52A1",name:"task"}),e(t,{label:"\u8BA2\u5355",name:"order"}),e(t,{label:"\u552E\u540E",name:"aftersales"}),e(t,{label:"\u6536\u85CF",name:"collection"}),e(t,{label:"\u70B9\u8D5E",name:"like"}),e(t,{label:"\u7B7E\u5230",name:"signin"}),e(t,{label:"\u6536\u83B7\u5730\u5740",name:"address"})],64)):d("",!0)]),_:1},8,["modelValue"])]),y("div",g,[a(o)=="info"?(n(),i(ta,{key:0,obj:a(p),ref_key:"userFormRef",ref:U,isDetail:a(s),openType:a(x),avatar:a(m)},null,8,["obj","isDetail","openType","avatar"])):d("",!0),a(o)=="aftersales"?(n(),i(ra,{key:1,obj:a(p),openSource:"MemberUser"},null,8,["obj"])):d("",!0),a(o)=="order"?(n(),i(_a,{key:2,obj:a(p),openSource:"MemberUser"},null,8,["obj"])):d("",!0)]),k]),_:1})),[[A,a(V)]])]),_:2},[a(s)?void 0:{name:"footer",fn:f(()=>[y("div",w,[a(s)?d("",!0):(n(),i(S,{key:0,loading:a(V),type:"primary",onClick:D},{default:f(()=>[W("\u4FDD\u5B58")]),_:1},8,["loading"]))])]),key:"0"}]),1032,["title","modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/member/user/components/MemberUserTab.vue"]])});export{ha as __tla,j as default};