Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
19KB

  1. var je=Object.defineProperty,Ue=Object.defineProperties;var Ee=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var pe=(c,y,l)=>y in c?je(c,y,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[y]=l,I=(c,y)=>{for(var l in y||(y={}))Le.call(y,l)&&pe(c,l,y[l]);if(ue)for(var l of ue(y))He.call(y,l)&&pe(c,l,y[l]);return c},q=(c,y)=>Ue(c,Ee(y));var N=(c,y,l)=>new Promise((x,$)=>{var j=T=>{try{t(l.next(T))}catch(F){$(F)}},P=T=>{try{t(l.throw(T))}catch(F){$(F)}},t=T=>T.done?x(T.value):Promise.resolve(T.value).then(j,P);t((l=l.apply(c,y)).next())});import{_ as Ae,d as We,y as ce,r as f,u as Pe,k as ze,x as Ge,O as w,X as Je,o as Xe,R as Ze,f as b,g as p,n as Y,w as n,v as m,e as r,c as _,q as fe,F as D,p as k,Y as Ke,b as W,Z as Qe,h as R,J as ea,L as aa}from"./index.a7edfbd5.js";import{e as ta,t as la,l as ra,d as ve,a as oa,b as na}from"./orderManage.53ba324a.js";import da from"./orderDetailDrawer.f0ba72c8.js";import sa from"./driverAssignmentDialog.5c91a22d.js";import ia from"./cancelOrderDialog.17949e0e.js";import ma from"./confirmOrderDialog.02e6fff0.js";import ua from"./orderCompletionDialog.e3db023c.js";import pa from"./confirmBoardingDialog.2c45d871.js";import ca from"./trajectoryDialog.704fd15e.js";import{u as fa}from"./useExportExc.7f25a702.js";import{u as va}from"./useTreeSelectData.6c457bb0.js";import"./uploadAction.d4782c23.js";import"./editOrderForm.b968ba18.js";import"./projectManage.7dd61071.js";import"./queryAddressDialog.0d49ddb2.js";import"./locationTransform.e2d22cb6.js";import"./tiandimap.077ed122.js";const ya=c=>(ea("data-v-5bf3e5ef"),c=c(),aa(),c),_a=R("\u67E5\u8BE2"),ba=R("\u91CD\u7F6E"),ka={class:"flex justify-between items-center"},ha=ya(()=>W("span",null,"\u8BA2\u5355\u5217\u8868",-1)),wa=R(" \u5BFC\u51FA\u53F8\u673A\u7ED3\u7B97\u8BA2\u5355 "),Ca=R(" \u5BFC\u51FA "),ga=R(" \u5BFC\u51FA\u8F68\u8FF9 "),Ta=["onClick"],Va=["onClick"],Na=["onClick"],Oa=["onClick"],Ia=["onClick"],Sa=["onClick"],Da=["onClick"],xa=["onClick"],Fa=["onClick"],Ba=We({name:"OrderList",beforeRouteEnter(c,y,l){c.meta.activeMenu=c.query.activeMenu,l()}}),Ya=Object.assign(Ba,{props:{state:String},setup(c,{expose:y}){const l=c,x=ce.userStore.userBaseInfo,{cascaderProps:$}=va(),j=f([]),P=Pe(),t=ze(),{dictList:T,orderStatusOption:F}=Ge(ce.dictStore),e={orderToBeDistributed:1,ordersToBeAccepted:10,ordersInService:20,realtimePositions:30,ordersCancelled:40,ordersToBeConfirmed:50,confirmedOrders:60,ordersReview:70,orderListInSettlementDoc:80},s=f({confirmStartTime:(e[t.name]||e[l.state])===80&&t.query.times?t.query.times[0]:void 0,confirmEndTime:(e[t.name]||e[l.state])===80&&t.query.times?t.query.times[1]:void 0,companyName:(e[t.name]||e[l.state])===80&&t.query.companyName?t.query.companyName:void 0}),M=f(),U=f(0),ye=f([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BA2\u5355\u7F16\u53F7",key:"orderNum",prop:"orderNum",minWidth:"170",showOverflowTooltip:e[t.name]!==60},{label:"\u8F66\u724C\u53F7\u7801",key:"carNum",prop:"carNum",hidden:(e[t.name]||e[l.state])===1,width:"100"},{label:"\u7528\u8F66\u65F6\u95F4",key:"useCarTime",prop:"useCarTime",hidden:[30,40].some(a=>a===(e[t.name]||e[l.state])),width:"180"},{label:"\u786E\u8BA4\u4E0A\u8F66\u65F6\u95F4",key:"confirmedBoardingTime",prop:"confirmedBoardingTime",hidden:e[t.name]!==60,width:"180"},{label:"\u7ED3\u675F\u65F6\u95F4",key:"endCarTime",prop:"endCarTime",hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"180"},{label:"\u8BA2\u5355\u72B6\u6001",key:"orderStatusName",prop:"orderStatusName",hidden:(e[t.name]||e[l.state])!==70,width:"120"},{label:"\u6240\u5C5E\u9879\u76EE",key:"projectName",prop:"projectName",minWidth:"180",showOverflowTooltip:e[t.name]!==60},{label:"\u6240\u5C5E\u4F01\u4E1A",key:"companyName",prop:"companyName",minWidth:"180",showOverflowTooltip:e[t.name]!==60},{label:"\u5DE5\u4F5C\u7C7B\u578B",key:"jobType",prop:"jobType",minWidth:"180",showOverflowTooltip:e[t.name]!==60},{label:"\u8F66\u8F86\u7C7B\u578B",key:"carType",prop:"carType",width:"140"},{label:"\u4E58\u5BA2\u59D3\u540D",key:"passengerName",prop:"passengerName",minWidth:"180",showOverflowTooltip:e[t.name]!==60},{label:"\u53F8\u673A\u59D3\u540D",key:"driverName",prop:"driverName",hidden:(e[t.name]||e[l.state])===1,width:"120"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u8BA2\u5355\u8D77\u6B62\u65F6\u95F4",key:"passengerConfirmTime",render:a=>{var d;return w("span",`${a.createOn}-${(d=a.endCarTime)!=null?d:""}`)},hidden:(e[t.name]||e[l.state])!==70,width:"325"},{label:"\u7ED3\u7B97\u65B9\u5F0F",key:"settlementPeriod",render:a=>w("span",a.settlementPeriod===1?"\u5468\u7ED3":"\u6708\u7ED3"),hidden:(e[t.name]||e[l.state])!==70,width:"120"},{label:"\u6240\u5C5E\u533A\u57DF",key:"boardingRegion",prop:"boardingRegion",hidden:(e[t.name]||e[l.state])!==70,minWidth:"220",showOverflowTooltip:!0},{label:"\u5728\u7EBF\u72B6\u6001",key:"carOnlineStatus",render:a=>w("span",a.carOnlineStatus?"\u5728\u7EBF":"\u4E0D\u5728\u7EBF"),hidden:(e[t.name]||e[l.state])!==30,width:"120"},{label:"\u6700\u8FD1\u5728\u7EBF\u65F6\u95F4",key:"lastOnlineTime",prop:"lastOnlineTime",hidden:(e[t.name]||e[l.state])!==30,width:"180"},{label:"\u6700\u8FD1\u5728\u7EBF\u4F4D\u7F6E",key:"lastOnlineAddress",prop:"lastOnlineAddress",hidden:(e[t.name]||e[l.state])!==30,minWidth:"180",showOverflowTooltip:!0},{label:"\u79DF\u8F66\u8D39\uFF08\u5143\uFF09",key:"carFee",render:a=>w("span",a.carFee||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u4E2A\u4EBA\u79DF\u8F66\u8D39\uFF08\u5143\uFF09",key:"carFeeByDriver",render:a=>w("span",a.carFeeByDriver&&a.carFeeByDriver!=="0.00"?a.carFeeByDriver:"-"),hidden:(e[t.name]||e[l.state])!==80,width:"160"},{label:"\u8F66\u673A\u8F68\u8FF9\u91CC\u7A0B\uFF08\u5343\u7C73\uFF09",key:"gpsMileage",prop:"gpsMileage",hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"180"},{label:"\u91CC\u7A0B\u8D39\u7528\uFF08\u5143\uFF09",key:"fuelFee",prop:"fuelFee",hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u505C\u8F66\u8D39\uFF08\u5143\uFF09",key:"parkingFee",render:a=>w("span",a.parkingFee||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u9AD8\u901F\u8D39\uFF08\u5143\uFF09",key:"expresswayFee",render:a=>w("span",a.expresswayFee||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u8D85\u65F6\u8D39\uFF08\u5143\uFF09",key:"workingOvertimeFee",render:a=>w("span",a.workingOvertimeFee||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u591C\u73ED\u8D39\uFF08\u5143\uFF09",key:"nightWorkFee",render:a=>w("span",a.nightWorkFee||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u4E0B\u53BF\u8865\u8D34\uFF08\u5143\uFF09",key:"countySubsidyFee",render:a=>w("span",a.countySubsidyFee||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u9644\u52A0\u8D39\uFF08\u5143\uFF09",key:"surcharge",render:a=>w("span",a.surcharge||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u5176\u4ED6\u8D39\u7528\uFF08\u5143\uFF09",key:"otherCost",render:a=>w("span",a.otherCost||"-"),hidden:[50,60,80].every(a=>a!==(e[t.name]||e[l.state])),width:"140"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:"200",fixed:"right"}]),z=f([]),E=f({}),g=(...d)=>N(this,[...d],function*(a=M.value.pageParams){var v,u,i,V,S,B,H,A;if(t.query.settlementId){const C=yield la(q(I({},a),{settlementId:t.query.settlementId}));U.value=C.data.total,z.value=C.data.records}else{E.value=q(I({},s.value),{startTime:(v=s.value.times)==null?void 0:v[0],endTime:(u=s.value.times)==null?void 0:u[1],times:void 0,createStartTime:(i=s.value.createTimes)==null?void 0:i[0],createEndTime:(V=s.value.createTimes)==null?void 0:V[1],createTimes:void 0,confirmed:t.query.isOrder?!0:void 0,projectId:t.query.isOrder?t.query.projectId:void 0,gpsMileage:t.query.isOrder?30:void 0,orderTimeMin:(S=s.value.orderTime)==null?void 0:S[0],orderTimeMax:(B=s.value.orderTime)==null?void 0:B[1],orderTime:void 0,regionCode:(A=(H=s.value)==null?void 0:H.regionCode)==null?void 0:A.at(-1)});const C=yield ra(e[t.name]||e[l.state],q(I(I({},E.value),a),{pageSize:l.state==="ordersToBeConfirmed"?5:a.pageSize}));U.value=C.data.total,z.value=C.data.records}}),_e=()=>{M.value.pageParams.pageNumber=1,g()},be=()=>{s.value={confirmStartTime:(e[t.name]||e[l.state])===80&&t.query.times?t.query.times[0]:void 0,confirmEndTime:(e[t.name]||e[l.state])===80&&t.query.times?t.query.times[1]:void 0,companyName:(e[t.name]||e[l.state])===80&&t.query.companyName?t.query.companyName:void 0},M.value.pageParams.pageNumber=1,M.value.pageParams.pageSize=10,g()},{exportLoading:ke,exportData:ae}=fa(),h=f(),te=f(),L=f(!1),le=f(!1),G=(a,d)=>N(this,null,function*(){te.value=a;const v=yield ve({orderNum:a.orderNum});v.data.basicInfo.projectId=a.projectId,v.data.basicInfo.companyId=a.companyId,v.data.basicInfo.regionId=a.regionId,v.data.carAndDriverInfo.driverId=a.driverId,v.data.carAndDriverInfo.carTypeDictValue=a.carTypeCode,h.value=v.data,le.value=d,L.value=!0}),he=()=>{L.value=!1,G(te.value)},J=f(!1),re=f(!1),oe=(a,d)=>N(this,null,function*(){h.value=a,re.value=d,J.value=!0}),we=a=>{J.value=!1,a&&g()},X=f(!1),Ce=a=>N(this,null,function*(){h.value=a,X.value=!0}),ge=a=>{X.value=!1,a&&g()},Z=f(!1),Te=a=>N(this,null,function*(){const d=yield ve({orderNum:a.orderNum});h.value=d.data,Z.value=!0}),Ve=a=>{Z.value=!1,a&&g()},K=f(!1),Ne=a=>N(this,null,function*(){h.value=a,K.value=!0}),Oe=a=>{K.value=!1,a&&g()},Q=f(!1),Ie=a=>N(this,null,function*(){h.value=a,Q.value=!0}),Se=a=>{Q.value=!1,a&&g()},De=a=>{P.push({name:"trackPlayback",query:{orderId:a.id}})},xe=({orderStatus:a})=>{const d=e[l.state],v=e[t.name];return(v||d)===10||(v||d)===70&&a!=="IS_CANCEL"&&x.role==="super_admin"},ne=f(!1),Fe=()=>{var u;const{settlementId:a}=t.query,d=a?oa:na,v=a?{settlementId:a}:q(I({},E.value),{orderStatus:(e[t.name]||e[l.state])!==70?(e[t.name]||e[l.state])===80||(u=F.value.find(i=>i.id===(e[t.name]||e[l.state])))==null?void 0:u.key:s.value.orderStatus,type:(e[t.name]||e[l.state])===30?2:[10,20,40,70].some(i=>i===e[t.name]||e[l.state])?1:(e[t.name]||e[l.state])===1?4:void 0});ae(()=>d(I({},v)),ne)},ee=f(!1),Be=()=>{ee.value=!0},Ye=a=>{ee.value=!1};return Je("orderDetail",{detailVisible:L,rowData:h,editOrder:le,close:a=>{L.value=!1,a&&g()}}),Xe(()=>N(this,null,function*(){(e[t.name]||e[l.state])===70&&(j.value=(yield Ze()).data),yield g()})),y({total:U}),(a,d)=>{const v=b("el-date-picker"),u=b("el-form-item"),i=b("el-col"),V=b("el-input"),S=b("el-option"),B=b("el-select"),H=b("el-cascader"),A=b("el-input-number"),C=b("el-button"),Me=b("el-row"),qe=b("el-form"),de=b("el-card"),Re=b("table-list"),$e=b("views");return p(),Y($e,null,{default:n(()=>[e[m(t).name]!==80&&l.state!=="ordersToBeConfirmed"?(p(),Y(de,{key:0,shadow:"never",class:"search myCard mb-16"},{default:n(()=>[r(qe,{"label-suffix":":",model:s.value,size:"small"},{default:n(()=>[r(Me,{gutter:16},{default:n(()=>[r(i,{span:12},{default:n(()=>[r(u,{label:"\u7528\u8F66\u65F6\u95F4"},{default:n(()=>[r(v,{modelValue:s.value.times,"onUpdate:modelValue":d[0]||(d[0]=o=>s.value.times=o),format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm",type:"datetimerange","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),r(i,{span:12,class:"mb-16"},{default:n(()=>[r(u,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:n(()=>[r(v,{modelValue:s.value.createTimes,"onUpdate:modelValue":d[1]||(d[1]=o=>s.value.createTimes=o),format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm",type:"datetimerange","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),r(i,{span:6},{default:n(()=>[r(u,{label:"\u8BA2\u5355\u7F16\u53F7"},{default:n(()=>[r(V,{modelValue:s.value.orderNum,"onUpdate:modelValue":d[2]||(d[2]=o=>s.value.orderNum=o),maxlength:"16",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),r(i,{span:6},{default:n(()=>[r(u,{label:"\u6240\u5C5E\u9879\u76EE"},{default:n(()=>[r(V,{modelValue:s.value.projectName,"onUpdate:modelValue":d[3]||(d[3]=o=>s.value.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),r(i,{span:6},{default:n(()=>[r(u,{label:"\u6240\u5C5E\u4F01\u4E1A"},{default:n(()=>[r(V,{modelValue:s.value.companyName,"onUpdate:modelValue":d[4]||(d[4]=o=>s.value.companyName=o),readonly:m(t).name==="orderListInSettlementDoc",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue","readonly"])]),_:1})]),_:1}),r(i,{span:6,class:"mb-16"},{default:n(()=>[r(u,{label:"\u8F66\u8F86\u7C7B\u578B"},{default:n(()=>[r(B,{modelValue:s.value.carType,"onUpdate:modelValue":d[5]||(d[5]=o=>s.value.carType=o),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:!0},{default:n(()=>[(p(!0),_(D,null,fe(m(T).find(o=>o.dictType==="car_type").dictData,o=>(p(),Y(S,{key:o.id,label:o.dictLabel,value:o.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),r(i,{span:6},{default:n(()=>[r(u,{label:"\u4E58\u5BA2\u59D3\u540D"},{default:n(()=>[r(V,{modelValue:s.value.passengerName,"onUpdate:modelValue":d[6]||(d[6]=o=>s.value.passengerName=o),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),(e[m(t).name]||e[l.state])!==1?(p(),_(D,{key:0},[r(i,{span:6},{default:n(()=>[r(u,{label:"\u53F8\u673A\u59D3\u540D"},{default:n(()=>[r(V,{modelValue:s.value.driverName,"onUpdate:modelValue":d[7]||(d[7]=o=>s.value.driverName=o),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),r(i,{span:6,class:"mb-16"},{default:n(()=>[r(u,{label:"\u8F66\u724C\u53F7\u7801"},{default:n(()=>[r(V,{modelValue:s.value.carNum,"onUpdate:modelValue":d[8]||(d[8]=o=>s.value.carNum=o),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})],64)):k("",!0),(e[m(t).name]||e[l.state])===70?(p(),_(D,{key:1},[r(i,{span:6},{default:n(()=>[r(u,{label:"\u8BA2\u5355\u72B6\u6001"},{default:n(()=>[r(B,{modelValue:s.value.orderStatus,"onUpdate:modelValue":d[9]||(d[9]=o=>s.value.orderStatus=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:n(()=>[(p(!0),_(D,null,fe(m(F),o=>(p(),Y(S,{key:o.key,label:o.value,value:o.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),r(i,{span:8},{default:n(()=>[r(u,{label:"\u8BA2\u5355\u65F6\u95F4"},{default:n(()=>[r(v,{modelValue:s.value.orderTime,"onUpdate:modelValue":d[10]||(d[10]=o=>s.value.orderTime=o),format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm",type:"datetimerange","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),r(i,{span:4},{default:n(()=>[r(u,{label:"\u7ED3\u7B97\u65B9\u5F0F"},{default:n(()=>[r(B,{modelValue:s.value.settlementPeriod,"onUpdate:modelValue":d[11]||(d[11]=o=>s.value.settlementPeriod=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:n(()=>[r(S,{label:"\u6708\u7ED3",value:2}),r(S,{label:"\u5468\u7ED3",value:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),r(i,{span:4},{default:n(()=>[r(u,{label:"\u6240\u5C5E\u533A\u57DF"},{default:n(()=>[r(H,{modelValue:s.value.regionCode,"onUpdate:modelValue":d[12]||(d[12]=o=>s.value.regionCode=o),props:m($),options:j.value,clearable:"",class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1}),r(i,{span:4},{default:n(()=>[r(u,{label:"\u8D85\u65F6\u65F6\u957F"},{default:n(()=>[r(A,{modelValue:s.value.overTime,"onUpdate:modelValue":d[13]||(d[13]=o=>s.value.overTime=o),controls:!1,placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})],64)):k("",!0),r(i,{span:(e[m(t).name]||e[l.state])===70?4:24},{default:n(()=>[r(u,{class:"btn"},{default:n(()=>[r(C,{type:"primary",onClick:_e},{default:n(()=>[_a]),_:1}),r(C,{type:"info",onClick:be},{default:n(()=>[ba]),_:1})]),_:1})]),_:1},8,["span"])]),_:1})]),_:1},8,["model"])]),_:1})):k("",!0),r(de,{shadow:"never",class:Qe(l.state!=="ordersToBeConfirmed"?"":"noCardStyle")},Ke({default:n(()=>[r(Re,{ref_key:"tableListRef",ref:M,column:ye.value,data:z.value,total:U.value,pagination:l.state!=="ordersToBeConfirmed","empty-temp":l.state!=="ordersToBeConfirmed",border:e[m(t).name]===60,onGetTableData:g},{action:n(({scope:o})=>{var se,ie,me;return[W("a",{class:"text-primary",onClick:O=>G(o.row)},"\u8BE6\u60C5",8,Ta),xe(o.row)?(p(),_("a",{key:0,class:"text-danger",onClick:O=>Ce(o.row)},"\u53D6\u6D88\u8BA2\u5355",8,Va)):(p(),_(D,{key:1},[(e[m(t).name]||e[l.state])!==40&&(e[m(t).name]||e[l.state])!==1?(p(),_("a",{key:0,class:"text-primary",onClick:O=>De(o.row)},"\u8F68\u8FF9",8,Na)):k("",!0),(e[m(t).name]||e[l.state])===50?(p(),_("a",{key:1,class:"text-primary",onClick:O=>Te(o.row)},"\u786E\u8BA4\u8BA2\u5355",8,Oa)):(e[m(t).name]||e[l.state])===1&&((se=m(x))==null?void 0:se.role)==="super_admin"?(p(),_("a",{key:2,class:"text-primary",onClick:O=>oe(o.row)},"\u5206\u914D\u53F8\u673A",8,Ia)):k("",!0)],64)),(e[m(t).name]||e[l.state])===70&&["super_admin","project_manager"].includes((ie=m(x))==null?void 0:ie.role)?(p(),_(D,{key:2},[["super_admin"].includes((me=m(x))==null?void 0:me.role)?(p(),_(D,{key:0},[o.row.orderStatus==="TO_BE_ORDER"||o.row.orderStatus==="WAITING_FOR_CAR"?(p(),_("a",{key:0,class:"text-primary",onClick:O=>oe(o.row,!0)},"\u4FEE\u6539\u53F8\u673A",8,Sa)):k("",!0),o.row.orderStatus==="TO_BE_CONFIRM"||o.row.orderStatus==="CONFIRM"?(p(),_("a",{key:1,class:"text-primary",onClick:O=>G(o.row,!0)},"\u4FEE\u6539",8,Da)):k("",!0)],64)):k("",!0),o.row.orderStatus==="WAITING_FOR_CAR"?(p(),_("a",{key:1,class:"text-primary",onClick:O=>Ne(o.row)},"\u786E\u8BA4\u4E0A\u8F66",8,xa)):k("",!0),o.row.orderStatus==="ON_SERVICE"?(p(),_("a",{key:2,class:"text-primary",onClick:O=>Ie(o.row)},"\u8BA2\u5355\u5B8C\u6210",8,Fa)):k("",!0)],64)):k("",!0)]}),_:1},8,["column","data","total","pagination","empty-temp","border"])]),_:2},[l.state!=="ordersToBeConfirmed"?{name:"header",fn:n(()=>[W("div",ka,[ha,W("div",null,[(e[m(t).name]||e[l.state])===70?(p(),Y(C,{key:0,loading:m(ke),type:"primary",plain:"",icon:"Download",size:"small",onClick:d[14]||(d[14]=o=>m(ae)(()=>m(ta)(I({},E.value))))},{default:n(()=>[wa]),_:1},8,["loading"])):k("",!0),r(C,{loading:ne.value,type:"primary",plain:"",icon:"Download",size:"small",onClick:Fe},{default:n(()=>[Ca]),_:1},8,["loading"]),(e[m(t).name]||e[l.state])===60?(p(),Y(C,{key:1,type:"primary",plain:"",icon:"Download",size:"small",onClick:Be},{default:n(()=>[ga]),_:1})):k("",!0)])])]),key:"0"}:void 0]),1032,["class"]),r(da,{onUpdateInfo:he}),r(sa,{visible:J.value,data:h.value,"is-edit-driver":re.value,onClose:we},null,8,["visible","data","is-edit-driver"]),r(ia,{visible:X.value,data:h.value,onClose:ge},null,8,["visible","data"]),r(ma,{visible:Z.value,data:h.value,onClose:Ve},null,8,["visible","data"]),r(pa,{visible:K.value,data:h.value,onClose:Oe},null,8,["visible","data"]),r(ua,{visible:Q.value,data:h.value,onClose:Se},null,8,["visible","data"]),r(ca,{visible:ee.value,onClose:Ye},null,8,["visible"])]),_:1})}}}),Qa=Ae(Ya,[["__scopeId","data-v-5bf3e5ef"]]);export{Qa as default};