var He=Object.defineProperty,We=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Ge=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable;var fe=(f,b,l)=>b in f?He(f,b,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[b]=l,O=(f,b)=>{for(var l in b||(b={}))Ge.call(b,l)&&fe(f,l,b[l]);if(ve)for(var l of ve(b))Qe.call(b,l)&&fe(f,l,b[l]);return f},Y=(f,b)=>We(f,Pe(b));var I=(f,b,l)=>new Promise((k,E)=>{var U=V=>{try{t(l.next(V))}catch(B){E(B)}},X=V=>{try{t(l.throw(V))}catch(B){E(B)}},t=V=>V.done?k(V.value):Promise.resolve(V.value).then(U,X);t((l=l.apply(f,b)).next())});import{_ as Xe,d as Ze,z as ye,r as y,u as Je,k as Ke,y as ea,O as C,X as aa,o as ta,R as la,f as w,g as u,c as v,p as $,w as s,e as o,x as i,F as x,s as _e,q as _,Y as ra,b as Q,Z as oa,h as q,N as be,Q as ke,E as he,L as na,M as sa}from"./index.551f5afa.js";import{e as da,t as ia,l as ua,d as we,v as ge,a as ma,b as pa}from"./orderManage.fe83d1aa.js";import ca from"./orderDetailDrawer.0d230e82.js";import va from"./driverAssignmentDialog.3ded3353.js";import fa from"./cancelOrderDialog.6462d36c.js";import ya from"./confirmOrderDialog.20c477e6.js";import _a from"./orderCompletionDialog.935a9c56.js";import ba from"./confirmBoardingDialog.6f299ad8.js";import ka from"./trajectoryDialog.2c56fe01.js";import{u as ha}from"./useExportExc.d21c8116.js";import{u as wa}from"./useTreeSelectData.cd9b00f2.js";import"./uploadAction.69ee4a64.js";import"./editOrderForm.0883fbb5.js";import"./projectManage.6b7da462.js";import"./imageWaterUtils.2f29f38d.js";import"./queryAddressDialog.b1b493b1.js";import"./locationTransform.e2d22cb6.js";import"./tiandimap.7a5ad2ba.js";const ga=f=>(na("data-v-c38e618d"),f=f(),sa(),f),Ca=q("\u67E5\u8BE2"),Ta=q("\u91CD\u7F6E"),Va={class:"flex justify-between items-center"},Sa=ga(()=>Q("span",null,"\u8BA2\u5355\u5217\u8868",-1)),Na=q(" \u5BFC\u51FA\u53F8\u673A\u7ED3\u7B97\u8BA2\u5355 "),Oa=q(" \u5BFC\u51FA "),Ia=q(" \u5BFC\u51FA\u8F68\u8FF9 "),xa=["onClick"],Da=["onClick"],Fa=["onClick"],Ma=["onClick"],Ba=["onClick"],Ya=["onClick"],$a=["onClick"],Ra=["onClick"],ja=["onClick"],qa={key:4,class:"text-info"},Ea=["onClick"],Ua=["onClick"],La=Ze({name:"OrderList",beforeRouteEnter(f,b,l){f.meta.activeMenu=f.query.activeMenu,l()}}),za=Object.assign(La,{props:{state:String},setup(f,{expose:b}){const l=f,k=ye.userStore.userBaseInfo,{cascaderProps:E}=wa(),U=y([]),X=Je(),t=Ke(),{dictList:V,orderStatusOption:B}=ea(ye.dictStore),e={orderToBeDistributed:1,ordersToBeAccepted:10,ordersInService:20,realtimePositions:30,ordersCancelled:40,ordersToBeConfirmed:50,confirmedOrders:60,ordersReview:70,orderListInSettlementDoc:80},d=y({companyName:(e[t.name]||e[l.state])===80&&t.query.companyName?t.query.companyName:void 0}),R=y(),L=y(0),Ce=y([{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 n;return C("span",`${a.createOn}-${(n=a.endCarTime)!=null?n:""}`)},hidden:(e[t.name]||e[l.state])!==70,width:"325"},{label:"\u7ED3\u7B97\u65B9\u5F0F",key:"settlementPeriod",render:a=>C("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=>C("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=>C("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=>C("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=>C("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=>C("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=>C("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=>C("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=>C("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=>C("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=>C("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=y([]),z=y({}),h=(...n)=>I(this,[...n],function*(a=R.value.pageParams){var c,p,m,S,N,F,H,W,D,P,G,j;if(t.query.settlementId){const M=yield ia(Y(O(Y(O({},a),{settlementId:t.query.settlementId}),d.value),{startTime:(c=d.value.times)==null?void 0:c[0],endTime:(p=d.value.times)==null?void 0:p[1],createStartTime:(m=d.value.createTimes)==null?void 0:m[0],createEndTime:(S=d.value.createTimes)==null?void 0:S[1]}));L.value=M.data.total,Z.value=M.data.records}else{z.value=Y(O({},d.value),{startTime:(N=d.value.times)==null?void 0:N[0],endTime:(F=d.value.times)==null?void 0:F[1],times:void 0,createStartTime:(H=d.value.createTimes)==null?void 0:H[0],createEndTime:(W=d.value.createTimes)==null?void 0:W[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:(D=d.value.orderTime)==null?void 0:D[0],orderTimeMax:(P=d.value.orderTime)==null?void 0:P[1],orderTime:void 0,regionCode:(j=(G=d.value)==null?void 0:G.regionCode)==null?void 0:j.at(-1)});const M=yield ua(e[t.name]||e[l.state],Y(O(O({},z.value),a),{pageSize:l.state==="ordersToBeConfirmed"?5:a.pageSize}));L.value=M.data.total,Z.value=M.data.records}}),Te=()=>{R.value.pageParams.pageNumber=1,h()},Ve=()=>{d.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},R.value.pageParams.pageNumber=1,R.value.pageParams.pageSize=10,h()},{exportLoading:Se,exportData:oe}=ha(),g=y(),ne=y(),A=y(!1),se=y(!1),J=(a,n)=>I(this,null,function*(){ne.value=a;const c=yield we({orderNum:a.orderNum});c.data.basicInfo.projectId=a.projectId,c.data.basicInfo.companyId=a.companyId,c.data.basicInfo.regionId=a.regionId,c.data.carAndDriverInfo.driverId=a.driverId,c.data.carAndDriverInfo.carTypeDictValue=a.carTypeCode,g.value=c.data,se.value=n,A.value=!0}),Ne=()=>{A.value=!1,J(ne.value)},K=y(!1),de=y(!1),ie=(a,n)=>I(this,null,function*(){g.value=a,de.value=n,K.value=!0}),Oe=a=>{K.value=!1,a&&h()},ee=y(!1),Ie=a=>I(this,null,function*(){g.value=a,ee.value=!0}),xe=a=>{ee.value=!1,a&&h()},ae=y(!1),De=a=>I(this,null,function*(){const n=yield we({orderNum:a.orderNum});g.value=n.data,ae.value=!0}),Fe=a=>{ae.value=!1,a&&h()},te=y(!1),Me=a=>I(this,null,function*(){g.value=a,te.value=!0}),Be=a=>{te.value=!1,a&&h()},le=y(!1),Ye=a=>I(this,null,function*(){g.value=a,le.value=!0}),$e=a=>{le.value=!1,a&&h()},Re=a=>{X.push({name:"trackPlayback",query:{orderId:a.id}})},je=({orderStatus:a})=>{const n=e[l.state],c=e[t.name];return(c||n)===10||(c||n)===70&&a!=="IS_CANCEL"&&k.role==="super_admin"},ue=y(!1),qe=()=>{var p;const{settlementId:a}=t.query,n=a?ma:pa,c=a?{settlementId:a}:Y(O({},z.value),{orderStatus:(e[t.name]||e[l.state])!==70?(e[t.name]||e[l.state])===80||(p=B.value.find(m=>m.id===(e[t.name]||e[l.state])))==null?void 0:p.key:d.value.orderStatus,type:(e[t.name]||e[l.state])===30?2:[10,20,40,70].some(m=>m===e[t.name]||e[l.state])?1:(e[t.name]||e[l.state])===1?4:void 0});oe(()=>n(O({},c)),ue)},re=y(!1),Ee=()=>{re.value=!0},Ue=a=>{re.value=!1};function Le(a){const n=be(a.useCarTime),c=be(),p=c.isSame(n,"month"),m=n.isSame(c.subtract(1,"month"),"month");return p||m}aa("orderDetail",{detailVisible:A,rowData:g,editOrder:se,close:a=>{A.value=!1,a&&h()}}),ta(()=>I(this,null,function*(){(e[t.name]||e[l.state])===70&&(U.value=(yield la()).data),console.log("zou=zzsadsa "),yield h()})),b({total:L});function ze(a){ke.confirm("\u786E\u5B9A\u53D6\u6D88\u4F5C\u5E9F\u6B64\u8BA2\u5355\u5417?").then(()=>{ge({isSettlementFee:!0,orderId:a.id}).then(()=>{h(),he.success("\u53D6\u6D88\u4F5C\u5E9F\u6210\u529F")})}).catch(()=>{}),h()}function Ae(a){ke.confirm("\u786E\u5B9A\u8981\u4F5C\u5E9F\u6B64\u8BA2\u5355\u5417?").then(()=>{ge({isSettlementFee:!1,orderId:a.id}).then(()=>{h(),he.success("\u4F5C\u5E9F\u6210\u529F")})}).catch(()=>{})}return(a,n)=>{const c=w("el-date-picker"),p=w("el-form-item"),m=w("el-col"),S=w("el-input"),N=w("el-option"),F=w("el-select"),H=w("el-cascader"),W=w("el-input-number"),D=w("el-button"),P=w("el-row"),G=w("el-form"),j=w("el-card"),M=w("table-list");return u(),v("div",null,[l.state!=="ordersToBeConfirmed"?(u(),$(j,{key:0,shadow:"never",class:"search myCard mb-16"},{default:s(()=>[o(G,{"label-suffix":":",model:d.value,size:"small"},{default:s(()=>[o(P,{gutter:16},{default:s(()=>[o(m,{span:12},{default:s(()=>[o(p,{label:"\u7528\u8F66\u65F6\u95F4"},{default:s(()=>[o(c,{modelValue:d.value.times,"onUpdate:modelValue":n[0]||(n[0]=r=>d.value.times=r),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}),o(m,{span:12,class:"mb-16"},{default:s(()=>[o(p,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:s(()=>[o(c,{modelValue:d.value.createTimes,"onUpdate:modelValue":n[1]||(n[1]=r=>d.value.createTimes=r),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}),o(m,{span:6},{default:s(()=>[o(p,{label:"\u8BA2\u5355\u7F16\u53F7"},{default:s(()=>[o(S,{modelValue:d.value.orderNum,"onUpdate:modelValue":n[2]||(n[2]=r=>d.value.orderNum=r),maxlength:"16",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:6},{default:s(()=>[o(p,{label:"\u6240\u5C5E\u9879\u76EE"},{default:s(()=>[o(S,{modelValue:d.value.projectName,"onUpdate:modelValue":n[3]||(n[3]=r=>d.value.projectName=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:6},{default:s(()=>[o(p,{label:"\u6240\u5C5E\u4F01\u4E1A"},{default:s(()=>[o(S,{modelValue:d.value.companyName,"onUpdate:modelValue":n[4]||(n[4]=r=>d.value.companyName=r),readonly:i(t).name==="orderListInSettlementDoc",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue","readonly"])]),_:1})]),_:1}),o(m,{span:6,class:"mb-16"},{default:s(()=>[o(p,{label:"\u8F66\u8F86\u7C7B\u578B"},{default:s(()=>[o(F,{modelValue:d.value.carType,"onUpdate:modelValue":n[5]||(n[5]=r=>d.value.carType=r),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:!0},{default:s(()=>[(u(!0),v(x,null,_e(i(V).find(r=>r.dictType==="car_type").dictData,r=>(u(),$(N,{key:r.id,label:r.dictLabel,value:r.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(m,{span:6},{default:s(()=>[o(p,{label:"\u4E58\u5BA2\u59D3\u540D"},{default:s(()=>[o(S,{modelValue:d.value.passengerName,"onUpdate:modelValue":n[6]||(n[6]=r=>d.value.passengerName=r),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),(e[i(t).name]||e[l.state])!==1?(u(),v(x,{key:0},[o(m,{span:6},{default:s(()=>[o(p,{label:"\u53F8\u673A\u59D3\u540D"},{default:s(()=>[o(S,{modelValue:d.value.driverName,"onUpdate:modelValue":n[7]||(n[7]=r=>d.value.driverName=r),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:6,class:"mb-16"},{default:s(()=>[o(p,{label:"\u8F66\u724C\u53F7\u7801"},{default:s(()=>[o(S,{modelValue:d.value.carNum,"onUpdate:modelValue":n[8]||(n[8]=r=>d.value.carNum=r),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e[i(t).name]===60?(u(),$(m,{key:0,span:6,class:"mb-16"},{default:s(()=>[o(p,{label:"\u662F\u5426\u4F5C\u5E9F"},{default:s(()=>[o(F,{modelValue:d.value.isSettlementFee,"onUpdate:modelValue":n[9]||(n[9]=r=>d.value.isSettlementFee=r),placeholder:"\u8BF7\u9009\u62E9",class:"w-full",clearable:!0},{default:s(()=>[o(N,{key:"true",label:"\u5426",value:"true"}),o(N,{key:"true",label:"\u662F",value:"false"})]),_:1},8,["modelValue"])]),_:1})]),_:1})):_("",!0)],64)):_("",!0),(e[i(t).name]||e[l.state])===70?(u(),v(x,{key:1},[o(m,{span:6},{default:s(()=>[o(p,{label:"\u8BA2\u5355\u72B6\u6001"},{default:s(()=>[o(F,{modelValue:d.value.orderStatus,"onUpdate:modelValue":n[10]||(n[10]=r=>d.value.orderStatus=r),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:s(()=>[(u(!0),v(x,null,_e(i(B),r=>(u(),$(N,{key:r.key,label:r.value,value:r.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(m,{span:8},{default:s(()=>[o(p,{label:"\u8BA2\u5355\u65F6\u95F4"},{default:s(()=>[o(c,{modelValue:d.value.orderTime,"onUpdate:modelValue":n[11]||(n[11]=r=>d.value.orderTime=r),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}),o(m,{span:4},{default:s(()=>[o(p,{label:"\u7ED3\u7B97\u65B9\u5F0F"},{default:s(()=>[o(F,{modelValue:d.value.settlementPeriod,"onUpdate:modelValue":n[12]||(n[12]=r=>d.value.settlementPeriod=r),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:s(()=>[o(N,{label:"\u6708\u7ED3",value:2}),o(N,{label:"\u5468\u7ED3",value:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(m,{span:4},{default:s(()=>[o(p,{label:"\u6240\u5C5E\u533A\u57DF"},{default:s(()=>[o(H,{modelValue:d.value.regionCode,"onUpdate:modelValue":n[13]||(n[13]=r=>d.value.regionCode=r),props:i(E),options:U.value,clearable:"",class:"w-full"},null,8,["modelValue","props","options"])]),_:1})]),_:1}),o(m,{span:4},{default:s(()=>[o(p,{label:"\u8D85\u65F6\u65F6\u957F"},{default:s(()=>[o(W,{modelValue:d.value.overTime,"onUpdate:modelValue":n[14]||(n[14]=r=>d.value.overTime=r),controls:!1,placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})],64)):_("",!0),o(m,{span:(e[i(t).name]||e[l.state])===70?4:24},{default:s(()=>[o(p,{class:"btn"},{default:s(()=>[o(D,{type:"primary",onClick:Te},{default:s(()=>[Ca]),_:1}),o(D,{type:"info",onClick:Ve},{default:s(()=>[Ta]),_:1})]),_:1})]),_:1},8,["span"])]),_:1})]),_:1},8,["model"])]),_:1})):_("",!0),o(j,{shadow:"never",class:oa(l.state!=="ordersToBeConfirmed"?"":"noCardStyle")},ra({default:s(()=>[o(M,{ref_key:"tableListRef",ref:R,column:Ce.value,data:Z.value,total:L.value,pagination:l.state!=="ordersToBeConfirmed","empty-temp":l.state!=="ordersToBeConfirmed",border:e[i(t).name]===60,onGetTableData:h},{action:s(({scope:r})=>{var me,pe,ce;return[Q("a",{class:"text-primary",onClick:T=>J(r.row)},"\u8BE6\u60C5",8,xa),je(r.row)?(u(),v("a",{key:0,class:"text-danger",onClick:T=>Ie(r.row)},"\u53D6\u6D88\u8BA2\u5355",8,Da)):(u(),v(x,{key:1},[(e[i(t).name]||e[l.state])!==40&&(e[i(t).name]||e[l.state])!==1&&r.row.orderStatus!=="IS_CANCEL"?(u(),v("a",{key:0,class:"text-primary",onClick:T=>Re(r.row)},"\u8F68\u8FF9",8,Fa)):_("",!0),(e[i(t).name]||e[l.state])===50?(u(),v("a",{key:1,class:"text-primary",onClick:T=>De(r.row)},"\u786E\u8BA4\u8BA2\u5355",8,Ma)):(e[i(t).name]||e[l.state])===1&&((me=i(k))==null?void 0:me.role)==="super_admin"?(u(),v("a",{key:2,class:"text-primary",onClick:T=>ie(r.row)},"\u5206\u914D\u53F8\u673A",8,Ba)):_("",!0)],64)),(e[i(t).name]||e[l.state])===70&&["super_admin","project_manager"].includes((pe=i(k))==null?void 0:pe.role)?(u(),v(x,{key:2},[["super_admin"].includes((ce=i(k))==null?void 0:ce.role)?(u(),v(x,{key:0},[r.row.orderStatus==="TO_BE_ORDER"||r.row.orderStatus==="WAITING_FOR_CAR"?(u(),v("a",{key:0,class:"text-primary",onClick:T=>ie(r.row,!0)},"\u4FEE\u6539\u53F8\u673A",8,Ya)):_("",!0),r.row.orderStatus==="TO_BE_CONFIRM"||r.row.orderStatus==="CONFIRM"?(u(),v("a",{key:1,class:"text-primary",onClick:T=>J(r.row,!0)},"\u4FEE\u6539",8,$a)):_("",!0)],64)):_("",!0)],64)):_("",!0),(e[i(t).name]||e[l.state])===70?(u(),v(x,{key:3},[r.row.orderStatus==="WAITING_FOR_CAR"&&(i(k).role==="project_manager"||i(k).role==="regional_general_manager"||i(k).role==="enterprise_admin"||i(k).role==="super_admin")?(u(),v("a",{key:0,class:"text-primary",onClick:T=>Me(r.row)},"\u786E\u8BA4\u4E0A\u8F66",8,Ra)):_("",!0),r.row.orderStatus==="ON_SERVICE"&&(i(k).role==="project_manager"||i(k).role==="regional_general_manager"||i(k).role==="enterprise_admin"||i(k).role==="super_admin")?(u(),v("a",{key:1,class:"text-primary",onClick:T=>Ye(r.row)},"\u8BA2\u5355\u5B8C\u6210",8,ja)):_("",!0)],64)):_("",!0),!r.row.isSettlementFee&&e[i(t).name]===60?(u(),v("a",qa,"\u5DF2\u4F5C\u5E9F")):_("",!0),e[i(t).name]===60&&Le(r.row)?(u(),v(x,{key:5},[r.row.isSettlementFee?(u(),v("a",{key:0,class:"text-danger",onClick:T=>Ae(r.row)},"\u4F5C\u5E9F",8,Ea)):_("",!0),r.row.isSettlementFee?_("",!0):(u(),v("a",{key:1,class:"text-primary",onClick:T=>ze(r.row)},"\u64A4\u9500\u4F5C\u5E9F",8,Ua))],64)):_("",!0)]}),_:1},8,["column","data","total","pagination","empty-temp","border"])]),_:2},[l.state!=="ordersToBeConfirmed"?{name:"header",fn:s(()=>[Q("div",Va,[Sa,Q("div",null,[(e[i(t).name]||e[l.state])===70?(u(),$(D,{key:0,loading:i(Se),type:"primary",plain:"",icon:"Download",size:"small",onClick:n[15]||(n[15]=r=>i(oe)(()=>i(da)(O({},z.value))))},{default:s(()=>[Na]),_:1},8,["loading"])):_("",!0),o(D,{loading:ue.value,type:"primary",plain:"",icon:"Download",size:"small",onClick:qe},{default:s(()=>[Oa]),_:1},8,["loading"]),(e[i(t).name]||e[l.state])===60?(u(),$(D,{key:1,type:"primary",plain:"",icon:"Download",size:"small",onClick:Ee},{default:s(()=>[Ia]),_:1})):_("",!0)])])]),key:"0"}:void 0]),1032,["class"]),o(ca,{onUpdateInfo:Ne}),o(va,{visible:K.value,data:g.value,"is-edit-driver":de.value,onClose:Oe},null,8,["visible","data","is-edit-driver"]),o(fa,{visible:ee.value,data:g.value,onClose:xe},null,8,["visible","data"]),o(ya,{visible:ae.value,data:g.value,onClose:Fe},null,8,["visible","data"]),o(ba,{visible:te.value,data:g.value,onClose:Be},null,8,["visible","data"]),o(_a,{visible:le.value,data:g.value,onClose:$e},null,8,["visible","data"]),o(ka,{visible:re.value,onClose:Ue},null,8,["visible"])])}}}),it=Xe(za,[["__scopeId","data-v-c38e618d"]]);export{it as default};