您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 行
5.3KB

  1. var J=Object.defineProperty;var R=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var M=(n,o,a)=>o in n?J(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,N=(n,o)=>{for(var a in o||(o={}))K.call(o,a)&&M(n,a,o[a]);if(R)for(var a of R(o))Q.call(o,a)&&M(n,a,o[a]);return n};var T=(n,o,a)=>new Promise((k,r)=>{var p=i=>{try{_(a.next(i))}catch(u){r(u)}},y=i=>{try{_(a.throw(i))}catch(u){r(u)}},_=i=>i.done?k(i.value):Promise.resolve(i.value).then(p,y);_((a=a.apply(n,o)).next())});import{d as X,u as Y,r as f,U as Z,z as ee,o as te,f as c,g as h,c as v,e,w as t,b as g,x as P,F as A,q as L,h as b,t as ae,n as S,E as oe}from"./index.551f5afa.js";import{l as le}from"./driverManage.dea7b2e7.js";import se from"./downDialog.26eb81b0.js";import"./orderManage.fe83d1aa.js";const ne={class:"driverManage"},re=b("\u67E5\u8BE2"),ie=b("\u91CD\u7F6E"),de={class:"flex items-center"},ue=g("span",null,"\u9A7E\u9A76\u5458\u5217\u8868",-1),ce=g("div",{style:{flex:"1"}},null,-1),pe=b(" \u5BFC\u51FA "),me=b(" \u5BFC\u51FA\u5168\u90E8 "),_e=["onClick"],fe=["onClick"],he=["onClick"],ve=X({name:"driverManage"}),xe=Object.assign(ve,{setup(n){const o=Y(),a={PASS:"\u6B63\u5E38",REFUSE:"\u5BA1\u6838\u9A73\u56DE",AUDITING:"\u5F85\u5BA1\u6838",NEED_COMPLETE:"\u4FE1\u606F\u5F02\u5E38",OVERTIME:"\u8D85\u671F\u5F02\u5E38"},k={PASS:"success",REFUSE:"danger",AUDITING:"warning",NEED_COMPLETE:"danger",OVERTIME:"danger"},r=f({}),p=f(),y=f(0),_=[{label:"",reserveSelection:!0,type:"selection",width:"50"},{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"}],i=f([]),u=(...d)=>T(this,[...d],function*(l=p.value.pageParams){const m=yield le(N(N({},l),r.value));y.value=m.data.total,i.value=m.data.records}),z=()=>{p.value.pageParams.pageNumber=1,u()},B=()=>{r.value={},p.value.pageParams.pageNumber=1,p.value.pageParams.pageSize=10,u()},x=(l,d,m)=>{o.push({name:d,query:{userId:l.userId,status:m?l.status:""}})},V=f(!1),F=()=>{window.open(S.defaults.baseURL+"/api/v1/driver-info/export","_blank")};function $(){if(C.length<1){oe.error("\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u6570\u636E");return}const l=[];C.forEach(d=>{l.push(d.userId)}),console.log(S.defaults.baseURL+"/api/v1/driver-info/export?userIds="+l.join(",")),window.open(S.defaults.baseURL+"/api/v1/driver-info/export?userIds="+l.join(","),"_blank")}let C=[];function G(l){console.log(l),C=l}Z(()=>{localStorage.getItem("modify")&&(u(),localStorage.removeItem("modify"))});const O=ee.userStore.userBaseInfo;return te(()=>T(this,null,function*(){yield u()})),(l,d)=>{const m=c("el-input"),E=c("el-form-item"),I=c("el-col"),w=c("el-button"),W=c("el-row"),j=c("el-form"),D=c("el-card"),q=c("el-tag"),H=c("table-list");return h(),v("div",ne,[e(D,{shadow:"never",class:"search mb-16"},{default:t(()=>[e(j,{"label-suffix":":",model:r.value,size:"small"},{default:t(()=>[e(W,{gutter:16},{default:t(()=>[e(I,{span:8,class:"mb-16"},{default:t(()=>[e(E,{label:"\u9A7E\u9A76\u5458\u59D3\u540D"},{default:t(()=>[e(m,{modelValue:r.value.realName,"onUpdate:modelValue":d[0]||(d[0]=s=>r.value.realName=s),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(I,{span:8},{default:t(()=>[e(E,{label:"\u624B\u673A\u53F7"},{default:t(()=>[e(m,{modelValue:r.value.mobile,"onUpdate:modelValue":d[1]||(d[1]=s=>r.value.mobile=s),maxlength:"11",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(I,{span:8},{default:t(()=>[e(E,{class:"btn"},{default:t(()=>[e(w,{type:"primary",onClick:z},{default:t(()=>[re]),_:1}),e(w,{type:"info",onClick:B},{default:t(()=>[ie]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(D,{shadow:"never"},{header:t(()=>[g("div",de,[ue,ce,P(O).role==="super_admin"?(h(),v(A,{key:0},[e(w,{type:"primary",plain:"",icon:"Download",size:"small",onClick:$},{default:t(()=>[pe]),_:1}),e(w,{type:"primary",plain:"",icon:"Download",size:"small",onClick:F},{default:t(()=>[me]),_:1})],64)):L("",!0)])]),default:t(()=>[e(H,{ref_key:"tableListRef",ref:p,column:_,"row-key":"userId",data:i.value,total:y.value,onSelectionChange:G,onGetTableData:u},{status:t(({scope:s})=>[e(q,{type:k[s.row.status],effect:"dark"},{default:t(()=>[b(ae(a[s.row.status]),1)]),_:2},1032,["type"])]),action:t(({scope:s})=>[P(O).role==="super_admin"?(h(),v(A,{key:0},[s.row.status==="AUDITING"?(h(),v("a",{key:0,class:"text-primary",onClick:U=>x(s.row,"detail",1)}," \u5BA1\u6838 ",8,_e)):(h(),v("a",{key:1,class:"text-primary",onClick:U=>x(s.row,"edit")}," \u7F16\u8F91 ",8,fe))],64)):L("",!0),g("a",{class:"text-primary",onClick:U=>x(s.row,"detail")},"\u8BE6\u60C5",8,he)]),_:1},8,["data","total"])]),_:1}),e(se,{visible:V.value,onClose:d[2]||(d[2]=s=>V.value=!1)},null,8,["visible"])])}}});export{xe as default};