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.88ce34bb.js 5.1KB

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