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.

index.fb152416.js 4.9KB

1 week geleden
1
  1. var S=Object.defineProperty,V=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,A=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={}))N.call(a,t)&&I(i,t,a[t]);if(x)for(var t of x(a))A.call(a,t)&&I(i,t,a[t]);return i},F=(i,a)=>V(i,D(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 q,r as g,o as j,f as p,P as K,g as w,c as R,b as $,D as G,p as O,w as l,e as o,x as L,F as Q,q as z,h as y,Q as H,E as J,i as W}from"./index.551f5afa.js";import X from"./basicInfo.fcfe6198.js";import Y from"./paymentInfo.6c3fd1d4.js";import Z from"./driverlicenseInfo.0ea50ea3.js";import ee from"./drivinglicenseInfo.e6bae016.js";import te from"./policyInfo.7fce6863.js";import ae from"./equipmentInfo.a3fd2981.js";import{d as oe,a as k}from"./driverManage.dea7b2e7.js";import{g as n}from"./uploadAction.69ee4a64.js";import"./validate.167e08f8.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=q(),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 k({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 k({id:r.value.id,status:e,rejectReason:s}),localStorage.setItem("modify",1),a.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),t.go(-1)}))});return j(()=>{_()}),(e,s)=>{const u=p("el-collapse-item"),B=p("el-collapse"),C=p("el-form"),P=p("el-button"),E=K("loading");return w(),R("div",ne,[$("div",null,[G((w(),O(C,{"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:"\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})])])}}}),xe=M(ce,[["__scopeId","data-v-1b71fbb1"]]);export{xe as default};