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.

basicInfo.c308e7bf.js 6.7KB

3 months ago
1
  1. var A=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var N=(p,s,r)=>s in p?A(p,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[s]=r,k=(p,s)=>{for(var r in s||(s={}))J.call(s,r)&&N(p,r,s[r]);if(F)for(var r of F(s))K.call(s,r)&&N(p,r,s[r]);return p},M=(p,s)=>G(p,H(s));var y=(p,s,r)=>new Promise((V,g)=>{var b=l=>{try{c(r.next(l))}catch(m){g(m)}},v=l=>{try{c(r.throw(l))}catch(m){g(m)}},c=l=>l.done?V(l.value):Promise.resolve(l.value).then(b,v);c((r=r.apply(p,s)).next())});import{l as Q}from"./companyManage.3f0f77c2.js";import{d as W,z as X,r as x,v as Z,o as $,R as ee,f as n,g as _,c as P,e,w as o,x as a,b as D,p as S,h as B}from"./index.551f5afa.js";import{u as ae}from"./useTreeSelectData.cd9b00f2.js";import{h as T,a as j,f as z}from"./uploadAction.69ee4a64.js";const le={class:"basicInfo"},oe=B("\u7537"),te=B("\u5973"),de={class:"flex"},re=["src"],se=D("div",{class:"el-upload__tip"}," \u6B63\u9762\u7167\u7247 ",-1),ne=["src"],pe=D("div",{class:"el-upload__tip text-center"}," \u53CD\u9762\u7167\u7247 ",-1),ue=W({name:"basicInfo"}),Ve=Object.assign(ue,{props:{formData:{type:Object,default:()=>{}}},emits:["updata:formData"],setup(p,{emit:s}){const r=p,V=X.dictStore.uploadUrl,g=x([]),b=x([]),{cascaderProps:v}=ae(),c=m=>y(this,null,function*(){g.value=(yield Q(M(k({},m),{pageNumber:1,pageSize:2e3}))).data.records}),l=Z({get(){return r.formData},set(m){s("updata:formData",m)}});return $(()=>y(this,null,function*(){c(),b.value=(yield ee()).data})),(m,d)=>{const f=n("el-input"),u=n("el-form-item"),i=n("el-col"),O=n("el-cascader"),Y=n("el-radio"),E=n("el-radio-group"),U=n("el-date-picker"),I=n("el-input-number"),w=n("Plus"),R=n("el-icon"),C=n("el-upload"),h=n("el-option"),L=n("el-select"),q=n("el-row");return _(),P("div",le,[e(q,{gutter:30},{default:o(()=>[e(i,{span:12},{default:o(()=>[e(u,{label:"\u59D3\u540D",prop:"realName"},{default:o(()=>[e(f,{modelValue:a(l).realName,"onUpdate:modelValue":d[0]||(d[0]=t=>a(l).realName=t),placeholder:"\u8BF7\u8F93\u5165",disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u624B\u673A\u53F7",prop:"phone"},{default:o(()=>[e(f,{modelValue:a(l).phone,"onUpdate:modelValue":d[1]||(d[1]=t=>a(l).phone=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u6240\u5C5E\u4F01\u4E1A",prop:"companyName"},{default:o(()=>[e(f,{modelValue:a(l).companyName,"onUpdate:modelValue":d[2]||(d[2]=t=>a(l).companyName=t),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u6CE8\u518C\u5730\u533A",prop:"driveRegionCode"},{default:o(()=>[e(O,{modelValue:a(l).driveRegionCode,"onUpdate:modelValue":d[3]||(d[3]=t=>a(l).driveRegionCode=t),props:a(v),options:b.value,class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"idCard"},{default:o(()=>[e(f,{modelValue:a(l).idCard,"onUpdate:modelValue":d[4]||(d[4]=t=>a(l).idCard=t),maxlength:"18",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u6027\u522B",prop:"gender"},{default:o(()=>[e(E,{modelValue:a(l).gender,"onUpdate:modelValue":d[5]||(d[5]=t=>a(l).gender=t)},{default:o(()=>[e(Y,{label:1},{default:o(()=>[oe]),_:1}),e(Y,{label:2},{default:o(()=>[te]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u51FA\u751F\u65E5\u671F",prop:"birthDate"},{default:o(()=>[e(U,{modelValue:a(l).birthDate,"onUpdate:modelValue":d[6]||(d[6]=t=>a(l).birthDate=t),type:"date",placeholder:"\u8BF7\u9009\u62E9\u51FA\u751F\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:o(()=>[e(u,{label:"\u5E74\u9F84",prop:"age"},{default:o(()=>[e(I,{modelValue:a(l).age,"onUpdate:modelValue":d[7]||(d[7]=t=>a(l).age=t),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:o(()=>[e(u,{label:"\u73B0\u4F4F\u5730\u5740",prop:"address"},{default:o(()=>[e(f,{modelValue:a(l).address,"onUpdate:modelValue":d[8]||(d[8]=t=>a(l).address=t),placeholder:"\u8BF7\u8F93\u5165\u73B0\u4F4F\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:8},{default:o(()=>[D("div",de,[e(u,{label:"\u8EAB\u4EFD\u8BC1\u7167\u7247",prop:"cardPhotoFront"},{default:o(()=>[e(C,{"file-list":a(l).cardPhotoFront,"onUpdate:file-list":d[9]||(d[9]=t=>a(l).cardPhotoFront=t),class:"avatar-uploader",action:a(V),"show-file-list":!1,"on-success":t=>a(T)(t,a(l).cardPhotoFront,!0),"on-error":a(j),"before-upload":t=>a(z)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:o(()=>[se]),default:o(()=>[a(l).cardPhotoFront&&a(l).cardPhotoFront.length?(_(),P("img",{key:0,src:a(l).cardPhotoFront[0].url,width:"80",height:"80",class:"avatar"},null,8,re)):(_(),S(R,{key:1,class:"avatar-uploader-icon"},{default:o(()=>[e(w)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1}),e(u,{prop:"cardPhotoReverse",class:"ml-40"},{default:o(()=>[e(C,{"file-list":a(l).cardPhotoReverse,"onUpdate:file-list":d[10]||(d[10]=t=>a(l).cardPhotoReverse=t),class:"avatar-uploader",action:a(V),"show-file-list":!1,"on-success":t=>a(T)(t,a(l).cardPhotoReverse,!0),"on-error":a(j),"before-upload":t=>a(z)(t,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:o(()=>[pe]),default:o(()=>[a(l).cardPhotoReverse&&a(l).cardPhotoReverse.length?(_(),P("img",{key:0,src:a(l).cardPhotoReverse[0].url,width:"80",height:"80",class:"avatar"},null,8,ne)):(_(),S(R,{key:1,class:"avatar-uploader-icon"},{default:o(()=>[e(w)]),_:1}))]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})])]),_:1}),e(i,{span:8},{default:o(()=>[e(u,{label:"\u8EAB\u4EFD\u8BC1\u6709\u6548\u5F00\u59CB\u65E5\u671F",prop:"cardStartTime"},{default:o(()=>[e(U,{modelValue:a(l).cardStartTime,"onUpdate:modelValue":d[11]||(d[11]=t=>a(l).cardStartTime=t),type:"date",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:8},{default:o(()=>[e(u,{label:"\u6709\u6548\u671F\u9650",prop:"cardValidity"},{default:o(()=>[e(L,{modelValue:a(l).cardValidity,"onUpdate:modelValue":d[12]||(d[12]=t=>a(l).cardValidity=t),placeholder:"\u8BF7\u9009\u62E9\u6709\u6548\u671F\u9650",class:"w-full"},{default:o(()=>[e(h,{label:"10\u5E74",value:10}),e(h,{label:"20\u5E74",value:20}),e(h,{label:"\u957F\u671F",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{Ve as default};