You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 line
5.3KB

  1. var j=Object.defineProperty,P=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var z=(t,l,a)=>l in t?j(t,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[l]=a,I=(t,l)=>{for(var a in l||(l={}))q.call(l,a)&&z(t,a,l[a]);if(N)for(var a of N(l))A.call(l,a)&&z(t,a,l[a]);return t},L=(t,l)=>P(t,$(l));var y=(t,l,a)=>new Promise((i,h)=>{var p=s=>{try{o(a.next(s))}catch(u){h(u)}},v=s=>{try{o(a.throw(s))}catch(u){h(u)}},o=s=>s.done?i(s.value):Promise.resolve(s.value).then(p,v);o((a=a.apply(t,l)).next())});import{b as E}from"./driverFile.0e884ef0.js";import{d as w}from"./uploadAction.69ee4a64.js";import{_ as M,d as G,r as H,A as J,f as m,g as n,p as d,w as c,e as r,b as e,t as g,c as b,s as O,h as B,F as C,L as K,M as Q}from"./index.551f5afa.js";const _=t=>(K("data-v-f46652f0"),t=t(),Q(),t),R={class:"flex"},W={class:"mr-40"},X={class:"photo"},Y={class:"flex-1"},Z=_(()=>e("div",{style:{background:"#f4f9ff"},class:"p-8 text-303133 text-16"}," \u8EAB\u4EFD\u4FE1\u606F ",-1)),ee=_(()=>e("span",{class:"text-818488"},"\u59D3\u540D\uFF1A",-1)),se=_(()=>e("span",{class:"text-818488"},"\u8EAB\u4EFD\u8BC1\u53F7\uFF1A",-1)),ae=_(()=>e("span",{class:"text-818488"},"\u624B\u673A\u53F7\uFF1A",-1)),te={class:"flex"},le=_(()=>e("span",{class:"text-818488 flex-shrink-0"},"\u9A7E\u9A76\u8BC1\uFF1A",-1)),oe={class:"image"},ie=_(()=>e("div",{style:{background:"#f4f9ff"},class:"p-8 text-303133 text-16"}," \u5173\u8054\u8F66\u8F86\u4FE1\u606F ",-1)),ne={class:"car-info"},ce=_(()=>e("span",{class:"text-818488"},"\u8F66\u724C\u53F7\u7801\uFF1A",-1)),re=_(()=>e("span",{class:"text-818488"},"\u8F66\u8F86\u7C7B\u578B\uFF1A",-1)),de={class:"flex"},_e=_(()=>e("span",{class:"text-818488 flex-shrink-0"},"\u884C\u9A76\u8BC1\uFF1A",-1)),pe={class:"image"},ve={class:"flex"},ue=_(()=>e("span",{class:"text-818488 flex-shrink-0"},"\u8F66\u8F86\u4FDD\u9669\uFF1A",-1)),fe={key:0},me=B(" \u5173\u95ED "),he=G({name:"driverDialog"}),ge=Object.assign(he,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(t,{emit:l}){const a=t,i=H({});return J(()=>a.visible,h=>y(this,null,function*(){var p,v;if(h&&((p=a.data)==null?void 0:p.userId)){const o=yield E(a.data.userId);i.value=L(I({},o.data),{avatarFileUrl:o.data.avatarFileId?(yield w(o.data.avatarFileId)).url:"",licenseOfDriver:o.data.licenseOfDriver?(yield w(o.data.licenseOfDriver)).url:"",carInfoList:(v=o.data.carInfoList)!=null&&v.length?yield Promise.all(o.data.carInfoList.map(s=>y(this,null,function*(){var u;return L(I({},s),{insuranceFileIdList:(u=s.insuranceFileIdList)!=null&&u.length?yield Promise.all(s.insuranceFileIdList.map(k=>y(this,null,function*(){return(yield w(k)).url}))):[],drivingLicense:s.drivingLicense?(yield w(s.drivingLicense)).url:""})}))):[]})}})),(h,p)=>{const v=m("el-image"),o=m("NoData"),s=m("el-col"),u=m("el-row"),k=m("el-tag"),U=m("el-divider"),S=m("el-button"),T=m("el-dialog");return n(),d(T,{"model-value":t.visible,title:"\u9A7E\u9A76\u5458\u8BE6\u60C5",width:"840px","destroy-on-close":"",onClose:p[1]||(p[1]=x=>l("close"))},{footer:c(()=>[r(S,{type:"info",size:"small",onClick:p[0]||(p[0]=x=>l("close"))},{default:c(()=>[me]),_:1})]),default:c(()=>{var x;return[e("div",R,[e("div",W,[e("div",X,[i.value.avatarFileUrl?(n(),d(v,{key:0,class:"photo",src:i.value.avatarFileUrl,"zoom-rate":1.2,"preview-src-list":[i.value.avatarFileUrl],fit:"cover"},null,8,["src","zoom-rate","preview-src-list"])):(n(),d(o,{key:1}))])]),e("div",Y,[Z,r(u,{gutter:30,class:"px-8 py-10"},{default:c(()=>[r(s,{span:12,class:"mb-10"},{default:c(()=>[ee,e("span",null,g(i.value.realName),1)]),_:1}),r(s,{span:12,class:"mb-10"},{default:c(()=>[se,e("span",null,g(i.value.idCard),1)]),_:1}),r(s,{span:12,class:"mb-10"},{default:c(()=>[ae,e("span",null,g(i.value.phoneNo),1)]),_:1}),r(s,{span:12,class:"mb-10"},{default:c(()=>[e("div",te,[le,e("div",oe,[i.value.licenseOfDriver?(n(),d(v,{key:0,src:i.value.licenseOfDriver,"zoom-rate":1.2,"preview-src-list":[i.value.licenseOfDriver],fit:"cover"},null,8,["src","zoom-rate","preview-src-list"])):(n(),d(o,{key:1}))])])]),_:1})]),_:1}),ie,e("div",ne,[(x=i.value.carInfoList)!=null&&x.length?(n(!0),b(C,{key:0},O(i.value.carInfoList,(f,V)=>(n(),d(u,{key:V,gutter:30,class:"px-8 py-10"},{default:c(()=>[r(s,{span:12,class:"mb-10"},{default:c(()=>[ce,e("span",null,g(f.carNo),1)]),_:2},1024),r(s,{span:12,class:"mb-10"},{default:c(()=>[re,r(k,{type:f.carTypeName?"":"info"},{default:c(()=>[B(g(f.carTypeName||"\u6682\u65E0\u6570\u636E"),1)]),_:2},1032,["type"])]),_:2},1024),r(s,{span:12,class:"mb-10"},{default:c(()=>[e("div",de,[_e,e("div",pe,[f.drivingLicense?(n(),d(v,{key:0,class:"image",src:f.drivingLicense,"zoom-rate":1.2,"preview-src-list":[f.drivingLicense],fit:"cover"},null,8,["src","zoom-rate","preview-src-list"])):(n(),d(o,{key:1}))])])]),_:2},1024),r(s,{span:12},{default:c(()=>{var F;return[e("div",ve,[ue,(F=f.insuranceFileIdList)!=null&&F.length?(n(),b("div",fe,[(n(!0),b(C,null,O(f.insuranceFileIdList,D=>(n(),d(v,{key:D,class:"image",src:D,"zoom-rate":1.2,"preview-src-list":f.insuranceFileIdList,fit:"cover"},null,8,["src","zoom-rate","preview-src-list"]))),128))])):(n(),d(o,{key:1,class:"image"}))])]}),_:2},1024),r(U)]),_:2},1024))),128)):(n(),d(o,{key:1}))])])])]}),_:1},8,["model-value"])}}}),Ie=M(ge,[["__scopeId","data-v-f46652f0"]]);export{Ie as default};