Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
13KB

  1. var xe=Object.defineProperty,ye=Object.defineProperties;var Ce=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var te=(r,c,d)=>c in r?xe(r,c,{enumerable:!0,configurable:!0,writable:!0,value:d}):r[c]=d,L=(r,c)=>{for(var d in c||(c={}))we.call(c,d)&&te(r,d,c[d]);if(ee)for(var d of ee(c))Ye.call(c,d)&&te(r,d,c[d]);return r},H=(r,c)=>ye(r,Ce(c));var y=(r,c,d)=>new Promise((u,j)=>{var R=h=>{try{p(d.next(h))}catch(k){j(k)}},S=h=>{try{p(d.throw(h))}catch(k){j(k)}},p=h=>h.done?u(h.value):Promise.resolve(h.value).then(R,S);p((d=d.apply(r,c)).next())});import{_ as Be,a as De,i as oe,L as D}from"./index.b0dc2dad.js";import Me from"./index.d1f278bd.js";import Se from"./index.3dffe3ce.js";import{N as T,d as ke,u as Fe,y as Oe,r as f,M as x,o as Ve,R as ze,f as _,g as P,c as Te,e as t,w as s,b as e,t as m,v as z,h as M,n as se,U as je,O as Re}from"./index.32194486.js";import{u as Ie}from"./useTreeSelectData.58a8ac6c.js";import"./orderManage.aae74c26.js";import"./orderDetailDrawer.ab0ba3fa.js";import"./uploadAction.25c9789a.js";import"./editOrderForm.03fae96b.js";import"./projectManage.b222baef.js";import"./queryAddressDialog.8db92efd.js";import"./locationTransform.e2d22cb6.js";import"./tiandimap.2786bb09.js";import"./driverAssignmentDialog.9e42b80a.js";import"./cancelOrderDialog.8033c8fc.js";import"./confirmOrderDialog.30b780b9.js";import"./orderCompletionDialog.b3008fab.js";import"./confirmBoardingDialog.2bd4d544.js";import"./trajectoryDialog.22949a17.js";import"./useExportExc.3bf14c9f.js";import"./confirmDialog.85cba7c0.js";const Ae="/assets/qyzs.d5fcd2fc.png",Ee="/assets/xmzs.e7105552.png",$e="/assets/clzs.eaab18c5.png",Ne="/assets/ddzs.f61b8b25.png",Ue="/assets/fwlc.b4cd6e14.png",Le=r=>T.get("/api/v1/dashboard/superAdmin/basicStatistics",{params:r}),He=r=>T.get("/api/v1/dashboard/superAdmin/orderCountCostStatistics",{params:r}),Pe=r=>T.get("/api/v1/dashboard/superAdmin/orderCountRank",{params:r}),Ge=r=>T.get("/api/v1/dashboard/orderCountByCarType",{params:r}),qe=r=>T.get("/api/v1/dashboard/superAdmin/orderCountByMonth",{params:r});const Ke={class:"adminHome"},We={class:"flex justify-between items-center"},Je={class:"flex items-center"},Qe={class:"flex items-center text-18 text-303133"},Xe={class:"mr-8 font-bold"},Ze={class:"text-14 text-818488"},et={class:"subtotal"},tt=e("img",{src:Ae,class:"subtotalIcon mr-8",alt:""},null,-1),ot={class:"overflow-hidden"},st={class:"text-primary text-28"},at=e("div",{class:"text-818488 text-14 truncate"},"\u4F01\u4E1A\u603B\u6570",-1),lt={class:"subtotal"},nt=e("img",{src:Ee,class:"subtotalIcon mr-8",alt:""},null,-1),rt={class:"overflow-hidden"},it={class:"text-primary text-28"},dt=e("div",{class:"text-818488 text-14 truncate"},"\u9879\u76EE\u603B\u6570",-1),ct={class:"subtotal"},ut=e("img",{src:$e,class:"subtotalIcon mr-8",alt:""},null,-1),_t={class:"overflow-hidden"},mt={class:"text-primary text-28"},ft=e("div",{class:"text-818488 text-14 truncate"},"\u8F66\u8F86\u603B\u6570",-1),pt={class:"subtotal"},vt=e("img",{src:Be,class:"subtotalIcon mr-8",alt:""},null,-1),ht={class:"overflow-hidden"},bt={class:"text-primary text-28"},gt=e("div",{class:"text-818488 text-14 truncate"},"\u9A7E\u9A76\u5458\u603B\u6570",-1),xt={class:"flex justify-between items-center"},yt={class:"flex items-center justify-between"},Ct=e("span",{class:"font-bold"},"\u8BA2\u5355\u60C5\u51B5\u7EDF\u8BA1",-1),wt=M("\u672C\u6708"),Yt=M("\u4E0A\u6708"),Bt={class:"flex"},Dt={class:"mr-5"},Mt={class:"subtotal justify-center"},St={class:"flex items-center mr-16"},kt=e("img",{src:Ne,class:"subtotalIcon mr-8",alt:""},null,-1),Ft={class:"text-primary text-28"},Ot=e("div",{class:"text-818488 text-14"},"\u65B0\u589E\u8BA2\u5355",-1),Vt={class:"flex-1"},zt={class:"yjfwf-item text-12 flex items-center justify-between mb-6"},Tt=e("span",{class:"text-606366"},"\u670D\u52A1\u4E2D",-1),jt={class:"text-#303133 text-12 font-bold"},Rt={class:"yjfwf-item text-12 flex items-center justify-between"},It=e("span",{class:"text-606366"},"\u5DF2\u786E\u8BA4",-1),At={class:"text-#303133 text-12 font-bold"},Et={class:"subtotal justify-center"},$t={class:"flex items-center"},Nt=e("img",{src:De,class:"subtotalIcon mr-8",alt:""},null,-1),Ut={class:"text-FE6935 text-28"},Lt=e("div",{class:"text-818488 text-14"},"\u9884\u8BA1\u670D\u52A1\u8D39(\u5143)",-1),Ht={class:"subtotal justify-center"},Pt={class:"flex items-center"},Gt=e("img",{src:Ue,class:"subtotalIcon mr-8",alt:""},null,-1),qt={class:"text-success text-28"},Kt=e("div",{class:"text-818488 text-14"},"\u670D\u52A1\u91CC\u7A0B\uFF08Km\uFF09",-1),Wt={class:"flex items-center justify-between"},Jt=e("span",{class:"font-bold"},"\u672C\u6708\u8BA2\u5355\u6392\u884C",-1),Qt=M("\u5730\u533A"),Xt=M("\u4F01\u4E1A"),Zt=M("\u9879\u76EE"),eo=ke({name:"adminHome"}),Yo=Object.assign(eo,{setup(r){const c=Fe(),d=Oe.userStore.userBaseInfo,u=f({start:x().startOf("month").format("YYYY-MM-DD"),end:x().endOf("month").format("YYYY-MM-DD")}),{cascaderProps:j}=Ie(),R=f([]),S=f(1),p=f(),h=n=>{switch(n){case 1:u.value={start:x().startOf("month").format("YYYY-MM-DD"),end:x().endOf("month").format("YYYY-MM-DD")},p.value=void 0,E();break;case 2:u.value={start:x().add(-1,"month").startOf("month").format("YYYY-MM-DD"),end:x().add(-1,"month").endOf("month").format("YYYY-MM-DD")},p.value=void 0,E();break}},k=n=>{S.value=3,u.value={start:x(n).startOf("month").format("YYYY-MM-DD"),end:x(n).endOf("month").format("YYYY-MM-DD")},E()},b=f(),ae=()=>y(this,null,function*(){var a,i;const n=yield Le({regionCode:(i=(a=u.value)==null?void 0:a.regionCode)==null?void 0:i.at(-1)});b.value=n.data}),C=f("ordersToBeConfirmed"),w=f(),le=()=>y(this,null,function*(){const n=yield He(u.value);w.value=n.data}),N=f("region"),ne=[{label:"\u5E8F\u53F7",type:"index",render:n=>Re("span",{class:`sortBox bg-${n.index}`},n.index),align:"center",width:"60"},{label:"\u540D\u79F0",key:"key",prop:"key",minWidth:"180",showOverflowTooltip:!0},{label:"\u8BA2\u5355\u6570",key:"value",prop:"value",width:"120"}],G=f([]),q=()=>y(this,null,function*(){var a,i;const n=yield Pe(H(L({},u.value),{regionCode:(i=(a=u.value)==null?void 0:a.regionCode)==null?void 0:i.at(-1),groupBy:N.value,pageSize:8,pageNumber:1}));G.value=n.data.records});let I;const K=f(),re=n=>{I||(I=oe(K.value));const a={title:{text:"\u5404\u8F66\u8F86\u7C7B\u578B\u8BA2\u5355\u60C5\u51B5",textStyle:{fontSize:16,color:"#303133"}},color:[new D(0,0,0,1,[{offset:0,color:"#257EF2"},{offset:1,color:"#254FF2"}]),new D(0,0,0,1,[{offset:0,color:"#00CB8B"},{offset:1,color:"#00B4E3"}]),new D(0,0,0,1,[{offset:0,color:"#96A9C4"},{offset:1,color:"#5D7092"}]),new D(0,0,0,1,[{offset:0,color:"#FEC735"},{offset:1,color:"#FE6935"}]),new D(0,0,0,1,[{offset:0,color:"#F581B4"},{offset:1,color:"#FF1D82"}]),new D(0,0,0,1,[{offset:0,color:"#6FE0FF"},{offset:1,color:"#0FBBFF"}])],tooltip:{trigger:"item"},legend:{icon:"circle",bottom:0},series:[{type:"pie",radius:["50%","70%"],data:n.map(i=>({name:i.key,value:i.value}))}]};I.setOption(a)},ie=()=>y(this,null,function*(){var a,i;const n=yield Ge(H(L({},u.value),{regionCode:(i=(a=u.value)==null?void 0:a.regionCode)==null?void 0:i.at(-1)}));re(n.data)});let A;const W=f(),de=n=>{A||(A=oe(W.value));const a={title:{text:"\u8FD16\u6708\u8BA2\u5355\u91CF\u8D70\u52BF",textStyle:{fontSize:16,color:"#303133"}},color:["#257EF2","#38CB00"],tooltip:{trigger:"axis"},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:n.map(i=>i.label)},yAxis:{type:"value"},series:[{name:"\u8BA2\u5355\u603B\u6570",type:"line",data:n.map(i=>i.val1)},{name:"\u5DF2\u7ED3\u7B97\u8BA2\u5355",type:"line",data:n.map(i=>i.val2)}]};A.setOption(a)},ce=()=>y(this,null,function*(){var a,i;const n=yield qe({regionCode:(i=(a=u.value)==null?void 0:a.regionCode)==null?void 0:i.at(-1),limit:6});de(n.data)}),J=()=>{ae(),ce(),q(),ie()},E=()=>{le()},ue=()=>{window.addEventListener("resize",()=>{A.resize(),I.resize()})};return Ve(()=>y(this,null,function*(){R.value=(yield ze()).data,J(),E(),ue()})),(n,a)=>{const i=_("el-avatar"),_e=_("el-tag"),me=_("el-cascader"),fe=_("el-form-item"),pe=_("el-form"),Y=_("el-card"),g=_("el-col"),U=_("el-row"),$=_("el-tab-pane"),ve=_("el-tabs"),B=_("el-radio-button"),he=_("ArrowDownBold"),be=_("el-icon"),ge=_("el-date-picker"),Q=_("el-radio-group");return P(),Te("div",Ke,[t(Y,{shadow:"never",class:"mb-16"},{default:s(()=>{var o,l;return[e("div",We,[e("div",Je,[t(i,{size:56,icon:"User",class:"mr-16"}),e("div",null,[e("div",Qe,[e("span",Xe,"\u4F60\u597D\uFF0C"+m((o=z(d))==null?void 0:o.realName),1),t(_e,null,{default:s(()=>{var v;return[M(m((v=z(d))==null?void 0:v.roleName),1)]}),_:1})]),e("div",null,[e("span",Ze,m((l=z(d))==null?void 0:l.companyName),1)])])]),t(pe,{"label-suffix":":",model:u.value,size:"small"},{default:s(()=>[t(fe,{label:"\u9009\u62E9\u533A\u57DF"},{default:s(()=>[t(me,{modelValue:u.value.regionCode,"onUpdate:modelValue":a[0]||(a[0]=v=>u.value.regionCode=v),props:z(j),options:R.value,clearable:"",class:"w-full",onChange:J},null,8,["modelValue","props","options"])]),_:1})]),_:1},8,["model"])])]}),_:1}),t(U,{gutter:16,class:"mb-16"},{default:s(()=>[t(g,{sm:6,lg:6},{default:s(()=>{var o,l;return[e("div",et,[tt,e("div",ot,[e("div",st,m((l=(o=b.value)==null?void 0:o.companyCount)!=null?l:"-"),1),at])])]}),_:1}),t(g,{sm:6,lg:6},{default:s(()=>{var o,l;return[e("div",lt,[nt,e("div",rt,[e("div",it,m((l=(o=b.value)==null?void 0:o.projectCount)!=null?l:"-"),1),dt])])]}),_:1}),t(g,{sm:6,lg:6},{default:s(()=>{var o,l;return[e("div",ct,[ut,e("div",_t,[e("div",mt,m((l=(o=b.value)==null?void 0:o.carCount)!=null?l:"-"),1),ft])])]}),_:1}),t(g,{sm:6,lg:6},{default:s(()=>{var o,l;return[e("div",pt,[vt,e("div",ht,[e("div",bt,m((l=(o=b.value)==null?void 0:o.driverCount)!=null?l:"-"),1),gt])])]}),_:1})]),_:1}),t(Y,{shadow:"never",class:"tab-card mb-16"},{header:s(()=>[e("div",xt,[t(ve,{modelValue:C.value,"onUpdate:modelValue":a[1]||(a[1]=o=>C.value=o),class:"flex-1"},{default:s(()=>{var o,l,v,F,O,V,X,Z;return[t($,{label:`\u5F85\u786E\u8BA4\u8BA2\u5355\uFF08${(l=(o=b.value)==null?void 0:o.toBeConfirmOrderCount)!=null?l:0}\uFF09`,name:"ordersToBeConfirmed"},null,8,["label"]),t($,{label:`\u5F85\u786E\u8BA4\u7ED3\u7B97\u5355\uFF08${(F=(v=b.value)==null?void 0:v.toBeConfirmSettlementCount)!=null?F:0}\uFF09`,name:"statementToBeConfirmed"},null,8,["label"]),t($,{label:`\u5F85\u4ED8\u6B3E\u7ED3\u7B97\u5355\uFF08${(V=(O=b.value)==null?void 0:O.toBePaidSettlementCount)!=null?V:0}\uFF09`,name:"pendingPaymentSettlementDoc"},null,8,["label"]),t($,{label:`\u5F85\u5F00\u7968\u7ED3\u7B97\u5355\uFF08${(Z=(X=b.value)==null?void 0:X.toBeInvoicedSettlementCount)!=null?Z:0}\uFF09`,name:"settlementDocToBeInvoiced"},null,8,["label"])]}),_:1},8,["modelValue"]),e("a",{class:"text-primary text-14",onClick:a[2]||(a[2]=o=>z(c).push({name:C.value}))},"\u66F4\u591A")])]),default:s(()=>[C.value==="ordersToBeConfirmed"?(P(),se(Me,{key:0,state:"ordersToBeConfirmed"})):(P(),se(Se,{key:C.value,state:C.value},null,8,["state"]))]),_:1}),t(Y,{shadow:"never",class:"customHeaderCard mb-16","body-style":{padding:0}},{header:s(()=>[e("div",yt,[Ct,t(Q,{modelValue:S.value,"onUpdate:modelValue":a[4]||(a[4]=o=>S.value=o),size:"small",class:"monthRadio",onChange:h},{default:s(()=>[t(B,{label:1},{default:s(()=>[wt]),_:1}),t(B,{label:2},{default:s(()=>[Yt]),_:1}),t(B,{label:3},{default:s(()=>[e("span",Bt,[e("span",Dt,m(p.value?p.value:"\u81EA\u5B9A\u4E49"),1),t(be,null,{default:s(()=>[t(he)]),_:1})]),t(ge,{modelValue:p.value,"onUpdate:modelValue":a[3]||(a[3]=o=>p.value=o),class:"customMonth",type:"month","value-format":"YYYY-MM",editable:!1,clearable:!1,size:"small",onChange:k},null,8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])]),default:s(()=>[t(U,{gutter:16},{default:s(()=>[t(g,{sm:8,lg:8},{default:s(()=>{var o,l,v,F,O,V;return[e("div",Mt,[e("div",St,[kt,e("div",null,[e("div",Ft,m((l=(o=w.value)==null?void 0:o.total)!=null?l:"-"),1),Ot])]),e("div",Vt,[e("div",zt,[Tt,e("span",jt,m((F=(v=w.value)==null?void 0:v.onService)!=null?F:"-"),1)]),e("div",Rt,[It,e("span",At,m((V=(O=w.value)==null?void 0:O.confirmedCount)!=null?V:"-"),1)])])])]}),_:1}),t(g,{sm:8,lg:8},{default:s(()=>{var o,l;return[e("div",Et,[e("div",$t,[Nt,e("div",null,[e("div",Ut,m((l=(o=w.value)==null?void 0:o.serviceCost)!=null?l:"-"),1),Lt])])])]}),_:1}),t(g,{sm:8,lg:8},{default:s(()=>{var o,l;return[e("div",Ht,[e("div",Pt,[Gt,e("div",null,[e("div",qt,m((l=(o=w.value)==null?void 0:o.serviceMileage)!=null?l:"-"),1),Kt])])])]}),_:1})]),_:1})]),_:1}),t(U,{gutter:16,class:"mb-16"},{default:s(()=>[t(g,{span:12},{default:s(()=>[t(Y,{shadow:"never",class:"customHeaderCard h-full"},{header:s(()=>[e("div",Wt,[Jt,t(Q,{modelValue:N.value,"onUpdate:modelValue":a[5]||(a[5]=o=>N.value=o),size:"small",class:"monthRadio",onChange:q},{default:s(()=>[t(B,{label:"region"},{default:s(()=>[Qt]),_:1}),t(B,{label:"company"},{default:s(()=>[Xt]),_:1}),t(B,{label:"project"},{default:s(()=>[Zt]),_:1})]),_:1},8,["modelValue"])])]),default:s(()=>[t(je,{column:ne,data:G.value,pagination:!1},null,8,["data"])]),_:1})]),_:1}),t(g,{span:12},{default:s(()=>[t(Y,{shadow:"never"},{default:s(()=>[e("div",{ref_key:"chart3Ref",ref:K,class:"chart"},null,512)]),_:1})]),_:1})]),_:1}),t(Y,{shadow:"never",class:"tab-card"},{default:s(()=>[e("div",{ref_key:"chart1Ref",ref:W,class:"chart"},null,512)]),_:1})])}}});export{Yo as default};