Files
tehran_taj/apps/admin-panel/dist/assets/Dashboard-DOS9xO7r.js
T
2026-10-14 13:35:35 +03:30

2 lines
18 KiB
JavaScript

import{j as M,p as R}from"./filters-N_VUHypB.js";import{c as _,I as H,d as ze,v as Me,x as Le,y as Ne,a as b,w as S,m as Z,z as Pe,r as y,o as c,p as e,h as g,C as Te,t as o,f as v,i as K,A as P,b as O,F as L,e as ee,B as Be,s as d,q as Ae,_ as Re}from"./index-CplMEwlM.js";import{U as je,D as He}from"./UserAddOutlined-BrZAXhLq.js";import{C as Ie}from"./CreditCardOutlined-DCIuv4K1.js";import"./index-EyAW25HR.js";var De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L531 565 416.6 450.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z"}}]},name:"fund",theme:"outlined"};function te(r){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?Object(arguments[n]):{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(p){return Object.getOwnPropertyDescriptor(a,p).enumerable}))),u.forEach(function(p){Fe(r,p,a[p])})}return r}function Fe(r,n,a){return n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}var I=function(n,a){var u=te({},n,a.attrs);return _(H,te({},u,{icon:De}),null)};I.displayName="FundOutlined";I.inheritAttrs=!1;var Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128zm2.5 282.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5z"}}]},name:"gold",theme:"outlined"};function se(r){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?Object(arguments[n]):{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(p){return Object.getOwnPropertyDescriptor(a,p).enumerable}))),u.forEach(function(p){$e(r,p,a[p])})}return r}function $e(r,n,a){return n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}var T=function(n,a){var u=se({},n,a.attrs);return _(H,se({},u,{icon:Ge}),null)};T.displayName="GoldOutlined";T.inheritAttrs=!1;var Ee={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z"}}]},name:"shopping-cart",theme:"outlined"};function ae(r){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?Object(arguments[n]):{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(p){return Object.getOwnPropertyDescriptor(a,p).enumerable}))),u.forEach(function(p){We(r,p,a[p])})}return r}function We(r,n,a){return n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}var D=function(n,a){var u=ae({},n,a.attrs);return _(H,ae({},u,{icon:Ee}),null)};D.displayName="ShoppingCartOutlined";D.inheritAttrs=!1;const Ve={class:"dashboard"},Ue={class:"dash-head"},Ye={class:"dash-head__date"},Xe={class:"kpi-grid"},qe={class:"kpi kpi--success"},Je={class:"kpi__top"},Qe={class:"kpi__icon"},Ze={class:"kpi__value"},Ke={class:"kpi kpi--primary"},et={class:"kpi__top"},tt={class:"kpi__icon"},st={class:"kpi__value"},at={class:"kpi__foot"},lt={class:"kpi kpi--warning"},nt={class:"kpi__top"},ot={class:"kpi__icon"},rt={class:"kpi__value"},it={class:"kpi__foot"},dt={class:"kpi kpi--danger"},ct={class:"kpi__top"},ut={class:"kpi__icon"},pt={class:"kpi__value kpi__value--price"},_t={class:"kpi__foot"},ht={class:"row row--main"},mt={class:"panel"},bt={class:"panel__head"},gt={class:"trend-totals"},ft={class:"trend-totals__item"},vt={class:"trend-totals__item"},yt={class:"panel"},Ot={class:"legend-list"},kt={class:"legend-list__label"},wt={class:"legend-list__meta"},xt={class:"row row--main"},St={class:"panel"},Ct={class:"panel__head"},zt={class:"pill"},Mt={class:"panel"},Lt={class:"metric-list"},Nt={class:"metric-list__icon tone-primary"},Pt={class:"metric-list__icon tone-success"},Tt={class:"metric-list__icon tone-warning"},Bt={class:"metric-list__icon tone-danger"},At={class:"row row--half"},Rt={class:"panel"},jt={key:0,class:"rank-list"},Ht={class:"rank-list__body"},It={class:"rank-list__row"},Dt={class:"rank-list__name"},Ft={class:"rank-list__bar"},Gt={class:"rank-list__meta"},$t={class:"panel"},Et={class:"panel"},Wt={class:"panel__head"},Vt={class:"pill"},Ut={class:"order-item__head"},Yt={class:"order-item__name"},Xt={class:"order-item__customer"},qt={class:"order-item__meta"},C="#1c2d56",w="#28c76f",j="#ff9f43",Jt="#ea5455",x="#8a94a6",Qt=ze({__name:"Dashboard",setup(r){const n=Z(!1),a=Me(),u=d(()=>a.isMobile?240:300),p=d(()=>a.isMobile?220:240),le=d(()=>a.isMobile?260:320),l=Pe({customerCount:0,allgram:0,ordercount:0,reagent:[],lastOrder:[],sumLastOrder:0,sumLastOrderMonth:0,ordersTrend:[],statusBreakdown:[],channelBreakdown:[],topProducts:[],goldPricePerGram:null,totalCustomerDebtGrams:0}),B=[C,w],ne=[j,C,C,j,j,w,w,Jt],z={fontFamily:"inherit",parentHeightOffset:0,toolbar:{show:!1}},A={borderColor:"#eef0f5",strokeDashArray:4},oe=[{title:"شماره سفارش",dataIndex:"name"},{title:"مشتری",dataIndex:"customer"},{title:"وزن",dataIndex:"w"},{title:"وضعیت",dataIndex:"sts_str"},{title:"تاریخ",dataIndex:"caj"}];function F(s){return{success:"green",warning:"orange",danger:"red",primary:"blue"}[s]??""}function h(s){return R(s??0)||"0"}const re=d(()=>M(new Date().toISOString())),ie=d(()=>l.goldPricePerGram?`${R(Math.round(Number(l.goldPricePerGram)))} تومان`:"—"),G=d(()=>R(Number(l.totalCustomerDebtGrams??0).toFixed(2))),$=d(()=>{const s=Number(l.sumLastOrder??0),t=Number(l.sumLastOrderMonth??0);return s>0?(t/s).toFixed(2):"0"}),E=d(()=>(l.ordersTrend??[]).map(s=>s.total)),de={chart:{...z,sparkline:{enabled:!0},animations:{enabled:!1}},colors:[w],stroke:{curve:"smooth",width:2},fill:{type:"gradient",gradient:{opacityFrom:.35,opacityTo:0}},tooltip:{enabled:!1}},k=Z("area"),ce=[{label:"ناحیه‌ای",value:"area"},{label:"ستونی",value:"bar"}],ue=d(()=>(l.ordersTrend??[]).reduce((s,t)=>s+Number(t.retail??0),0)),pe=d(()=>(l.ordersTrend??[]).reduce((s,t)=>s+Number(t.wholesale??0),0)),_e=d(()=>{const s=l.ordersTrend??[];return[{name:"تک فروشی",data:s.map(t=>t.retail)},{name:"عمده فروشی",data:s.map(t=>t.wholesale)}]}),he=d(()=>({chart:{...z,stacked:k.value==="bar"},colors:[C,w],dataLabels:{enabled:!1},stroke:k.value==="area"?{curve:"smooth",width:2.5}:{width:0},fill:k.value==="area"?{type:"gradient",gradient:{opacityFrom:.3,opacityTo:.02}}:{opacity:1},plotOptions:{bar:{columnWidth:"55%",borderRadius:3,borderRadiusApplication:"end"}},legend:{show:!1},grid:{...A,padding:a.isMobile?{left:4,right:4}:{}},markers:{size:0,hover:{size:5}},xaxis:{categories:(l.ordersTrend??[]).map(s=>String(M(s.date)??"").slice(5)),tickAmount:a.isMobile?6:10,axisBorder:{show:!1},axisTicks:{show:!1},labels:{rotate:0,hideOverlappingLabels:!0,style:{colors:x,fontSize:a.isMobile?"10px":"12px"}}},yaxis:{labels:{style:{colors:x,fontSize:a.isMobile?"10px":"12px"},formatter:s=>String(Math.round(s))}},tooltip:{shared:!0,intersect:!1,x:{formatter:(s,t)=>{var m;return M((m=(l.ordersTrend??[])[t==null?void 0:t.dataPointIndex])==null?void 0:m.date)}}}})),W=d(()=>(l.channelBreakdown??[]).map(s=>Number(s.count??0))),me=d(()=>({chart:{...z},labels:(l.channelBreakdown??[]).map(s=>s.label),colors:B,legend:{show:!1},dataLabels:{enabled:!1},stroke:{width:3,colors:["#fff"]},plotOptions:{pie:{donut:{size:"74%",labels:{show:!0,name:{fontSize:"13px",color:x,offsetY:18},value:{fontSize:"16px",fontWeight:500,color:C,offsetY:-14},total:{show:!0,label:"کل سفارش‌ها",color:x,fontSize:"13px",formatter:s=>String(s.globals.seriesTotals.reduce((t,m)=>t+m,0))}}}}}})),be=d(()=>(l.statusBreakdown??[]).reduce((s,t)=>s+Number(t.count??0),0)),V=d(()=>[{name:"تعداد",data:(l.statusBreakdown??[]).map(s=>Number(s.count??0))}]),ge=d(()=>{var s;return Math.max(200,(((s=l.statusBreakdown)==null?void 0:s.length)??0)*(a.isMobile?38:44)+40)}),fe=d(()=>({chart:{...z},colors:ne,plotOptions:{bar:{horizontal:!0,distributed:!0,borderRadius:6,borderRadiusApplication:"end",barHeight:"58%"}},legend:{show:!1},dataLabels:{enabled:!0,textAnchor:"start",offsetX:8,style:{colors:["#fff"],fontWeight:500,fontSize:"12px"}},grid:{...A,xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{categories:(l.statusBreakdown??[]).map(s=>s.label),axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:x,fontSize:"11px"}}},yaxis:{labels:{maxWidth:a.isMobile?110:160,style:{colors:"#475467",fontSize:"12px",fontWeight:500}}},tooltip:{y:{formatter:s=>`${s} سفارش`}}})),ve=d(()=>Math.max(1,...(l.reagent??[]).map(s=>Number(s.grams_sell??0))));function ye(s){return Math.max(2,Math.round(Number(s.grams_sell??0)/ve.value*100))}const U=d(()=>[{name:"وزن فروخته‌شده (گرم)",data:(l.topProducts??[]).map(s=>Number(s.weight??0))}]),Oe=d(()=>({chart:{...z},plotOptions:{bar:a.isMobile?{horizontal:!0,borderRadius:6,borderRadiusApplication:"end",barHeight:"60%"}:{borderRadius:8,borderRadiusApplication:"end",columnWidth:"45%"}},colors:[w],fill:{type:"gradient",gradient:{shade:"light",type:"vertical",shadeIntensity:.2,opacityFrom:1,opacityTo:.75}},dataLabels:{enabled:!1},grid:A,xaxis:{categories:(l.topProducts??[]).map(s=>s.title),axisBorder:{show:!1},axisTicks:{show:!1},labels:{trim:!0,style:{colors:x,fontSize:a.isMobile?"10px":"12px"}}},yaxis:{labels:{maxWidth:a.isMobile?120:160,style:{colors:x,fontSize:a.isMobile?"11px":"12px"}}},tooltip:{y:{formatter:s=>`${s} گرم`}}}));return Le(async()=>{try{n.value=!0;const{data:s}=await Ne.get("dashboard/overview");Object.assign(l,s),l.reagent=[...l.reagent??[]].sort((t,m)=>Number(m.grams_sell)-Number(t.grams_sell)),l.lastOrder=[...l.lastOrder??[]].sort((t,m)=>Number(m.w)-Number(t.w))}catch(s){console.error(s)}finally{n.value=!1}}),(s,t)=>{const m=y("apexchart"),ke=y("a-segmented"),N=y("a-empty"),Y=y("a-tag"),we=y("a-list-item"),xe=y("a-list"),Se=y("a-table"),Ce=y("a-spin");return c(),b(Ce,{spinning:n.value},{default:S(()=>{var X,q,J,Q;return[e("div",Ve,[e("header",Ue,[t[1]||(t[1]=e("div",null,[e("h1",{class:"dash-head__title"},"داشبورد"),e("p",{class:"dash-head__sub"},"خلاصه عملکرد فروش در ۳۰ روز گذشته")],-1)),e("div",Ye,[_(g(Te)),e("span",null,o(re.value),1)])]),e("section",Xe,[e("div",qe,[e("div",Je,[e("span",Qe,[_(g(D))]),t[2]||(t[2]=e("span",{class:"kpi__label"},"تعداد سفارشات (۳۰ روز گذشته)",-1))]),e("div",Ze,[v(o(h(l.ordercount)),1),t[3]||(t[3]=e("small",null,"سفارش",-1))]),E.value.length?(c(),b(m,{key:0,class:"kpi__spark",type:"area",height:"56",options:de,series:[{name:"سفارش",data:E.value}]},null,8,["series"])):K("",!0)]),e("div",Ke,[e("div",et,[e("span",tt,[_(g(T))]),t[4]||(t[4]=e("span",{class:"kpi__label"},"طلای فروش رفته (۳۰ روز گذشته)",-1))]),e("div",st,[v(o(h(l.allgram)),1),t[5]||(t[5]=e("small",null,"گرم",-1))]),e("div",at,[t[6]||(t[6]=v(" میانگین هر سفارش تحویل‌شده: ",-1)),e("b",null,o($.value)+" گرم",1)])]),e("div",lt,[e("div",nt,[e("span",ot,[_(g(je))]),t[7]||(t[7]=e("span",{class:"kpi__label"},"مشتریان جدید (۳۰ روز گذشته)",-1))]),e("div",rt,[v(o(h(l.customerCount)),1),t[8]||(t[8]=e("small",null,"نفر",-1))]),e("div",it,[t[9]||(t[9]=v(" مجموع بدهی طلای مشتریان: ",-1)),e("b",null,o(G.value)+" گرم",1)])]),e("div",dt,[e("div",ct,[e("span",ut,[_(g(He))]),t[10]||(t[10]=e("span",{class:"kpi__label"},"نرخ هر گرم طلای ۱۸ عیار",-1))]),e("div",pt,o(ie.value),1),e("div",_t,[t[11]||(t[11]=v(" سفارشات تحویل‌شده (۳۰ روز گذشته): ",-1)),e("b",null,o(h(l.sumLastOrder))+" سفارش",1)])])]),e("section",ht,[e("div",mt,[e("div",bt,[t[12]||(t[12]=e("div",null,[e("h3",{class:"panel__title"},"روند سفارش‌ها"),e("p",{class:"panel__sub"},"۳۰ روز گذشته، تفکیک تک و عمده")],-1)),_(ke,{value:k.value,"onUpdate:value":t[0]||(t[0]=i=>k.value=i),options:ce,size:"small"},null,8,["value"])]),e("div",gt,[e("div",ft,[e("span",{class:"dot",style:P({background:C})},null,4),t[13]||(t[13]=e("span",null,"تک فروشی",-1)),e("b",null,o(h(ue.value)),1)]),e("div",vt,[e("span",{class:"dot",style:P({background:w})},null,4),t[14]||(t[14]=e("span",null,"عمده فروشی",-1)),e("b",null,o(h(pe.value)),1)])]),(c(),b(m,{key:k.value,type:k.value,height:u.value,options:he.value,series:_e.value},null,8,["type","height","options","series"]))]),e("div",yt,[t[15]||(t[15]=e("div",{class:"panel__head"},[e("div",null,[e("h3",{class:"panel__title"},"تفکیک عمده / تک"),e("p",{class:"panel__sub"},"۳۰ روز گذشته")])],-1)),W.value.some(i=>i>0)?(c(),O(L,{key:0},[_(m,{type:"donut",height:p.value,options:me.value,series:W.value},null,8,["height","options","series"]),e("ul",Ot,[(c(!0),O(L,null,ee(l.channelBreakdown,(i,f)=>(c(),O("li",{key:i.channel},[e("span",{class:"dot",style:P({background:B[f%B.length]})},null,4),e("span",kt,o(i.label),1),e("span",wt,o(h(i.grams))+" گرم",1),e("b",null,o(h(i.count)),1)]))),128))])],64)):(c(),b(N,{key:1,description:"داده‌ای برای نمایش وجود ندارد"}))])]),e("section",xt,[e("div",St,[e("div",Ct,[t[16]||(t[16]=e("div",null,[e("h3",{class:"panel__title"},"وضعیت سفارشات"),e("p",{class:"panel__sub"},"۳۰ روز گذشته")],-1)),e("span",zt,o(h(be.value))+" سفارش",1)]),V.value[0].data.length?(c(),b(m,{key:0,type:"bar",height:ge.value,options:fe.value,series:V.value},null,8,["height","options","series"])):(c(),b(N,{key:1,description:"داده‌ای برای نمایش وجود ندارد"}))]),e("div",Mt,[t[21]||(t[21]=e("div",{class:"panel__head"},[e("div",null,[e("h3",{class:"panel__title"},"میزان فروش"),e("p",{class:"panel__sub"},"۳۰ روز گذشته")])],-1)),e("ul",Lt,[e("li",null,[e("span",Nt,[_(g(Be))]),t[17]||(t[17]=e("span",{class:"metric-list__label"},"تعداد سفارش (۳۰ روز)",-1)),e("b",null,o(h(l.sumLastOrder)),1)]),e("li",null,[e("span",Pt,[_(g(T))]),t[18]||(t[18]=e("span",{class:"metric-list__label"},"مجموع وزن (۳۰ روز)",-1)),e("b",null,o(h(l.sumLastOrderMonth))+" گرم",1)]),e("li",null,[e("span",Tt,[_(g(I))]),t[19]||(t[19]=e("span",{class:"metric-list__label"},"میانگین هر سفارش",-1)),e("b",null,o($.value)+" گرم",1)]),e("li",null,[e("span",Bt,[_(g(Ie))]),t[20]||(t[20]=e("span",{class:"metric-list__label"},"مجموع بدهی طلای مشتریان",-1)),e("b",null,o(G.value)+" گرم",1)])])])]),e("section",At,[e("div",Rt,[t[22]||(t[22]=e("div",{class:"panel__head"},[e("div",null,[e("h3",{class:"panel__title"},"عملکرد کارشناسان فروش"),e("p",{class:"panel__sub"},"بر اساس گرم فروخته‌شده")])],-1)),(X=l.reagent)!=null&&X.length?(c(),O("ol",jt,[(c(!0),O(L,null,ee(l.reagent,(i,f)=>(c(),O("li",{key:i.id??f},[e("span",{class:Ae(["rank-list__pos",{"is-top":f<3}])},o(f+1),3),e("div",Ht,[e("div",It,[e("span",Dt,o(i.name),1),e("b",null,o(h(i.grams_sell))+" گرم",1)]),e("div",Ft,[e("span",{style:P({width:`${ye(i)}%`})},null,4)]),e("span",Gt,o(h(i.order_count))+" سفارش",1)])]))),128))])):(c(),b(N,{key:1,description:"داده‌ای برای نمایش وجود ندارد"}))]),e("div",$t,[t[23]||(t[23]=e("div",{class:"panel__head"},[e("div",null,[e("h3",{class:"panel__title"},"محصولات پرفروش"),e("p",{class:"panel__sub"},"۳۰ روز گذشته، بر اساس وزن")])],-1)),(q=U.value[0])!=null&&q.data.length?(c(),b(m,{key:0,type:"bar",height:le.value,options:Oe.value,series:U.value},null,8,["height","options","series"])):(c(),b(N,{key:1,description:"داده‌ای برای نمایش وجود ندارد"}))])]),e("section",Et,[e("div",Wt,[t[24]||(t[24]=e("div",null,[e("h3",{class:"panel__title"},"سفارشات هفته جاری"),e("p",{class:"panel__sub"},"مرتب‌شده بر اساس وزن")],-1)),e("span",Vt,o(h(((J=l.lastOrder)==null?void 0:J.length)??0))+" سفارش",1)]),g(a).isMobile?(c(),b(xe,{key:0,class:"order-list","data-source":l.lastOrder,pagination:((Q=l.lastOrder)==null?void 0:Q.length)>10?{pageSize:10,size:"small",align:"center"}:!1,"row-key":"id"},{renderItem:S(({item:i})=>[_(we,{class:"order-item"},{default:S(()=>[e("div",Ut,[e("span",Yt,o(i.name),1),_(Y,{color:F(i.statusColor),class:"order-item__tag"},{default:S(()=>[v(o(i.sts_str),1)]),_:2},1032,["color"])]),e("div",Xt,o(i.customer),1),e("div",qt,[e("span",null,o(i.w)+" گرم",1),e("span",null,o(g(M)(i.caj)),1)])]),_:2},1024)]),_:1},8,["data-source","pagination"])):(c(),b(Se,{key:1,class:"dash-table",size:"middle","data-source":l.lastOrder,columns:oe,pagination:{pageSize:10},scroll:{x:"max-content"},"row-key":"id"},{bodyCell:S(({column:i,record:f})=>[i.dataIndex==="sts_str"?(c(),b(Y,{key:0,color:F(f.statusColor)},{default:S(()=>[v(o(f.sts_str),1)]),_:2},1032,["color"])):i.dataIndex==="caj"?(c(),O(L,{key:1},[v(o(g(M)(f.caj)),1)],64)):i.dataIndex==="w"?(c(),O(L,{key:2},[v(o(f.w)+" گرم",1)],64)):K("",!0)]),_:1},8,["data-source"]))])])]}),_:1},8,["spinning"])}}}),as=Re(Qt,[["__scopeId","data-v-a53aa541"]]);export{as as default};