|
- var V=Object.defineProperty,N=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var F=(i,a,t)=>a in i?V(i,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[a]=t,I=(i,a)=>{for(var t in a||(a={}))D.call(a,t)&&F(i,t,a[t]);if(y)for(var t of y(a))S.call(a,t)&&F(i,t,a[t]);return i},R=(i,a)=>N(i,A(a));var f=(i,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(i,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 C,F as Q,p as z,h as x,Q as H,E as J,i as W}from"./index.32194486.js";import X from"./basicInfo.542fa455.js";import Y from"./paymentInfo.e2f9ef9c.js";import Z from"./driverlicenseInfo.6cce4d77.js";import ee from"./drivinglicenseInfo.92df09ed.js";import te from"./policyInfo.bc33ef8b.js";import ae from"./equipmentInfo.46ea49cb.js";import{d as oe,a as k}from"./driverManage.02bf31d7.js";import{g as n}from"./uploadAction.25c9789a.js";const ne={class:"detail"},ie={class:"footer"},re=x("\u5BA1\u6838\u901A\u8FC7"),se=x("\u9A73\u56DE"),le=x("\u8FD4 \u56DE"),de=T({name:"detail"}),ce=Object.assign(de,{setup(i){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(I({},e),{cardPhotoFront:e.cardPhotoFront?yield n([e.cardPhotoFront]):void 0,cardPhotoReverse:e.cardPhotoReverse?yield n([e.cardPhotoReverse]):void 0,driverLicensePhotoFront:e.driverLicensePhotoFront?yield n([e.driverLicensePhotoFront]):void 0,driverLicensePhotoReverse:e.driverLicensePhotoReverse?yield n([e.driverLicensePhotoReverse]):void 0,drivingLicensePhotoFront:e.drivingLicensePhotoFront?yield n([e.drivingLicensePhotoFront]):void 0,drivingLicensePhotoReverse:e.drivingLicensePhotoReverse?yield n([e.drivingLicensePhotoReverse]):void 0,carPhoto:yield n(e.carPhoto),forcedInsurancePhoto:yield n(e.forcedInsurancePhoto),commercialInsurancePhoto:yield n(e.commercialInsurancePhoto),drivingInsurancePhoto:yield n(e.drivingInsurancePhoto),thirdInsurancePhoto:yield n(e.thirdInsurancePhoto),tripodPhoto:yield n(e.tripodPhoto),medicalKitPhoto:yield n(e.medicalKitPhoto),extinguisherPhoto:yield n(e.extinguisherPhoto),annualAuditPhoto:yield n(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 k({id:r.value.id,status:e}),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 k({id:r.value.id,status:e,rejectReason:s}),a.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),t.go(-1)}))});return q(()=>{_()}),(e,s)=>{const u=p("el-collapse-item"),B=p("el-collapse"),b=p("el-form"),P=p("el-button"),E=K("loading");return w(),$("div",ne,[L("div",null,[G((w(),O(b,{"label-suffix":":","label-width":"160","scroll-to-error":"","element-loading-text":"\u52A0\u8F7D\u4E2D..."},{default:l(()=>[o(B,{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",ie,[C(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=>C(t).go(-1))},{default:l(()=>[le]),_:1})])])}}}),xe=M(ce,[["__scopeId","data-v-e768a43e"]]);export{xe as default};
|