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.

2 wiersze
4.9KB

  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=(i,a,t)=>a in i?S(i,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[a]=t,b=(i,a)=>{for(var t in a||(a={}))A.call(a,t)&&I(i,t,a[t]);if(x)for(var t of x(a))D.call(a,t)&&I(i,t,a[t]);return i},F=(i,a)=>V(i,N(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 R,b as $,C as G,n as O,w as l,e as o,v as L,F as Q,p as z,h as y,Q as H,E as J,i as W}from"./index.18b48fb5.js";import X from"./basicInfo.66691dc5.js";import Y from"./paymentInfo.42fe3cc4.js";import Z from"./driverlicenseInfo.8b53f926.js";import ee from"./drivinglicenseInfo.a6fc0bae.js";import te from"./policyInfo.6616cdf6.js";import ae from"./equipmentInfo.007a7dd6.js";import{d as oe,a as C}from"./driverManage.10bf5104.js";import{g as n}from"./uploadAction.f75bbf28.js";const ne={class:"detail"},ie={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(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=F(b({},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),maintenancePhoto:yield n(e.maintenancePhoto)})}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(),R("div",ne,[$("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:"\u8F66\u8F86\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]])]),$("div",ie,[L(v).query.status==="AUDITING"?(w(),R(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=>L(t).go(-1))},{default:l(()=>[le]),_:1})])])}}}),ye=M(ce,[["__scopeId","data-v-1b71fbb1"]]);export{ye as default};