2 lines
9.4 KiB
JavaScript
2 lines
9.4 KiB
JavaScript
|
import{T as W,I as X,c as Y,J as Z,B as ee,C as ae,_ as te,M as le,N as oe,$ as ue,w as ne,D as re,k as q}from"./element-plus.9c2fdfa8.js";import{a as se,u as de}from"./vue-router.e2f4a118.js";import{g as ie,a as pe,u as ce,i as me}from"./consumer.ed84615b.js";import{e as _e,a as fe,f as be}from"./index.b57b84f0.js";import{d as ye}from"./dict.3d59f58c.js";import"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.282b33b4.js";import"./lodash.5512e984.js";import{_ as Be}from"./account-adjust.vue_vue_type_script_setup_true_lang.96a66fb0.js";import{d as I,C as Fe,r as c,$ as g,s as ve,a4 as Ee,o as d,c as h,U as e,L as a,u as t,a as N,K as p,T as L,a7 as O,Q as m,k as Ve,R as j}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";import"./company.da0ac536.js";import"./index.3fc23cf2.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";const ke=N("div",{style:{"font-size":"1.2rem",margin:"10px 0"}},"\u57FA\u672C\u4FE1\u606F\u521B\u5EFA",-1),Ce={class:"headimg"},he=["src"],De=I({name:"consumerDetail"}),Ba=I({...De,setup(we){const A=Fe("base_url");_e(),se();const _=de(),f=c(!0),l=g({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:""}}),$=c(!1),E=g({show:!1,value:""}),U=g({provinceOptions:[],cityOptions:[],areaOptions:[],streetOptions:[],dictTypeLists:[],contract_type:[],contract:[]}),M=ve();c(!1),c(!1);const x=fe(),P=async()=>{const u=await ye({type_id:7});U.contract_type=u.lists},b=c(null);P();const R=async()=>{var o,y,B,k,C,F;const u=await ie({id:_.query.id});console.log(u),Object.keys(l).forEach(i=>{l[i]=u[i]}),b.value=_.query.mode,l.gender=u.gender,l.phone=u.phone,l.gender=u.gender,l.app_list=u.app_list,l.contract_type=(o=u.contract)==null?void 0:o.contract_type,l.party_b_name=(y=u.contract)==null?void 0:y.party_b_name,l.party_b=(B=u.contract)==null?void 0:B.party_b,l.file=(k=u.contract)==null?void 0:k.file,u.contract&&(V.value[0]={url:(C=u.contract)==null?void 0:C.file,name:(F=u.contract)!=null?F:"\u5408\u540C\u6587\u4EF6"})},V=c([]),z=(u,o)=>{if(u.code==0){q.error(u.msg);return}l.avatar=u.data.uri},H=(u,o)=>{if(u.code==0){q.error(u.msg);return}l.file=u.data.uri,ce({file:l.file,id:_.query.mdoeid}).then(y=>[b.value=!1])},J=async u=>{await pe({user_id:_.query.id,...u}),E.show=!1,R()},K=()=>{const{contract_type:u}=l;me({party_b:_.query.id,contract_type:u,type:2}).then(o=>{be.msgSuccess("\u53D1\u8D77\u6210\u529F\uFF0C\u7B49\u5F85\u5E73\u53F0\u98CE\u63A7\u90E8\u4E0A\u4F20\u5408\u540C")})};return R(),console.log(l),(u,o)=>{const y=W,B=X,k=Ee("Plus"),C=Y,F=Z,i=ee,s=ae,r=te,D=le,S=oe,v=ue,T=ne,Q=re;return d(),h("div",null,[e(B,{class:"!border-none",shadow:"never"},{default:a(()=>[e(y,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=n=>u.$router.back())})]),_:1}),e(B,{class:"mt-4 !border-none",shadow:"never"},{defaul
|