選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
6.3KB

  1. var Y=Object.defineProperty;var F=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var j=(r,s,t)=>s in r?Y(r,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[s]=t,O=(r,s)=>{for(var t in s||(s={}))Z.call(s,t)&&j(r,t,s[t]);if(F)for(var t of F(s))ee.call(s,t)&&j(r,t,s[t]);return r};var C=(r,s,t)=>new Promise((n,u)=>{var g=o=>{try{p(t.next(o))}catch(v){u(v)}},E=o=>{try{p(t.throw(o))}catch(v){u(v)}},p=o=>o.done?n(o.value):Promise.resolve(o.value).then(g,E);p((t=t.apply(r,s)).next())});import{c as ae,l as le}from"./driverFile.73bdee80.js";import te from"./driverDialog.e9b7192b.js";import oe from"./askForLeaveDialog.71edbab2.js";import se from"./carManagementDialog.8ae361fa.js";import ie from"./setTypeDialog.55ed1dfc.js";import{d as ne,y as re,r as D,a as T,o as de,f as m,g as V,c as N,e as a,w as l,b as x,v as me,F as ue,p as pe,h as B,O as S,i as ce}from"./index.a7edfbd5.js";import"./uploadAction.d4782c23.js";const ve={class:"driverFile"},_e=B("\u67E5\u8BE2"),fe=B("\u91CD\u7F6E"),be=x("span",null,"\u9A7E\u9A76\u5458\u5217\u8868",-1),we=["onClick"],he=["onClick"],ye=["onClick"],ge=["onClick"],ke=["onClick"],Ce=ne({name:"driverFile"}),$e=Object.assign(Ce,{setup(r){const{proxy:s}=ce(),t=re.userStore.userBaseInfo,n=D({}),u=D(),g=D(0),E=[{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9A7E\u9A76\u5458\u59D3\u540D",key:"realName",prop:"realName",minWidth:"180",showOverflowTooltip:!0},{label:"\u63A5\u5355\u8BA2\u5355\u53F7",key:"orderNum",prop:"orderNum",minWidth:"150",showOverflowTooltip:!0},{label:"\u51FA\u8F66\u72B6\u6001",key:"isOrder",prop:"isOrder",width:"100",render:e=>S("span",e.isOrder?"\u662F":"\u5426")},{label:"\u4E0A\u8F66\u5730\u70B9",key:"startRegion",prop:"startRegion",minWidth:"150",showOverflowTooltip:!0},{label:"\u4E0B\u8F66\u5730\u70B9",key:"endRegion",prop:"endRegion",minWidth:"150",showOverflowTooltip:!0},{label:"\u662F\u5426\u8BF7\u5047",key:"leaveState",render:e=>S("span",`${e.leaveState==="LEAVE"?"\u662F":"\u5426"} ${e.leaveState==="LEAVE"&&e.leaveStartTime?`\uFF08 ${e.leaveStartTime.split(" ")[0]}\u81F3${e.leaveEndTime.split(" ")[0]}\uFF09`:" "}`),minWidth:"200",showOverflowTooltip:!0},{label:"\u8EAB\u4EFD\u8BC1\u53F7",key:"idcard",prop:"idcard",minWidth:"180",showOverflowTooltip:!0},{label:"\u624B\u673A\u53F7",key:"phoneNo",prop:"phoneNo",width:"180"},{label:"\u8F66\u7BA1\u5458\u59D3\u540D",key:"driverAdminName",prop:"driverAdminName",width:"150"},{label:"\u63A5\u5355\u7C7B\u578B",key:"jobTypeNames",render:e=>S("span",e.jobTypeNames&&e.jobTypeNames.length?e.jobTypeNames.join(","):""),width:"150"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:"240",fixed:"right"}],p=D([]),o=(...d)=>C(this,[...d],function*(e=u.value.pageParams){const c=yield ae(O(O({},e),n.value));g.value=c.data.total,p.value=c.data.records}),v=()=>{o()},R=()=>{n.value={},u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,o()},_=T({visible:!1,rowData:void 0}),W=e=>{_.visible=!0,_.rowData=e},M=e=>{_.visible=!1,e&&o()},f=T({visible:!1,rowData:void 0}),U=e=>{f.visible=!0,f.rowData=e},I=e=>{f.visible=!1,e&&o()},P=({realName:e,userId:d})=>{s.$messageBox.confirm(`\u786E\u5B9A\u53D6\u6D88${e}\u7684\u8BF7\u5047\u5417?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(()=>C(this,null,function*(){yield le({id:d,leaveState:"NOT_LEAVE"}),s.$message.success("\u53D6\u6D88\u8BF7\u5047\u6210\u529F\uFF01"),yield o()}))},b=T({visible:!1,rowData:void 0}),z=e=>{b.visible=!0,b.rowData=e},G=e=>{b.visible=!1,e&&o()},w=T({visible:!1,rowData:void 0}),q=e=>{w.visible=!0,w.rowData=e},H=e=>{w.visible=!1,e&&o()};return de(()=>C(this,null,function*(){yield o()})),(e,d)=>{const c=m("el-input"),h=m("el-form-item"),y=m("el-col"),$=m("el-option"),J=m("el-select"),L=m("el-button"),K=m("el-row"),Q=m("el-form"),A=m("el-card"),X=m("table-list");return V(),N("div",ve,[a(A,{shadow:"never",class:"search mb-16"},{default:l(()=>[a(Q,{"label-suffix":":",model:n.value,size:"small"},{default:l(()=>[a(K,{gutter:16},{default:l(()=>[a(y,{span:8,class:"mb-16"},{default:l(()=>[a(h,{label:"\u9A7E\u9A76\u5458\u59D3\u540D"},{default:l(()=>[a(c,{modelValue:n.value.realName,"onUpdate:modelValue":d[0]||(d[0]=i=>n.value.realName=i),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(y,{span:8},{default:l(()=>[a(h,{label:"\u8EAB\u4EFD\u8BC1\u53F7"},{default:l(()=>[a(c,{modelValue:n.value.idcard,"onUpdate:modelValue":d[1]||(d[1]=i=>n.value.idcard=i),maxlength:"18",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(y,{span:8},{default:l(()=>[a(h,{label:"\u624B\u673A\u53F7"},{default:l(()=>[a(c,{modelValue:n.value.mobile,"onUpdate:modelValue":d[2]||(d[2]=i=>n.value.mobile=i),maxlength:"11",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(y,{span:8,class:"mb-16"},{default:l(()=>[a(h,{label:"\u662F\u5426\u8BF7\u5047"},{default:l(()=>[a(J,{modelValue:n.value.leaveState,"onUpdate:modelValue":d[3]||(d[3]=i=>n.value.leaveState=i),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:l(()=>[a($,{label:"\u662F",value:"LEAVE"}),a($,{label:"\u5426",value:"NOT_LEAVE"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(y,{span:16},{default:l(()=>[a(h,{class:"btn"},{default:l(()=>[a(L,{type:"primary",onClick:v},{default:l(()=>[_e]),_:1}),a(L,{type:"info",onClick:R},{default:l(()=>[fe]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(A,{shadow:"never"},{header:l(()=>[be]),default:l(()=>[a(X,{ref_key:"tableListRef",ref:u,column:E,data:p.value,total:g.value,onGetTableData:o},{action:l(({scope:i})=>[x("a",{class:"text-primary",onClick:k=>W(i.row)},"\u8BE6\u60C5",8,we),me(t).role==="super_admin"?(V(),N(ue,{key:0},[i.row.leaveState!=="LEAVE"?(V(),N("a",{key:0,class:"text-primary",onClick:k=>U(i.row)},"\u8BF7\u5047",8,he)):(V(),N("a",{key:1,class:"text-danger",onClick:k=>P(i.row)},"\u53D6\u6D88\u8BF7\u5047",8,ye)),x("a",{class:"text-primary",onClick:k=>z(i.row)},"\u8BBE\u7F6E\u8F66\u7BA1\u5458",8,ge),x("a",{class:"text-primary",onClick:k=>q(i.row)},"\u7C7B\u578B\u8BBE\u7F6E",8,ke)],64)):pe("",!0)]),_:1},8,["data","total"])]),_:1}),a(te,{visible:_.visible,data:_.rowData,onClose:M},null,8,["visible","data"]),a(oe,{visible:f.visible,data:f.rowData,onClose:I},null,8,["visible","data"]),a(se,{visible:b.visible,data:b.rowData,onClose:G},null,8,["visible","data"]),a(ie,{visible:w.visible,data:w.rowData,onClose:H},null,8,["visible","data"])])}}});export{$e as default};