2023-10-10 13:46:19 +08:00
|
|
|
import{P as j,I as $,o as P,w as R,C as q,D as M}from"./element-plus.54aed4cc.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.1d0c0a75.js";import{l as S,b as U}from"./index.58a5fcc1.js";import{u as V}from"./vue-router.12d45bc3.js";import{g as I,a as T,u as z}from"./consumer.950fa60f.js";import{_ as H}from"./account-adjust.vue_vue_type_script_setup_true_lang.5820eec7.js";import{d as w,$ as C,s as K,af as L,o as m,c as O,U as e,L as t,a as d,S as r,T as u,M as _,K as f}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.f1e4cccc.js";import"./axios.d363e68d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.c4b79a6f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.3c571821.js";import"./color.0ff1625c.js";import"./clone.78cb864b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a0babc59.js";import"./ms.a9ae1d6d.js";import"./nprogress.046b2704.js";import"./vue-clipboard3.8c1c7368.js";import"./clipboard.5f2f245e.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.a3400ab9.js";const G={class:"bg-page flex py-5 mb-10 items-center"},J={class:"basis-40 flex flex-col justify-center items-center"},Q=d("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),W={class:"basis-40 flex flex-col justify-center items-center"},X=d("div",{class:"text-tx-regular"},"\u8D26\u6237\u4F59\u989D",-1),Y={class:"mt-2 flex items-center"},Z=r(" \u8C03\u6574 "),ee=w({name:"consumerDetail"}),Ie=w({...ee,setup(te){const v=V(),a=C({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",user_money:""}),i=C({show:!1,value:""}),D=K(),x=async()=>{const l=await I({id:v.query.id});Object.keys(a).forEach(o=>{a[o]=l[o]})},F=async(l,o)=>{S(l)||(await z({id:v.query.id,field:o,value:l}),x())},h=l=>{i.show=!0,i.value=l},A=async l=>{await T({user_id:v.query.id,...l}),i.show=!1,x()};return x(),(l,o)=>{const k=j,E=$,g=P,p=R,n=q,y=U,b=N,B=M,c=L("perms");return m(),O("div",null,[e(E,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=s=>l.$router.back())})]),_:1}),e(E,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(B,{ref_key:"formRef",ref:D,class:"ls-form",model:a,"label-width":"120px"},{default:t(()=>[d("div",G,[d("div",J,[Q,e(g,{src:a.avatar,size:58},null,8,["src"])]),d("div",W,[X,d("div",Y,[r(" \xA5"+u(a.user_money)+" ",1),_((m(),f(p,{type:"primary",link:"",onClick:o[1]||(o[1]=s=>h(a.user_money))},{default:t(()=>[Z]),_:1})),[[c,["user.user/adjustMoney"]]])])])]),e(n,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(u(a.sn),1)]),_:1}),e(n,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(u(a.nickname),1)]),_:1}),e(n,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(u(a.account)+" ",1),_((m(),f(b,{class:"ml-[10px]",onConfirm:o[2]||(o[2]=s=>F(s,"account")),limit:32},{default:t(()=>[e(p,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[c,["user.user/edit"]]])]),_:1}),e(n,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[r(u(a.real_name||"-")+" ",1),_((m(),f(b,{class:"ml-[10px]",onConfirm:o[3]||(o[3]=s=>F(s,"real_name")),limit:32},{default:t(()=>[e(p,{type:"primary",link:""},{default:t(()=>[e(y,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[c,["user.user/edit"]]])]),_:1}),e(n,{label:"\u6027\u522B\uFF1A"},{default:t(()=>[r(u(a.sex)+" ",1),_((m(),f(b,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:o[4]||(o[4]=s=>F(s,"sex"))},{default:t(()=>[e(p,{type
|