|
- import{h as m,a as g,f as v}from"./uploadAction.d6f8ccf4.js";import{d as j,y as x,s as D,f as i,g as u,c as h,e as o,w as l,v as e,b as d,n as L}from"./index.e242ec53.js";const Y={class:"drivinglicenseInfo"},R={class:"flex"},N=["src"],z=d("div",{class:"el-upload__tip text-center"}," \u6B63\u9762\u7167\u7247 ",-1),B=["src"],M=d("div",{class:"el-upload__tip text-center"}," \u53CD\u9762\u7167\u7247 ",-1),C={class:"flex"},T=d("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),E={class:"flex"},I=d("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),O=j({name:"drivinglicenseInfo"}),G=Object.assign(O,{props:{formData:{type:Object,default:()=>{}}},emits:["updata:formData"],setup(A,{emit:F}){const U=A,p=x.dictStore.uploadUrl,a=D({get(){return U.formData},set(P){F("updata:formData",P)}});return(P,s)=>{const b=i("el-input"),n=i("el-form-item"),r=i("el-col"),y=i("el-row"),c=i("Plus"),f=i("el-icon"),_=i("el-upload"),k=i("el-date-picker"),V=i("el-option"),w=i("el-select");return u(),h("div",Y,[o(y,{gutter:30},{default:l(()=>[o(r,{span:12},{default:l(()=>[o(n,{label:"\u8F66\u724C\u53F7",prop:"carNo"},{default:l(()=>[o(b,{modelValue:e(a).carNo,"onUpdate:modelValue":s[0]||(s[0]=t=>e(a).carNo=t),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),o(r,{span:12},{default:l(()=>[o(n,{label:"\u8F66\u8F86\u7C7B\u578B",prop:"vehicleType"},{default:l(()=>[o(b,{modelValue:e(a).vehicleType,"onUpdate:modelValue":s[1]||(s[1]=t=>e(a).vehicleType=t),placeholder:"\u8BF7\u8F93\u5165\u8F66\u8F86\u7C7B\u578B"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(y,{gutter:30},{default:l(()=>[o(r,{span:12},{default:l(()=>[d("div",R,[o(n,{label:"\u884C\u9A76\u8BC1\u7167\u7247",prop:"drivingLicensePhotoFront"},{default:l(()=>[o(_,{"file-list":e(a).drivingLicensePhotoFront,"onUpdate:file-list":s[2]||(s[2]=t=>e(a).drivingLicensePhotoFront=t),class:"avatar-uploader",action:e(p),"show-file-list":!1,"on-success":t=>e(m)(t,e(a).drivingLicensePhotoFront,!0),"on-error":e(g),"before-upload":t=>e(v)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[z]),default:l(()=>[e(a).drivingLicensePhotoFront&&e(a).drivingLicensePhotoFront.length?(u(),h("img",{key:0,src:e(a).drivingLicensePhotoFront[0].url,width:"80",height:"80",class:"avatar"},null,8,N)):(u(),L(f,{key:1,class:"avatar-uploader-icon"},{default:l(()=>[o(c)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1}),o(n,{prop:"drivingLicensePhotoReverse",class:"ml-40"},{default:l(()=>[o(_,{"file-list":e(a).drivingLicensePhotoReverse,"onUpdate:file-list":s[3]||(s[3]=t=>e(a).drivingLicensePhotoReverse=t),class:"avatar-uploader",action:e(p),"show-file-list":!1,"on-success":t=>e(m)(t,e(a).drivingLicensePhotoReverse,!0),"on-error":e(g),"before-upload":t=>e(v)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[M]),default:l(()=>[e(a).drivingLicensePhotoReverse&&e(a).drivingLicensePhotoReverse.length?(u(),h("img",{key:0,src:e(a).drivingLicensePhotoReverse[0].url,width:"80",height:"80",class:"avatar"},null,8,B)):(u(),L(f,{key:1,class:"avatar-uploader-icon"},{default:l(()=>[o(c)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),o(r,{span:12},{default:l(()=>[d("div",C,[o(n,{label:"\u8F66\u8F86\u7167\u7247",prop:"carPhoto"},{default:l(()=>[o(_,{"file-list":e(a).carPhoto,"onUpdate:file-list":s[4]||(s[4]=t=>e(a).carPhoto=t),class:"picture-card",action:e(p),"list-type":"picture-card",limit:10,"on-success":t=>e(m)(t,e(a).carPhoto),"on-error":e(g),"before-upload":t=>e(v)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[T]),default:l(()=>[o(f,{class:"avatar-uploader-icon"},{default:l(()=>[o(c)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),o(r,{span:8},{default:l(()=>[d("div",E,[o(n,{label:"\u5E74\u5BA1\u4FE1\u606F",prop:"annualAuditPhoto"},{default:l(()=>[o(_,{"file-list":e(a).annualAuditPhoto,"onUpdate:file-list":s[5]||(s[5]=t=>e(a).annualAuditPhoto=t),class:"picture-card",action:e(p),"list-type":"picture-card",limit:10,"on-success":t=>e(m)(t,e(a).annualAuditPhoto),"on-error":e(g),"before-upload":t=>e(v)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[I]),default:l(()=>[o(f,{class:"avatar-uploader-icon"},{default:l(()=>[o(c)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u5E74\u5BA1\u901A\u8FC7\u65E5\u671F",prop:"annualAuditPass"},{default:l(()=>[o(k,{modelValue:e(a).annualAuditPass,"onUpdate:modelValue":s[6]||(s[6]=t=>e(a).annualAuditPass=t),type:"date",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u6709\u6548\u671F\u9650",prop:"annualAuditValidity"},{default:l(()=>[o(w,{modelValue:e(a).annualAuditValidity,"onUpdate:modelValue":s[7]||(s[7]=t=>e(a).annualAuditValidity=t),placeholder:"\u8BF7\u9009\u62E9\u6709\u6548\u671F\u9650",class:"w-full"},{default:l(()=>[o(V,{label:"1\u5E74",value:1}),o(V,{label:"2\u5E74",value:2})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{G as default};
|