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.

2 lines
21KB

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