data_center/public/admin/assets/userdetail.37bd22ba.js

2 lines
8.8 KiB
JavaScript
Raw Normal View History

2023-11-22 13:29:04 +08:00
import{T as G,I as W,c as X,J as Y,B as Z,C as ee,_ as ae,M as te,N as le,$ as oe,w as ue,D as ne,k as S}from"./element-plus.9c2fdfa8.js";import{a as se,u as re}from"./vue-router.e2f4a118.js";import{a as de,u as ie,i as ce}from"./consumer.ed84615b.js";import{n as pe}from"./company.da0ac536.js";import{e as me,a as _e,f as fe}from"./index.b57b84f0.js";import{d as be}from"./dict.3d59f58c.js";import"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.282b33b4.js";import"./lodash.5512e984.js";import{d as q,C as ye,r as p,$ as D,s as Fe,a4 as j,o as i,c as h,U as e,L as a,u as t,a as O,K as c,Q as m,k as ve,R as T,T as Be,a7 as Ce}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.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"./axios.92474d72.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import"./usePaging.c22e2b6f.js";const Ee=O("div",{style:{"font-size":"1.2rem",margin:"10px 0"}},"\u57FA\u672C\u4FE1\u606F",-1),ke={class:"headimg"},we=["src"],Ve=q({name:"consumerDetail"}),_a=q({...Ve,setup(De){const g=ye("base_url");me(),se();const _=re(),v=p(!0),l=D({id:"",sex:"",id_card:"",nickname:"",province:"",city:"",area:"",street:"",address:"",account:"",is_contract:0,party_b_name:"",party_b:"",qualification:{id_card:"",id_card_b:"",car_card:"",car_card_b:"",bank_account:"",bank_account_b:""},contract_type:"",file:"",avatar:"",multipoint_login:1,contract:{url:""}}),I=p(!1),B=D({show:!1,value:""}),A=D({provinceOptions:[],cityOptions:[],areaOptions:[],streetOptions:[],dictTypeLists:[],contract_type:[],contract:[]}),N=Fe();p(!1),p(!1);const U=_e(),M=async()=>{const u=await be({type_id:7});A.contract_type=u.lists},f=p(null);M();const x=async()=>{var o,b,y,E,k,F;const u=await pe({user_id:_.query.id});console.log(u),Object.keys(l).forEach(d=>{l[d]=u[d]}),f.value=_.query.mode,l.sex=u.sex,l.mobile=u.mobile,l.contract_type=(o=u.contract)==null?void 0:o.contract_type,l.party_b_name=(b=u.contract)==null?void 0:b.party_b_name,l.party_b=(y=u.contract)==null?void 0:y.party_b,l.file=(E=u.contract)==null?void 0:E.file,u.contract&&(C.value[0]={url:(k=u.contract)==null?void 0:k.file,name:(F=u.contract)!=null?F:"\u5408\u540C\u6587\u4EF6"}),await getCityList(),await getAreaList(),await getStreetList()},C=p([]),P=(u,o)=>{if(u.code==0){S.error(u.msg);return}l.avatar=u.data.uri},$=(u,o)=>{if(u.code==0){S.error(u.msg);return}l.file=u.data.uri,ie({file:l.file,id:_.query.mdoeid}).then(b=>[f.value=!1])},z=async u=>{await de({user_id:_.query.id,...u}),B.show=!1,x()},H=()=>{const{contract_type:u}=l;ce({party_b:_.query.id,contract_type:u,type:2}).then(o=>{fe.msgSuccess("\u53D1\u8D77\u6210\u529F\uFF0C\u7B49\u5F85\u5E73\u53F0\u98CE\u63A7\u90E8\u4E0A\u4F20\u5408\u540C")})};return x(),console.log(l),(u,o)=>{const b=G,y=W,E=j("Plus"),k=X,F=Y,d=Z,r=ee,s=ae,V=te,L=le,w=oe,R=ue,J=ne,K=j("account-adjust");return i(),h("div",null,[e(y,{class:"!border-none",shadow:"never"},{default:a(()=>[e(b,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=n=>u.$router.back())})]),_:1}),e(y,{class:"mt-4 !border-none",shadow:"never"},{default:a(()=>[e(J,{ref_key:"formRef",ref:N,model:t(l),"label-width":"84px"},{default:a(()=>[Ee,O("div",ke,[e(F,{modelValue:t(l).avatar,"onUpdate:modelValue":o[