Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
21KB

  1. var Ae=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?Ae(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 r,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.6d448f34.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.59f47c81.js";import ca from"./orderDetailDrawer.4cc3408d.js";import va from"./driverAssignmentDialog.63a9618b.js";import fa from"./cancelOrderDialog.0a3a0339.js";import ya from"./confirmOrderDialog.c6c79b09.js";import _a from"./orderCompletionDialog.045a5f5b.js";import ba from"./confirmBoardingDialog.d54dfa82.js";import ka from"./trajectoryDialog.97b096c4.js";import{u as ha}from"./useExportExc.f4c59274.js";import{u as wa}from"./useTreeSelectData.55c00ed4.js";import"./uploadAction.46257434.js";import"./editOrderForm.0c9dfa46.js";import"./projectManage.bf420644.js";import"./imageWaterUtils.2f29f38d.js";import"./queryAddressDialog.e09e7b8e.js";import"./locationTransform.e2d22cb6.js";import"./tiandimap.34d44078.js";const ga=f=>(na("data-v-a6f77377"),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,A,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:(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 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(),H=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,H.value=!0}),Ne=()=>{H.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:H,rowData:g,editOrder:se,close:a=>{H.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 He(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"),A=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(()=>[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),v(x,null,_e(i(V).find(o=>o.dictType==="car_type").dictData,o=>(u(),$(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(),v(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(),$(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(),v(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),v(x,null,_e(i(B),o=>(u(),$(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(()=>[Ca]),_:1}),r(D,{type:"info",onClick:Ve},{default:s(()=>[Ta]),_:1})]),_:1})]),_:1},8,["span"])]),_:1})]),_:1},8,["model"])]),_:1})):_("",!0),r(j,{shadow:"never",class:oa(l.state!=="ordersToBeConfirmed"?"":"noCardStyle")},ra({default:s(()=>[r(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:o})=>{var me,pe,ce;return[Q("a",{class:"text-primary",onClick:T=>J(o.row)},"\u8BE6\u60C5",8,xa),je(o.row)?(u(),v("a",{key:0,class:"text-danger",onClick:T=>Ie(o.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?(u(),v("a",{key:0,class:"text-primary",onClick:T=>Re(o.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(o.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(o.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},[o.row.orderStatus==="TO_BE_ORDER"||o.row.orderStatus==="WAITING_FOR_CAR"?(u(),v("a",{key:0,class:"text-primary",onClick:T=>ie(o.row,!0)},"\u4FEE\u6539\u53F8\u673A",8,Ya)):_("",!0),o.row.orderStatus==="TO_BE_CONFIRM"||o.row.orderStatus==="CONFIRM"?(u(),v("a",{key:1,class:"text-primary",onClick:T=>J(o.row,!0)},"\u4FEE\u6539",8,$a)):_("",!0)],64)):_("",!0)],64)):_("",!0),(e[i(t).name]||e[l.state])===70?(u(),v(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(),v("a",{key:0,class:"text-primary",onClick:T=>Me(o.row)},"\u786E\u8BA4\u4E0A\u8F66",8,Ra)):_("",!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(),v("a",{key:1,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?(u(),v("a",qa,"\u5DF2\u4F5C\u5E9F")):_("",!0),e[i(t).name]===60&&Le(o.row)?(u(),v(x,{key:5},[o.row.isSettlementFee?(u(),v("a",{key:0,class:"text-danger",onClick:T=>He(o.row)},"\u4F5C\u5E9F",8,Ea)):_("",!0),o.row.isSettlementFee?_("",!0):(u(),v("a",{key:1,class:"text-primary",onClick:T=>ze(o.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]=o=>i(oe)(()=>i(da)(O({},z.value))))},{default:s(()=>[Na]),_:1},8,["loading"])):_("",!0),r(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"]),r(ca,{onUpdateInfo:Ne}),r(va,{visible:K.value,data:g.value,"is-edit-driver":de.value,onClose:Oe},null,8,["visible","data","is-edit-driver"]),r(fa,{visible:ee.value,data:g.value,onClose:xe},null,8,["visible","data"]),r(ya,{visible:ae.value,data:g.value,onClose:Fe},null,8,["visible","data"]),r(ba,{visible:te.value,data:g.value,onClose:Be},null,8,["visible","data"]),r(_a,{visible:le.value,data:g.value,onClose:$e},null,8,["visible","data"]),r(ka,{visible:re.value,onClose:Ue},null,8,["visible"])])}}}),it=Xe(za,[["__scopeId","data-v-a6f77377"]]);export{it as default};