|
- import{c as S}from"./validate.167e08f8.js";import{d as V,r as F,A as N,f as r,g as i,c as s,e as t,w as e,h as o,t as u,b as h,F as b,s as w,p as m,q as g,x as P,N as Y}from"./index.551f5afa.js";const C={class:"driverlicenseInfo"},M={class:"flex"},j={key:0,class:"mt-8"},E={class:"image-slot"},I={key:1},R={key:0,class:"mt-8"},O={class:"image-slot"},q=V({name:"driverlicenseInfo"}),H=Object.assign(q,{props:{detailData:{type:Object,default:()=>{}}},setup(a){const f=a,v=F({driver:!1});function T(){v.value.driver=S(f.detailData.driverLicenseStartTime,f.detailData.driverLicenseValidity)}return N(()=>f.detailData,p=>{p&&T()},{immediate:!0,deep:!0}),(p,A)=>{const l=r("el-form-item"),n=r("el-col"),L=r("el-row"),x=r("Picture"),y=r("el-icon"),k=r("el-image"),B=r("el-badge");return i(),s("div",C,[t(L,{gutter:30},{default:e(()=>[t(n,{span:12},{default:e(()=>[t(l,{label:"\u51C6\u9A7E\u8F66\u578B"},{default:e(()=>[o(u(a.detailData.driverLicenseType||"-"),1)]),_:1})]),_:1})]),_:1}),t(L,{gutter:30},{default:e(()=>[t(n,{span:8},{default:e(()=>[h("div",M,[t(l,{label:"\u9A7E\u9A76\u8BC1\u7167\u7247"},{default:e(()=>{var c;return[(c=a.detailData)!=null&&c.driverLicensePhotoFront?(i(),s("div",j,[(i(!0),s(b,null,w(a.detailData.driverLicensePhotoFront,(_,d)=>(i(),m(k,{key:d,class:"imgBox mr-8",src:_.url,"initial-index":d,"preview-src-list":a.detailData.driverLicensePhotoFront.map(D=>D.url),fit:"cover"},{error:e(()=>[h("div",E,[t(y,null,{default:e(()=>[t(x)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(i(),s("span",I,"-"))]}),_:1}),t(l,{class:"ml-40"},{default:e(()=>{var c;return[(c=a.detailData)!=null&&c.driverLicensePhotoReverse?(i(),s("div",R,[(i(!0),s(b,null,w(a.detailData.driverLicensePhotoReverse,(_,d)=>(i(),m(k,{key:d,class:"imgBox mr-8",src:_.url,"initial-index":d,"preview-src-list":a.detailData.driverLicensePhotoReverse.map(D=>D.url),fit:"cover"},{error:e(()=>[h("div",O,[t(y,null,{default:e(()=>[t(x)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):g("",!0)]}),_:1})])]),_:1}),v.value.driver?(i(),m(n,{key:0,span:8},{default:e(()=>[t(B,{value:"\u5DF2\u8FC7\u6709\u6548\u671F",class:"item",style:{"background-color":"#f2f4f7",padding:"10px"}},{default:e(()=>[t(l,{label:"\u9A7E\u9A76\u8BC1\u6709\u6548\u5F00\u59CB\u65E5\u671F"},{default:e(()=>[o(u(a.detailData.driverLicenseStartTime?P(Y)(a.detailData.driverLicenseStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})]),_:1})):g("",!0),v.value.driver?g("",!0):(i(),m(n,{key:1,span:8},{default:e(()=>[t(l,{label:"\u9A7E\u9A76\u8BC1\u6709\u6548\u5F00\u59CB\u65E5\u671F"},{default:e(()=>[o(u(a.detailData.driverLicenseStartTime?P(Y)(a.detailData.driverLicenseStartTime).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1})),t(n,{span:8},{default:e(()=>[t(l,{label:"\u6709\u6548\u671F\u9650"},{default:e(()=>[o(u({0:"\u957F\u671F",6:"6\u5E74",10:"10\u5E74"}[a.detailData.driverLicenseValidity]||"-"),1)]),_:1})]),_:1})]),_:1})])}}});export{H as default};
|