Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
4.8KB

  1. var S=Object.defineProperty,V=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var I=(n,a,t)=>a in n?S(n,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[a]=t,F=(n,a)=>{for(var t in a||(a={}))A.call(a,t)&&I(n,t,a[t]);if(x)for(var t of x(a))D.call(a,t)&&I(n,t,a[t]);return n},R=(n,a)=>V(n,N(a));var f=(n,a,t)=>new Promise((v,c)=>{var r=d=>{try{_(t.next(d))}catch(e){c(e)}},m=d=>{try{_(t.throw(d))}catch(e){c(e)}},_=d=>d.done?v(d.value):Promise.resolve(d.value).then(r,m);_((t=t.apply(n,a)).next())});import{_ as M,d as T,u as U,k as j,r as g,o as q,f as p,P as K,g as w,c as $,b as L,C as G,n as O,w as l,e as o,v as b,F as Q,p as z,h as y,Q as H,E as J,i as W}from"./index.ef739cdb.js";import X from"./basicInfo.32718d2e.js";import Y from"./paymentInfo.9e1758d5.js";import Z from"./driverlicenseInfo.09a873d6.js";import ee from"./drivinglicenseInfo.8809ac3f.js";import te from"./policyInfo.fa40b400.js";import ae from"./equipmentInfo.bc2862cb.js";import{d as oe,a as C}from"./driverManage.59b9d5c6.js";import{g as i}from"./uploadAction.80a87a78.js";const ie={class:"detail"},ne={class:"footer"},re=y("\u5BA1\u6838\u901A\u8FC7"),se=y("\u9A73\u56DE"),le=y("\u8FD4 \u56DE"),de=T({name:"detail"}),ce=Object.assign(de,{setup(n){const{proxy:a}=W(),t=U(),v=j(),c=g([]),r=g({}),m=g(!1),_=()=>f(this,null,function*(){m.value=!0;try{const e=(yield oe(v.query.userId)).data;r.value=R(F({},e),{cardPhotoFront:e.cardPhotoFront?yield i([e.cardPhotoFront]):void 0,cardPhotoReverse:e.cardPhotoReverse?yield i([e.cardPhotoReverse]):void 0,driverLicensePhotoFront:e.driverLicensePhotoFront?yield i([e.driverLicensePhotoFront]):void 0,driverLicensePhotoReverse:e.driverLicensePhotoReverse?yield i([e.driverLicensePhotoReverse]):void 0,drivingLicensePhotoFront:e.drivingLicensePhotoFront?yield i([e.drivingLicensePhotoFront]):void 0,drivingLicensePhotoReverse:e.drivingLicensePhotoReverse?yield i([e.drivingLicensePhotoReverse]):void 0,carPhoto:yield i(e.carPhoto),forcedInsurancePhoto:yield i(e.forcedInsurancePhoto),commercialInsurancePhoto:yield i(e.commercialInsurancePhoto),drivingInsurancePhoto:yield i(e.drivingInsurancePhoto),thirdInsurancePhoto:yield i(e.thirdInsurancePhoto),tripodPhoto:yield i(e.tripodPhoto),medicalKitPhoto:yield i(e.medicalKitPhoto),extinguisherPhoto:yield i(e.extinguisherPhoto),annualAuditPhoto:yield i(e.annualAuditPhoto)})}finally{m.value=!1,c.value=["1","2","3","4","5","6"]}}),d=e=>f(this,null,function*(){e==="PASS"?a.$messageBox.confirm("\u60A8\u786E\u8BA4\u5BA1\u6838\u901A\u8FC7\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>f(this,null,function*(){yield C({id:r.value.id,status:e}),localStorage.setItem("modify",1),a.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),t.go(-1)})):H.prompt("\u8BF7\u8F93\u5165\u9A73\u56DE\u539F\u56E0","\u9A73\u56DE",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",inputPattern:/^.*$/,inputErrorMessage:"\u8BF7\u8F93\u5165\u9A73\u56DE\u539F\u56E0"}).then(u=>f(this,[u],function*({value:s}){if(!s){J({type:"error",message:"\u8BF7\u8F93\u5165\u9A73\u56DE\u539F\u56E0"});return}yield C({id:r.value.id,status:e,rejectReason:s}),localStorage.setItem("modify",1),a.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),t.go(-1)}))});return q(()=>{_()}),(e,s)=>{const u=p("el-collapse-item"),k=p("el-collapse"),B=p("el-form"),P=p("el-button"),E=K("loading");return w(),$("div",ie,[L("div",null,[G((w(),O(B,{"label-suffix":":","label-width":"160","scroll-to-error":"","element-loading-text":"\u52A0\u8F7D\u4E2D..."},{default:l(()=>[o(k,{modelValue:c.value,"onUpdate:modelValue":s[0]||(s[0]=h=>c.value=h),class:"collapse form-collapse"},{default:l(()=>[o(u,{title:"\u57FA\u7840\u4FE1\u606F",name:"1"},{default:l(()=>[o(X,{"detail-data":r.value},null,8,["detail-data"])]),_:1}),o(u,{title:"\u652F\u4ED8\u4FE1\u606F",name:"2"},{default:l(()=>[o(Y,{"detail-data":r.value},null,8,["detail-data"])]),_:1}),o(u,{title:"\u9A7E\u9A76\u8BC1\u4FE1\u606F",name:"3"},{default:l(()=>[o(Z,{"detail-data":r.value},null,8,["detail-data"])]),_:1}),o(u,{title:"\u884C\u9A76\u8BC1\u4FE1\u606F",name:"4"},{default:l(()=>[o(ee,{"detail-data":r.value},null,8,["detail-data"])]),_:1}),o(u,{title:"\u4FDD\u5355\u4FE1\u606F",name:"5"},{default:l(()=>[o(te,{"detail-data":r.value},null,8,["detail-data"])]),_:1}),o(u,{title:"\u8BBE\u5907\u4FE1\u606F",name:"6"},{default:l(()=>[o(ae,{"detail-data":r.value},null,8,["detail-data"])]),_:1})]),_:1},8,["modelValue"])]),_:1})),[[E,m.value]])]),L("div",ne,[b(v).query.status==="AUDITING"?(w(),$(Q,{key:0},[o(P,{type:"primary",onClick:s[1]||(s[1]=h=>d("PASS"))},{default:l(()=>[re]),_:1}),o(P,{type:"danger",onClick:s[2]||(s[2]=h=>d("REFUSE"))},{default:l(()=>[se]),_:1})],64)):z("",!0),o(P,{onClick:s[3]||(s[3]=h=>b(t).go(-1))},{default:l(()=>[le]),_:1})])])}}}),ye=M(ce,[["__scopeId","data-v-f805be1c"]]);export{ye as default};