Files
aiot-platform-ui/apps/web-antd/dist/js/data-CHA-vjDL.js
lzh 91cd7adc39
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 9s
chore: build and deploy web-antd
2026-03-27 16:58:19 +08:00

2 lines
4.9 KiB
JavaScript

var C=Object.defineProperty;var i=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var n=(o,l,t)=>l in o?C(o,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[l]=t,d=(o,l)=>{for(var t in l||(l={}))b.call(l,t)&&n(o,t,l[t]);if(i)for(var t of i(l))O.call(l,t)&&n(o,t,l[t]);return o};import{O as e}from"./index-DtkYuHW2.js";import{dg as P}from"./bootstrap-BRzwfS6_.js";import{aa as D}from"../jse/index-index-D2yVKoFr.js";import{D as R}from"./dict-enum-CaHgMaDZ.js";const f={PENDING:{bg:"#FFF3E8",text:"#C2540A"},QUEUED:{bg:"#F0EDFF",text:"#6D28D9"},DISPATCHED:{bg:"#E0F2FE",text:"#0284C7"},CONFIRMED:{bg:"#EEF0FF",text:"#3730A3"},ARRIVED:{bg:"#E5F5EF",text:"#0D9488"},IN_PROGRESS:{bg:"#E8F0FE",text:"#1558C0"},PAUSED:{bg:"#FFF7E0",text:"#92400E"},RESUMED:{bg:"#E5F6FB",text:"#0891B2"},COMPLETED:{bg:"#E8FAF2",text:"#0A7A55"},CANCELLED:{bg:"#F0EDE8",text:"#6B5E52"}},M={PENDING:"待分配",QUEUED:"排队中",DISPATCHED:"已推送",CONFIRMED:"已确认",ARRIVED:"作业中",PAUSED:"已暂停",RESUMED:"已恢复",COMPLETED:"已完成",CANCELLED:"已取消"},U={PENDING:"solar:inbox-line-bold-duotone",QUEUED:"solar:clock-circle-bold-duotone",DISPATCHED:"solar:transfer-horizontal-bold-duotone",CONFIRMED:"solar:check-circle-bold-duotone",ARRIVED:"solar:play-circle-bold-duotone",PAUSED:"solar:pause-circle-bold-duotone",RESUMED:"solar:play-circle-bold-duotone",COMPLETED:"solar:check-read-bold-duotone",CANCELLED:"solar:close-circle-bold-duotone"},v=[{key:"ALL",label:"全部",statuses:void 0},{key:"PENDING",label:"待处理",statuses:["PENDING"]},{key:"IN_PROGRESS",label:"进行中",statuses:["DISPATCHED","CONFIRMED","ARRIVED","QUEUED"]},{key:"COMPLETED",label:"已完成",statuses:["COMPLETED"]},{key:"CANCELLED",label:"已取消",statuses:["CANCELLED"]}],I={0:{style:{backgroundColor:"#FFF0F0",color:"#C01D1D"},icon:"solar:bolt-bold"},1:{style:{backgroundColor:"#FFF4E6",color:"#C2410C"},icon:"lucide:alert-triangle"},2:{style:{backgroundColor:"#F0EDE8",color:"#6B5E52"},icon:"lucide:info"},3:{style:{backgroundColor:"#E8FAF2",color:"#0A7A55"},icon:"lucide:info"}},F={style:{backgroundColor:"#F0EDE8",color:"#6B5E52"},icon:"lucide:info"};function p(){const o=P(),l=D(()=>o.getDictOptions(R.OPS_ORDER_PRIORITY));function t(E){var a,s;const u=Number(E),r=l.value.find(c=>c.value===String(E)),A=(a=r==null?void 0:r.label)!=null?a:`P${E}`,T=(s=I[u])!=null?s:F;return d({label:A},T)}return{getPriorityInfo:t}}const y=[{label:"日常",value:e.CleaningType.ROUTINE},{label:"深度",value:e.CleaningType.DEEP},{label:"应急",value:e.CleaningType.EMERGENCY}],h={ROUTINE:"日常",DEEP:"深度",EMERGENCY:"应急"},m=[{label:"保洁",value:e.OrderType.CLEAN},{label:"维修",value:e.OrderType.REPAIR},{label:"安保",value:e.OrderType.SECURITY}],x={CLEAN:"保洁",REPAIR:"维修",SECURITY:"安保"},Y={CLEAN:{bg:"#E5FAF2",text:"#047857",border:"#10B981"},REPAIR:{bg:"#FFF5E0",text:"#92400E",border:"#F59E0B"},SECURITY:{bg:"#EEF0FF",text:"#3730A3",border:"#6366F1"},FACILITIES:{bg:"#FFF5E0",text:"#92400E",border:"#F59E0B"},SERVICE:{bg:"#E0F2FE",text:"#0369A1",border:"#0EA5E9"}},G={CLEAN:"solar:broom-bold-duotone",REPAIR:"solar:wrench-bold-duotone",SECURITY:"solar:shield-check-bold-duotone",FACILITIES:"solar:settings-bold-duotone",SERVICE:"solar:headphones-round-bold-duotone"};e.OrderStatus.PENDING,e.OrderStatus.QUEUED,e.OrderStatus.DISPATCHED,e.OrderStatus.CONFIRMED,e.OrderStatus.ARRIVED,e.OrderStatus.PAUSED,e.OrderStatus.COMPLETED,e.OrderStatus.CANCELLED;const k=[{label:"P0 (紧急)",value:e.Priority.P0},{label:"P1 (重要)",value:e.Priority.P1},{label:"P2 (普通)",value:e.Priority.P2}];e.TriggerSource.IOT_BEACON,e.TriggerSource.PEOPLE_FLOW,e.TriggerSource.MANUAL,e.TriggerSource.VIDEO_ALARM,e.TriggerSource.ACCESS_ALARM,e.TriggerSource.PATROL_ALARM,e.TriggerSource.PANIC_BUTTON;const w={IOT_BEACON:"蓝牙信标",IOT_TRAFFIC:"客流阈值",TRAFFIC:"客流阈值",PEOPLE_FLOW:"客流阈值",MANUAL:"手动创建",VIDEO_ALARM:"视频告警",ACCESS_ALARM:"门禁告警",PATROL_ALARM:"巡更告警",PANIC_BUTTON:"紧急按钮"};function B(){return[{type:"seq",width:50,title:"序号"},{field:"orderCode",title:"工单编号",minWidth:180,showOverflow:!0},{field:"title",title:"工单标题",minWidth:180,showOverflow:!0},{field:"orderType",title:"类型",width:80,align:"center",slots:{default:"orderType"}},{field:"status",title:"状态",width:90,align:"center",slots:{default:"status"}},{field:"priority",title:"优先级",width:80,align:"center",slots:{default:"priority"}},{field:"location",title:"位置",minWidth:150,showOverflow:!0},{field:"assigneeName",title:"执行人",width:90,align:"center",slots:{default:"assignee"}},{field:"createTime",title:"创建时间",width:160,formatter:"formatDateTime"},{title:"操作",width:200,fixed:"right",align:"center",slots:{default:"actions"}}]}export{h as C,Y as O,k as P,f as S,w as T,x as a,U as b,M as c,B as d,v as e,m as f,G as g,y as h,p as u};