|
- import{h,a as b,f as P}from"./uploadAction.f75bbf28.js";import{d as D,y as Y,s as R,f as d,g as c,c as V,e,w as t,v as o,b as p,n as x,h as u}from"./index.18b48fb5.js";const T={class:"drivinglicenseInfo"},N={class:"flex"},E=["src"],q=p("div",{class:"el-upload__tip text-center"}," \u6B63\u9762\u7167\u7247 ",-1),z=["src"],B=p("div",{class:"el-upload__tip text-center"}," \u53CD\u9762\u7167\u7247 ",-1),M={class:"flex"},A=p("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),C={class:"flex"},I=p("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),O=u("\u226512\u5E74"),S=u(" <12\u5E74"),G=u("\u226520\u4E07\u516C\u91CC"),H=u(" <20\u4E07\u516C\u91CC"),J=u("\u662F"),K=u("\u5426"),Q=u("\u662F"),W=u("\u5426"),X=D({name:"drivinglicenseInfo"}),ee=Object.assign(X,{props:{formData:{type:Object,default:()=>{}}},emits:["updata:formData"],setup(F,{emit:k}){const j=F,_=Y.dictStore.uploadUrl,a=R({get(){return j.formData},set(y){k("updata:formData",y)}});return(y,i)=>{const L=d("el-input"),s=d("el-form-item"),n=d("el-col"),U=d("el-row"),f=d("Plus"),m=d("el-icon"),g=d("el-upload"),r=d("el-radio"),v=d("el-radio-group"),w=d("el-date-picker");return c(),V("div",T,[e(U,{gutter:30},{default:t(()=>[e(n,{span:12},{default:t(()=>[e(s,{label:"\u8F66\u724C\u53F7",prop:"carNo"},{default:t(()=>[e(L,{modelValue:o(a).carNo,"onUpdate:modelValue":i[0]||(i[0]=l=>o(a).carNo=l),placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u8F66\u8F86\u7C7B\u578B",prop:"vehicleType"},{default:t(()=>[e(L,{modelValue:o(a).vehicleType,"onUpdate:modelValue":i[1]||(i[1]=l=>o(a).vehicleType=l),placeholder:"\u8BF7\u8F93\u5165\u8F66\u8F86\u7C7B\u578B"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(U,{gutter:30},{default:t(()=>[e(n,{span:12},{default:t(()=>[p("div",N,[e(s,{label:"\u884C\u9A76\u8BC1\u7167\u7247",prop:"drivingLicensePhotoFront"},{default:t(()=>[e(g,{"file-list":o(a).drivingLicensePhotoFront,"onUpdate:file-list":i[2]||(i[2]=l=>o(a).drivingLicensePhotoFront=l),class:"avatar-uploader",action:o(_),"show-file-list":!1,"on-success":l=>o(h)(l,o(a).drivingLicensePhotoFront,!0),"on-error":o(b),"before-upload":l=>o(P)(l,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:t(()=>[q]),default:t(()=>[o(a).drivingLicensePhotoFront&&o(a).drivingLicensePhotoFront.length?(c(),V("img",{key:0,src:o(a).drivingLicensePhotoFront[0].url,width:"80",height:"80",class:"avatar"},null,8,E)):(c(),x(m,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(f)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1}),e(s,{prop:"drivingLicensePhotoReverse",class:"ml-40"},{default:t(()=>[e(g,{"file-list":o(a).drivingLicensePhotoReverse,"onUpdate:file-list":i[3]||(i[3]=l=>o(a).drivingLicensePhotoReverse=l),class:"avatar-uploader",action:o(_),"show-file-list":!1,"on-success":l=>o(h)(l,o(a).drivingLicensePhotoReverse,!0),"on-error":o(b),"before-upload":l=>o(P)(l,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:t(()=>[B]),default:t(()=>[o(a).drivingLicensePhotoReverse&&o(a).drivingLicensePhotoReverse.length?(c(),V("img",{key:0,src:o(a).drivingLicensePhotoReverse[0].url,width:"80",height:"80",class:"avatar"},null,8,z)):(c(),x(m,{key:1,class:"avatar-uploader-icon"},{default:t(()=>[e(f)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),e(n,{span:12},{default:t(()=>[p("div",M,[e(s,{label:"\u8F66\u8F86\u7167\u7247",prop:"carPhoto"},{default:t(()=>[e(g,{"file-list":o(a).carPhoto,"onUpdate:file-list":i[4]||(i[4]=l=>o(a).carPhoto=l),class:"picture-card",action:o(_),"list-type":"picture-card",limit:10,"on-success":l=>o(h)(l,o(a).carPhoto),"on-error":o(b),"before-upload":l=>o(P)(l,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:t(()=>[A]),default:t(()=>[e(m,{class:"avatar-uploader-icon"},{default:t(()=>[e(f)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),e(n,{span:24},{default:t(()=>[p("div",C,[e(s,{label:"\u8F66\u8F86\u4FDD\u517B\u8BB0\u5F55",prop:"maintenancePhoto",required:""},{default:t(()=>[e(g,{"file-list":o(a).maintenancePhoto,"onUpdate:file-list":i[5]||(i[5]=l=>o(a).maintenancePhoto=l),class:"picture-card",action:o(_),"list-type":"picture-card",limit:10,"on-success":l=>o(h)(l,o(a).maintenancePhoto),"on-error":o(b),"before-upload":l=>o(P)(l,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:t(()=>[I]),default:t(()=>[e(m,{class:"avatar-uploader-icon"},{default:t(()=>[e(f)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u8F66\u9F84",prop:"vehicleAge"},{default:t(()=>[e(v,{modelValue:o(a).vehicleAge,"onUpdate:modelValue":i[6]||(i[6]=l=>o(a).vehicleAge=l)},{default:t(()=>[e(r,{label:1},{default:t(()=>[O]),_:1}),e(r,{label:2},{default:t(()=>[S]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u7D2F\u8BA1\u884C\u9A76\u91CC\u7A0B",prop:"mileage",required:""},{default:t(()=>[e(v,{modelValue:o(a).mileage,"onUpdate:modelValue":i[7]||(i[7]=l=>o(a).mileage=l)},{default:t(()=>[e(r,{label:1},{default:t(()=>[G]),_:1}),e(r,{label:2},{default:t(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u8F66\u8F86\u4FDD\u517B\u662F\u5426\u5230\u671F",prop:"maintenanceExpired",required:""},{default:t(()=>[e(v,{modelValue:o(a).maintenanceExpired,"onUpdate:modelValue":i[8]||(i[8]=l=>o(a).maintenanceExpired=l)},{default:t(()=>[e(r,{label:!0},{default:t(()=>[J]),_:1}),e(r,{label:!1},{default:t(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u8F66\u8F86\u662F\u5426\u8FC7\u5BA1",prop:"auditPassed",required:""},{default:t(()=>[e(v,{modelValue:o(a).auditPassed,"onUpdate:modelValue":i[9]||(i[9]=l=>o(a).auditPassed=l)},{default:t(()=>[e(r,{label:!0},{default:t(()=>[Q]),_:1}),e(r,{label:!1},{default:t(()=>[W]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u8F66\u8F86\u4FDD\u517B\u65F6\u95F4",prop:"maintenanceTime"},{default:t(()=>[e(w,{modelValue:o(a).maintenanceTime,"onUpdate:modelValue":i[10]||(i[10]=l=>o(a).maintenanceTime=l),type:"date",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1})])}}});export{ee as default};
|