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.

driverlicenseInfo.49eeafce.js 3.8KB

5 miesięcy temu
1
  1. import{h as y,a as b,f as P}from"./uploadAction.25c9789a.js";import{d as R,y as T,s as U,f as s,g as i,c as p,e as o,w as l,v as e,F as x,q as B,b as u,n as V}from"./index.32194486.js";const C={class:"driverlicenseInfo"},S={class:"flex"},j=["src"],M=u("div",{class:"el-upload__tip text-center"}," \u6B63\u9762\u7167\u7247 ",-1),O=["src"],z=u("div",{class:"el-upload__tip text-center"}," \u53CD\u9762\u7167\u7247 ",-1),A=R({name:"driverlicenseInfo"}),N=Object.assign(A,{props:{formData:{type:Object,default:()=>{}}},emits:["updata:formData"],setup(F,{emit:k}){const w=F,D=["C1","C2","C3","A1","A2","B1","B2"],f=T.dictStore.uploadUrl,r=U({get(){return w.formData},set(_){k("updata:formData",_)}});return(_,a)=>{const d=s("el-option"),m=s("el-select"),n=s("el-form-item"),c=s("el-col"),v=s("el-row"),h=s("Plus"),g=s("el-icon"),L=s("el-upload"),Y=s("el-date-picker");return i(),p("div",C,[o(v,{gutter:30},{default:l(()=>[o(c,{span:12},{default:l(()=>[o(n,{label:"\u51C6\u9A7E\u8F66\u578B",prop:"driverLicenseType"},{default:l(()=>[o(m,{modelValue:e(r).driverLicenseType,"onUpdate:modelValue":a[0]||(a[0]=t=>e(r).driverLicenseType=t),placeholder:"\u8BF7\u9009\u62E9\u51C6\u9A7E\u8F66\u578B",class:"w-full"},{default:l(()=>[(i(),p(x,null,B(D,t=>o(d,{key:t,label:t,value:t},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),o(v,{gutter:30},{default:l(()=>[o(c,{span:8},{default:l(()=>[u("div",S,[o(n,{label:"\u9A7E\u9A76\u8BC1\u7167\u7247",prop:"driverLicensePhotoFront"},{default:l(()=>[o(L,{"file-list":e(r).driverLicensePhotoFront,"onUpdate:file-list":a[1]||(a[1]=t=>e(r).driverLicensePhotoFront=t),class:"avatar-uploader",action:e(f),"show-file-list":!1,"on-success":t=>e(y)(t,e(r).driverLicensePhotoFront,!0),"on-error":e(b),"before-upload":t=>e(P)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[M]),default:l(()=>[e(r).driverLicensePhotoFront&&e(r).driverLicensePhotoFront.length?(i(),p("img",{key:0,src:e(r).driverLicensePhotoFront[0].url,width:"80",height:"80",class:"avatar"},null,8,j)):(i(),V(g,{key:1,class:"avatar-uploader-icon"},{default:l(()=>[o(h)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1}),o(n,{prop:"driverLicensePhotoReverse",class:"ml-40"},{default:l(()=>[o(L,{"file-list":e(r).driverLicensePhotoReverse,"onUpdate:file-list":a[2]||(a[2]=t=>e(r).driverLicensePhotoReverse=t),class:"avatar-uploader",action:e(f),"show-file-list":!1,"on-success":t=>e(y)(t,e(r).driverLicensePhotoReverse,!0),"on-error":e(b),"before-upload":t=>e(P)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[z]),default:l(()=>[e(r).driverLicensePhotoReverse&&e(r).driverLicensePhotoReverse.length?(i(),p("img",{key:0,src:e(r).driverLicensePhotoReverse[0].url,width:"80",height:"80",class:"avatar"},null,8,O)):(i(),V(g,{key:1,class:"avatar-uploader-icon"},{default:l(()=>[o(h)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),o(c,{span:8},{default:l(()=>[o(n,{label:"\u9A7E\u9A76\u8BC1\u6709\u6548\u5F00\u59CB\u65E5\u671F",prop:"driverLicenseStartTime"},{default:l(()=>[o(Y,{modelValue:e(r).driverLicenseStartTime,"onUpdate:modelValue":a[3]||(a[3]=t=>e(r).driverLicenseStartTime=t),type:"date",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1}),o(c,{span:8},{default:l(()=>[o(n,{label:"\u6709\u6548\u671F\u9650",prop:"driverLicenseValidity"},{default:l(()=>[o(m,{modelValue:e(r).driverLicenseValidity,"onUpdate:modelValue":a[4]||(a[4]=t=>e(r).driverLicenseValidity=t),placeholder:"\u8BF7\u9009\u62E9\u6709\u6548\u671F\u9650",class:"w-full"},{default:l(()=>[o(d,{label:"6\u5E74",value:6}),o(d,{label:"10\u5E74",value:10}),o(d,{label:"\u957F\u671F",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{N as default};