| 1 |
- import{U as e,V as a,g as t,ad as l,ao as s,p as i,d as r,$ as n,K as p,O as u}from"./element-plus.DYHj_7Hl.js";import{a3 as o,a4 as d,au as _,av as f,a7 as c}from"./index.KDUAIHt0.js";import{M as m,aD as v,bL as b,aL as y,u as j,I as h,bJ as g,H as k,bb as x,bk as w,s as z,F as I,t as L,v as D,aX as U,aU as A,q as B}from"./@vue.DbmRtknU.js";import"./lodash-es.DaM9m3L-.js";import"./async-validator.j0i5Y79Y.js";import"./@popperjs.DxtSUbXb.js";import"./@ctrl.BEgk5vdO.js";import"./dayjs.DCWbrgJ0.js";import"./memoize-one.BAtLgO95.js";import"./normalize-wheel-es.TzhA1irr.js";import"./@floating-ui.8vigAAFV.js";import"./pinia.BlfmsheH.js";import"./@vueuse.0G3dmZIi.js";import"./vue-i18n.DXLOBfKS.js";import"./@intlify.DPMNdUn_.js";import"./nprogress.BTjJXJ-u.js";import"./codemirror.CYSLATvI.js";import"./diff-match-patch.DkK4wJpa.js";import"./vue-web-terminal.D-rog7dz.js";import"./vue.MGxsMDTR.js";/* empty css */import"./vue-router.yxIMtaxH.js";import"./axios.Da-QW0H8.js";import"./qs.BQjOrGHM.js";import"./side-channel.4q28KFJj.js";import"./es-errors.DTEWvbA_.js";import"./object-inspect.DvQZIv3_.js";import"./side-channel-list.Do0-XmF5.js";import"./side-channel-map.DNHQ53lO.js";import"./get-intrinsic.Bbe5x-9b.js";import"./es-object-atoms.CyiuHMUS.js";import"./math-intrinsics.pM-JTNwN.js";import"./gopd.BudZp56J.js";import"./es-define-property.F0aoeP8o.js";import"./has-symbols.BcO-SUVM.js";import"./get-proto.Cb_fpw-j.js";import"./dunder-proto.WEH3rgQR.js";import"./call-bind-apply-helpers.DJjIjCF_.js";import"./function-bind.DrnB-baK.js";import"./hasown.BXcyoiLU.js";import"./call-bound.22gFUC2Q.js";import"./side-channel-weakmap.DpSeWE6i.js";import"./pinia-plugin-persistedstate.COWkwNh5.js";const C={class:"enterprise-detail"},N={key:1},O={key:1},q={style:{"margin-top":"4px"}},J={key:1},R={style:{"white-space":"pre-wrap","line-height":"1.6"}},E={key:1},F={style:{"margin-top":"4px"}},H={key:1},K=m({__name:"EnterpriseDetail",props:{outBizNo:{}},setup(m){const K=m,$=A({status:"",created_time:"",updated_time:""});function G(e){if(!e)return"-";const a=_.find(a=>a.value===e);return a?a.label:e}function M(e){if(!e)return"-";const a=f.find(a=>a.value===e);return a?a.label:e}const P=B(()=>{if(!$.value.business_contracts)return[];try{const e="string"==typeof $.value.business_contracts?JSON.parse($.value.business_contracts):$.value.business_contracts;return Array.isArray(e)?e:[]}catch{return[]}}),S=[".jpg",".jpeg",".png",".gif",".webp",".bmp",".svg"];function T(e){const a=e.toLowerCase();return S.some(e=>a.endsWith(e)||a.includes(e+"?"))}function V(e){const a=e.split("/").pop()||e,t=a.indexOf("?");return t>0?a.substring(0,t):a}function W(e){return`/api/v1/common/file/download?url=${encodeURIComponent(e)}`}const X=A(!1);return v(()=>{!async function(){if(K.outBizNo){X.value=!0;try{const e=await c.detail(K.outBizNo);e.data&&($.value=e.data)}catch{}finally{X.value=!1}}}()}),(_,f)=>{const c=a,m=t,v=e,A=l,B=i,K=s,S=r,Q=u;return b((y(),j("div",C,[h(v,{column:3,border:""},{default:g(()=>[h(c,{label:"企业名称",span:2},{default:g(()=>[k(x($.value.name||"-"),1)]),_:1}),h(c,{label:"企业简称",span:1},{default:g(()=>[k(x($.value.short_name||"-"),1)]),_:1}),h(c,{label:"状态",span:1},{default:g(()=>[h(m,{type:w(o)[$.value.status]},{default:g(()=>[k(x(w(d)[$.value.status]||$.value.status),1)]),_:1},8,["type"])]),_:1}),h(c,{label:"企业ID",span:2},{default:g(()=>[k(x($.value.enterprise_id||"-"),1)]),_:1}),h(c,{label:"外部业务编号",span:3},{default:g(()=>[k(x($.value.out_biz_no||"-"),1)]),_:1}),h(c,{label:"身份类型",span:1},{default:g(()=>[k(x($.value.identity_type||"-"),1)]),_:1}),h(c,{label:"身份标识",span:2},{default:g(()=>[k(x($.value.identity||$.value.identity_open_id||"-"),1)]),_:1}),h(c,{label:"注册模式",span:1},{default:g(()=>[k(x(G($.value.register_mode)),1)]),_:1}),h(c,{label:"签约出资方式",span:2},{default:g(()=>[k(x(M($.value.sign_fund_way)),1)]),_:1})]),_:1}),h(A,{"content-position":"left"},{default:g(()=>[...f[0]||(f[0]=[k("签约信息",-1)])]),_:1}),h(v,{column:3,border:""},{default:g(()=>[h(c,{label:"账号ID",span:2},{default:g(()=>[k(x($.value.account_id||"-"),1)]),_:1}),h(c,{label:"签约链接",span:1},{default:g(()=>[$.value.sign_url?(y(),z(B,{key:0,type:"primary",href:$.value.sign_url,target:"_blank"},{default:g(()=>[...f[1]||(f[1]=[k(" 点击查看 ",-1)])]),_:1},8,["href"])):(y(),j("span",N,"-"))]),_:1}),h(c,{label:"邀请URL",span:3},{default:g(()=>[$.value.pc_invite_url?(y(),z(B,{key:0,type:"primary",href:$.value.pc_invite_url,target:"_blank"},{default:g(()=>[k(x($.value.pc_invite_url),1)]),_:1},8,["href"])):(y(),j("span",O,"-"))]),_:1}),h(c,{label:"邀请码创建时间",span:1},{default:g(()=>[k(x($.value.invite_time||"-"),1)]),_:1}),h(c,{label:"链接过期时间",span:2},{default:g(()=>[k(x($.value.expire_time||"-"),1)]),_:1})]),_:1}),$.value.base_info?(y(),j(I,{key:0},[h(A,{"content-position":"left"},{default:g(()=>[...f[2]||(f[2]=[k("企业基本信息",-1)])]),_:1}),h(v,{column:3,border:""},{default:g(()=>[h(c,{label:"所属行业",span:1},{default:g(()=>[k(x($.value.base_info.industry||"-"),1)]),_:1}),h(c,{label:"企业代码",span:2},{default:g(()=>[k(x($.value.base_info.enterprise_code||"-"),1)]),_:1}),h(c,{label:"企业全称",span:3},{default:g(()=>[k(x($.value.base_info.enterprise_name||"-"),1)]),_:1})]),_:1})],64)):L("",!0),$.value.profiles&&Object.keys($.value.profiles).length>0?(y(),j(I,{key:1},[h(A,{"content-position":"left"},{default:g(()=>[...f[3]||(f[3]=[k("扩展参数",-1)])]),_:1}),h(v,{column:3,border:""},{default:g(()=>[h(c,{label:"分组AppId",span:1},{default:g(()=>[k(x($.value.profiles.group_app_id||"-"),1)]),_:1}),h(c,{label:"接入渠道",span:1},{default:g(()=>[k(x($.value.profiles.access_channel||"-"),1)]),_:1}),h(c,{label:"授信申请人手机",span:1},{default:g(()=>[k(x($.value.profiles.credit_applicant_mobile||"-"),1)]),_:1}),h(c,{label:"PC邀请URL模式",span:1},{default:g(()=>[k(x($.value.profiles.pc_invite_url_mode||"-"),1)]),_:1}),h(c,{label:"是否创建IoT分组",span:2},{default:g(()=>[k(x($.value.profiles.create_iot_group?"是":"否"),1)]),_:1})]),_:1})],64)):L("",!0),h(A,{"content-position":"left"},{default:g(()=>[...f[4]||(f[4]=[k("入驻材料",-1)])]),_:1}),h(v,{column:3,border:""},{default:g(()=>[h(c,{label:"营业执照",span:3},{default:g(()=>[$.value.business_license?(y(),j(I,{key:0},[h(K,{src:$.value.business_license,"preview-src-list":[$.value.business_license],fit:"contain",style:{"max-width":"400px","max-height":"300px"}},null,8,["src","preview-src-list"]),D("div",q,[h(B,{type:"primary",href:W($.value.business_license),underline:!1},{default:g(()=>[h(S,null,{default:g(()=>[h(w(n))]),_:1}),f[5]||(f[5]=k(" 下载 ",-1))]),_:1},8,["href"])])],64)):(y(),j("span",J,"-"))]),_:1}),h(c,{label:"业务场景描述",span:3},{default:g(()=>[D("div",R,x($.value.business_scenario||"-"),1)]),_:1}),h(c,{label:"业务上下游合同",span:3},{default:g(()=>[P.value.length>0?(y(!0),j(I,{key:0},U(P.value,(e,a)=>(y(),j("div",{key:a,style:{display:"flex","align-items":"center",gap:"12px","margin-bottom":"8px"}},[T(e)?(y(),z(K,{key:0,src:e,"preview-src-list":P.value,fit:"cover",style:{width:"80px",height:"60px","border-radius":"4px"}},null,8,["src","preview-src-list"])):(y(),z(S,{key:1,size:24,color:"#909399"},{default:g(()=>[h(w(p))]),_:1})),h(B,{type:"primary",href:e,target:"_blank"},{default:g(()=>[k(x(V(e)),1)]),_:2},1032,["href"]),h(B,{type:"primary",href:W(e),underline:!1},{default:g(()=>[h(S,null,{default:g(()=>[h(w(n))]),_:1})]),_:1},8,["href"])]))),128)):(y(),j("span",E,"-"))]),_:1}),h(c,{label:"法人手持身份证",span:3},{default:g(()=>[$.value.legal_rep_id_photo?(y(),j(I,{key:0},[h(K,{src:$.value.legal_rep_id_photo,"preview-src-list":[$.value.legal_rep_id_photo],fit:"contain",style:{"max-width":"400px","max-height":"300px"}},null,8,["src","preview-src-list"]),D("div",F,[h(B,{type:"primary",href:W($.value.legal_rep_id_photo),underline:!1},{default:g(()=>[h(S,null,{default:g(()=>[h(w(n))]),_:1}),f[6]||(f[6]=k(" 下载 ",-1))]),_:1},8,["href"])])],64)):(y(),j("span",H,"-"))]),_:1})]),_:1}),h(A,{"content-position":"left"},{default:g(()=>[...f[7]||(f[7]=[k("时间信息",-1)])]),_:1}),h(v,{column:3,border:""},{default:g(()=>[h(c,{label:"创建时间",span:1},{default:g(()=>[k(x($.value.created_time||"-"),1)]),_:1}),h(c,{label:"更新时间",span:2},{default:g(()=>[k(x($.value.updated_time||"-"),1)]),_:1})]),_:1})])),[[Q,X.value]])}}});export{K as default};
|