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},$=(v,b)=>Pe(v,Ge(b));var I=(v,b,l)=>new Promise((k,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?k(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 y,u as Ke,k as ea,x as aa,O as C,X as ta,o as la,R as ra,f as h,g as u,n as B,w as s,e as r,v as i,c as f,q as _e,F as x,p as _,Y as oa,b as J,Z as na,h as q,M as be,Q as ke,E as he,J as sa,L as da}from"./index.2f2d2ba5.js";import{e as ia,t as ua,l as ma,d as we,v as ge,a as pa,b as ca}from"./orderManage.860c8cb8.js";import va from"./orderDetailDrawer.910fb89c.js";import fa from"./driverAssignmentDialog.cc5e5a8e.js";import ya from"./cancelOrderDialog.9cf32f2d.js";import _a from"./confirmOrderDialog.f8b864d0.js";import ba from"./orderCompletionDialog.ddddbc09.js";import ka from"./confirmBoardingDialog.7e310282.js";import ha from"./trajectoryDialog.ac0603d7.js";import{u as wa}from"./useExportExc.f7f515f1.js";import{u as ga}from"./useTreeSelectData.c9995d0b.js";import"./uploadAction.0d49f3ae.js";import"./editOrderForm.8ab2c8aa.js";import"./projectManage.04af1691.js";import"./imageWaterUtils.2f29f38d.js";import"./queryAddressDialog.fcdb692d.js";import"./locationTransform.e2d22cb6.js";import"./tiandimap.f7d8cf54.js";const Ca=v=>(sa("data-v-28b7d3d1"),v=v(),da(),v),Ta=q("\u67E5\u8BE2"),Va=q("\u91CD\u7F6E"),Sa={class:"flex justify-between items-center"},Na=Ca(()=>J("span",null,"\u8BA2\u5355\u5217\u8868",-1)),Oa=q(" \u5BFC\u51FA\u53F8\u673A\u7ED3\u7B97\u8BA2\u5355 "),Ia=q(" \u5BFC\u51FA "),xa=q(" \u5BFC\u51FA\u8F68\u8FF9 "),Da=["onClick"],Fa=["onClick"],Ma=["onClick"],Ba=["onClick"],Ya=["onClick"],$a=["onClick"],Ra=["onClick"],ja=["onClick"],qa=["onClick"],Ea={key:4,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,k=ye.userStore.userBaseInfo,{cascaderProps:E}=ga(),U=y([]),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=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"}]),X=y([]),H=y({}),w=(...n)=>I(this,[...n],function*(a=R.value.pageParams){var c,p,m,S,N,F,A,W,D,P,G,j;if(t.query.settlementId){const M=yield ua($(O($(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,X.value=M.data.records}else{H.value=$(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:(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 ma(e[t.name]||e[l.state],$(O(O({},H.value),a),{pageSize:l.state==="ordersToBeConfirmed"?5:a.pageSize}));L.value=M.data.total,X.value=M.data.records}}),Te=()=>{R.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},R.value.pageParams.pageNumber=1,R.value.pageParams.pageSize=10,w()},{exportLoading:Se,exportData:oe}=wa(),g=y(),ne=y(),z=y(!1),se=y(!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=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&&w()},ee=y(!1),Ie=a=>I(this,null,function*(){g.value=a,ee.value=!0}),xe=a=>{ee.value=!1,a&&w()},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&&w()},te=y(!1),Me=a=>I(this,null,function*(){g.value=a,te.value=!0}),Be=a=>{te.value=!1,a&&w()},le=y(!1),Ye=a=>I(this,null,function*(){g.value=a,le.value=!0}),$e=a=>{le.value=!1,a&&w()},Re=a=>{Q.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?pa:ca,c=a?{settlementId:a}:$(O({},H.value),{orderStatus:(e[t.name]||e[l.state])!==70?(e[t.name]||e[l.state])===80||(p=Y.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}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){ke.confirm("\u786E\u5B9A\u53D6\u6D88\u4F5C\u5E9F\u6B64\u8BA2\u5355\u5417?").then(()=>{ge({isSettlementFee:!0,orderId:a.id}).then(()=>{w(),he.success("\u53D6\u6D88\u4F5C\u5E9F\u6210\u529F")})}).catch(()=>{}),w()}function ze(a){ke.confirm("\u786E\u5B9A\u8981\u4F5C\u5E9F\u6B64\u8BA2\u5355\u5417?").then(()=>{ge({isSettlementFee:!1,orderId:a.id}).then(()=>{w(),he.success("\u4F5C\u5E9F\u6210\u529F")})}).catch(()=>{})}return(a,n)=>{const c=h("el-date-picker"),p=h("el-form-item"),m=h("el-col"),S=h("el-input"),N=h("el-option"),F=h("el-select"),A=h("el-cascader"),W=h("el-input-number"),D=h("el-button"),P=h("el-row"),G=h("el-form"),j=h("el-card"),M=h("table-list"),Ae=h("views");return u(),B(Ae,null,{default:s(()=>[l.state!=="ordersToBeConfirmed"?(u(),B(j,{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(m,{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(m,{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(m,{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(m,{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(m,{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(m,{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(()=>[(u(!0),f(x,null,_e(i(V).find(o=>o.dictType==="car_type").dictData,o=>(u(),B(N,{key:o.id,label:o.dictLabel,value:o.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),r(m,{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?(u(),f(x,{key:0},[r(m,{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(m,{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?(u(),B(m,{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?(u(),f(x,{key:1},[r(m,{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(()=>[(u(!0),f(x,null,_e(i(Y),o=>(u(),B(N,{key:o.key,label:o.value,value:o.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),r(m,{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(m,{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(m,{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(m,{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(m,{span:(e[i(t).name]||e[l.state])===70?4:24},{default:s(()=>[r(p,{class:"btn"},{default:s(()=>[r(D,{type:"primary",onClick:Te},{default:s(()=>[Ta]),_:1}),r(D,{type:"info",onClick:Ve},{default:s(()=>[Va]),_:1})]),_:1})]),_:1},8,["span"])]),_:1})]),_:1},8,["model"])]),_:1})):_("",!0),r(j,{shadow:"never",class:na(l.state!=="ordersToBeConfirmed"?"":"noCardStyle")},oa({default:s(()=>[r(M,{ref_key:"tableListRef",ref:R,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 me,pe,ce;return[J("a",{class:"text-primary",onClick:T=>Z(o.row)},"\u8BE6\u60C5",8,Da),je(o.row)?(u(),f("a",{key:0,class:"text-danger",onClick:T=>Ie(o.row)},"\u53D6\u6D88\u8BA2\u5355",8,Fa)):(u(),f(x,{key:1},[(e[i(t).name]||e[l.state])!==40&&(e[i(t).name]||e[l.state])!==1?(u(),f("a",{key:0,class:"text-primary",onClick:T=>Re(o.row)},"\u8F68\u8FF9",8,Ma)):_("",!0),(e[i(t).name]||e[l.state])===50?(u(),f("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&&((me=i(k))==null?void 0:me.role)==="super_admin"?(u(),f("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(k))==null?void 0:pe.role)?(u(),f(x,{key:2},[["super_admin"].includes((ce=i(k))==null?void 0:ce.role)?(u(),f(x,{key:0},[o.row.orderStatus==="TO_BE_ORDER"||o.row.orderStatus==="WAITING_FOR_CAR"?(u(),f("a",{key:0,class:"text-primary",onClick:T=>ie(o.row,!0)},"\u4FEE\u6539\u53F8\u673A",8,$a)):_("",!0),o.row.orderStatus==="TO_BE_CONFIRM"||o.row.orderStatus==="CONFIRM"?(u(),f("a",{key:1,class:"text-primary",onClick:T=>Z(o.row,!0)},"\u4FEE\u6539",8,Ra)):_("",!0)],64)):_("",!0)],64)):_("",!0),(e[i(t).name]||e[l.state])===70?(u(),f(x,{key:3},[o.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(),f("a",{key:0,class:"text-primary",onClick:T=>Me(o.row)},"\u786E\u8BA4\u4E0A\u8F66",8,ja)):_("",!0),o.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(),f("a",{key:1,class:"text-primary",onClick:T=>Ye(o.row)},"\u8BA2\u5355\u5B8C\u6210",8,qa)):_("",!0)],64)):_("",!0),!o.row.isSettlementFee&&e[i(t).name]===60?(u(),f("a",Ea,"\u5DF2\u4F5C\u5E9F")):_("",!0),e[i(t).name]===60&&Le(o.row)?(u(),f(x,{key:5},[o.row.isSettlementFee?(u(),f("a",{key:0,class:"text-danger",onClick:T=>ze(o.row)},"\u4F5C\u5E9F",8,Ua)):_("",!0),o.row.isSettlementFee?_("",!0):(u(),f("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?(u(),B(D,{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(D,{loading:ue.value,type:"primary",plain:"",icon:"Download",size:"small",onClick:qe},{default:s(()=>[Ia]),_:1},8,["loading"]),(e[i(t).name]||e[l.state])===60?(u(),B(D,{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(ka,{visible:te.value,data:g.value,onClose:Be},null,8,["visible","data"]),r(ba,{visible:le.value,data:g.value,onClose:$e},null,8,["visible","data"]),r(ha,{visible:re.value,onClose:Ue},null,8,["visible"])]),_:1})}}}),ut=Xe(za,[["__scopeId","data-v-28b7d3d1"]]);export{ut as default};