Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 строки
11KB

  1. var N=Object.defineProperty,S=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var x=(d,o,a)=>o in d?N(d,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[o]=a,R=(d,o)=>{for(var a in o||(o={}))B.call(o,a)&&x(d,a,o[a]);if(F)for(var a of F(o))K.call(o,a)&&x(d,a,o[a]);return d},D=(d,o)=>S(d,U(o));var _=(d,o,a)=>new Promise((f,c)=>{var b=e=>{try{m(a.next(e))}catch(h){c(h)}},v=e=>{try{m(a.throw(e))}catch(h){c(h)}},m=e=>e.done?f(e.value):Promise.resolve(e.value).then(b,v);m((a=a.apply(d,o)).next())});import{_ as j,d as z,z as E,u as M,k as O,r as y,o as X,f as L,P as G,g as V,c as H,b as C,D as J,p as Q,w as l,e as n,x as W,h as $,i as Y}from"./index.551f5afa.js";import Z from"./basicInfo.c308e7bf.js";import ee from"./paymentInfo.e4d7a203.js";import re from"./driverlicenseInfo.e07e4dfa.js";import te from"./drivinglicenseInfo.bcdaecd7.js";import ie from"./policyInfo.b9dd9cdc.js";import ae from"./equipmentInfo.8739638c.js";import{g as u,b as s}from"./uploadAction.69ee4a64.js";import{d as oe,s as ue}from"./driverManage.dea7b2e7.js";import"./companyManage.3f0f77c2.js";import"./useTreeSelectData.cd9b00f2.js";const se={class:"edit"},ne={class:"footer"},de=$("\u63D0 \u4EA4"),le=$("\u8FD4 \u56DE"),ge=z({name:"edit"}),me=Object.assign(ge,{setup(d){const{proxy:o}=Y(),a=E.userStore.userBaseInfo,f=M(),c=O(),b=y(),v=y([]),m=y(!1),e=y({cardPhotoFront:[],cardPhotoReverse:[],maintenancePhoto:[],driverLicensePhotoFront:[],driverLicensePhotoReverse:[],drivingLicensePhotoFront:[],drivingLicensePhotoReverse:[],carPhoto:[],annualAuditPhoto:[],forcedInsurancePhoto:[],forcedInsuranceValidity:1,commercialInsurancePhoto:[],commercialInsuranceValidity:1,drivingInsurancePhoto:[],drivingInsuranceValidity:1,thirdInsurancePhoto:[],thirdInsuranceValidity:1,tripodPhoto:[],medicalKitPhoto:[],extinguisherPhoto:[]}),h={realName:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],phone:[{required:!0,pattern:/^1[3456789]\d{9}$/,message:"\u624B\u673A\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E",trigger:"blur"}],companyName:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],driveRegionCode:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],idCard:[{required:!0,pattern:/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,message:"\u8EAB\u4EFD\u8BC1\u53F7\u7801\u8F93\u5165\u4E0D\u6B63\u786E",trigger:"blur"}],gender:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],birthDate:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],age:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],address:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],cardPhotoFront:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],cardPhotoReverse:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],cardStartTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],cardValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],bankName:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],bankCardNo:[{required:!0,trigger:"blur",message:"\u8BF7\u8F93\u5165\u94F6\u884C\u5361\u53F7"}],driverLicenseType:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],driverLicensePhotoFront:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],driverLicensePhotoReverse:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],driverLicenseStartTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],driverLicenseValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],carNo:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],vehicleType:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],drivingLicensePhotoFront:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],drivingLicensePhotoReverse:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],carPhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],annualAuditPhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],annualAuditPass:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],annualAuditValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],insuredAmount:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],thirdInsurance:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}],personnelInsurance:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],forcedInsurance:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],maintenanceTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],auditPassed:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],maintenanceExpired:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],vehicleAge:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],mileage:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],forcedInsurancePhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],maintenancePhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],forcedInsuranceStartTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],forcedInsuranceValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],commercialInsurancePhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],commercialInsuranceStartTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],commercialInsuranceValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],drivingInsurancePhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],drivingInsuranceStartTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],drivingInsuranceValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],thirdInsurancePhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],thirdInsuranceStartTime:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],thirdInsuranceValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],tripodPhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],medicalKitPhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],extinguisherPhoto:[{required:!0,message:"\u8BF7\u4E0A\u4F20",trigger:"blur"}],extinguisherProdDate:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}],extinguisherValidity:[{required:!0,message:"\u8BF7\u9009\u62E9",trigger:"blur"}]},A=()=>_(this,null,function*(){m.value=!0;try{const r=(yield oe(c.query.userId)).data;e.value=D(R({},r),{forcedInsuranceValidity:1,commercialInsuranceValidity:1,drivingInsuranceValidity:1,thirdInsuranceValidity:1,cardPhotoFront:r.cardPhotoFront?yield u([r.cardPhotoFront]):[],cardPhotoReverse:r.cardPhotoReverse?yield u([r.cardPhotoReverse]):[],driverLicensePhotoFront:r.driverLicensePhotoFront?yield u([r.driverLicensePhotoFront]):[],driverLicensePhotoReverse:r.driverLicensePhotoReverse?yield u([r.driverLicensePhotoReverse]):[],drivingLicensePhotoFront:r.drivingLicensePhotoFront?yield u([r.drivingLicensePhotoFront]):[],drivingLicensePhotoReverse:r.drivingLicensePhotoReverse?yield u([r.drivingLicensePhotoReverse]):[],carPhoto:yield u(r.carPhoto),forcedInsurancePhoto:yield u(r.forcedInsurancePhoto),maintenancePhoto:yield u(r.maintenancePhoto),commercialInsurancePhoto:yield u(r.commercialInsurancePhoto),drivingInsurancePhoto:yield u(r.drivingInsurancePhoto),thirdInsurancePhoto:yield u(r.thirdInsurancePhoto),tripodPhoto:yield u(r.tripodPhoto),medicalKitPhoto:yield u(r.medicalKitPhoto),extinguisherPhoto:yield u(r.extinguisherPhoto),annualAuditPhoto:yield u(r.annualAuditPhoto)})}finally{m.value=!1,v.value=["1","2","3","4","5","6"]}}),T=r=>_(this,null,function*(){!r||(yield r.validate(t=>_(this,null,function*(){var g,p,q,P,I,i,w;if(t){const k=D(R({},e.value),{userId:+c.query.userId,role:a.role,driveRegionCode:typeof e.value.driveRegionCode=="object"?(g=e.value.driveRegionCode)==null?void 0:g.at(-1):e.value.driveRegionCode||void 0,cardPhotoFront:(p=s(e.value.cardPhotoFront))==null?void 0:p[0],cardPhotoReverse:(q=s(e.value.cardPhotoReverse))==null?void 0:q[0],driverLicensePhotoFront:(P=s(e.value.driverLicensePhotoFront))==null?void 0:P[0],driverLicensePhotoReverse:(I=s(e.value.driverLicensePhotoReverse))==null?void 0:I[0],drivingLicensePhotoFront:(i=s(e.value.drivingLicensePhotoFront))==null?void 0:i[0],drivingLicensePhotoReverse:(w=s(e.value.drivingLicensePhotoReverse))==null?void 0:w[0],carPhoto:s(e.value.carPhoto),forcedInsurancePhoto:s(e.value.forcedInsurancePhoto),maintenancePhoto:s(e.value.maintenancePhoto),commercialInsurancePhoto:s(e.value.commercialInsurancePhoto),drivingInsurancePhoto:s(e.value.drivingInsurancePhoto),thirdInsurancePhoto:s(e.value.thirdInsurancePhoto),tripodPhoto:s(e.value.tripodPhoto),medicalKitPhoto:s(e.value.medicalKitPhoto),extinguisherPhoto:s(e.value.extinguisherPhoto),annualAuditPhoto:s(e.value.annualAuditPhoto)});yield ue(k),localStorage.setItem("modify",1),o.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),f.go(-1)}})))});return X(()=>{c.query.userId&&A()}),(r,t)=>{const g=L("el-collapse-item"),p=L("el-collapse"),q=L("el-form"),P=L("el-button"),I=G("loading");return V(),H("div",se,[C("div",null,[J((V(),Q(q,{ref_key:"formRef",ref:b,"label-suffix":":",model:e.value,rules:h,"label-width":"160","scroll-to-error":"","element-loading-text":"\u52A0\u8F7D\u4E2D..."},{default:l(()=>[n(p,{modelValue:v.value,"onUpdate:modelValue":t[6]||(t[6]=i=>v.value=i),class:"collapse form-collapse"},{default:l(()=>[n(g,{title:"\u57FA\u7840\u4FE1\u606F",name:"1"},{default:l(()=>[n(Z,{formData:e.value,"onUpdate:formData":t[0]||(t[0]=i=>e.value=i)},null,8,["formData"])]),_:1}),n(g,{title:"\u652F\u4ED8\u4FE1\u606F",name:"2"},{default:l(()=>[n(ee,{formData:e.value,"onUpdate:formData":t[1]||(t[1]=i=>e.value=i)},null,8,["formData"])]),_:1}),n(g,{title:"\u9A7E\u9A76\u8BC1\u4FE1\u606F",name:"3"},{default:l(()=>[n(re,{formData:e.value,"onUpdate:formData":t[2]||(t[2]=i=>e.value=i)},null,8,["formData"])]),_:1}),n(g,{title:"\u8F66\u8F86\u4FE1\u606F",name:"4"},{default:l(()=>[n(te,{formData:e.value,"onUpdate:formData":t[3]||(t[3]=i=>e.value=i)},null,8,["formData"])]),_:1}),n(g,{title:"\u4FDD\u5355\u4FE1\u606F",name:"5"},{default:l(()=>[n(ie,{formData:e.value,"onUpdate:formData":t[4]||(t[4]=i=>e.value=i)},null,8,["formData"])]),_:1}),n(g,{title:"\u8BBE\u5907\u4FE1\u606F",name:"6"},{default:l(()=>[n(ae,{formData:e.value,"onUpdate:formData":t[5]||(t[5]=i=>e.value=i)},null,8,["formData"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])),[[I,m.value]])]),C("div",ne,[n(P,{type:"primary",onClick:t[7]||(t[7]=i=>T(b.value))},{default:l(()=>[de]),_:1}),n(P,{onClick:t[8]||(t[8]=i=>W(f).go(-1))},{default:l(()=>[le]),_:1})])])}}}),Re=j(me,[["__scopeId","data-v-c4870a1f"]]);export{Re as default};