WokerTask/public/admin/assets/detail.59d7c077.js

2 lines
16 KiB
JavaScript

import{B as aa,C as ea,w as la,D as ta,I as oa,O as va,P as Fa,Q as ka,T as Ba,J as Va,k as E,c as Ca,a1 as ga,M as Ea,N as ha,a2 as wa}from"./element-plus.9816852d.js";import{a as Aa,u as Da}from"./vue-router.9f65afb1.js";import{g as qa,b as Ua,a as xa,i as La}from"./consumer.7654945e.js";import{a as Oa,b as Sa,c as Ta,d as Pa}from"./common.970a8182.js";import{d as Ra}from"./dict.3a310f15.js";import{_ as $a}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{u as ja}from"./usePaging.2ad8e1e6.js";import{e as Ia,a as Ma,f as Na}from"./index.fdc772f5.js";import{k as za}from"./company.7379ac7d.js";import{d as Q,$ as N,o as d,c as _,U as e,L as t,u as a,R as z,M as Qa,K as r,a as g,k as ua,C as Ha,r as U,s as Ja,a4 as Ka,T as P,a7 as R,Q as x}from"./@vue.51d7f2d8.js";import"./lodash.675f209e.js";import{_ as Ga}from"./account-adjust.vue_vue_type_script_setup_true_lang.2bf877fb.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.ed3dbb0f.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const Wa={class:"mt-4"},Xa={class:"flex mt-4 justify-end"},Ya=Q({name:"companyLists"});({...Ya});const Za=g("div",{style:{"font-size":"1.2rem",margin:"10px 0"}},"\u57FA\u672C\u4FE1\u606F\u521B\u5EFA",-1),ae={class:"headimg"},ee=["src"],le=g("div",{style:{"font-size":"1.2rem",margin:"10px 0"}},"\u8D44\u8D28\u4FE1\u606F",-1),te={style:{display:"flex","justify-content":"space-between"}},oe=["src"],ue=["src"],ne=["src"],de=["src"],se=["src"],re=["src"],ie=Q({name:"consumerDetail"}),el=Q({...ie,setup(na){const v=Ha("base_url");Ia(),Aa();const f=Da(),i=U(!0),l=N({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:""}}),$=U(!1),A=N({show:!1,value:""}),b=N({provinceOptions:[],cityOptions:[],areaOptions:[],streetOptions:[],dictTypeLists:[],contract_type:[],contract:[]}),j=Ja();U(!1),U(!1);const p=Ma(),I=async()=>{const o=await Ra({type_id:7});b.contract_type=o.lists},V=U(null);I();const L=async()=>{var n,O,S,k,B,y;const o=await qa({id:f.query.id});Object.keys(l).forEach(m=>{l[m]=o[m]}),V.value=f.query.mode,l.contract_type=(n=o.contract)==null?void 0:n.contract_type,l.party_b_name=(O=o.contract)==null?void 0:O.party_b_name,l.party_b=(S=o.contract)==null?void 0:S.party_b,l.file=(k=o.contract)==null?void 0:k.file,o.contract&&(D.value[0]={url:(B=o.contract)==null?void 0:B.file,name:(y=o.contract)!=null?y:"\u5408\u540C\u6587\u4EF6"}),await W(),await X(),await Y()},D=U([]),M=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.qualification.id_card=o.data.uri},F=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.avatar=o.data.uri},H=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.qualification.id_card_b=o.data.uri},J=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.qualification.car_card=o.data.uri},K=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.qualification.car_card_b=o.data.uri},h=o=>!0,da=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.qualification.bank_account=o.data.uri},sa=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.qualification.bank_account_b=o.data.uri},ra=(o,n)=>{if(o.code==0){E.error(o.msg);return}l.file=o.data.uri,Ua({file:l.file,id:f.query.mdoeid}).then(O=>[V.value=!1])},G=o=>!0;function ia(o){W()}function ca(o){X()}function pa(o){Y()}function _a(o){l.street=o}const ma=async()=>{const o=await Oa({});b.provinceOptions=o},W=async()=>{const o=await Sa({city:l.province});b.cityOptions=o},X=async()=>{const o=await Ta({area:l.city});b.areaOptions=o},Y=async()=>{const o=await Pa({street:l.area});b.streetOptions=o},fa=async o=>{await xa({user_id:f.query.id,...o}),A.show=!1,L()},ba=()=>{const{contract_type:o}=l;La({party_b:f.query.id,contract_type:o,type:2}).then(n=>{Na.msgSuccess("\u53D1\u8D77\u6210\u529F\uFF0C\u7B49\u5F85\u5E73\u53F0\u98CE\u63A7\u90E8\u4E0A\u4F20\u5408\u540C")})};return L(),ma(),console.log(l),(o,n)=>{const O=Ba,S=oa,k=Ka("Plus"),B=Ca,y=Va,m=aa,s=ea,c=ga,w=Ea,q=ha,T=wa,Z=la,ya=ta;return d(),_("div",null,[e(S,{class:"!border-none",shadow:"never"},{default:t(()=>[e(O,{content:"\u7528\u6237\u8BE6\u60C5",onBack:n[0]||(n[0]=u=>o.$router.back())})]),_:1}),e(S,{class:"mt-4 !border-none",shadow:"never"},{default:t(()=>[e(ya,{ref_key:"formRef",ref:j,model:a(l),"label-width":"84px"},{default:t(()=>[Za,g("div",ae,[e(y,{modelValue:a(l).avatar,"onUpdate:modelValue":n[1]||(n[1]=u=>a(l).avatar=u),class:"avatar-uploader-head",disabled:a(i),data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":F},{default:t(()=>[a(l).avatar?(d(),_("img",{key:0,src:a(l).avatar,class:"avatar"},null,8,ee)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"])]),e(c,{class:"pt-6 !border-none"},{default:t(()=>[e(T,null,{default:t(()=>[e(c,{span:11},{default:t(()=>[e(s,{label:"\u59D3\u540D",prop:"nickname"},{default:t(()=>[e(m,{modelValue:a(l).nickname,"onUpdate:modelValue":n[2]||(n[2]=u=>a(l).nickname=u),disabled:a(i),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(c,{span:13},{default:t(()=>[e(s,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[e(q,{modelValue:a(l).sex,"onUpdate:modelValue":n[3]||(n[3]=u=>a(l).sex=u),disabled:a(i),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",style:{width:"100%"}},{default:t(()=>[e(w,{label:"\u7537",value:1}),e(w,{label:"\u5973",value:2})]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(T,null,{default:t(()=>[e(c,{span:11},{default:t(()=>[e(s,{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"id_card"},{default:t(()=>[e(m,{modelValue:a(l).id_card,"onUpdate:modelValue":n[4]||(n[4]=u=>a(l).id_card=u),disabled:a(i),placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(c,{span:13},{default:t(()=>[e(s,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"account"},{default:t(()=>[e(m,{modelValue:a(l).account,"onUpdate:modelValue":n[5]||(n[5]=u=>a(l).account=u),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",disabled:a(i),clearable:"",style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(T,null,{default:t(()=>[e(s,{label:"\u7701",prop:"province",style:{flex:"1"}},{default:t(()=>[e(q,{modelValue:a(l).province,"onUpdate:modelValue":n[6]||(n[6]=u=>a(l).province=u),placeholder:"\u8BF7\u9009\u62E9\u7701",disabled:a(i),clearable:"",onChange:ia,style:{width:"100%"}},{default:t(()=>[(d(!0),_(P,null,R(a(b).provinceOptions,(u,C)=>(d(),r(w,{key:C,label:u.province_name,value:u.province_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e(s,{label:"\u5E02",prop:"city",style:{flex:"1"}},{default:t(()=>[e(q,{modelValue:a(l).city,"onUpdate:modelValue":n[7]||(n[7]=u=>a(l).city=u),placeholder:"\u8BF7\u9009\u62E9\u5E02",clearable:"",disabled:a(i),onChange:ca,style:{width:"100%"}},{default:t(()=>[(d(!0),_(P,null,R(a(b).cityOptions,(u,C)=>(d(),r(w,{key:C,label:u.city_name,value:u.city_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e(s,{label:"\u533A",prop:"area",style:{flex:"1"}},{default:t(()=>[e(q,{modelValue:a(l).area,"onUpdate:modelValue":n[8]||(n[8]=u=>a(l).area=u),placeholder:"\u8BF7\u9009\u62E9\u533A",disabled:a(i),clearable:"",onChange:pa,style:{width:"100%"}},{default:t(()=>[(d(!0),_(P,null,R(a(b).areaOptions,(u,C)=>(d(),r(w,{key:C,label:u.area_name,value:u.area_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e(s,{label:"\u9547",prop:"street",style:{flex:"1"}},{default:t(()=>[e(q,{modelValue:a(l).street,"onUpdate:modelValue":n[9]||(n[9]=u=>a(l).street=u),placeholder:"\u8BF7\u9009\u62E9\u9547",disabled:a(i),clearable:"",onChange:_a,style:{width:"100%"}},{default:t(()=>[(d(!0),_(P,null,R(a(b).streetOptions,(u,C)=>(d(),r(w,{key:C,label:u.street_name,value:u.street_code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e(s,{label:"\u6751\u793E\u5C0F\u961F",prop:"address",style:{flex:"1.5"}},{default:t(()=>[e(m,{modelValue:a(l).address,"onUpdate:modelValue":n[10]||(n[10]=u=>a(l).address=u),disabled:a(i),placeholder:"\u8BF7\u8F93\u5165\u6751\u793E\u5C0F\u961F",clearable:"",style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(c,{span:24,style:{"margin-top":"1vh"}}),le,g("div",te,[g("div",null,[e(s,{label:"\u8EAB\u4EFD\u8BC1",prop:"id_card"},{default:t(()=>[e(y,{modelValue:a(l).qualification.id_card,"onUpdate:modelValue":n[11]||(n[11]=u=>a(l).qualification.id_card=u),disabled:a(i),class:"avatar-uploader pl-3",data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":M},{default:t(()=>[a(l).qualification.id_card?(d(),_("img",{key:0,src:a(l).qualification.id_card,class:"avatar"},null,8,oe)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"]),e(y,{modelValue:a(l).qualification.id_card_b,"onUpdate:modelValue":n[12]||(n[12]=u=>a(l).qualification.id_card_b=u),disabled:a(i),class:"avatar-uploader pl-3",data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":H},{default:t(()=>[a(l).qualification.id_card_b?(d(),_("img",{key:0,src:a(l).qualification.id_card_b,class:"avatar"},null,8,ue)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"])]),_:1})]),g("div",null,[e(s,{label:"\u94F6\u884C\u5361",prop:"bank_account"},{default:t(()=>[e(y,{modelValue:a(l).qualification.bank_account,"onUpdate:modelValue":n[13]||(n[13]=u=>a(l).qualification.bank_account=u),disabled:a(i),class:"avatar-uploader pl-3",data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":da,"before-upload":G},{default:t(()=>[a(l).qualification.bank_account?(d(),_("img",{key:0,src:a(l).qualification.bank_account,class:"avatar"},null,8,ne)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"]),e(y,{modelValue:a(l).qualification.bank_account_b,"onUpdate:modelValue":n[14]||(n[14]=u=>a(l).qualification.bank_account_b=u),disabled:a(i),class:"avatar-uploader pl-3",data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":sa,"before-upload":G},{default:t(()=>[a(l).qualification.bank_account_b?(d(),_("img",{key:0,src:a(l).qualification.bank_account_b,class:"avatar"},null,8,de)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"])]),_:1})]),g("div",null,[e(s,{label:"\u884C\u9A76\u8BC1",prop:"car_card"},{default:t(()=>[e(y,{modelValue:a(l).qualification.car_card,"onUpdate:modelValue":n[15]||(n[15]=u=>a(l).qualification.car_card=u),disabled:a(i),class:"avatar-uploader pl-3",data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":J},{default:t(()=>[a(l).qualification.car_card?(d(),_("img",{key:0,src:a(l).qualification.car_card,class:"avatar"},null,8,se)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"]),e(y,{modelValue:a(l).qualification.car_card_b,"onUpdate:modelValue":n[16]||(n[16]=u=>a(l).qualification.car_card_b=u),disabled:a(i),class:"avatar-uploader pl-3",data:{cid:1},headers:{Token:a(p).token},action:a(v)+"/upload/image","show-file-list":!1,"on-success":K,"before-upload":h},{default:t(()=>[a(l).qualification.car_card_b?(d(),_("img",{key:0,src:a(l).qualification.car_card_b,class:"avatar"},null,8,re)):(d(),r(B,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(k)]),_:1}))]),_:1},8,["modelValue","disabled","headers","action"])]),_:1})])]),a($)?(d(),r(c,{key:0,span:24},{default:t(()=>[e(T,null,{default:t(()=>[e(c,{span:12},{default:t(()=>[e(s,{label:"\u7B7E\u7EA6\u59D3\u540D",prop:"name"},{default:t(()=>[e(m,{modelValue:a(l).nickname,"onUpdate:modelValue":n[17]||(n[17]=u=>a(l).nickname=u),placeholder:"\u8BF7\u8F93\u5165\u7B7E\u7EA6\u59D3\u540D",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:12},{default:t(()=>[e(s,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[e(m,{placeholder:"\u8BF7\u8F93\u5165\u6027\u522B",disabled:!0,clearable:"",style:{width:"100%"},value:a(l).sex=="1"?"\u7537":"\u5973"},null,8,["value"])]),_:1})]),_:1}),e(c,{span:12},{default:t(()=>[e(s,{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"id_card"},{default:t(()=>[e(m,{modelValue:a(l).id_card,"onUpdate:modelValue":n[18]||(n[18]=u=>a(l).id_card=u),placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:12},{default:t(()=>[e(s,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"account"},{default:t(()=>[e(m,{modelValue:a(l).account,"onUpdate:modelValue":n[19]||(n[19]=u=>a(l).account=u),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),a(l).name?(d(),r(c,{key:0,span:12},{default:t(()=>[e(s,{label:"\u8D26\u53F7"},{default:t(()=>[e(m,{modelValue:a(l).account,"onUpdate:modelValue":n[20]||(n[20]=u=>a(l).account=u),disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})):x("",!0),a(l).name?(d(),r(c,{key:1,span:12},{default:t(()=>[e(s,{label:"\u521D\u59CB\u5BC6\u7801",prop:"password"},{default:t(()=>[e(m,{"model-value":"m"+a(l).account,disabled:!0,clearable:"",style:{width:"100%"}},null,8,["model-value"])]),_:1})]),_:1})):x("",!0)]),_:1})]),_:1})):x("",!0),a(V)=="uplode"?(d(),r(c,{key:1,span:24},{default:t(()=>[e(s,{label:"\u5408\u540C\u4E0A\u4F20",prop:"field127"},{default:t(()=>[e(y,{headers:{Token:a(p).token},"file-list":a(D),"onUpdate:fileList":n[21]||(n[21]=u=>ua(D)?D.value=u:null),class:"upload-demo",action:a(v)+"/upload/file","on-success":ra,multiple:"",limit:1},{default:t(()=>[e(Z,{type:"primary"},{default:t(()=>[z("\u4E0A\u4F20")]),_:1})]),_:1},8,["headers","file-list","action"])]),_:1})]),_:1})):x("",!0),a(V)=="initiate"?(d(),r(c,{key:2,span:24,class:"pt-6"},{default:t(()=>[e(T,null,{default:t(()=>[e(c,{span:8},{default:t(()=>[e(s,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:t(()=>[e(c,{span:24},{default:t(()=>[e(q,{modelValue:a(l).contract_type,"onUpdate:modelValue":n[22]||(n[22]=u=>a(l).contract_type=u),placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B",clearable:"",style:{width:"100%"}},{default:t(()=>[(d(!0),_(P,null,R(a(b).contract_type,(u,C)=>(d(),r(w,{key:C,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(c,{span:4},{default:t(()=>[e(s,{prop:"field139"},{default:t(()=>[a(V)=="initiate"?(d(),r(Z,{key:0,type:"primary",onClick:ba},{default:t(()=>[z("\u53D1\u8D77\u5408\u540C")]),_:1})):x("",!0)]),_:1})]),_:1})]),_:1})]),_:1})):x("",!0)]),_:1},8,["model"])]),_:1}),e(Ga,{show:a(A).show,"onUpdate:show":n[23]||(n[23]=u=>a(A).show=u),value:a(A).value,onConfirm:fa},null,8,["show","value"])])}}});export{el as default};