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.2KB

  1. var G=Object.defineProperty;var D=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var P=(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)&&P(s,e,l[e]);if(D)for(var e of D(l))W.call(l,e)&&P(s,e,l[e]);return s};var k=(s,l,e)=>new Promise((b,n)=>{var m=r=>{try{p(e.next(r))}catch(u){n(u)}},v=r=>{try{p(e.throw(r))}catch(u){n(u)}},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,o as j,f as i,g as N,c as E,e as t,w as a,b as C,p as z,h as T,t as q}from"./index.32194486.js";import{l as H}from"./driverManage.02bf31d7.js";import J from"./downDialog.f0db3739.js";import"./orderManage.aae74c26.js";const K={class:"driverManage"},Q=T("\u67E5\u8BE2"),X=T("\u91CD\u7F6E"),Y={class:"flex justify-between items-center"},Z=C("span",null,"\u9A7E\u9A76\u5458\u5217\u8868",-1),ee=["onClick"],te=["onClick"],ae=["onClick"],le=B({name:"driverManage"}),ue=Object.assign(le,{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([]),u=(...d)=>k(this,[...d],function*(_=m.value.pageParams){const c=yield H(g(g({},_),n.value));v.value=c.data.total,r.value=c.data.records}),S=()=>{m.value.pageParams.pageNumber=1,u()},M=()=>{n.value={},m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,u()},h=(_,d,c)=>{l.push({name:d,query:{userId:_.userId,status:c?_.status:""}})},x=f(!1);return j(()=>k(this,null,function*(){yield u()})),(_,d)=>{const c=i("el-input"),w=i("el-form-item"),y=i("el-col"),V=i("el-button"),R=i("el-row"),U=i("el-form"),O=i("el-card"),A=i("el-tag"),$=i("table-list");return N(),E("div",K,[t(O,{shadow:"never",class:"search mb-16"},{default:a(()=>[t(U,{"label-suffix":":",model:n.value,size:"small"},{default:a(()=>[t(R,{gutter:16},{default:a(()=>[t(y,{span:8,class:"mb-16"},{default:a(()=>[t(w,{label:"\u9A7E\u9A76\u5458\u59D3\u540D"},{default:a(()=>[t(c,{modelValue:n.value.realName,"onUpdate:modelValue":d[0]||(d[0]=o=>n.value.realName=o),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(y,{span:8},{default:a(()=>[t(w,{label:"\u624B\u673A\u53F7"},{default:a(()=>[t(c,{modelValue:n.value.mobile,"onUpdate:modelValue":d[1]||(d[1]=o=>n.value.mobile=o),maxlength:"11",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(y,{span:8},{default:a(()=>[t(w,{class:"btn"},{default:a(()=>[t(V,{type:"primary",onClick:S},{default:a(()=>[Q]),_:1}),t(V,{type:"info",onClick:M},{default:a(()=>[X]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(O,{shadow:"never"},{header:a(()=>[C("div",Y,[Z,z("",!0)])]),default:a(()=>[t($,{ref_key:"tableListRef",ref:m,column:p,data:r.value,total:v.value,onGetTableData:u},{status:a(({scope:o})=>[t(A,{type:b[o.row.status],effect:"dark"},{default:a(()=>[T(q(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:I=>h(o.row,"detail",1)}," \u5BA1\u6838 ",8,ee)):(N(),E("a",{key:1,class:"text-primary",onClick:I=>h(o.row,"edit")}," \u7F16\u8F91 ",8,te)),C("a",{class:"text-primary",onClick:I=>h(o.row,"detail")},"\u8BE6\u60C5",8,ae)]),_:1},8,["data","total"])]),_:1}),t(J,{visible:x.value,onClose:d[2]||(d[2]=o=>x.value=!1)},null,8,["visible"])])}}});export{ue as default};