Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
3.8KB

  1. import{c as S}from"./validate.167e08f8.js";import{d as T,r as V,o as C,A as F,f as n,g as s,c as r,e,w as a,h as i,t as c,x as h,N as v,b as g,F as P,s as p,p as f,q as x}from"./index.551f5afa.js";const R={class:"basicInfo"},j={class:"flex"},E={key:0,class:"mt-8"},I={class:"image-slot"},O={key:1},q={key:0,class:"mt-8"},A={class:"image-slot"},L=T({name:"basicInfo"}),J=Object.assign(L,{props:{detailData:{type:Object,default:()=>{}}},setup(t){const m=t,D=V({idcard:!1});C(()=>{y()}),F(()=>m.detailData,k=>{k&&y()},{immediate:!0,deep:!0});function y(){D.value.idcard=S(m.detailData.cardStartTime,m.detailData.cardValidity)}return(k,z)=>{const l=n("el-form-item"),d=n("el-col"),Y=n("Picture"),w=n("el-icon"),N=n("el-image"),M=n("el-badge"),B=n("el-row");return s(),r("div",R,[e(B,{gutter:30},{default:a(()=>[e(d,{span:12},{default:a(()=>[e(l,{label:"\u59D3\u540D"},{default:a(()=>[i(c(t.detailData.realName),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u624B\u673A\u53F7"},{default:a(()=>[i(c(t.detailData.phone),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u6240\u5C5E\u4F01\u4E1A"},{default:a(()=>[i(c(t.detailData.companyName),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u6CE8\u518C\u5730\u533A"},{default:a(()=>[i(c(t.detailData.driveRegionName||"-"),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u8EAB\u4EFD\u8BC1\u53F7"},{default:a(()=>[i(c(t.detailData.idCard||"-"),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u6027\u522B"},{default:a(()=>[i(c({1:"\u7537",2:"\u5973"}[t.detailData.gender]||"-"),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u51FA\u751F\u65E5\u671F"},{default:a(()=>[i(c(t.detailData.birthDate?h(v)(t.detailData.birthDate).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(l,{label:"\u5E74\u9F84"},{default:a(()=>[i(c(t.detailData.age||"-"),1)]),_:1})]),_:1}),e(d,{span:24},{default:a(()=>[e(l,{label:"\u73B0\u4F4F\u5730\u5740"},{default:a(()=>[i(c(t.detailData.address||"-"),1)]),_:1})]),_:1}),e(d,{span:24},{default:a(()=>[g("div",j,[e(l,{label:"\u8EAB\u4EFD\u8BC1\u7167\u7247"},{default:a(()=>{var o;return[(o=t.detailData)!=null&&o.cardPhotoFront?(s(),r("div",E,[(s(!0),r(P,null,p(t.detailData.cardPhotoFront,(_,u)=>(s(),f(N,{key:u,class:"imgBox mr-8",src:_.url,"initial-index":u,"preview-src-list":t.detailData.cardPhotoFront.map(b=>b.url),fit:"cover"},{error:a(()=>[g("div",I,[e(w,null,{default:a(()=>[e(Y)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(s(),r("span",O,"-"))]}),_:1}),e(l,{class:"ml-40"},{default:a(()=>{var o;return[(o=t.detailData)!=null&&o.cardPhotoReverse?(s(),r("div",q,[(s(!0),r(P,null,p(t.detailData.cardPhotoReverse,(_,u)=>(s(),f(N,{key:u,class:"imgBox mr-8",src:_.url,"initial-index":u,"preview-src-list":t.detailData.cardPhotoReverse.map(b=>b.url),fit:"cover"},{error:a(()=>[g("div",A,[e(w,null,{default:a(()=>[e(Y)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):x("",!0)]}),_:1})])]),_:1}),D.value.idcard?(s(),f(d,{key:0,span:8},{default:a(()=>[e(M,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:a(()=>[e(l,{label:"\u8EAB\u4EFD\u8BC1\u6709\u6548\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[i(c(t.detailData.cardStartTime?h(v)(t.detailData.cardStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):x("",!0),D.value.idcard?x("",!0):(s(),f(d,{key:1,span:8},{default:a(()=>[e(l,{label:"\u8EAB\u4EFD\u8BC1\u6709\u6548\u5F00\u59CB\u65E5\u671F"},{default:a(()=>[i(c(t.detailData.cardStartTime?h(v)(t.detailData.cardStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),e(d,{span:8},{default:a(()=>[e(l,{label:"\u6709\u6548\u671F\u9650"},{default:a(()=>[i(c({0:"\u957F\u671F",10:"10\u5E74",20:"20\u5E74"}[t.detailData.cardValidity]||"-"),1)]),_:1})]),_:1})]),_:1})])}}});export{J as default};