var G=Object.defineProperty;var S=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var D=(s,l,e)=>l in s?G(s,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[l]=e,g=(s,l)=>{for(var e in l||(l={}))L.call(l,e)&&D(s,e,l[e]);if(S)for(var e of S(l))W.call(l,e)&&D(s,e,l[e]);return s};var k=(s,l,e)=>new Promise((b,n)=>{var m=r=>{try{p(e.next(r))}catch(i){n(i)}},v=r=>{try{p(e.throw(r))}catch(i){n(i)}},p=r=>r.done?b(r.value):Promise.resolve(r.value).then(m,v);p((e=e.apply(s,l)).next())});import{d as B,u as F,r as f,U as j,o as z,f as d,g as N,c as E,e as t,w as a,b as C,p as q,h as T,t as H}from"./index.4f7e0e83.js";import{l as J}from"./driverManage.e8cc832b.js";import K from"./downDialog.7e5e4bec.js";import"./orderManage.5273c92c.js";const Q={class:"driverManage"},X=T("\u67E5\u8BE2"),Y=T("\u91CD\u7F6E"),Z={class:"flex justify-between items-center"},ee=C("span",null,"\u9A7E\u9A76\u5458\u5217\u8868",-1),te=["onClick"],ae=["onClick"],le=["onClick"],oe=B({name:"driverManage"}),ue=Object.assign(oe,{setup(s){const l=F(),e={PASS:"\u6B63\u5E38",REFUSE:"\u5BA1\u6838\u9A73\u56DE",AUDITING:"\u5F85\u5BA1\u6838",NEED_COMPLETE:"\u4FE1\u606F\u5F02\u5E38",OVERTIME:"\u8D85\u671F\u5F02\u5E38"},b={PASS:"success",REFUSE:"danger",AUDITING:"warning",NEED_COMPLETE:"danger",OVERTIME:"danger"},n=f({}),m=f(),v=f(0),p=[{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9A7E\u9A76\u5458\u59D3\u540D",key:"realName",prop:"realName",minWidth:"180",showOverflowTooltip:!0},{label:"\u6240\u5C5E\u4F01\u4E1A",key:"companyName",prop:"companyName",minWidth:"150",showOverflowTooltip:!0},{label:"\u624B\u673A\u53F7",key:"phone",prop:"phone",width:"180"},{label:"\u8F66\u724C\u53F7\u7801",key:"carNo",prop:"carNo",minWidth:"150",showOverflowTooltip:!0},{label:"\u72B6\u6001",key:"status",slot:"status",width:"100"},{label:"\u4FE1\u606F\u66F4\u65B0\u65F6\u95F4",key:"updateOn",prop:"updateOn",minWidth:"180",showOverflowTooltip:!0},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:"240",fixed:"right"}],r=f([]),i=(...u)=>k(this,[...u],function*(_=m.value.pageParams){const c=yield J(g(g({},_),n.value));v.value=c.data.total,r.value=c.data.records}),P=()=>{m.value.pageParams.pageNumber=1,i()},U=()=>{n.value={},m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,i()},h=(_,u,c)=>{l.push({name:u,query:{userId:_.userId,status:c?_.status:""}})},x=f(!1);return j(()=>{localStorage.getItem("modify")&&(i(),localStorage.removeItem("modify"))}),z(()=>k(this,null,function*(){yield i()})),(_,u)=>{const c=d("el-input"),y=d("el-form-item"),w=d("el-col"),V=d("el-button"),M=d("el-row"),R=d("el-form"),I=d("el-card"),A=d("el-tag"),$=d("table-list");return N(),E("div",Q,[t(I,{shadow:"never",class:"search mb-16"},{default:a(()=>[t(R,{"label-suffix":":",model:n.value,size:"small"},{default:a(()=>[t(M,{gutter:16},{default:a(()=>[t(w,{span:8,class:"mb-16"},{default:a(()=>[t(y,{label:"\u9A7E\u9A76\u5458\u59D3\u540D"},{default:a(()=>[t(c,{modelValue:n.value.realName,"onUpdate:modelValue":u[0]||(u[0]=o=>n.value.realName=o),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(w,{span:8},{default:a(()=>[t(y,{label:"\u624B\u673A\u53F7"},{default:a(()=>[t(c,{modelValue:n.value.mobile,"onUpdate:modelValue":u[1]||(u[1]=o=>n.value.mobile=o),maxlength:"11",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(w,{span:8},{default:a(()=>[t(y,{class:"btn"},{default:a(()=>[t(V,{type:"primary",onClick:P},{default:a(()=>[X]),_:1}),t(V,{type:"info",onClick:U},{default:a(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(I,{shadow:"never"},{header:a(()=>[C("div",Z,[ee,q("",!0)])]),default:a(()=>[t($,{ref_key:"tableListRef",ref:m,column:p,data:r.value,total:v.value,onGetTableData:i},{status:a(({scope:o})=>[t(A,{type:b[o.row.status],effect:"dark"},{default:a(()=>[T(H(e[o.row.status]),1)]),_:2},1032,["type"])]),action:a(({scope:o})=>[o.row.status==="AUDITING"?(N(),E("a",{key:0,class:"text-primary",onClick:O=>h(o.row,"detail",1)}," \u5BA1\u6838 ",8,te)):(N(),E("a",{key:1,class:"text-primary",onClick:O=>h(o.row,"edit")}," \u7F16\u8F91 ",8,ae)),C("a",{class:"text-primary",onClick:O=>h(o.row,"detail")},"\u8BE6\u60C5",8,le)]),_:1},8,["data","total"])]),_:1}),t(K,{visible:x.value,onClose:u[2]||(u[2]=o=>x.value=!1)},null,8,["visible"])])}}});export{ue as default};
